From 61f97b41df9ea1fa6ef28b400ba4e7f0bcf89c2e Mon Sep 17 00:00:00 2001 From: jagpreetsinghsasan Date: Wed, 27 Sep 2023 18:49:43 +0530 Subject: [PATCH] Added go codegen Signed-off-by: jagpreetsinghsasan --- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 33 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 122 + .../openapi/go-client/api/openapi.yaml | 335 +++ .../openapi/go-client/api_default.go | 338 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 231 ++ .../go-client/docs/CounterpartyHTLCRequest.md | 161 ++ .../openapi/go-client/docs/DefaultApi.md | 203 ++ .../openapi/go-client/docs/HtlcPackage.md | 13 + .../openapi/go-client/docs/OwnHTLCRequest.md | 329 +++ .../go-client/docs/Web3SigningCredential.md | 135 + .../Web3SigningCredentialCactusKeychainRef.md | 114 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../docs/WithdrawCounterpartyRequest.md | 208 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_counterparty_htlc_request.go | 264 ++ .../openapi/go-client/model_htlc_package.go | 111 + .../go-client/model_own_htlc_request.go | 487 ++++ .../model_web3_signing_credential.go | 178 ++ ..._signing_credential_cactus_keychain_ref.go | 201 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../model_withdraw_counterparty_request.go | 329 +++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/CounterpartyHTLCRequest.java | 2 +- .../client/model/OwnHTLCRequest.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../model/WithdrawCounterpartyRequest.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 27 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 119 + .../openapi/go-client/api/openapi.yaml | 229 ++ .../openapi/go-client/api_default.go | 350 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 231 ++ .../openapi/go-client/docs/DefaultApi.md | 203 ++ .../go-client/docs/GetObjectRequestV1.md | 51 + .../go-client/docs/GetObjectResponseV1.md | 72 + .../go-client/docs/HasObjectRequestV1.md | 51 + .../go-client/docs/HasObjectResponseV1.md | 93 + .../go-client/docs/SetObjectRequestV1.md | 72 + .../go-client/docs/SetObjectResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../go-client/model_get_object_request_v1.go | 118 + .../go-client/model_get_object_response_v1.go | 146 ++ .../go-client/model_has_object_request_v1.go | 118 + .../go-client/model_has_object_response_v1.go | 174 ++ .../go-client/model_set_object_request_v1.go | 146 ++ .../go-client/model_set_object_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/GetObjectRequestV1.java | 2 +- .../client/model/GetObjectResponseV1.java | 2 +- .../client/model/HasObjectRequestV1.java | 2 +- .../client/model/HasObjectResponseV1.java | 2 +- .../client/model/SetObjectRequestV1.java | 2 +- .../client/model/SetObjectResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 21 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 116 + .../openapi/go-client/api/openapi.yaml | 129 + .../openapi/go-client/api_default.go | 318 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 192 ++ .../go-client/docs/HealthCheckResponse.md | 98 + .../openapi/go-client/docs/MemoryUsage.md | 160 ++ .../go-client/docs/WatchHealthcheckV1.md | 19 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../go-client/model_health_check_response.go | 180 ++ .../openapi/go-client/model_memory_usage.go | 270 ++ .../go-client/model_watch_healthcheck_v1.go | 117 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/HealthCheckResponse.java | 2 +- .../client/model/MemoryUsage.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 76 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 141 + .../openapi/go-client/api/openapi.yaml | 712 +++++ .../go/generated/openapi/go-client/client.go | 653 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/CactusNode.md | 177 ++ .../openapi/go-client/docs/CactusNodeAllOf.md | 135 + .../openapi/go-client/docs/CactusNodeMeta.md | 72 + ...ensusAlgorithmFamiliesWithOutTxFinality.md | 11 + ...onsensusAlgorithmFamiliesWithTxFinality.md | 13 + .../docs/ConsensusAlgorithmFamily.md | 15 + .../openapi/go-client/docs/Consortium.md | 114 + .../go-client/docs/ConsortiumDatabase.md | 135 + .../go-client/docs/ConsortiumMember.md | 93 + .../openapi/go-client/docs/Constants.md | 11 + .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../go-client/docs/GetObjectRequestV1.md | 51 + .../go-client/docs/GetObjectResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../go-client/docs/HasObjectRequestV1.md | 51 + .../go-client/docs/HasObjectResponseV1.md | 93 + .../openapi/go-client/docs/JWSGeneral.md | 72 + .../openapi/go-client/docs/JWSRecipient.md | 103 + .../openapi/go-client/docs/Ledger.md | 98 + .../openapi/go-client/docs/LedgerType.md | 25 + .../openapi/go-client/docs/PluginImport.md | 129 + .../go-client/docs/PluginImportAction.md | 13 + .../go-client/docs/PluginImportType.md | 13 + .../openapi/go-client/docs/PluginInstance.md | 72 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../go-client/docs/SetObjectRequestV1.md | 72 + .../go-client/docs/SetObjectResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../openapi/go-client/model_cactus_node.go | 281 ++ .../go-client/model_cactus_node_all_of.go | 226 ++ .../go-client/model_cactus_node_meta.go | 145 ++ ...algorithm_families_with_out_tx_finality.go | 109 + ...sus_algorithm_families_with_tx_finality.go | 111 + .../model_consensus_algorithm_family.go | 113 + .../openapi/go-client/model_consortium.go | 199 ++ .../go-client/model_consortium_database.go | 230 ++ .../go-client/model_consortium_member.go | 172 ++ .../openapi/go-client/model_constants.go | 109 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../go-client/model_get_object_request_v1.go | 118 + .../go-client/model_get_object_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../go-client/model_has_object_request_v1.go | 118 + .../go-client/model_has_object_response_v1.go | 174 ++ .../openapi/go-client/model_jws_general.go | 144 ++ .../openapi/go-client/model_jws_recipient.go | 189 ++ .../openapi/go-client/model_ledger.go | 180 ++ .../openapi/go-client/model_ledger_type.go | 123 + .../openapi/go-client/model_plugin_import.go | 208 ++ .../go-client/model_plugin_import_action.go | 111 + .../go-client/model_plugin_import_type.go | 111 + .../go-client/model_plugin_instance.go | 144 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../go-client/model_set_object_request_v1.go | 146 ++ .../go-client/model_set_object_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../openapitools/client/model/CactusNode.java | 2 +- .../client/model/CactusNodeAllOf.java | 2 +- .../client/model/CactusNodeMeta.java | 2 +- .../openapitools/client/model/Consortium.java | 2 +- .../client/model/ConsortiumDatabase.java | 2 +- .../client/model/ConsortiumMember.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../client/model/GetObjectRequestV1.java | 2 +- .../client/model/GetObjectResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../client/model/HasObjectRequestV1.java | 2 +- .../client/model/HasObjectResponseV1.java | 2 +- .../openapitools/client/model/JWSGeneral.java | 2 +- .../client/model/JWSRecipient.java | 2 +- .../org/openapitools/client/model/Ledger.java | 2 +- .../client/model/PluginImport.java | 2 +- .../client/model/PluginInstance.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../client/model/SetObjectRequestV1.java | 2 +- .../client/model/SetObjectResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 23 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 117 + .../openapi/go-client/api/openapi.yaml | 166 ++ .../openapi/go-client/api_default.go | 332 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 200 ++ .../docs/GetConsortiumJwsResponse.md | 51 + .../go-client/docs/GetNodeJwsResponse.md | 51 + .../openapi/go-client/docs/JWSGeneral.md | 72 + .../openapi/go-client/docs/JWSRecipient.md | 103 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_get_consortium_jws_response.go | 117 + .../go-client/model_get_node_jws_response.go | 117 + .../openapi/go-client/model_jws_general.go | 144 ++ .../openapi/go-client/model_jws_recipient.go | 189 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/GetConsortiumJwsResponse.java | 2 +- .../client/model/GetNodeJwsResponse.java | 2 +- .../openapitools/client/model/JWSGeneral.java | 2 +- .../client/model/JWSRecipient.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 45 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 131 + .../openapi/go-client/api/openapi.yaml | 575 +++++ .../openapi/go-client/api_default.go | 653 +++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 398 +++ .../go-client/docs/GetSingleStatusRequest.md | 114 + .../go-client/docs/GetStatusRequest.md | 114 + .../go-client/docs/InitializeRequest.md | 140 + .../docs/InvokeContractV1Response.md | 113 + .../go-client/docs/NewContractRequest.md | 308 +++ .../go-client/docs/NewContractRequestGas.md | 30 + .../openapi/go-client/docs/RefundRequest.md | 140 + .../go-client/docs/RunTransactionResponse.md | 51 + .../go-client/docs/Web3SigningCredential.md | 135 + .../Web3SigningCredentialCactusKeychainRef.md | 114 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../go-client/docs/Web3TransactionReceipt.md | 234 ++ .../openapi/go-client/docs/WithdrawRequest.md | 161 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_get_single_status_request.go | 198 ++ .../go-client/model_get_status_request.go | 198 ++ .../go-client/model_initialize_request.go | 236 ++ .../model_invoke_contract_v1_response.go | 190 ++ .../go-client/model_new_contract_request.go | 461 ++++ .../model_new_contract_request_gas.go | 148 ++ .../openapi/go-client/model_refund_request.go | 237 ++ .../model_run_transaction_response.go | 117 + .../model_web3_signing_credential.go | 178 ++ ..._signing_credential_cactus_keychain_ref.go | 201 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../model_web3_transaction_receipt.go | 385 +++ .../go-client/model_withdraw_request.go | 265 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 97 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/GetSingleStatusRequest.java | 2 +- .../client/model/GetStatusRequest.java | 2 +- .../client/model/InitializeRequest.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../client/model/NewContractRequest.java | 2 +- .../client/model/NewContractRequestGas.java | 2 +- .../client/model/RefundRequest.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../client/model/WithdrawRequest.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 45 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 131 + .../openapi/go-client/api/openapi.yaml | 547 ++++ .../openapi/go-client/api_default.go | 653 +++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 398 +++ .../go-client/docs/GetSingleStatusRequest.md | 114 + .../go-client/docs/GetStatusRequest.md | 114 + .../go-client/docs/InitializeRequest.md | 140 + .../docs/InvokeContractV1Response.md | 113 + .../openapi/go-client/docs/NewContractObj.md | 297 +++ .../go-client/docs/NewContractObjGas.md | 30 + .../openapi/go-client/docs/RefundReq.md | 140 + .../go-client/docs/RunTransactionResponse.md | 51 + .../go-client/docs/Web3SigningCredential.md | 135 + .../Web3SigningCredentialCactusKeychainRef.md | 114 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../go-client/docs/Web3TransactionReceipt.md | 234 ++ .../openapi/go-client/docs/WithdrawReq.md | 161 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_get_single_status_request.go | 198 ++ .../go-client/model_get_status_request.go | 198 ++ .../go-client/model_initialize_request.go | 236 ++ .../model_invoke_contract_v1_response.go | 190 ++ .../go-client/model_new_contract_obj.go | 444 ++++ .../go-client/model_new_contract_obj_gas.go | 148 ++ .../openapi/go-client/model_refund_req.go | 237 ++ .../model_run_transaction_response.go | 117 + .../model_web3_signing_credential.go | 178 ++ ..._signing_credential_cactus_keychain_ref.go | 201 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../model_web3_transaction_receipt.go | 385 +++ .../openapi/go-client/model_withdraw_req.go | 265 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 97 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/GetSingleStatusRequest.java | 2 +- .../client/model/GetStatusRequest.java | 2 +- .../client/model/InitializeRequest.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../client/model/NewContractObj.java | 2 +- .../client/model/NewContractObjGas.java | 2 +- .../openapitools/client/model/RefundReq.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../client/model/WithdrawReq.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 31 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 123 + .../openapi/go-client/api/openapi.yaml | 364 +++ .../openapi/go-client/api_default.go | 556 ++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 328 +++ .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 85 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 31 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 122 + .../openapi/go-client/api/openapi.yaml | 344 +++ .../openapi/go-client/api_default.go | 459 ++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 268 ++ .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 73 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 31 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 122 + .../openapi/go-client/api/openapi.yaml | 324 +++ .../openapi/go-client/api_default.go | 459 ++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 268 ++ .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 73 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 31 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 122 + .../openapi/go-client/api/openapi.yaml | 340 +++ .../openapi/go-client/api_default.go | 459 ++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 268 ++ .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 73 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 23 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 115 + .../openapi/go-client/api/openapi.yaml | 136 + .../openapi/go-client/api_default.go | 120 + .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 68 + .../go-client/docs/GetKeychainEntryRequest.md | 51 + .../docs/GetKeychainEntryResponse.md | 72 + .../go-client/docs/SetKeychainEntryRequest.md | 72 + .../docs/SetKeychainEntryResponse.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_get_keychain_entry_request.go | 118 + .../model_get_keychain_entry_response.go | 146 ++ .../model_set_keychain_entry_request.go | 146 ++ .../model_set_keychain_entry_response.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 37 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/GetKeychainEntryRequest.java | 2 +- .../model/GetKeychainEntryResponse.java | 2 +- .../client/model/SetKeychainEntryRequest.java | 2 +- .../model/SetKeychainEntryResponse.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 31 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 123 + .../openapi/go-client/api/openapi.yaml | 310 +++ .../openapi/go-client/api_default.go | 548 ++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 328 +++ .../docs/DeleteKeychainEntryRequestV1.md | 51 + .../docs/DeleteKeychainEntryResponseV1.md | 51 + .../docs/GetKeychainEntryRequestV1.md | 51 + .../docs/GetKeychainEntryResponseV1.md | 72 + .../docs/HasKeychainEntryRequestV1.md | 51 + .../docs/HasKeychainEntryResponseV1.md | 93 + .../docs/SetKeychainEntryRequestV1.md | 72 + .../docs/SetKeychainEntryResponseV1.md | 51 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_delete_keychain_entry_request_v1.go | 118 + ...model_delete_keychain_entry_response_v1.go | 118 + .../model_get_keychain_entry_request_v1.go | 118 + .../model_get_keychain_entry_response_v1.go | 146 ++ .../model_has_keychain_entry_request_v1.go | 118 + .../model_has_keychain_entry_response_v1.go | 174 ++ .../model_set_keychain_entry_request_v1.go | 146 ++ .../model_set_keychain_entry_response_v1.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 85 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/DeleteKeychainEntryRequestV1.java | 2 +- .../model/DeleteKeychainEntryResponseV1.java | 2 +- .../model/GetKeychainEntryRequestV1.java | 2 +- .../model/GetKeychainEntryResponseV1.java | 2 +- .../model/HasKeychainEntryRequestV1.java | 2 +- .../model/HasKeychainEntryResponseV1.java | 2 +- .../model/SetKeychainEntryRequestV1.java | 2 +- .../model/SetKeychainEntryResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 97 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 162 ++ .../openapi/go-client/api/openapi.yaml | 1228 +++++++++ .../openapi/go-client/api_default.go | 1167 +++++++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../docs/BesuPrivateTransactionConfig.md | 72 + .../go-client/docs/BesuTransactionConfig.md | 238 ++ .../go-client/docs/BesuTransactionConfigTo.md | 30 + .../go-client/docs/ConsistencyStrategy.md | 98 + .../openapi/go-client/docs/DefaultApi.md | 715 ++++++ ...DeployContractSolidityBytecodeV1Request.md | 260 ++ ...eployContractSolidityBytecodeV1Response.md | 51 + .../docs/EthContractInvocationType.md | 13 + .../openapi/go-client/docs/EvmBlock.md | 508 ++++ .../openapi/go-client/docs/EvmLog.md | 198 ++ .../openapi/go-client/docs/EvmTransaction.md | 356 +++ .../go-client/docs/GetBalanceV1Request.md | 87 + .../go-client/docs/GetBalanceV1Response.md | 51 + .../go-client/docs/GetBesuRecordV1Request.md | 82 + .../go-client/docs/GetBesuRecordV1Response.md | 154 ++ .../go-client/docs/GetBlockV1Request.md | 61 + .../go-client/docs/GetBlockV1Response.md | 51 + .../go-client/docs/GetPastLogsV1Request.md | 164 ++ .../go-client/docs/GetPastLogsV1Response.md | 51 + .../go-client/docs/GetTransactionV1Request.md | 51 + .../docs/GetTransactionV1Response.md | 51 + .../go-client/docs/InvokeContractV1Request.md | 369 +++ .../docs/InvokeContractV1Response.md | 113 + .../openapi/go-client/docs/ReceiptType.md | 13 + .../go-client/docs/RunTransactionRequest.md | 119 + .../go-client/docs/RunTransactionResponse.md | 51 + .../go-client/docs/SignTransactionRequest.md | 93 + .../go-client/docs/SignTransactionResponse.md | 51 + .../docs/SolidityContractJsonArtifact.md | 285 ++ .../SolidityContractJsonArtifactCompiler.md | 82 + ...olidityContractJsonArtifactGasEstimates.md | 82 + ...ontractJsonArtifactGasEstimatesCreation.md | 108 + .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../go-client/docs/WatchBlocksV1Progress.md | 51 + .../openapi/go-client/docs/Web3BlockHeader.md | 324 +++ .../docs/Web3BlockHeaderTimestamp.md | 30 + .../go-client/docs/Web3SigningCredential.md | 135 + .../Web3SigningCredentialCactusKeychainRef.md | 114 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../go-client/docs/Web3TransactionReceipt.md | 234 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_besu_private_transaction_config.go | 144 ++ .../model_besu_transaction_config.go | 410 +++ .../model_besu_transaction_config_to.go | 118 + .../go-client/model_consistency_strategy.go | 182 ++ ...y_contract_solidity_bytecode_v1_request.go | 405 +++ ..._contract_solidity_bytecode_v1_response.go | 117 + .../model_eth_contract_invocation_type.go | 111 + .../openapi/go-client/model_evm_block.go | 739 ++++++ .../openapi/go-client/model_evm_log.go | 306 +++ .../go-client/model_evm_transaction.go | 490 ++++ .../go-client/model_get_balance_v1_request.go | 154 ++ .../model_get_balance_v1_response.go | 117 + .../model_get_besu_record_v1_request.go | 162 ++ .../model_get_besu_record_v1_response.go | 236 ++ .../go-client/model_get_block_v1_request.go | 121 + .../go-client/model_get_block_v1_response.go | 117 + .../model_get_past_logs_v1_request.go | 237 ++ .../model_get_past_logs_v1_response.go | 117 + .../model_get_transaction_v1_request.go | 117 + .../model_get_transaction_v1_response.go | 117 + .../model_invoke_contract_v1_request.go | 559 ++++ .../model_invoke_contract_v1_response.go | 190 ++ .../openapi/go-client/model_receipt_type.go | 111 + .../model_run_transaction_request.go | 207 ++ .../model_run_transaction_response.go | 117 + .../model_sign_transaction_request.go | 172 ++ .../model_sign_transaction_response.go | 118 + .../model_solidity_contract_json_artifact.go | 441 ++++ ...olidity_contract_json_artifact_compiler.go | 188 ++ ...ty_contract_json_artifact_gas_estimates.go | 162 ++ ...ct_json_artifact_gas_estimates_creation.go | 198 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../model_watch_blocks_v1_progress.go | 117 + .../go-client/model_web3_block_header.go | 468 ++++ .../model_web3_block_header_timestamp.go | 148 ++ .../model_web3_signing_credential.go | 178 ++ ..._signing_credential_cactus_keychain_ref.go | 201 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../model_web3_transaction_receipt.go | 385 +++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 157 ++ .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/BesuPrivateTransactionConfig.java | 2 +- .../client/model/BesuTransactionConfig.java | 2 +- .../client/model/BesuTransactionConfigTo.java | 2 +- .../client/model/ConsistencyStrategy.java | 2 +- ...ployContractSolidityBytecodeV1Request.java | 2 +- ...loyContractSolidityBytecodeV1Response.java | 2 +- .../openapitools/client/model/EvmBlock.java | 2 +- .../org/openapitools/client/model/EvmLog.java | 2 +- .../client/model/EvmTransaction.java | 2 +- .../client/model/GetBalanceV1Request.java | 2 +- .../client/model/GetBalanceV1Response.java | 2 +- .../client/model/GetBesuRecordV1Request.java | 2 +- .../client/model/GetBesuRecordV1Response.java | 2 +- .../client/model/GetBlockV1Request.java | 2 +- .../client/model/GetBlockV1Response.java | 2 +- .../client/model/GetPastLogsV1Request.java | 2 +- .../client/model/GetPastLogsV1Response.java | 2 +- .../client/model/GetTransactionV1Request.java | 2 +- .../model/GetTransactionV1Response.java | 2 +- .../client/model/InvokeContractV1Request.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../client/model/RunTransactionRequest.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../client/model/SignTransactionRequest.java | 2 +- .../client/model/SignTransactionResponse.java | 2 +- .../model/SolidityContractJsonArtifact.java | 2 +- .../SolidityContractJsonArtifactCompiler.java | 2 +- ...idityContractJsonArtifactGasEstimates.java | 2 +- ...tractJsonArtifactGasEstimatesCreation.java | 2 +- .../client/model/WatchBlocksV1Progress.java | 2 +- .../client/model/Web3BlockHeader.java | 2 +- .../model/Web3BlockHeaderTimestamp.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 85 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 155 ++ .../openapi/go-client/api/openapi.yaml | 1390 ++++++++++ .../openapi/go-client/api_default.go | 1081 ++++++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../docs/ClearMonitorTransactionsV1Request.md | 93 + .../ClearMonitorTransactionsV1Response.md | 72 + .../go-client/docs/CordaNodeSshCredentials.md | 135 + .../go-client/docs/CordaRpcCredentials.md | 114 + .../openapi/go-client/docs/CordaX500Name.md | 192 ++ .../go-client/docs/CordappDeploymentConfig.md | 156 ++ .../openapi/go-client/docs/CordappInfo.md | 219 ++ .../openapi/go-client/docs/DefaultApi.md | 659 +++++ .../DeployContractJarsBadRequestV1Response.md | 51 + .../DeployContractJarsSuccessV1Response.md | 51 + .../docs/DeployContractJarsV1Request.md | 72 + .../go-client/docs/DiagnoseNodeV1Request.md | 56 + .../go-client/docs/DiagnoseNodeV1Response.md | 51 + .../go-client/docs/FlowInvocationType.md | 13 + .../docs/GetMonitorTransactionsV1Request.md | 72 + .../docs/GetMonitorTransactionsV1Response.md | 124 + ...GetMonitorTransactionsV1ResponseTxInner.md | 82 + .../go-client/docs/InvokeContractV1Request.md | 119 + .../docs/InvokeContractV1Response.md | 145 ++ .../openapi/go-client/docs/JarFile.md | 93 + .../openapi/go-client/docs/JvmObject.md | 124 + .../openapi/go-client/docs/JvmType.md | 103 + .../openapi/go-client/docs/JvmTypeKind.md | 13 + .../go-client/docs/ListFlowsV1Request.md | 56 + .../go-client/docs/ListFlowsV1Response.md | 51 + .../go-client/docs/NetworkHostAndPort.md | 72 + .../go-client/docs/NodeDiagnosticInfo.md | 135 + .../openapi/go-client/docs/NodeInfo.md | 135 + .../generated/openapi/go-client/docs/Party.md | 72 + .../openapi/go-client/docs/PublicKey.md | 93 + .../openapi/go-client/docs/SHA256.md | 93 + .../go-client/docs/StartMonitorV1Request.md | 72 + .../go-client/docs/StartMonitorV1Response.md | 72 + .../go-client/docs/StopMonitorV1Request.md | 72 + .../go-client/docs/StopMonitorV1Response.md | 72 + .../openapi/go-client/docs/X500Principal.md | 72 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + ...l_clear_monitor_transactions_v1_request.go | 173 ++ ..._clear_monitor_transactions_v1_response.go | 146 ++ .../model_corda_node_ssh_credentials.go | 225 ++ .../go-client/model_corda_rpc_credentials.go | 198 ++ .../go-client/model_corda_x500_name.go | 306 +++ .../model_cordapp_deployment_config.go | 256 ++ .../openapi/go-client/model_cordapp_info.go | 341 +++ ...y_contract_jars_bad_request_v1_response.go | 117 + ...eploy_contract_jars_success_v1_response.go | 117 + .../model_deploy_contract_jars_v1_request.go | 145 ++ .../model_diagnose_node_v1_request.go | 127 + .../model_diagnose_node_v1_response.go | 117 + .../go-client/model_flow_invocation_type.go | 111 + ...del_get_monitor_transactions_v1_request.go | 146 ++ ...el_get_monitor_transactions_v1_response.go | 219 ++ ...nitor_transactions_v1_response_tx_inner.go | 162 ++ .../model_invoke_contract_v1_request.go | 214 ++ .../model_invoke_contract_v1_response.go | 247 ++ .../openapi/go-client/model_jar_file.go | 199 ++ .../openapi/go-client/model_jvm_object.go | 216 ++ .../openapi/go-client/model_jvm_type.go | 190 ++ .../openapi/go-client/model_jvm_type_kind.go | 111 + .../go-client/model_list_flows_v1_request.go | 126 + .../go-client/model_list_flows_v1_response.go | 118 + .../go-client/model_network_host_and_port.go | 144 ++ .../go-client/model_node_diagnostic_info.go | 230 ++ .../openapi/go-client/model_node_info.go | 225 ++ .../openapi/go-client/model_party.go | 144 ++ .../openapi/go-client/model_public_key.go | 171 ++ .../openapi/go-client/model_sha256.go | 171 ++ .../model_start_monitor_v1_request.go | 146 ++ .../model_start_monitor_v1_response.go | 146 ++ .../model_stop_monitor_v1_request.go | 146 ++ .../model_stop_monitor_v1_response.go | 146 ++ .../openapi/go-client/model_x500_principal.go | 145 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 145 ++ .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../ClearMonitorTransactionsV1Request.java | 2 +- .../ClearMonitorTransactionsV1Response.java | 2 +- .../client/model/CordaNodeSshCredentials.java | 2 +- .../client/model/CordaRpcCredentials.java | 2 +- .../client/model/CordaX500Name.java | 2 +- .../client/model/CordappDeploymentConfig.java | 2 +- .../client/model/CordappInfo.java | 2 +- ...eployContractJarsBadRequestV1Response.java | 2 +- .../DeployContractJarsSuccessV1Response.java | 2 +- .../model/DeployContractJarsV1Request.java | 2 +- .../client/model/DiagnoseNodeV1Request.java | 2 +- .../client/model/DiagnoseNodeV1Response.java | 2 +- .../GetMonitorTransactionsV1Request.java | 2 +- .../GetMonitorTransactionsV1Response.java | 2 +- ...tMonitorTransactionsV1ResponseTxInner.java | 2 +- .../client/model/InvokeContractV1Request.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../openapitools/client/model/JarFile.java | 2 +- .../openapitools/client/model/JvmObject.java | 2 +- .../openapitools/client/model/JvmType.java | 2 +- .../client/model/ListFlowsV1Request.java | 2 +- .../client/model/ListFlowsV1Response.java | 2 +- .../client/model/NetworkHostAndPort.java | 2 +- .../client/model/NodeDiagnosticInfo.java | 2 +- .../openapitools/client/model/NodeInfo.java | 2 +- .../org/openapitools/client/model/Party.java | 2 +- .../openapitools/client/model/PublicKey.java | 2 +- .../org/openapitools/client/model/SHA256.java | 2 +- .../client/model/StartMonitorV1Request.java | 2 +- .../client/model/StartMonitorV1Response.java | 2 +- .../client/model/StopMonitorV1Request.java | 2 +- .../client/model/StopMonitorV1Response.java | 2 +- .../client/model/X500Principal.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 85 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 153 ++ .../openapi/go-client/api/openapi.yaml | 1213 +++++++++ .../openapi/go-client/api_default.go | 855 ++++++ .../go/generated/openapi/go-client/client.go | 655 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/ContractJSON.md | 358 +++ .../openapi/go-client/docs/DefaultApi.md | 523 ++++ ...ractSolidityBytecodeJsonObjectV1Request.md | 176 ++ ...DeployContractSolidityBytecodeV1Request.md | 327 +++ ...eployContractSolidityBytecodeV1Response.md | 51 + .../docs/EthContractInvocationType.md | 13 + .../docs/EthContractInvocationWeb3Method.md | 17 + .../docs/EthereumTransactionConfig.md | 238 ++ .../docs/EthereumTransactionConfigFrom.md | 30 + .../docs/EthereumTransactionConfigTo.md | 30 + .../docs/InvokeContractJsonObjectV1Request.md | 286 +++ .../go-client/docs/InvokeContractV1Request.md | 286 +++ .../docs/InvokeContractV1Response.md | 113 + .../docs/InvokeRawWeb3EthContractV1Request.md | 166 ++ .../InvokeRawWeb3EthContractV1Response.md | 113 + .../docs/InvokeRawWeb3EthMethodV1Request.md | 77 + .../docs/InvokeRawWeb3EthMethodV1Response.md | 113 + .../go-client/docs/RunTransactionRequest.md | 98 + .../go-client/docs/RunTransactionResponse.md | 51 + .../docs/SolidityContractJsonArtifact.md | 285 ++ .../SolidityContractJsonArtifactCompiler.md | 82 + ...olidityContractJsonArtifactGasEstimates.md | 82 + ...ontractJsonArtifactGasEstimatesCreation.md | 108 + .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../go-client/docs/WatchBlocksV1BlockData.md | 470 ++++ .../go-client/docs/WatchBlocksV1Options.md | 56 + .../go-client/docs/WatchBlocksV1Progress.md | 82 + .../openapi/go-client/docs/Web3BlockHeader.md | 386 +++ .../go-client/docs/Web3SigningCredential.md | 140 + .../Web3SigningCredentialCactusKeychainRef.md | 119 + ...b3SigningCredentialGethKeychainPassword.md | 93 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../openapi/go-client/docs/Web3Transaction.md | 379 +++ .../go-client/docs/Web3TransactionReceipt.md | 390 +++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../openapi/go-client/model_contract_json.go | 579 +++++ ...olidity_bytecode_json_object_v1_request.go | 294 +++ ...y_contract_solidity_bytecode_v1_request.go | 506 ++++ ..._contract_solidity_bytecode_v1_response.go | 117 + .../model_eth_contract_invocation_type.go | 111 + ...del_eth_contract_invocation_web3_method.go | 115 + .../model_ethereum_transaction_config.go | 410 +++ .../model_ethereum_transaction_config_from.go | 148 ++ .../model_ethereum_transaction_config_to.go | 118 + ..._invoke_contract_json_object_v1_request.go | 440 ++++ .../model_invoke_contract_v1_request.go | 441 ++++ .../model_invoke_contract_v1_response.go | 190 ++ ...invoke_raw_web3_eth_contract_v1_request.go | 275 ++ ...nvoke_raw_web3_eth_contract_v1_response.go | 193 ++ ...l_invoke_raw_web3_eth_method_v1_request.go | 155 ++ ..._invoke_raw_web3_eth_method_v1_response.go | 193 ++ .../model_run_transaction_request.go | 185 ++ .../model_run_transaction_response.go | 117 + .../model_solidity_contract_json_artifact.go | 441 ++++ ...olidity_contract_json_artifact_compiler.go | 188 ++ ...ty_contract_json_artifact_gas_estimates.go | 162 ++ ...ct_json_artifact_gas_estimates_creation.go | 198 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../model_watch_blocks_v1_block_data.go | 666 +++++ .../model_watch_blocks_v1_options.go | 126 + .../model_watch_blocks_v1_progress.go | 162 ++ .../go-client/model_web3_block_header.go | 558 ++++ .../model_web3_signing_credential.go | 208 ++ ..._signing_credential_cactus_keychain_ref.go | 210 ++ ...gning_credential_geth_keychain_password.go | 173 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../go-client/model_web3_transaction.go | 503 ++++ .../model_web3_transaction_receipt.go | 607 +++++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 121 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/ContractJSON.java | 2 +- ...ctSolidityBytecodeJsonObjectV1Request.java | 2 +- ...ployContractSolidityBytecodeV1Request.java | 2 +- ...loyContractSolidityBytecodeV1Response.java | 2 +- .../model/EthereumTransactionConfig.java | 2 +- .../model/EthereumTransactionConfigFrom.java | 2 +- .../model/EthereumTransactionConfigTo.java | 2 +- .../InvokeContractJsonObjectV1Request.java | 2 +- .../client/model/InvokeContractV1Request.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../InvokeRawWeb3EthContractV1Request.java | 2 +- .../InvokeRawWeb3EthContractV1Response.java | 2 +- .../InvokeRawWeb3EthMethodV1Request.java | 2 +- .../InvokeRawWeb3EthMethodV1Response.java | 2 +- .../client/model/RunTransactionRequest.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../model/SolidityContractJsonArtifact.java | 2 +- .../SolidityContractJsonArtifactCompiler.java | 2 +- ...idityContractJsonArtifactGasEstimates.java | 2 +- ...tractJsonArtifactGasEstimatesCreation.java | 2 +- .../client/model/WatchBlocksV1BlockData.java | 2 +- .../client/model/WatchBlocksV1Options.java | 2 +- .../client/model/WatchBlocksV1Progress.java | 2 +- .../client/model/Web3BlockHeader.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- ...SigningCredentialGethKeychainPassword.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3Transaction.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 111 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 164 ++ .../openapi/go-client/api/openapi.yaml | 1650 ++++++++++++ .../openapi/go-client/api_default.go | 685 +++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../docs/ChainCodeLanguageRuntime.md | 15 + .../ChainCodeLifeCycleCommandResponses.md | 197 ++ .../docs/ChainCodeProgrammingLanguage.md | 17 + .../go-client/docs/ConnectionProfile.md | 270 ++ .../go-client/docs/ConnectionProfileClient.md | 56 + .../openapi/go-client/docs/DefaultApi.md | 397 +++ .../docs/DefaultEventHandlerStrategy.md | 17 + .../DeployContractGoSourceV1501Response.md | 56 + .../docs/DeployContractGoSourceV1Request.md | 317 +++ ...ontractGoSourceV1RequestConstructorArgs.md | 56 + .../docs/DeployContractGoSourceV1Response.md | 93 + .../go-client/docs/DeployContractV1Request.md | 365 +++ .../docs/DeployContractV1Response.md | 93 + .../docs/DeploymentTargetOrgFabric2x.md | 161 ++ .../docs/DeploymentTargetOrganization.md | 135 + .../docs/ErrorExceptionResponseV1.md | 72 + .../docs/FabricContractInvocationType.md | 15 + .../go-client/docs/FabricSigningCredential.md | 150 ++ .../docs/FabricSigningCredentialType.md | 15 + .../openapi/go-client/docs/FileBase64.md | 98 + .../go-client/docs/GatewayDiscoveryOptions.md | 82 + .../docs/GatewayEventHandlerOptions.md | 103 + .../openapi/go-client/docs/GatewayOptions.md | 150 ++ .../go-client/docs/GatewayOptionsWallet.md | 82 + .../go-client/docs/GetBlockRequestV1.md | 145 ++ .../go-client/docs/GetBlockRequestV1Query.md | 108 + .../docs/GetBlockRequestV1QueryBlockHash.md | 77 + .../docs/GetBlockResponseDecodedV1.md | 61 + .../docs/GetBlockResponseEncodedV1.md | 51 + .../go-client/docs/GetBlockResponseV1.md | 82 + .../docs/GetTransactionReceiptResponse.md | 290 +++ .../go-client/docs/RunTransactionRequest.md | 296 +++ .../go-client/docs/RunTransactionResponse.md | 93 + .../go-client/docs/SSHExecCommandResponse.md | 134 + .../docs/TransactReceiptBlockMetaData.md | 108 + .../docs/TransactReceiptTransactionCreator.md | 82 + .../TransactReceiptTransactionEndorsement.md | 108 + .../openapi/go-client/docs/VaultTransitKey.md | 72 + .../docs/WatchBlocksCactusErrorResponseV1.md | 72 + .../WatchBlocksCactusTransactionsEventV1.md | 114 + ...WatchBlocksCactusTransactionsResponseV1.md | 51 + .../docs/WatchBlocksFilteredResponseV1.md | 61 + .../docs/WatchBlocksFullResponseV1.md | 61 + .../docs/WatchBlocksListenerTypeV1.md | 17 + .../go-client/docs/WatchBlocksOptionsV1.md | 119 + .../docs/WatchBlocksPrivateResponseV1.md | 61 + .../go-client/docs/WatchBlocksResponseV1.md | 186 ++ .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../openapi/go-client/docs/WebSocketKey.md | 72 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_chain_code_language_runtime.go | 113 + ...chain_code_life_cycle_command_responses.go | 315 +++ .../model_chain_code_programming_language.go | 115 + .../go-client/model_connection_profile.go | 448 ++++ .../model_connection_profile_client.go | 126 + .../model_default_event_handler_strategy.go | 115 + ...ploy_contract_go_source_v1_501_response.go | 126 + ...el_deploy_contract_go_source_v1_request.go | 474 ++++ ...t_go_source_v1_request_constructor_args.go | 126 + ...l_deploy_contract_go_source_v1_response.go | 171 ++ .../model_deploy_contract_v1_request.go | 540 ++++ .../model_deploy_contract_v1_response.go | 171 ++ .../model_deployment_target_org_fabric2x.go | 267 ++ .../model_deployment_target_organization.go | 230 ++ .../model_error_exception_response_v1.go | 144 ++ .../model_fabric_contract_invocation_type.go | 113 + .../model_fabric_signing_credential.go | 252 ++ .../model_fabric_signing_credential_type.go | 113 + .../openapi/go-client/model_file_base64.go | 183 ++ .../model_gateway_discovery_options.go | 162 ++ .../model_gateway_event_handler_options.go | 189 ++ .../go-client/model_gateway_options.go | 252 ++ .../go-client/model_gateway_options_wallet.go | 162 ++ .../go-client/model_get_block_request_v1.go | 250 ++ .../model_get_block_request_v1_query.go | 200 ++ ...l_get_block_request_v1_query_block_hash.go | 155 ++ .../model_get_block_response_decoded_v1.go | 122 + .../model_get_block_response_encoded_v1.go | 117 + .../go-client/model_get_block_response_v1.go | 148 ++ .../model_get_transaction_receipt_response.go | 450 ++++ .../model_run_transaction_request.go | 434 ++++ .../model_run_transaction_response.go | 171 ++ .../model_ssh_exec_command_response.go | 202 ++ .../model_transact_receipt_block_meta_data.go | 198 ++ ...el_transact_receipt_transaction_creator.go | 162 ++ ...ransact_receipt_transaction_endorsement.go | 198 ++ .../go-client/model_vault_transit_key.go | 146 ++ ...l_watch_blocks_cactus_error_response_v1.go | 146 ++ ...tch_blocks_cactus_transactions_event_v1.go | 202 ++ ..._blocks_cactus_transactions_response_v1.go | 118 + ...model_watch_blocks_filtered_response_v1.go | 122 + .../model_watch_blocks_full_response_v1.go | 122 + .../model_watch_blocks_listener_type_v1.go | 115 + .../model_watch_blocks_options_v1.go | 209 ++ .../model_watch_blocks_private_response_v1.go | 122 + .../model_watch_blocks_response_v1.go | 238 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../openapi/go-client/model_web_socket_key.go | 146 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 97 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../ChainCodeLifeCycleCommandResponses.java | 2 +- .../client/model/ConnectionProfile.java | 2 +- .../client/model/ConnectionProfileClient.java | 2 +- .../DeployContractGoSourceV1501Response.java | 2 +- .../DeployContractGoSourceV1Request.java | 2 +- ...tractGoSourceV1RequestConstructorArgs.java | 2 +- .../DeployContractGoSourceV1Response.java | 2 +- .../client/model/DeployContractV1Request.java | 2 +- .../model/DeployContractV1Response.java | 2 +- .../model/DeploymentTargetOrgFabric2x.java | 2 +- .../model/DeploymentTargetOrganization.java | 2 +- .../model/ErrorExceptionResponseV1.java | 2 +- .../client/model/FabricSigningCredential.java | 2 +- .../openapitools/client/model/FileBase64.java | 2 +- .../client/model/GatewayDiscoveryOptions.java | 2 +- .../model/GatewayEventHandlerOptions.java | 2 +- .../client/model/GatewayOptions.java | 2 +- .../client/model/GatewayOptionsWallet.java | 2 +- .../client/model/GetBlockRequestV1.java | 2 +- .../client/model/GetBlockRequestV1Query.java | 2 +- .../GetBlockRequestV1QueryBlockHash.java | 2 +- .../model/GetBlockResponseDecodedV1.java | 2 +- .../model/GetBlockResponseEncodedV1.java | 2 +- .../client/model/GetBlockResponseV1.java | 2 +- .../model/GetTransactionReceiptResponse.java | 2 +- .../client/model/RunTransactionRequest.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../client/model/SSHExecCommandResponse.java | 2 +- .../model/TransactReceiptBlockMetaData.java | 2 +- .../TransactReceiptTransactionCreator.java | 2 +- ...TransactReceiptTransactionEndorsement.java | 2 +- .../client/model/VaultTransitKey.java | 2 +- .../WatchBlocksCactusErrorResponseV1.java | 2 +- .../WatchBlocksCactusTransactionsEventV1.java | 2 +- ...tchBlocksCactusTransactionsResponseV1.java | 2 +- .../model/WatchBlocksFilteredResponseV1.java | 2 +- .../model/WatchBlocksFullResponseV1.java | 2 +- .../client/model/WatchBlocksOptionsV1.java | 2 +- .../model/WatchBlocksPrivateResponseV1.java | 2 +- .../client/model/WatchBlocksResponseV1.java | 2 +- .../client/model/WebSocketKey.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 111 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 161 ++ .../openapi/go-client/api/openapi.yaml | 897 +++++++ .../openapi/go-client/api_default.go | 383 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../docs/AddAssetQuantityRequestParameters.md | 72 + .../docs/AddPeerRequestParameters.md | 124 + .../docs/AddSignatoryRequestParameters.md | 72 + .../docs/AppendRoleRequestParameters.md | 72 + .../docs/CallEngineRequestParameters.md | 93 + ...areAndSetAccountDetailRequestParameters.md | 140 + .../docs/CreateAccountRequestParameters.md | 93 + .../docs/CreateAssetRequestParameters.md | 93 + .../docs/CreateDomainRequestParameters.md | 72 + .../docs/CreateRoleRequestParameters.md | 72 + .../openapi/go-client/docs/DefaultApi.md | 198 ++ .../docs/DetachRoleRequestParameters.md | 72 + .../docs/ErrorExceptionJsonResponseV1.md | 155 ++ .../docs/ErrorExceptionResponseV1.md | 72 + .../docs/GenerateTransactionRequestV1.md | 119 + ...countAssetTransactionsRequestParameters.md | 114 + .../docs/GetAccountAssetsRequestParameters.md | 98 + .../docs/GetAccountDetailRequestParameters.md | 171 ++ .../docs/GetAccountRequestParameters.md | 51 + ...GetAccountTransactionsRequestParameters.md | 197 ++ .../docs/GetAssetInfoRequestParameters.md | 51 + .../docs/GetBlockRequestParameters.md | 51 + .../GetEngineReceiptsRequestParameters.md | 51 + ...GetPendingTransactionsRequestParameters.md | 129 + .../GetRolePermissionsRequestParameters.md | 51 + .../docs/GetSignatoriesRequestParameters.md | 51 + .../docs/GetTransactionsRequestParameters.md | 51 + .../docs/GrantPermissionRequestParameters.md | 72 + .../openapi/go-client/docs/IrohaBaseConfig.md | 248 ++ .../go-client/docs/IrohaBlockProgress.md | 51 + .../go-client/docs/IrohaBlockResponse.md | 72 + .../docs/IrohaBlockResponsePayload.md | 156 ++ .../openapi/go-client/docs/IrohaCommand.md | 49 + .../openapi/go-client/docs/IrohaQuery.md | 39 + .../go-client/docs/IrohaSocketIOTransactV1.md | 13 + .../openapi/go-client/docs/KeyPair.md | 72 + .../docs/RemovePeerRequestParameters.md | 51 + .../docs/RemoveSignatoryRequestParameters.md | 72 + .../docs/RevokePermissionRequestParameters.md | 72 + .../go-client/docs/RunTransactionRequestV1.md | 93 + .../docs/RunTransactionRequestV1Body.md | 114 + .../docs/RunTransactionRequestV1Params.md | 936 +++++++ .../go-client/docs/RunTransactionResponse.md | 61 + .../docs/RunTransactionSignedRequestV1.md | 77 + .../docs/SetAccountDetailRequestParameters.md | 93 + .../docs/SetAccountQuorumRequestParameters.md | 72 + .../SubtractAssetQuantityRequestParameters.md | 72 + .../docs/TransferAssetRequestParameters.md | 135 + .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + ...l_add_asset_quantity_request_parameters.go | 144 ++ .../model_add_peer_request_parameters.go | 216 ++ .../model_add_signatory_request_parameters.go | 144 ++ .../model_append_role_request_parameters.go | 144 ++ .../model_call_engine_request_parameters.go | 171 ++ ...d_set_account_detail_request_parameters.go | 234 ++ ...model_create_account_request_parameters.go | 171 ++ .../model_create_asset_request_parameters.go | 171 ++ .../model_create_domain_request_parameters.go | 144 ++ .../model_create_role_request_parameters.go | 144 ++ .../model_detach_role_request_parameters.go | 144 ++ .../model_error_exception_json_response_v1.go | 261 ++ .../model_error_exception_response_v1.go | 144 ++ .../model_generate_transaction_request_v1.go | 215 ++ ...t_asset_transactions_request_parameters.go | 198 ++ ...l_get_account_assets_request_parameters.go | 180 ++ ...l_get_account_detail_request_parameters.go | 279 ++ .../model_get_account_request_parameters.go | 117 + ...account_transactions_request_parameters.go | 315 +++ ...model_get_asset_info_request_parameters.go | 117 + .../model_get_block_request_parameters.go | 117 + ..._get_engine_receipts_request_parameters.go | 117 + ...pending_transactions_request_parameters.go | 225 ++ ...get_role_permissions_request_parameters.go | 117 + ...odel_get_signatories_request_parameters.go | 117 + ...del_get_transactions_request_parameters.go | 117 + ...del_grant_permission_request_parameters.go | 144 ++ .../go-client/model_iroha_base_config.go | 422 +++ .../go-client/model_iroha_block_progress.go | 117 + .../go-client/model_iroha_block_response.go | 144 ++ .../model_iroha_block_response_payload.go | 252 ++ .../openapi/go-client/model_iroha_command.go | 147 ++ .../openapi/go-client/model_iroha_query.go | 137 + .../model_iroha_socket_io_transact_v1.go | 111 + .../openapi/go-client/model_key_pair.go | 146 ++ .../model_remove_peer_request_parameters.go | 117 + ...del_remove_signatory_request_parameters.go | 144 ++ ...el_revoke_permission_request_parameters.go | 144 ++ .../model_run_transaction_request_v1.go | 171 ++ .../model_run_transaction_request_v1_body.go | 148 ++ ...model_run_transaction_request_v1_params.go | 1048 ++++++++ .../model_run_transaction_response.go | 121 + ...model_run_transaction_signed_request_v1.go | 154 ++ ...l_set_account_detail_request_parameters.go | 171 ++ ...l_set_account_quorum_request_parameters.go | 144 ++ ...tract_asset_quantity_request_parameters.go | 144 ++ ...model_transfer_asset_request_parameters.go | 225 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../AddAssetQuantityRequestParameters.java | 2 +- .../model/AddPeerRequestParameters.java | 2 +- .../model/AddSignatoryRequestParameters.java | 2 +- .../model/AppendRoleRequestParameters.java | 2 +- .../model/CallEngineRequestParameters.java | 2 +- ...eAndSetAccountDetailRequestParameters.java | 2 +- .../model/CreateAccountRequestParameters.java | 2 +- .../model/CreateAssetRequestParameters.java | 2 +- .../model/CreateDomainRequestParameters.java | 2 +- .../model/CreateRoleRequestParameters.java | 2 +- .../model/DetachRoleRequestParameters.java | 2 +- .../model/ErrorExceptionJsonResponseV1.java | 2 +- .../model/ErrorExceptionResponseV1.java | 2 +- .../model/GenerateTransactionRequestV1.java | 2 +- ...untAssetTransactionsRequestParameters.java | 2 +- .../GetAccountAssetsRequestParameters.java | 2 +- .../GetAccountDetailRequestParameters.java | 2 +- .../model/GetAccountRequestParameters.java | 2 +- ...tAccountTransactionsRequestParameters.java | 2 +- .../model/GetAssetInfoRequestParameters.java | 2 +- .../model/GetBlockRequestParameters.java | 2 +- .../GetEngineReceiptsRequestParameters.java | 2 +- ...tPendingTransactionsRequestParameters.java | 2 +- .../GetRolePermissionsRequestParameters.java | 2 +- .../GetSignatoriesRequestParameters.java | 2 +- .../GetTransactionsRequestParameters.java | 2 +- .../GrantPermissionRequestParameters.java | 2 +- .../client/model/IrohaBaseConfig.java | 2 +- .../client/model/IrohaBlockProgress.java | 2 +- .../client/model/IrohaBlockResponse.java | 2 +- .../model/IrohaBlockResponsePayload.java | 2 +- .../openapitools/client/model/KeyPair.java | 2 +- .../model/RemovePeerRequestParameters.java | 2 +- .../RemoveSignatoryRequestParameters.java | 2 +- .../RevokePermissionRequestParameters.java | 2 +- .../client/model/RunTransactionRequestV1.java | 2 +- .../model/RunTransactionRequestV1Body.java | 2 +- .../model/RunTransactionRequestV1Params.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../model/RunTransactionSignedRequestV1.java | 2 +- .../SetAccountDetailRequestParameters.java | 2 +- .../SetAccountQuorumRequestParameters.java | 2 +- ...ubtractAssetQuantityRequestParameters.java | 2 +- .../model/TransferAssetRequestParameters.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 73 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 142 + .../openapi/go-client/api/openapi.yaml | 585 +++++ .../openapi/go-client/api_default.go | 368 +++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/BlockTypeV1.md | 13 + .../openapi/go-client/docs/DefaultApi.md | 203 ++ .../docs/ErrorExceptionResponseV1.md | 72 + .../docs/GenerateTransactionRequestV1.md | 77 + .../GenerateTransactionRequestV1Request.md | 98 + .../openapi/go-client/docs/Iroha2AccountId.md | 72 + .../go-client/docs/Iroha2BaseConfig.md | 103 + .../docs/Iroha2BaseConfigSigningCredential.md | 114 + .../go-client/docs/Iroha2BaseConfigTorii.md | 82 + .../openapi/go-client/docs/Iroha2KeyJson.md | 72 + .../openapi/go-client/docs/Iroha2KeyPair.md | 72 + .../go-client/docs/IrohaInstruction.md | 23 + .../docs/IrohaInstructionRequestV1.md | 72 + .../openapi/go-client/docs/IrohaQuery.md | 33 + .../go-client/docs/IrohaQueryDefinitionV1.md | 77 + .../docs/IrohaSignedQueryDefinitionV1.md | 72 + .../docs/IrohaTransactionDefinitionV1.md | 77 + ...IrohaTransactionDefinitionV1Instruction.md | 72 + .../docs/IrohaTransactionParametersV1.md | 108 + .../go-client/docs/KeychainReference.md | 72 + .../openapi/go-client/docs/QueryRequestV1.md | 108 + .../openapi/go-client/docs/QueryResponseV1.md | 61 + .../go-client/docs/TransactRequestV1.md | 134 + .../go-client/docs/TransactResponseV1.md | 98 + .../go-client/docs/TransactionStatusV1.md | 15 + .../docs/WatchBlocksBinaryResponseV1.md | 51 + .../go-client/docs/WatchBlocksOptionsV1.md | 108 + .../docs/WatchBlocksRawResponseV1.md | 51 + .../go-client/docs/WatchBlocksResponseV1.md | 114 + .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../openapi/go-client/model_block_type_v1.go | 111 + .../model_error_exception_response_v1.go | 146 ++ .../model_generate_transaction_request_v1.go | 153 ++ ...generate_transaction_request_v1_request.go | 148 ++ .../go-client/model_iroha2_account_id.go | 144 ++ .../go-client/model_iroha2_base_config.go | 189 ++ ...l_iroha2_base_config_signing_credential.go | 148 ++ .../model_iroha2_base_config_torii.go | 162 ++ .../go-client/model_iroha2_key_json.go | 144 ++ .../go-client/model_iroha2_key_pair.go | 144 ++ .../go-client/model_iroha_instruction.go | 121 + .../model_iroha_instruction_request_v1.go | 146 ++ .../openapi/go-client/model_iroha_query.go | 131 + .../model_iroha_query_definition_v1.go | 155 ++ .../model_iroha_signed_query_definition_v1.go | 146 ++ .../model_iroha_transaction_definition_v1.go | 153 ++ ...a_transaction_definition_v1_instruction.go | 148 ++ .../model_iroha_transaction_parameters_v1.go | 228 ++ .../go-client/model_keychain_reference.go | 146 ++ .../go-client/model_query_request_v1.go | 198 ++ .../go-client/model_query_response_v1.go | 122 + .../go-client/model_transact_request_v1.go | 240 ++ .../go-client/model_transact_response_v1.go | 182 ++ .../go-client/model_transaction_status_v1.go | 113 + .../model_watch_blocks_binary_response_v1.go | 117 + .../model_watch_blocks_options_v1.go | 199 ++ .../model_watch_blocks_raw_response_v1.go | 117 + .../model_watch_blocks_response_v1.go | 178 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 61 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/ErrorExceptionResponseV1.java | 2 +- .../model/GenerateTransactionRequestV1.java | 2 +- .../GenerateTransactionRequestV1Request.java | 2 +- .../client/model/Iroha2AccountId.java | 2 +- .../client/model/Iroha2BaseConfig.java | 2 +- .../Iroha2BaseConfigSigningCredential.java | 2 +- .../client/model/Iroha2BaseConfigTorii.java | 2 +- .../client/model/Iroha2KeyJson.java | 2 +- .../client/model/Iroha2KeyPair.java | 2 +- .../model/IrohaInstructionRequestV1.java | 2 +- .../client/model/IrohaQueryDefinitionV1.java | 2 +- .../model/IrohaSignedQueryDefinitionV1.java | 2 +- .../model/IrohaTransactionDefinitionV1.java | 2 +- ...ohaTransactionDefinitionV1Instruction.java | 2 +- .../model/IrohaTransactionParametersV1.java | 2 +- .../client/model/KeychainReference.java | 2 +- .../client/model/QueryRequestV1.java | 2 +- .../client/model/QueryResponseV1.java | 2 +- .../client/model/TransactRequestV1.java | 2 +- .../client/model/TransactResponseV1.java | 2 +- .../model/WatchBlocksBinaryResponseV1.java | 2 +- .../client/model/WatchBlocksOptionsV1.java | 2 +- .../model/WatchBlocksRawResponseV1.java | 2 +- .../client/model/WatchBlocksResponseV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 87 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 154 ++ .../openapi/go-client/api/openapi.yaml | 1288 ++++++++++ .../openapi/go-client/api_default.go | 855 ++++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/ContractJSON.md | 358 +++ .../openapi/go-client/docs/DefaultApi.md | 523 ++++ ...ractSolidityBytecodeJsonObjectV1Request.md | 176 ++ ...DeployContractSolidityBytecodeV1Request.md | 353 +++ ...eployContractSolidityBytecodeV1Response.md | 51 + .../docs/EthContractInvocationType.md | 13 + .../docs/EthContractInvocationWeb3Method.md | 17 + .../docs/InvokeContractJsonObjectV1Request.md | 312 +++ .../go-client/docs/InvokeContractV1Request.md | 286 +++ .../docs/InvokeContractV1Response.md | 113 + .../docs/InvokeRawWeb3EthContractV1Request.md | 166 ++ .../InvokeRawWeb3EthContractV1Response.md | 113 + .../docs/InvokeRawWeb3EthMethodV1Request.md | 77 + .../docs/InvokeRawWeb3EthMethodV1Response.md | 113 + .../docs/QuorumPrivateTransactionConfig.md | 207 ++ .../go-client/docs/QuorumTransactionConfig.md | 238 ++ .../docs/QuorumTransactionConfigFrom.md | 30 + .../docs/QuorumTransactionConfigTo.md | 30 + .../go-client/docs/RunTransactionRequest.md | 124 + .../go-client/docs/RunTransactionResponse.md | 51 + .../docs/SolidityContractJsonArtifact.md | 285 ++ .../SolidityContractJsonArtifactCompiler.md | 82 + ...olidityContractJsonArtifactGasEstimates.md | 82 + ...ontractJsonArtifactGasEstimatesCreation.md | 108 + .../openapi/go-client/docs/WatchBlocksV1.md | 19 + .../go-client/docs/WatchBlocksV1BlockData.md | 470 ++++ .../go-client/docs/WatchBlocksV1Options.md | 56 + .../go-client/docs/WatchBlocksV1Progress.md | 82 + .../openapi/go-client/docs/Web3BlockHeader.md | 386 +++ .../go-client/docs/Web3SigningCredential.md | 140 + .../Web3SigningCredentialCactusKeychainRef.md | 119 + ...b3SigningCredentialGethKeychainPassword.md | 93 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../openapi/go-client/docs/Web3Transaction.md | 379 +++ .../go-client/docs/Web3TransactionReceipt.md | 390 +++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../openapi/go-client/model_contract_json.go | 579 +++++ ...olidity_bytecode_json_object_v1_request.go | 294 +++ ...y_contract_solidity_bytecode_v1_request.go | 542 ++++ ..._contract_solidity_bytecode_v1_response.go | 117 + .../model_eth_contract_invocation_type.go | 111 + ...del_eth_contract_invocation_web3_method.go | 115 + ..._invoke_contract_json_object_v1_request.go | 476 ++++ .../model_invoke_contract_v1_request.go | 441 ++++ .../model_invoke_contract_v1_response.go | 190 ++ ...invoke_raw_web3_eth_contract_v1_request.go | 275 ++ ...nvoke_raw_web3_eth_contract_v1_response.go | 193 ++ ...l_invoke_raw_web3_eth_method_v1_request.go | 155 ++ ..._invoke_raw_web3_eth_method_v1_response.go | 193 ++ ...model_quorum_private_transaction_config.go | 337 +++ .../model_quorum_transaction_config.go | 410 +++ .../model_quorum_transaction_config_from.go | 148 ++ .../model_quorum_transaction_config_to.go | 118 + .../model_run_transaction_request.go | 221 ++ .../model_run_transaction_response.go | 117 + .../model_solidity_contract_json_artifact.go | 441 ++++ ...olidity_contract_json_artifact_compiler.go | 188 ++ ...ty_contract_json_artifact_gas_estimates.go | 162 ++ ...ct_json_artifact_gas_estimates_creation.go | 198 ++ .../go-client/model_watch_blocks_v1.go | 117 + .../model_watch_blocks_v1_block_data.go | 666 +++++ .../model_watch_blocks_v1_options.go | 126 + .../model_watch_blocks_v1_progress.go | 162 ++ .../go-client/model_web3_block_header.go | 558 ++++ .../model_web3_signing_credential.go | 208 ++ ..._signing_credential_cactus_keychain_ref.go | 210 ++ ...gning_credential_geth_keychain_password.go | 173 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../go-client/model_web3_transaction.go | 503 ++++ .../model_web3_transaction_receipt.go | 607 +++++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 121 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/ContractJSON.java | 2 +- ...ctSolidityBytecodeJsonObjectV1Request.java | 2 +- ...ployContractSolidityBytecodeV1Request.java | 2 +- ...loyContractSolidityBytecodeV1Response.java | 2 +- .../InvokeContractJsonObjectV1Request.java | 2 +- .../client/model/InvokeContractV1Request.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../InvokeRawWeb3EthContractV1Request.java | 2 +- .../InvokeRawWeb3EthContractV1Response.java | 2 +- .../InvokeRawWeb3EthMethodV1Request.java | 2 +- .../InvokeRawWeb3EthMethodV1Response.java | 2 +- .../model/QuorumPrivateTransactionConfig.java | 2 +- .../client/model/QuorumTransactionConfig.java | 2 +- .../model/QuorumTransactionConfigFrom.java | 2 +- .../model/QuorumTransactionConfigTo.java | 2 +- .../client/model/RunTransactionRequest.java | 2 +- .../client/model/RunTransactionResponse.java | 2 +- .../model/SolidityContractJsonArtifact.java | 2 +- .../SolidityContractJsonArtifactCompiler.java | 2 +- ...idityContractJsonArtifactGasEstimates.java | 2 +- ...tractJsonArtifactGasEstimatesCreation.java | 2 +- .../client/model/WatchBlocksV1BlockData.java | 2 +- .../client/model/WatchBlocksV1Options.java | 2 +- .../client/model/WatchBlocksV1Progress.java | 2 +- .../client/model/Web3BlockHeader.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- ...SigningCredentialGethKeychainPassword.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3Transaction.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 17 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 112 + .../openapi/go-client/api/openapi.yaml | 48 + .../openapi/go-client/api_default.go | 119 + .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 73 + .../docs/GetTransactionsByAddressEndpoint.md | 93 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + ...el_get_transactions_by_address_endpoint.go | 171 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 36 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../GetTransactionsByAddressEndpoint.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 69 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 143 ++ .../openapi/go-client/api/openapi.yaml | 896 +++++++ .../openapi/go-client/api_default.go | 645 +++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../go-client/docs/ConsistencyStrategy.md | 124 + .../openapi/go-client/docs/ContractJSON.md | 353 +++ .../openapi/go-client/docs/DefaultApi.md | 393 +++ .../docs/DeployContractJsonObjectV1Request.md | 176 ++ .../go-client/docs/DeployContractV1Request.md | 197 ++ .../docs/DeployContractV1Response.md | 51 + .../go-client/docs/DeployRequestBaseV1.md | 176 ++ .../docs/EthContractInvocationType.md | 13 + .../docs/InvokeContractJsonObjectV1Request.md | 286 +++ .../go-client/docs/InvokeContractV1Request.md | 286 +++ .../docs/InvokeContractV1Response.md | 113 + .../go-client/docs/InvokeRequestBaseV1.md | 286 +++ .../openapi/go-client/docs/ReceiptType.md | 13 + .../go-client/docs/RunTransactionV1Request.md | 93 + .../docs/RunTransactionV1Response.md | 51 + .../docs/SolidityContractJsonArtifact.md | 285 ++ .../SolidityContractJsonArtifactCompiler.md | 82 + ...olidityContractJsonArtifactGasEstimates.md | 82 + ...ontractJsonArtifactGasEstimatesCreation.md | 108 + .../go-client/docs/Web3SigningCredential.md | 135 + .../Web3SigningCredentialCactusKeychainRef.md | 114 + .../docs/Web3SigningCredentialNone.md | 51 + .../Web3SigningCredentialPrivateKeyHex.md | 93 + .../docs/Web3SigningCredentialType.md | 17 + .../go-client/docs/Web3TransactionReceipt.md | 234 ++ .../go-client/docs/XdaiTransactionConfig.md | 238 ++ .../docs/XdaiTransactionConfigFrom.md | 30 + .../go-client/docs/XdaiTransactionConfigTo.md | 30 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../go-client/model_consistency_strategy.go | 219 ++ .../openapi/go-client/model_contract_json.go | 570 ++++ ..._deploy_contract_json_object_v1_request.go | 294 +++ .../model_deploy_contract_v1_request.go | 322 +++ .../model_deploy_contract_v1_response.go | 117 + .../go-client/model_deploy_request_base_v1.go | 293 +++ .../model_eth_contract_invocation_type.go | 111 + ..._invoke_contract_json_object_v1_request.go | 440 ++++ .../model_invoke_contract_v1_request.go | 441 ++++ .../model_invoke_contract_v1_response.go | 190 ++ .../go-client/model_invoke_request_base_v1.go | 440 ++++ .../openapi/go-client/model_receipt_type.go | 111 + .../model_run_transaction_v1_request.go | 171 ++ .../model_run_transaction_v1_response.go | 117 + .../model_solidity_contract_json_artifact.go | 441 ++++ ...olidity_contract_json_artifact_compiler.go | 188 ++ ...ty_contract_json_artifact_gas_estimates.go | 162 ++ ...ct_json_artifact_gas_estimates_creation.go | 198 ++ .../model_web3_signing_credential.go | 178 ++ ..._signing_credential_cactus_keychain_ref.go | 201 ++ .../model_web3_signing_credential_none.go | 117 + ...web3_signing_credential_private_key_hex.go | 173 ++ .../model_web3_signing_credential_type.go | 115 + .../model_web3_transaction_receipt.go | 385 +++ .../model_xdai_transaction_config.go | 410 +++ .../model_xdai_transaction_config_from.go | 148 ++ .../model_xdai_transaction_config_to.go | 118 + .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 97 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/ConsistencyStrategy.java | 2 +- .../client/model/ContractJSON.java | 2 +- .../DeployContractJsonObjectV1Request.java | 2 +- .../client/model/DeployContractV1Request.java | 2 +- .../model/DeployContractV1Response.java | 2 +- .../client/model/DeployRequestBaseV1.java | 2 +- .../InvokeContractJsonObjectV1Request.java | 2 +- .../client/model/InvokeContractV1Request.java | 2 +- .../model/InvokeContractV1Response.java | 2 +- .../client/model/InvokeRequestBaseV1.java | 2 +- .../client/model/RunTransactionV1Request.java | 2 +- .../model/RunTransactionV1Response.java | 2 +- .../model/SolidityContractJsonArtifact.java | 2 +- .../SolidityContractJsonArtifactCompiler.java | 2 +- ...idityContractJsonArtifactGasEstimates.java | 2 +- ...tractJsonArtifactGasEstimatesCreation.java | 2 +- .../client/model/Web3SigningCredential.java | 2 +- ...eb3SigningCredentialCactusKeychainRef.java | 2 +- .../model/Web3SigningCredentialNone.java | 2 +- .../Web3SigningCredentialPrivateKeyHex.java | 2 +- .../client/model/Web3TransactionReceipt.java | 2 +- .../client/model/XdaiTransactionConfig.java | 2 +- .../model/XdaiTransactionConfigFrom.java | 2 +- .../client/model/XdaiTransactionConfigTo.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 69 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 155 ++ .../openapi/go-client/api/openapi.yaml | 1600 ++++++++++++ .../openapi/go-client/api_default.go | 1762 +++++++++++++ .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/AssetProfile.md | 337 +++ .../openapi/go-client/docs/ClientV1Request.md | 492 ++++ ...ientV1RequestClientGatewayConfiguration.md | 51 + .../go-client/docs/CommitFinalV1Request.md | 260 ++ .../go-client/docs/CommitFinalV1Response.md | 250 ++ .../docs/CommitPreparationV1Request.md | 203 ++ .../docs/CommitPreparationV1Response.md | 203 ++ .../go-client/docs/CredentialProfile.md | 15 + .../openapi/go-client/docs/DefaultApi.md | 1180 +++++++++ .../openapi/go-client/docs/History.md | 212 ++ .../go-client/docs/LockEvidenceV1Request.md | 307 +++ .../go-client/docs/LockEvidenceV1Response.md | 213 ++ .../openapi/go-client/docs/OdapLocalLog.md | 171 ++ .../openapi/go-client/docs/OdapMessage.md | 342 +++ .../docs/OdapMessageActionResponse.md | 82 + .../openapi/go-client/docs/PayloadProfile.md | 77 + .../go-client/docs/RecoverSuccessV1Message.md | 93 + .../docs/RecoverUpdateAckV1Message.md | 114 + .../go-client/docs/RecoverUpdateV1Message.md | 93 + .../go-client/docs/RecoverV1Message.md | 203 ++ .../go-client/docs/RollbackAckV1Message.md | 93 + .../go-client/docs/RollbackV1Message.md | 135 + .../openapi/go-client/docs/SessionData.md | 1616 ++++++++++++ .../docs/TransferCommenceV1Request.md | 344 +++ .../docs/TransferCommenceV1Response.md | 239 ++ .../docs/TransferCompleteV1Request.md | 234 ++ .../docs/TransferInitializationV1Request.md | 741 ++++++ .../docs/TransferInitializationV1Response.md | 271 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../openapi/go-client/model_asset_profile.go | 513 ++++ .../go-client/model_client_v1_request.go | 684 +++++ ...v1_request_client_gateway_configuration.go | 117 + .../model_commit_final_v1_request.go | 388 +++ .../model_commit_final_v1_response.go | 378 +++ .../model_commit_preparation_v1_request.go | 315 +++ .../model_commit_preparation_v1_response.go | 315 +++ .../go-client/model_credential_profile.go | 113 + .../openapi/go-client/model_history.go | 342 +++ .../model_lock_evidence_v1_request.go | 451 ++++ .../model_lock_evidence_v1_response.go | 325 +++ .../openapi/go-client/model_odap_local_log.go | 279 ++ .../openapi/go-client/model_odap_message.go | 522 ++++ .../model_odap_message_action_response.go | 162 ++ .../go-client/model_payload_profile.go | 153 ++ .../model_recover_success_v1_message.go | 171 ++ .../model_recover_update_ack_v1_message.go | 198 ++ .../model_recover_update_v1_message.go | 171 ++ .../go-client/model_recover_v1_message.go | 315 +++ .../model_rollback_ack_v1_message.go | 171 ++ .../go-client/model_rollback_v1_message.go | 225 ++ .../openapi/go-client/model_session_data.go | 2286 +++++++++++++++++ .../model_transfer_commence_v1_request.go | 496 ++++ .../model_transfer_commence_v1_response.go | 361 +++ .../model_transfer_complete_v1_request.go | 352 +++ ...odel_transfer_initialization_v1_request.go | 1035 ++++++++ ...del_transfer_initialization_v1_response.go | 405 +++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 224 ++ .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/AssetProfile.java | 2 +- .../client/model/ClientV1Request.java | 2 +- ...ntV1RequestClientGatewayConfiguration.java | 2 +- .../client/model/CommitFinalV1Request.java | 2 +- .../client/model/CommitFinalV1Response.java | 2 +- .../model/CommitPreparationV1Request.java | 2 +- .../model/CommitPreparationV1Response.java | 2 +- .../openapitools/client/model/History.java | 2 +- .../client/model/LockEvidenceV1Request.java | 2 +- .../client/model/LockEvidenceV1Response.java | 2 +- .../client/model/OdapLocalLog.java | 2 +- .../client/model/OdapMessage.java | 2 +- .../model/OdapMessageActionResponse.java | 2 +- .../client/model/PayloadProfile.java | 2 +- .../client/model/RecoverSuccessV1Message.java | 2 +- .../model/RecoverUpdateAckV1Message.java | 2 +- .../client/model/RecoverUpdateV1Message.java | 2 +- .../client/model/RecoverV1Message.java | 2 +- .../client/model/RollbackAckV1Message.java | 2 +- .../client/model/RollbackV1Message.java | 2 +- .../client/model/SessionData.java | 2 +- .../model/TransferCommenceV1Request.java | 2 +- .../model/TransferCommenceV1Response.java | 2 +- .../model/TransferCompleteV1Request.java | 2 +- .../TransferInitializationV1Request.java | 2 +- .../TransferInitializationV1Response.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 25 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 116 + .../openapi/go-client/api/openapi.yaml | 148 ++ .../openapi/go-client/api_default.go | 130 + .../go/generated/openapi/go-client/client.go | 656 +++++ .../openapi/go-client/configuration.go | 215 ++ .../openapi/go-client/docs/DefaultApi.md | 68 + .../docs/ErrorExceptionResponseV1.md | 72 + .../openapi/go-client/docs/MonitoredToken.md | 93 + .../go-client/docs/StatusResponseV1.md | 177 ++ .../openapi/go-client/docs/TokenTypeV1.md | 13 + .../go-client/docs/TrackedOperationV1.md | 72 + .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../model_error_exception_response_v1.go | 144 ++ .../go-client/model_monitored_token.go | 173 ++ .../go-client/model_status_response_v1.go | 285 ++ .../openapi/go-client/model_token_type_v1.go | 111 + .../go-client/model_tracked_operation_v1.go | 146 ++ .../generated/openapi/go-client/response.go | 47 + .../go-client/test/api_default_test.go | 37 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../model/ErrorExceptionResponseV1.java | 2 +- .../client/model/MonitoredToken.java | 2 +- .../client/model/StatusResponseV1.java | 2 +- .../client/model/TrackedOperationV1.java | 2 +- .../go/generated/openapi/go-client/.gitignore | 24 + .../go-client/.openapi-generator-ignore | 23 + .../go-client/.openapi-generator/FILES | 12 + .../go-client/.openapi-generator/VERSION | 1 + .../generated/openapi/go-client/.travis.yml | 8 + .../go/generated/openapi/go-client/README.md | 109 + .../openapi/go-client/api/openapi.yaml | 13 + .../go/generated/openapi/go-client/client.go | 653 +++++ .../openapi/go-client/configuration.go | 215 ++ .../generated/openapi/go-client/git_push.sh | 57 + .../go/generated/openapi/go-client/go.mod | 6 + .../go/generated/openapi/go-client/go.sum | 11 + .../generated/openapi/go-client/response.go | 47 + .../go/generated/openapi/go-client/utils.go | 347 +++ .../generated/openapi/java-client/README.md | 2 +- .../org/openapitools/client/ApiException.java | 2 +- .../openapitools/client/Configuration.java | 2 +- .../java/org/openapitools/client/Pair.java | 2 +- .../org/openapitools/client/StringUtil.java | 2 +- .../openapitools/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- 1952 files changed, 229827 insertions(+), 613 deletions(-) create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/README.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/client.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/CounterpartyHTLCRequest.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/HtlcPackage.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/OwnHTLCRequest.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/WithdrawCounterpartyRequest.md create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.mod create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.sum create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_counterparty_htlc_request.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_htlc_package.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_own_htlc_request.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_withdraw_counterparty_request.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/response.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/utils.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/README.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/client.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.mod create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.sum create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/response.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/HealthCheckResponse.md create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/MemoryUsage.md create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/WatchHealthcheckV1.md create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_health_check_response.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_memory_usage.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_watch_healthcheck_v1.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNode.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeAllOf.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeMeta.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithTxFinality.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamily.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Consortium.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumDatabase.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumMember.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Constants.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Ledger.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/LedgerType.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImport.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportAction.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportType.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginInstance.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_all_of.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_meta.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_out_tx_finality.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_tx_finality.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_family.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_database.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_member.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_constants.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_general.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_recipient.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger_type.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_action.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_type.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_instance.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-core-api/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetConsortiumJwsResponse.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetNodeJwsResponse.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_consortium_jws_response.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_node_jws_response.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_general.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_recipient.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequestGas.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RefundRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/WithdrawRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_single_status_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_status_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_initialize_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request_gas.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_refund_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_withdraw_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObj.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObjGas.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RefundReq.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/WithdrawReq.md create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_single_status_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_status_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_initialize_request.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj_gas.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_refund_req.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_withdraw_req.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequest.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponse.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequest.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponse.md create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuPrivateTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfigTo.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmBlock.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmLog.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmTransaction.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ReceiptType.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionRequest.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeaderTimestamp.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_private_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config_to.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_consistency_strategy.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_block.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_log.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_transaction.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_receipt_type.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_request.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header_timestamp.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaNodeSshCredentials.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaRpcCredentials.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaX500Name.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappDeploymentConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappInfo.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsBadRequestV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsSuccessV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/FlowInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1ResponseTxInner.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JarFile.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmObject.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmType.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmTypeKind.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NetworkHostAndPort.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeDiagnosticInfo.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeInfo.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/Party.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/PublicKey.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/SHA256.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/X500Principal.md create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_node_ssh_credentials.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_rpc_credentials.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_x500_name.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_deployment_config.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_info.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_bad_request_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_success_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_flow_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response_tx_inner.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jar_file.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_object.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type_kind.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_network_host_and_port.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_diagnostic_info.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_info.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_party.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_public_key.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_sha256.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_x500_principal.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigFrom.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigTo.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_contract_json.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_from.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_to.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_block_header.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLanguageRuntime.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLifeCycleCommandResponses.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeProgrammingLanguage.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfile.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfileClient.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultEventHandlerStrategy.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1501Response.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1RequestConstructorArgs.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrgFabric2x.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrganization.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricContractInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredentialType.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FileBase64.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayDiscoveryOptions.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayEventHandlerOptions.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptions.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptionsWallet.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1Query.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1QueryBlockHash.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseDecodedV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseEncodedV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetTransactionReceiptResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/SSHExecCommandResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptBlockMetaData.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionCreator.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionEndorsement.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/VaultTransitKey.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusErrorResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsEventV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFilteredResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFullResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksListenerTypeV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksPrivateResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WebSocketKey.md create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_language_runtime.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_life_cycle_command_responses.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_programming_language.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile_client.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_default_event_handler_strategy.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_501_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request_constructor_args.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_org_fabric2x.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_organization.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_contract_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential_type.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_file_base64.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_discovery_options.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_event_handler_options.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options_wallet.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query_block_hash.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_decoded_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_encoded_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_transaction_receipt_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_request.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_ssh_exec_command_response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_block_meta_data.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_creator.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_endorsement.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_vault_transit_key.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_error_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_event_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_filtered_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_full_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_listener_type_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_private_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_web_socket_key.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddAssetQuantityRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddPeerRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddSignatoryRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AppendRoleRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CallEngineRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CompareAndSetAccountDetailRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAccountRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAssetRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateDomainRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateRoleRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DetachRoleRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionJsonResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetTransactionsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountDetailRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountTransactionsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAssetInfoRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetBlockRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetEngineReceiptsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetPendingTransactionsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetRolePermissionsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetSignatoriesRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetTransactionsRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GrantPermissionRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBaseConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockProgress.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponsePayload.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaCommand.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaSocketIOTransactV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/KeyPair.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemovePeerRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemoveSignatoryRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RevokePermissionRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Body.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Params.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionSignedRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountDetailRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountQuorumRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SubtractAssetQuantityRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/TransferAssetRequestParameters.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_asset_quantity_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_peer_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_signatory_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_append_role_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_call_engine_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_compare_and_set_account_detail_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_account_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_asset_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_domain_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_role_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_detach_role_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_json_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_asset_transactions_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_assets_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_detail_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_transactions_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_asset_info_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_block_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_engine_receipts_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_pending_transactions_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_role_permissions_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_signatories_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_transactions_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_grant_permission_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_base_config.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_progress.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response_payload.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_command.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_query.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_socket_io_transact_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_key_pair.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_peer_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_signatory_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_revoke_permission_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_body.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_params.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_signed_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_detail_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_quorum_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_subtract_asset_quantity_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_transfer_asset_request_parameters.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/BlockTypeV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2AccountId.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigSigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigTorii.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyJson.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyPair.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstruction.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstructionRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQueryDefinitionV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaSignedQueryDefinitionV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1Instruction.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionParametersV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/KeychainReference.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactRequestV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactionStatusV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksBinaryResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksRawResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_block_type_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_account_id.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_torii.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_json.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_pair.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query_definition_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_signed_query_definition_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1_instruction.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_parameters_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_keychain_reference.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_request_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transaction_status_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_binary_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_raw_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumPrivateTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigFrom.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigTo.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_contract_json.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_private_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_from.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_to.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_block_header.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/GetTransactionsByAddressEndpoint.md create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/model_get_transactions_by_address_endpoint.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ContractJSON.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployRequestBaseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeRequestBaseV1.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ReceiptType.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Request.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Response.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfig.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigFrom.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigTo.md create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_consistency_strategy.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_contract_json.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_request_base_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_request_base_v1.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_receipt_type.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_request.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_response.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_from.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_to.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/AssetProfile.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1RequestClientGatewayConfiguration.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Response.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Response.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CredentialProfile.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/History.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Response.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapLocalLog.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessage.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessageActionResponse.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/PayloadProfile.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverSuccessV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateAckV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackAckV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackV1Message.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/SessionData.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Response.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCompleteV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Request.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Response.md create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_history.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_local_log.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message_action_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_session_data.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api_default.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/MonitoredToken.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/StatusResponseV1.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TokenTypeV1.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TrackedOperationV1.md create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_monitored_token.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_status_response_v1.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_token_type_v1.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_tracked_operation_v1.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go create mode 100644 packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/utils.go create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.gitignore create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.travis.yml create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/README.md create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/client.go create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/configuration.go create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/git_push.sh create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.mod create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.sum create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/response.go create mode 100644 packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/utils.go diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.gitignore b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..c9a7e693327 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,33 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/CounterpartyHTLCRequest.md +docs/DefaultApi.md +docs/HtlcPackage.md +docs/OwnHTLCRequest.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/WithdrawCounterpartyRequest.md +git_push.sh +go.mod +go.sum +model_counterparty_htlc_request.go +model_htlc_package.go +model_own_htlc_request.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_withdraw_counterparty_request.go +response.go +test/api_default_test.go +utils.go diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.travis.yml b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/README.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..c88fa54e74f --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,122 @@ +# Go API client for @hyperledger/cactus-plugin-htlc-coordinator-besu + +Can exchange assets between networks + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-htlc-coordinator-besu "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-coordinator-besu.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-coordinator-besu.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-coordinator-besu.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-coordinator-besu.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://www.cactus.stream* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CounterpartyHtlcV1**](docs/DefaultApi.md#counterpartyhtlcv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/counterparty-htlc | Create an instance to interact with the counterparty HTLC +*DefaultApi* | [**OwnHtlcV1**](docs/DefaultApi.md#ownhtlcv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/own-htlc | Create an instance to interact with the own HTLC. +*DefaultApi* | [**WithdrawCounterpartyV1**](docs/DefaultApi.md#withdrawcounterpartyv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/withdraw-counterparty | Withdraw funds of the counterparty HTLC + + +## Documentation For Models + + - [CounterpartyHTLCRequest](docs/CounterpartyHTLCRequest.md) + - [HtlcPackage](docs/HtlcPackage.md) + - [OwnHTLCRequest](docs/OwnHTLCRequest.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [WithdrawCounterpartyRequest](docs/WithdrawCounterpartyRequest.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..b5a746e21bc --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,335 @@ +openapi: 3.0.3 +info: + description: Can exchange assets between networks + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - HTLC Coordinator + version: v2.0.0-alpha.1 +servers: +- description: Public test instance + url: "https://www.cactus.stream/{basePath}" + variables: + basePath: + default: "" +- description: Local test instance + url: "http://localhost:4000/{basePath}" + variables: + basePath: + default: "" +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/own-htlc: + post: + operationId: ownHtlcV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OwnHTLCRequest' + responses: + "200": + content: + application/json: + schema: {} + description: OK + summary: Create an instance to interact with the own HTLC. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/own-htlc + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/counterparty-htlc: + post: + operationId: counterpartyHtlcV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CounterpartyHTLCRequest' + responses: + "200": + content: + application/json: + schema: {} + description: OK + summary: Create an instance to interact with the counterparty HTLC + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/counterparty-htlc + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/withdraw-counterparty: + post: + operationId: withdrawCounterpartyV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WithdrawCounterpartyRequest' + responses: + "200": + content: + application/json: + schema: {} + description: OK + summary: Withdraw funds of the counterparty HTLC + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/withdraw-counterparty +components: + schemas: + OwnHTLCRequest: + example: + htlcPackage: null + receiver: receiver + connectorInstanceId: connectorInstanceId + constructorArgs: + - "" + - "" + outputAmount: 6.027456183070403 + outputNetwork: outputNetwork + hashLock: hashLock + inputAmount: 0.8008281904610115 + tokenAddress: tokenAddress + outputAddress: outputAddress + keychainId: keychainId + gas: 5.962133916683182 + web3SigningCredential: + type: null + expiration: 1.4658129805029452 + properties: + htlcPackage: + $ref: '#/components/schemas/HtlcPackage' + connectorInstanceId: + description: connector Instance Id for the connector plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + inputAmount: + description: Input amount to lock + nullable: false + type: number + outputAmount: + description: Output amount to lock + nullable: false + type: number + expiration: + description: Timestamp to expire the contract + nullable: false + type: number + hashLock: + description: Hashlock needed to refund the amount + nullable: false + type: string + tokenAddress: + description: The token address + nullable: false + type: string + receiver: + description: The receiver address + nullable: false + type: string + outputNetwork: + description: The output network id + nullable: false + type: string + outputAddress: + description: The output addreess to receive the tokens + nullable: false + type: string + gas: + type: number + required: + - connectorInstanceId + - constructorArgs + - expiration + - hashLock + - htlcPackage + - inputAmount + - keychainId + - outputAddress + - outputAmount + - outputNetwork + - receiver + - tokenAddress + - web3SigningCredential + type: object + CounterpartyHTLCRequest: + example: + htlcPackage: null + htlcId: htlcId + keychainId: keychainId + connectorInstanceId: connectorInstanceId + gas: 0.8008281904610115 + web3SigningCredential: + type: null + properties: + htlcPackage: + $ref: '#/components/schemas/HtlcPackage' + connectorInstanceId: + description: connector Instance Id for the connector plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + htlcId: + description: Id for the HTLC + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + type: number + required: + - connectorInstanceId + - htlcId + - htlcPackage + - keychainId + - web3SigningCredential + type: object + WithdrawCounterpartyRequest: + example: + htlcPackage: null + htlcId: htlcId + keychainId: keychainId + connectorInstanceId: connectorInstanceId + contractId: contractId + gas: 0.8008281904610115 + web3SigningCredential: + type: null + secret: secret + properties: + htlcPackage: + $ref: '#/components/schemas/HtlcPackage' + connectorInstanceId: + description: connector Instance Id for the connector plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + contractId: + description: contractId for the contract + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + htlcId: + description: Id for the HTLC + nullable: false + type: string + secret: + description: Counterparty HTLC secret + nullable: false + type: string + gas: + type: number + required: + - connectorInstanceId + - htlcId + - htlcPackage + - keychainId + - secret + - web3SigningCredential + type: object + HtlcPackage: + enum: + - BESU + - BESU_ERC20 + type: string + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - keychainId + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api_default.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..caf9ca76da5 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,338 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiCounterpartyHtlcV1Request struct { + ctx context.Context + ApiService *DefaultApiService + counterpartyHTLCRequest *CounterpartyHTLCRequest +} + +func (r ApiCounterpartyHtlcV1Request) CounterpartyHTLCRequest(counterpartyHTLCRequest CounterpartyHTLCRequest) ApiCounterpartyHtlcV1Request { + r.counterpartyHTLCRequest = &counterpartyHTLCRequest + return r +} + +func (r ApiCounterpartyHtlcV1Request) Execute() (interface{}, *http.Response, error) { + return r.ApiService.CounterpartyHtlcV1Execute(r) +} + +/* +CounterpartyHtlcV1 Create an instance to interact with the counterparty HTLC + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCounterpartyHtlcV1Request +*/ +func (a *DefaultApiService) CounterpartyHtlcV1(ctx context.Context) ApiCounterpartyHtlcV1Request { + return ApiCounterpartyHtlcV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return interface{} +func (a *DefaultApiService) CounterpartyHtlcV1Execute(r ApiCounterpartyHtlcV1Request) (interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CounterpartyHtlcV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/counterparty-htlc" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.counterpartyHTLCRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOwnHtlcV1Request struct { + ctx context.Context + ApiService *DefaultApiService + ownHTLCRequest *OwnHTLCRequest +} + +func (r ApiOwnHtlcV1Request) OwnHTLCRequest(ownHTLCRequest OwnHTLCRequest) ApiOwnHtlcV1Request { + r.ownHTLCRequest = &ownHTLCRequest + return r +} + +func (r ApiOwnHtlcV1Request) Execute() (interface{}, *http.Response, error) { + return r.ApiService.OwnHtlcV1Execute(r) +} + +/* +OwnHtlcV1 Create an instance to interact with the own HTLC. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOwnHtlcV1Request +*/ +func (a *DefaultApiService) OwnHtlcV1(ctx context.Context) ApiOwnHtlcV1Request { + return ApiOwnHtlcV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return interface{} +func (a *DefaultApiService) OwnHtlcV1Execute(r ApiOwnHtlcV1Request) (interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.OwnHtlcV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/own-htlc" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.ownHTLCRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWithdrawCounterpartyV1Request struct { + ctx context.Context + ApiService *DefaultApiService + withdrawCounterpartyRequest *WithdrawCounterpartyRequest +} + +func (r ApiWithdrawCounterpartyV1Request) WithdrawCounterpartyRequest(withdrawCounterpartyRequest WithdrawCounterpartyRequest) ApiWithdrawCounterpartyV1Request { + r.withdrawCounterpartyRequest = &withdrawCounterpartyRequest + return r +} + +func (r ApiWithdrawCounterpartyV1Request) Execute() (interface{}, *http.Response, error) { + return r.ApiService.WithdrawCounterpartyV1Execute(r) +} + +/* +WithdrawCounterpartyV1 Withdraw funds of the counterparty HTLC + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWithdrawCounterpartyV1Request +*/ +func (a *DefaultApiService) WithdrawCounterpartyV1(ctx context.Context) ApiWithdrawCounterpartyV1Request { + return ApiWithdrawCounterpartyV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return interface{} +func (a *DefaultApiService) WithdrawCounterpartyV1Execute(r ApiWithdrawCounterpartyV1Request) (interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.WithdrawCounterpartyV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/withdraw-counterparty" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.withdrawCounterpartyRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/client.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..95a0f2e0d39 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - HTLC Coordinator API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/configuration.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..6526e155899 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,231 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://www.cactus.stream/{basePath}", + Description: "Public test instance", + Variables: map[string]ServerVariable{ + "basePath": ServerVariable{ + Description: "No description provided", + DefaultValue: "", + }, + }, + }, + { + URL: "http://localhost:4000/{basePath}", + Description: "Local test instance", + Variables: map[string]ServerVariable{ + "basePath": ServerVariable{ + Description: "No description provided", + DefaultValue: "", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/CounterpartyHTLCRequest.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/CounterpartyHTLCRequest.md new file mode 100644 index 00000000000..b4ac6dd0115 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/CounterpartyHTLCRequest.md @@ -0,0 +1,161 @@ +# CounterpartyHTLCRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HtlcPackage** | [**HtlcPackage**](HtlcPackage.md) | | +**ConnectorInstanceId** | **string** | connector Instance Id for the connector plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**HtlcId** | **string** | Id for the HTLC | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] + +## Methods + +### NewCounterpartyHTLCRequest + +`func NewCounterpartyHTLCRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, htlcId string, web3SigningCredential Web3SigningCredential, ) *CounterpartyHTLCRequest` + +NewCounterpartyHTLCRequest instantiates a new CounterpartyHTLCRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCounterpartyHTLCRequestWithDefaults + +`func NewCounterpartyHTLCRequestWithDefaults() *CounterpartyHTLCRequest` + +NewCounterpartyHTLCRequestWithDefaults instantiates a new CounterpartyHTLCRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHtlcPackage + +`func (o *CounterpartyHTLCRequest) GetHtlcPackage() HtlcPackage` + +GetHtlcPackage returns the HtlcPackage field if non-nil, zero value otherwise. + +### GetHtlcPackageOk + +`func (o *CounterpartyHTLCRequest) GetHtlcPackageOk() (*HtlcPackage, bool)` + +GetHtlcPackageOk returns a tuple with the HtlcPackage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtlcPackage + +`func (o *CounterpartyHTLCRequest) SetHtlcPackage(v HtlcPackage)` + +SetHtlcPackage sets HtlcPackage field to given value. + + +### GetConnectorInstanceId + +`func (o *CounterpartyHTLCRequest) GetConnectorInstanceId() string` + +GetConnectorInstanceId returns the ConnectorInstanceId field if non-nil, zero value otherwise. + +### GetConnectorInstanceIdOk + +`func (o *CounterpartyHTLCRequest) GetConnectorInstanceIdOk() (*string, bool)` + +GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorInstanceId + +`func (o *CounterpartyHTLCRequest) SetConnectorInstanceId(v string)` + +SetConnectorInstanceId sets ConnectorInstanceId field to given value. + + +### GetKeychainId + +`func (o *CounterpartyHTLCRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *CounterpartyHTLCRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *CounterpartyHTLCRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetHtlcId + +`func (o *CounterpartyHTLCRequest) GetHtlcId() string` + +GetHtlcId returns the HtlcId field if non-nil, zero value otherwise. + +### GetHtlcIdOk + +`func (o *CounterpartyHTLCRequest) GetHtlcIdOk() (*string, bool)` + +GetHtlcIdOk returns a tuple with the HtlcId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtlcId + +`func (o *CounterpartyHTLCRequest) SetHtlcId(v string)` + +SetHtlcId sets HtlcId field to given value. + + +### GetWeb3SigningCredential + +`func (o *CounterpartyHTLCRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *CounterpartyHTLCRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *CounterpartyHTLCRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *CounterpartyHTLCRequest) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *CounterpartyHTLCRequest) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *CounterpartyHTLCRequest) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *CounterpartyHTLCRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..aa5d8f03771 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,203 @@ +# \DefaultApi + +All URIs are relative to *https://www.cactus.stream* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CounterpartyHtlcV1**](DefaultApi.md#CounterpartyHtlcV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/counterparty-htlc | Create an instance to interact with the counterparty HTLC +[**OwnHtlcV1**](DefaultApi.md#OwnHtlcV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/own-htlc | Create an instance to interact with the own HTLC. +[**WithdrawCounterpartyV1**](DefaultApi.md#WithdrawCounterpartyV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-coordinator-besu/withdraw-counterparty | Withdraw funds of the counterparty HTLC + + + +## CounterpartyHtlcV1 + +> interface{} CounterpartyHtlcV1(ctx).CounterpartyHTLCRequest(counterpartyHTLCRequest).Execute() + +Create an instance to interact with the counterparty HTLC + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + counterpartyHTLCRequest := *openapiclient.NewCounterpartyHTLCRequest(openapiclient.HtlcPackage("BESU"), "ConnectorInstanceId_example", "KeychainId_example", "HtlcId_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}) // CounterpartyHTLCRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.CounterpartyHtlcV1(context.Background()).CounterpartyHTLCRequest(counterpartyHTLCRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CounterpartyHtlcV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CounterpartyHtlcV1`: interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CounterpartyHtlcV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCounterpartyHtlcV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **counterpartyHTLCRequest** | [**CounterpartyHTLCRequest**](CounterpartyHTLCRequest.md) | | + +### Return type + +**interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OwnHtlcV1 + +> interface{} OwnHtlcV1(ctx).OwnHTLCRequest(ownHTLCRequest).Execute() + +Create an instance to interact with the own HTLC. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + ownHTLCRequest := *openapiclient.NewOwnHTLCRequest(openapiclient.HtlcPackage("BESU"), "ConnectorInstanceId_example", "KeychainId_example", []interface{}{nil}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, float32(123), float32(123), float32(123), "HashLock_example", "TokenAddress_example", "Receiver_example", "OutputNetwork_example", "OutputAddress_example") // OwnHTLCRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.OwnHtlcV1(context.Background()).OwnHTLCRequest(ownHTLCRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OwnHtlcV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OwnHtlcV1`: interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.OwnHtlcV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOwnHtlcV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ownHTLCRequest** | [**OwnHTLCRequest**](OwnHTLCRequest.md) | | + +### Return type + +**interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WithdrawCounterpartyV1 + +> interface{} WithdrawCounterpartyV1(ctx).WithdrawCounterpartyRequest(withdrawCounterpartyRequest).Execute() + +Withdraw funds of the counterparty HTLC + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + withdrawCounterpartyRequest := *openapiclient.NewWithdrawCounterpartyRequest(openapiclient.HtlcPackage("BESU"), "ConnectorInstanceId_example", "KeychainId_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "HtlcId_example", "Secret_example") // WithdrawCounterpartyRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.WithdrawCounterpartyV1(context.Background()).WithdrawCounterpartyRequest(withdrawCounterpartyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.WithdrawCounterpartyV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WithdrawCounterpartyV1`: interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.WithdrawCounterpartyV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWithdrawCounterpartyV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **withdrawCounterpartyRequest** | [**WithdrawCounterpartyRequest**](WithdrawCounterpartyRequest.md) | | + +### Return type + +**interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/HtlcPackage.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/HtlcPackage.md new file mode 100644 index 00000000000..ad1fdc01e2f --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/HtlcPackage.md @@ -0,0 +1,13 @@ +# HtlcPackage + +## Enum + + +* `BESU` (value: `"BESU"`) + +* `BESU_ERC20` (value: `"BESU_ERC20"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/OwnHTLCRequest.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/OwnHTLCRequest.md new file mode 100644 index 00000000000..36c827c1481 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/OwnHTLCRequest.md @@ -0,0 +1,329 @@ +# OwnHTLCRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HtlcPackage** | [**HtlcPackage**](HtlcPackage.md) | | +**ConnectorInstanceId** | **string** | connector Instance Id for the connector plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**ConstructorArgs** | **[]interface{}** | | [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InputAmount** | **float32** | Input amount to lock | +**OutputAmount** | **float32** | Output amount to lock | +**Expiration** | **float32** | Timestamp to expire the contract | +**HashLock** | **string** | Hashlock needed to refund the amount | +**TokenAddress** | **string** | The token address | +**Receiver** | **string** | The receiver address | +**OutputNetwork** | **string** | The output network id | +**OutputAddress** | **string** | The output addreess to receive the tokens | +**Gas** | Pointer to **float32** | | [optional] + +## Methods + +### NewOwnHTLCRequest + +`func NewOwnHTLCRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, inputAmount float32, outputAmount float32, expiration float32, hashLock string, tokenAddress string, receiver string, outputNetwork string, outputAddress string, ) *OwnHTLCRequest` + +NewOwnHTLCRequest instantiates a new OwnHTLCRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOwnHTLCRequestWithDefaults + +`func NewOwnHTLCRequestWithDefaults() *OwnHTLCRequest` + +NewOwnHTLCRequestWithDefaults instantiates a new OwnHTLCRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHtlcPackage + +`func (o *OwnHTLCRequest) GetHtlcPackage() HtlcPackage` + +GetHtlcPackage returns the HtlcPackage field if non-nil, zero value otherwise. + +### GetHtlcPackageOk + +`func (o *OwnHTLCRequest) GetHtlcPackageOk() (*HtlcPackage, bool)` + +GetHtlcPackageOk returns a tuple with the HtlcPackage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtlcPackage + +`func (o *OwnHTLCRequest) SetHtlcPackage(v HtlcPackage)` + +SetHtlcPackage sets HtlcPackage field to given value. + + +### GetConnectorInstanceId + +`func (o *OwnHTLCRequest) GetConnectorInstanceId() string` + +GetConnectorInstanceId returns the ConnectorInstanceId field if non-nil, zero value otherwise. + +### GetConnectorInstanceIdOk + +`func (o *OwnHTLCRequest) GetConnectorInstanceIdOk() (*string, bool)` + +GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorInstanceId + +`func (o *OwnHTLCRequest) SetConnectorInstanceId(v string)` + +SetConnectorInstanceId sets ConnectorInstanceId field to given value. + + +### GetKeychainId + +`func (o *OwnHTLCRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *OwnHTLCRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *OwnHTLCRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetConstructorArgs + +`func (o *OwnHTLCRequest) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *OwnHTLCRequest) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *OwnHTLCRequest) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + + +### GetWeb3SigningCredential + +`func (o *OwnHTLCRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *OwnHTLCRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *OwnHTLCRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInputAmount + +`func (o *OwnHTLCRequest) GetInputAmount() float32` + +GetInputAmount returns the InputAmount field if non-nil, zero value otherwise. + +### GetInputAmountOk + +`func (o *OwnHTLCRequest) GetInputAmountOk() (*float32, bool)` + +GetInputAmountOk returns a tuple with the InputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputAmount + +`func (o *OwnHTLCRequest) SetInputAmount(v float32)` + +SetInputAmount sets InputAmount field to given value. + + +### GetOutputAmount + +`func (o *OwnHTLCRequest) GetOutputAmount() float32` + +GetOutputAmount returns the OutputAmount field if non-nil, zero value otherwise. + +### GetOutputAmountOk + +`func (o *OwnHTLCRequest) GetOutputAmountOk() (*float32, bool)` + +GetOutputAmountOk returns a tuple with the OutputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAmount + +`func (o *OwnHTLCRequest) SetOutputAmount(v float32)` + +SetOutputAmount sets OutputAmount field to given value. + + +### GetExpiration + +`func (o *OwnHTLCRequest) GetExpiration() float32` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *OwnHTLCRequest) GetExpirationOk() (*float32, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *OwnHTLCRequest) SetExpiration(v float32)` + +SetExpiration sets Expiration field to given value. + + +### GetHashLock + +`func (o *OwnHTLCRequest) GetHashLock() string` + +GetHashLock returns the HashLock field if non-nil, zero value otherwise. + +### GetHashLockOk + +`func (o *OwnHTLCRequest) GetHashLockOk() (*string, bool)` + +GetHashLockOk returns a tuple with the HashLock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashLock + +`func (o *OwnHTLCRequest) SetHashLock(v string)` + +SetHashLock sets HashLock field to given value. + + +### GetTokenAddress + +`func (o *OwnHTLCRequest) GetTokenAddress() string` + +GetTokenAddress returns the TokenAddress field if non-nil, zero value otherwise. + +### GetTokenAddressOk + +`func (o *OwnHTLCRequest) GetTokenAddressOk() (*string, bool)` + +GetTokenAddressOk returns a tuple with the TokenAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenAddress + +`func (o *OwnHTLCRequest) SetTokenAddress(v string)` + +SetTokenAddress sets TokenAddress field to given value. + + +### GetReceiver + +`func (o *OwnHTLCRequest) GetReceiver() string` + +GetReceiver returns the Receiver field if non-nil, zero value otherwise. + +### GetReceiverOk + +`func (o *OwnHTLCRequest) GetReceiverOk() (*string, bool)` + +GetReceiverOk returns a tuple with the Receiver field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiver + +`func (o *OwnHTLCRequest) SetReceiver(v string)` + +SetReceiver sets Receiver field to given value. + + +### GetOutputNetwork + +`func (o *OwnHTLCRequest) GetOutputNetwork() string` + +GetOutputNetwork returns the OutputNetwork field if non-nil, zero value otherwise. + +### GetOutputNetworkOk + +`func (o *OwnHTLCRequest) GetOutputNetworkOk() (*string, bool)` + +GetOutputNetworkOk returns a tuple with the OutputNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputNetwork + +`func (o *OwnHTLCRequest) SetOutputNetwork(v string)` + +SetOutputNetwork sets OutputNetwork field to given value. + + +### GetOutputAddress + +`func (o *OwnHTLCRequest) GetOutputAddress() string` + +GetOutputAddress returns the OutputAddress field if non-nil, zero value otherwise. + +### GetOutputAddressOk + +`func (o *OwnHTLCRequest) GetOutputAddressOk() (*string, bool)` + +GetOutputAddressOk returns a tuple with the OutputAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAddress + +`func (o *OwnHTLCRequest) SetOutputAddress(v string)` + +SetOutputAddress sets OutputAddress field to given value. + + +### GetGas + +`func (o *OwnHTLCRequest) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *OwnHTLCRequest) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *OwnHTLCRequest) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *OwnHTLCRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..bcd385ee609 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,135 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, secret string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..8a08034fcaa --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,114 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/WithdrawCounterpartyRequest.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/WithdrawCounterpartyRequest.md new file mode 100644 index 00000000000..f05e3223907 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/docs/WithdrawCounterpartyRequest.md @@ -0,0 +1,208 @@ +# WithdrawCounterpartyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HtlcPackage** | [**HtlcPackage**](HtlcPackage.md) | | +**ConnectorInstanceId** | **string** | connector Instance Id for the connector plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**ContractId** | Pointer to **string** | contractId for the contract | [optional] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**HtlcId** | **string** | Id for the HTLC | +**Secret** | **string** | Counterparty HTLC secret | +**Gas** | Pointer to **float32** | | [optional] + +## Methods + +### NewWithdrawCounterpartyRequest + +`func NewWithdrawCounterpartyRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, web3SigningCredential Web3SigningCredential, htlcId string, secret string, ) *WithdrawCounterpartyRequest` + +NewWithdrawCounterpartyRequest instantiates a new WithdrawCounterpartyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWithdrawCounterpartyRequestWithDefaults + +`func NewWithdrawCounterpartyRequestWithDefaults() *WithdrawCounterpartyRequest` + +NewWithdrawCounterpartyRequestWithDefaults instantiates a new WithdrawCounterpartyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHtlcPackage + +`func (o *WithdrawCounterpartyRequest) GetHtlcPackage() HtlcPackage` + +GetHtlcPackage returns the HtlcPackage field if non-nil, zero value otherwise. + +### GetHtlcPackageOk + +`func (o *WithdrawCounterpartyRequest) GetHtlcPackageOk() (*HtlcPackage, bool)` + +GetHtlcPackageOk returns a tuple with the HtlcPackage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtlcPackage + +`func (o *WithdrawCounterpartyRequest) SetHtlcPackage(v HtlcPackage)` + +SetHtlcPackage sets HtlcPackage field to given value. + + +### GetConnectorInstanceId + +`func (o *WithdrawCounterpartyRequest) GetConnectorInstanceId() string` + +GetConnectorInstanceId returns the ConnectorInstanceId field if non-nil, zero value otherwise. + +### GetConnectorInstanceIdOk + +`func (o *WithdrawCounterpartyRequest) GetConnectorInstanceIdOk() (*string, bool)` + +GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorInstanceId + +`func (o *WithdrawCounterpartyRequest) SetConnectorInstanceId(v string)` + +SetConnectorInstanceId sets ConnectorInstanceId field to given value. + + +### GetKeychainId + +`func (o *WithdrawCounterpartyRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *WithdrawCounterpartyRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *WithdrawCounterpartyRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetContractId + +`func (o *WithdrawCounterpartyRequest) GetContractId() string` + +GetContractId returns the ContractId field if non-nil, zero value otherwise. + +### GetContractIdOk + +`func (o *WithdrawCounterpartyRequest) GetContractIdOk() (*string, bool)` + +GetContractIdOk returns a tuple with the ContractId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractId + +`func (o *WithdrawCounterpartyRequest) SetContractId(v string)` + +SetContractId sets ContractId field to given value. + +### HasContractId + +`func (o *WithdrawCounterpartyRequest) HasContractId() bool` + +HasContractId returns a boolean if a field has been set. + +### GetWeb3SigningCredential + +`func (o *WithdrawCounterpartyRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *WithdrawCounterpartyRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *WithdrawCounterpartyRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetHtlcId + +`func (o *WithdrawCounterpartyRequest) GetHtlcId() string` + +GetHtlcId returns the HtlcId field if non-nil, zero value otherwise. + +### GetHtlcIdOk + +`func (o *WithdrawCounterpartyRequest) GetHtlcIdOk() (*string, bool)` + +GetHtlcIdOk returns a tuple with the HtlcId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtlcId + +`func (o *WithdrawCounterpartyRequest) SetHtlcId(v string)` + +SetHtlcId sets HtlcId field to given value. + + +### GetSecret + +`func (o *WithdrawCounterpartyRequest) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *WithdrawCounterpartyRequest) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *WithdrawCounterpartyRequest) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetGas + +`func (o *WithdrawCounterpartyRequest) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *WithdrawCounterpartyRequest) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *WithdrawCounterpartyRequest) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *WithdrawCounterpartyRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/git_push.sh b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..c5f6d76cf4f --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.mod b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..0415787aaf3 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.sum b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_counterparty_htlc_request.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_counterparty_htlc_request.go new file mode 100644 index 00000000000..8360e333d1c --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_counterparty_htlc_request.go @@ -0,0 +1,264 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the CounterpartyHTLCRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CounterpartyHTLCRequest{} + +// CounterpartyHTLCRequest struct for CounterpartyHTLCRequest +type CounterpartyHTLCRequest struct { + HtlcPackage HtlcPackage `json:"htlcPackage"` + // connector Instance Id for the connector plugin + ConnectorInstanceId string `json:"connectorInstanceId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + // Id for the HTLC + HtlcId string `json:"htlcId"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` +} + +// NewCounterpartyHTLCRequest instantiates a new CounterpartyHTLCRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCounterpartyHTLCRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, htlcId string, web3SigningCredential Web3SigningCredential) *CounterpartyHTLCRequest { + this := CounterpartyHTLCRequest{} + this.HtlcPackage = htlcPackage + this.ConnectorInstanceId = connectorInstanceId + this.KeychainId = keychainId + this.HtlcId = htlcId + this.Web3SigningCredential = web3SigningCredential + return &this +} + +// NewCounterpartyHTLCRequestWithDefaults instantiates a new CounterpartyHTLCRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCounterpartyHTLCRequestWithDefaults() *CounterpartyHTLCRequest { + this := CounterpartyHTLCRequest{} + return &this +} + +// GetHtlcPackage returns the HtlcPackage field value +func (o *CounterpartyHTLCRequest) GetHtlcPackage() HtlcPackage { + if o == nil { + var ret HtlcPackage + return ret + } + + return o.HtlcPackage +} + +// GetHtlcPackageOk returns a tuple with the HtlcPackage field value +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetHtlcPackageOk() (*HtlcPackage, bool) { + if o == nil { + return nil, false + } + return &o.HtlcPackage, true +} + +// SetHtlcPackage sets field value +func (o *CounterpartyHTLCRequest) SetHtlcPackage(v HtlcPackage) { + o.HtlcPackage = v +} + +// GetConnectorInstanceId returns the ConnectorInstanceId field value +func (o *CounterpartyHTLCRequest) GetConnectorInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorInstanceId +} + +// GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field value +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetConnectorInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorInstanceId, true +} + +// SetConnectorInstanceId sets field value +func (o *CounterpartyHTLCRequest) SetConnectorInstanceId(v string) { + o.ConnectorInstanceId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *CounterpartyHTLCRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *CounterpartyHTLCRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetHtlcId returns the HtlcId field value +func (o *CounterpartyHTLCRequest) GetHtlcId() string { + if o == nil { + var ret string + return ret + } + + return o.HtlcId +} + +// GetHtlcIdOk returns a tuple with the HtlcId field value +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetHtlcIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HtlcId, true +} + +// SetHtlcId sets field value +func (o *CounterpartyHTLCRequest) SetHtlcId(v string) { + o.HtlcId = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *CounterpartyHTLCRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *CounterpartyHTLCRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *CounterpartyHTLCRequest) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CounterpartyHTLCRequest) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *CounterpartyHTLCRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *CounterpartyHTLCRequest) SetGas(v float32) { + o.Gas = &v +} + +func (o CounterpartyHTLCRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CounterpartyHTLCRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["htlcPackage"] = o.HtlcPackage + toSerialize["connectorInstanceId"] = o.ConnectorInstanceId + toSerialize["keychainId"] = o.KeychainId + toSerialize["htlcId"] = o.HtlcId + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableCounterpartyHTLCRequest struct { + value *CounterpartyHTLCRequest + isSet bool +} + +func (v NullableCounterpartyHTLCRequest) Get() *CounterpartyHTLCRequest { + return v.value +} + +func (v *NullableCounterpartyHTLCRequest) Set(val *CounterpartyHTLCRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCounterpartyHTLCRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCounterpartyHTLCRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCounterpartyHTLCRequest(val *CounterpartyHTLCRequest) *NullableCounterpartyHTLCRequest { + return &NullableCounterpartyHTLCRequest{value: val, isSet: true} +} + +func (v NullableCounterpartyHTLCRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCounterpartyHTLCRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_htlc_package.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_htlc_package.go new file mode 100644 index 00000000000..66d92d10460 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_htlc_package.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" + "fmt" +) + +// HtlcPackage the model 'HtlcPackage' +type HtlcPackage string + +// List of HtlcPackage +const ( + BESU HtlcPackage = "BESU" + BESU_ERC20 HtlcPackage = "BESU_ERC20" +) + +// All allowed values of HtlcPackage enum +var AllowedHtlcPackageEnumValues = []HtlcPackage{ + "BESU", + "BESU_ERC20", +} + +func (v *HtlcPackage) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := HtlcPackage(value) + for _, existing := range AllowedHtlcPackageEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid HtlcPackage", value) +} + +// NewHtlcPackageFromValue returns a pointer to a valid HtlcPackage +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewHtlcPackageFromValue(v string) (*HtlcPackage, error) { + ev := HtlcPackage(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for HtlcPackage: valid values are %v", v, AllowedHtlcPackageEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v HtlcPackage) IsValid() bool { + for _, existing := range AllowedHtlcPackageEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to HtlcPackage value +func (v HtlcPackage) Ptr() *HtlcPackage { + return &v +} + +type NullableHtlcPackage struct { + value *HtlcPackage + isSet bool +} + +func (v NullableHtlcPackage) Get() *HtlcPackage { + return v.value +} + +func (v *NullableHtlcPackage) Set(val *HtlcPackage) { + v.value = val + v.isSet = true +} + +func (v NullableHtlcPackage) IsSet() bool { + return v.isSet +} + +func (v *NullableHtlcPackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHtlcPackage(val *HtlcPackage) *NullableHtlcPackage { + return &NullableHtlcPackage{value: val, isSet: true} +} + +func (v NullableHtlcPackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHtlcPackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_own_htlc_request.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_own_htlc_request.go new file mode 100644 index 00000000000..751f90704ac --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_own_htlc_request.go @@ -0,0 +1,487 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the OwnHTLCRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OwnHTLCRequest{} + +// OwnHTLCRequest struct for OwnHTLCRequest +type OwnHTLCRequest struct { + HtlcPackage HtlcPackage `json:"htlcPackage"` + // connector Instance Id for the connector plugin + ConnectorInstanceId string `json:"connectorInstanceId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + ConstructorArgs []interface{} `json:"constructorArgs"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // Input amount to lock + InputAmount float32 `json:"inputAmount"` + // Output amount to lock + OutputAmount float32 `json:"outputAmount"` + // Timestamp to expire the contract + Expiration float32 `json:"expiration"` + // Hashlock needed to refund the amount + HashLock string `json:"hashLock"` + // The token address + TokenAddress string `json:"tokenAddress"` + // The receiver address + Receiver string `json:"receiver"` + // The output network id + OutputNetwork string `json:"outputNetwork"` + // The output addreess to receive the tokens + OutputAddress string `json:"outputAddress"` + Gas *float32 `json:"gas,omitempty"` +} + +// NewOwnHTLCRequest instantiates a new OwnHTLCRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOwnHTLCRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, inputAmount float32, outputAmount float32, expiration float32, hashLock string, tokenAddress string, receiver string, outputNetwork string, outputAddress string) *OwnHTLCRequest { + this := OwnHTLCRequest{} + this.HtlcPackage = htlcPackage + this.ConnectorInstanceId = connectorInstanceId + this.KeychainId = keychainId + this.ConstructorArgs = constructorArgs + this.Web3SigningCredential = web3SigningCredential + this.InputAmount = inputAmount + this.OutputAmount = outputAmount + this.Expiration = expiration + this.HashLock = hashLock + this.TokenAddress = tokenAddress + this.Receiver = receiver + this.OutputNetwork = outputNetwork + this.OutputAddress = outputAddress + return &this +} + +// NewOwnHTLCRequestWithDefaults instantiates a new OwnHTLCRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOwnHTLCRequestWithDefaults() *OwnHTLCRequest { + this := OwnHTLCRequest{} + return &this +} + +// GetHtlcPackage returns the HtlcPackage field value +func (o *OwnHTLCRequest) GetHtlcPackage() HtlcPackage { + if o == nil { + var ret HtlcPackage + return ret + } + + return o.HtlcPackage +} + +// GetHtlcPackageOk returns a tuple with the HtlcPackage field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetHtlcPackageOk() (*HtlcPackage, bool) { + if o == nil { + return nil, false + } + return &o.HtlcPackage, true +} + +// SetHtlcPackage sets field value +func (o *OwnHTLCRequest) SetHtlcPackage(v HtlcPackage) { + o.HtlcPackage = v +} + +// GetConnectorInstanceId returns the ConnectorInstanceId field value +func (o *OwnHTLCRequest) GetConnectorInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorInstanceId +} + +// GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetConnectorInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorInstanceId, true +} + +// SetConnectorInstanceId sets field value +func (o *OwnHTLCRequest) SetConnectorInstanceId(v string) { + o.ConnectorInstanceId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *OwnHTLCRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *OwnHTLCRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetConstructorArgs returns the ConstructorArgs field value +func (o *OwnHTLCRequest) GetConstructorArgs() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ConstructorArgs, true +} + +// SetConstructorArgs sets field value +func (o *OwnHTLCRequest) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *OwnHTLCRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *OwnHTLCRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInputAmount returns the InputAmount field value +func (o *OwnHTLCRequest) GetInputAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.InputAmount +} + +// GetInputAmountOk returns a tuple with the InputAmount field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetInputAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.InputAmount, true +} + +// SetInputAmount sets field value +func (o *OwnHTLCRequest) SetInputAmount(v float32) { + o.InputAmount = v +} + +// GetOutputAmount returns the OutputAmount field value +func (o *OwnHTLCRequest) GetOutputAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OutputAmount +} + +// GetOutputAmountOk returns a tuple with the OutputAmount field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetOutputAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OutputAmount, true +} + +// SetOutputAmount sets field value +func (o *OwnHTLCRequest) SetOutputAmount(v float32) { + o.OutputAmount = v +} + +// GetExpiration returns the Expiration field value +func (o *OwnHTLCRequest) GetExpiration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetExpirationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Expiration, true +} + +// SetExpiration sets field value +func (o *OwnHTLCRequest) SetExpiration(v float32) { + o.Expiration = v +} + +// GetHashLock returns the HashLock field value +func (o *OwnHTLCRequest) GetHashLock() string { + if o == nil { + var ret string + return ret + } + + return o.HashLock +} + +// GetHashLockOk returns a tuple with the HashLock field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetHashLockOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashLock, true +} + +// SetHashLock sets field value +func (o *OwnHTLCRequest) SetHashLock(v string) { + o.HashLock = v +} + +// GetTokenAddress returns the TokenAddress field value +func (o *OwnHTLCRequest) GetTokenAddress() string { + if o == nil { + var ret string + return ret + } + + return o.TokenAddress +} + +// GetTokenAddressOk returns a tuple with the TokenAddress field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetTokenAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenAddress, true +} + +// SetTokenAddress sets field value +func (o *OwnHTLCRequest) SetTokenAddress(v string) { + o.TokenAddress = v +} + +// GetReceiver returns the Receiver field value +func (o *OwnHTLCRequest) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *OwnHTLCRequest) SetReceiver(v string) { + o.Receiver = v +} + +// GetOutputNetwork returns the OutputNetwork field value +func (o *OwnHTLCRequest) GetOutputNetwork() string { + if o == nil { + var ret string + return ret + } + + return o.OutputNetwork +} + +// GetOutputNetworkOk returns a tuple with the OutputNetwork field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetOutputNetworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputNetwork, true +} + +// SetOutputNetwork sets field value +func (o *OwnHTLCRequest) SetOutputNetwork(v string) { + o.OutputNetwork = v +} + +// GetOutputAddress returns the OutputAddress field value +func (o *OwnHTLCRequest) GetOutputAddress() string { + if o == nil { + var ret string + return ret + } + + return o.OutputAddress +} + +// GetOutputAddressOk returns a tuple with the OutputAddress field value +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetOutputAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputAddress, true +} + +// SetOutputAddress sets field value +func (o *OwnHTLCRequest) SetOutputAddress(v string) { + o.OutputAddress = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *OwnHTLCRequest) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OwnHTLCRequest) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *OwnHTLCRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *OwnHTLCRequest) SetGas(v float32) { + o.Gas = &v +} + +func (o OwnHTLCRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OwnHTLCRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["htlcPackage"] = o.HtlcPackage + toSerialize["connectorInstanceId"] = o.ConnectorInstanceId + toSerialize["keychainId"] = o.KeychainId + toSerialize["constructorArgs"] = o.ConstructorArgs + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["inputAmount"] = o.InputAmount + toSerialize["outputAmount"] = o.OutputAmount + toSerialize["expiration"] = o.Expiration + toSerialize["hashLock"] = o.HashLock + toSerialize["tokenAddress"] = o.TokenAddress + toSerialize["receiver"] = o.Receiver + toSerialize["outputNetwork"] = o.OutputNetwork + toSerialize["outputAddress"] = o.OutputAddress + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableOwnHTLCRequest struct { + value *OwnHTLCRequest + isSet bool +} + +func (v NullableOwnHTLCRequest) Get() *OwnHTLCRequest { + return v.value +} + +func (v *NullableOwnHTLCRequest) Set(val *OwnHTLCRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOwnHTLCRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOwnHTLCRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOwnHTLCRequest(val *OwnHTLCRequest) *NullableOwnHTLCRequest { + return &NullableOwnHTLCRequest{value: val, isSet: true} +} + +func (v NullableOwnHTLCRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOwnHTLCRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..652cca86f51 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..6d14fb70007 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,201 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId string `json:"keychainId"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + this.KeychainId = keychainId + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..1ec0601fdb5 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..cbf6d8ca7d3 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..f034101a963 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_withdraw_counterparty_request.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_withdraw_counterparty_request.go new file mode 100644 index 00000000000..da14c96d6aa --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/model_withdraw_counterparty_request.go @@ -0,0 +1,329 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" +) + +// checks if the WithdrawCounterpartyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WithdrawCounterpartyRequest{} + +// WithdrawCounterpartyRequest struct for WithdrawCounterpartyRequest +type WithdrawCounterpartyRequest struct { + HtlcPackage HtlcPackage `json:"htlcPackage"` + // connector Instance Id for the connector plugin + ConnectorInstanceId string `json:"connectorInstanceId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + // contractId for the contract + ContractId *string `json:"contractId,omitempty"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // Id for the HTLC + HtlcId string `json:"htlcId"` + // Counterparty HTLC secret + Secret string `json:"secret"` + Gas *float32 `json:"gas,omitempty"` +} + +// NewWithdrawCounterpartyRequest instantiates a new WithdrawCounterpartyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWithdrawCounterpartyRequest(htlcPackage HtlcPackage, connectorInstanceId string, keychainId string, web3SigningCredential Web3SigningCredential, htlcId string, secret string) *WithdrawCounterpartyRequest { + this := WithdrawCounterpartyRequest{} + this.HtlcPackage = htlcPackage + this.ConnectorInstanceId = connectorInstanceId + this.KeychainId = keychainId + this.Web3SigningCredential = web3SigningCredential + this.HtlcId = htlcId + this.Secret = secret + return &this +} + +// NewWithdrawCounterpartyRequestWithDefaults instantiates a new WithdrawCounterpartyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWithdrawCounterpartyRequestWithDefaults() *WithdrawCounterpartyRequest { + this := WithdrawCounterpartyRequest{} + return &this +} + +// GetHtlcPackage returns the HtlcPackage field value +func (o *WithdrawCounterpartyRequest) GetHtlcPackage() HtlcPackage { + if o == nil { + var ret HtlcPackage + return ret + } + + return o.HtlcPackage +} + +// GetHtlcPackageOk returns a tuple with the HtlcPackage field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetHtlcPackageOk() (*HtlcPackage, bool) { + if o == nil { + return nil, false + } + return &o.HtlcPackage, true +} + +// SetHtlcPackage sets field value +func (o *WithdrawCounterpartyRequest) SetHtlcPackage(v HtlcPackage) { + o.HtlcPackage = v +} + +// GetConnectorInstanceId returns the ConnectorInstanceId field value +func (o *WithdrawCounterpartyRequest) GetConnectorInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorInstanceId +} + +// GetConnectorInstanceIdOk returns a tuple with the ConnectorInstanceId field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetConnectorInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorInstanceId, true +} + +// SetConnectorInstanceId sets field value +func (o *WithdrawCounterpartyRequest) SetConnectorInstanceId(v string) { + o.ConnectorInstanceId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *WithdrawCounterpartyRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *WithdrawCounterpartyRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetContractId returns the ContractId field value if set, zero value otherwise. +func (o *WithdrawCounterpartyRequest) GetContractId() string { + if o == nil || IsNil(o.ContractId) { + var ret string + return ret + } + return *o.ContractId +} + +// GetContractIdOk returns a tuple with the ContractId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetContractIdOk() (*string, bool) { + if o == nil || IsNil(o.ContractId) { + return nil, false + } + return o.ContractId, true +} + +// HasContractId returns a boolean if a field has been set. +func (o *WithdrawCounterpartyRequest) HasContractId() bool { + if o != nil && !IsNil(o.ContractId) { + return true + } + + return false +} + +// SetContractId gets a reference to the given string and assigns it to the ContractId field. +func (o *WithdrawCounterpartyRequest) SetContractId(v string) { + o.ContractId = &v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *WithdrawCounterpartyRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *WithdrawCounterpartyRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetHtlcId returns the HtlcId field value +func (o *WithdrawCounterpartyRequest) GetHtlcId() string { + if o == nil { + var ret string + return ret + } + + return o.HtlcId +} + +// GetHtlcIdOk returns a tuple with the HtlcId field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetHtlcIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HtlcId, true +} + +// SetHtlcId sets field value +func (o *WithdrawCounterpartyRequest) SetHtlcId(v string) { + o.HtlcId = v +} + +// GetSecret returns the Secret field value +func (o *WithdrawCounterpartyRequest) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *WithdrawCounterpartyRequest) SetSecret(v string) { + o.Secret = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *WithdrawCounterpartyRequest) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WithdrawCounterpartyRequest) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *WithdrawCounterpartyRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *WithdrawCounterpartyRequest) SetGas(v float32) { + o.Gas = &v +} + +func (o WithdrawCounterpartyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WithdrawCounterpartyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["htlcPackage"] = o.HtlcPackage + toSerialize["connectorInstanceId"] = o.ConnectorInstanceId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.ContractId) { + toSerialize["contractId"] = o.ContractId + } + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["htlcId"] = o.HtlcId + toSerialize["secret"] = o.Secret + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableWithdrawCounterpartyRequest struct { + value *WithdrawCounterpartyRequest + isSet bool +} + +func (v NullableWithdrawCounterpartyRequest) Get() *WithdrawCounterpartyRequest { + return v.value +} + +func (v *NullableWithdrawCounterpartyRequest) Set(val *WithdrawCounterpartyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWithdrawCounterpartyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWithdrawCounterpartyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWithdrawCounterpartyRequest(val *WithdrawCounterpartyRequest) *NullableWithdrawCounterpartyRequest { + return &NullableWithdrawCounterpartyRequest{value: val, isSet: true} +} + +func (v NullableWithdrawCounterpartyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWithdrawCounterpartyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/response.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..83d62a20559 --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..9bc73b5887c --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-htlc-coordinator-besu_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService CounterpartyHtlcV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.CounterpartyHtlcV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService OwnHtlcV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.OwnHtlcV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService WithdrawCounterpartyV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.WithdrawCounterpartyV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/utils.go b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..83abfff927e --- /dev/null +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - HTLC Coordinator + +Can exchange assets between networks + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-coordinator-besu + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/README.md b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/README.md index 3bbf0455f9d..10e8b622f26 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/README.md +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - HTLC Coordinator - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata] Can exchange assets between networks diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 95711e82cff..b33410de063 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index efa1e8d3b63..855079f3c16 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index a7eab2135e2..1068e8ba68f 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 2b8ee75f517..6d4301d670d 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index b461428d53d..e48490c2f80 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 57596f4a95c..b06182eaecd 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index eddc1838e00..83eaf942c7e 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CounterpartyHTLCRequest.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CounterpartyHTLCRequest.java index 712177608e2..427987d53fa 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CounterpartyHTLCRequest.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CounterpartyHTLCRequest.java @@ -53,7 +53,7 @@ /** * CounterpartyHTLCRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class CounterpartyHTLCRequest { public static final String SERIALIZED_NAME_HTLC_PACKAGE = "htlcPackage"; @SerializedName(SERIALIZED_NAME_HTLC_PACKAGE) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OwnHTLCRequest.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OwnHTLCRequest.java index cf1d8500ac8..0ba41f01e1f 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OwnHTLCRequest.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OwnHTLCRequest.java @@ -55,7 +55,7 @@ /** * OwnHTLCRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class OwnHTLCRequest { public static final String SERIALIZED_NAME_HTLC_PACKAGE = "htlcPackage"; @SerializedName(SERIALIZED_NAME_HTLC_PACKAGE) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index a0868cd763c..93eb3b1d2ed 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index 052076999fc..a98d0bae4c2 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index c4bdd487cba..f6128ab7d85 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index 153b5086573..3d3e376868c 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawCounterpartyRequest.java b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawCounterpartyRequest.java index 5ad65f4195e..ada000fa9ae 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawCounterpartyRequest.java +++ b/extensions/cactus-plugin-htlc-coordinator-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawCounterpartyRequest.java @@ -53,7 +53,7 @@ /** * WithdrawCounterpartyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:50.032855102+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:29:03.156967443+05:30[Asia/Kolkata]") public class WithdrawCounterpartyRequest { public static final String SERIALIZED_NAME_HTLC_PACKAGE = "htlcPackage"; @SerializedName(SERIALIZED_NAME_HTLC_PACKAGE) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.gitignore b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..db815784410 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,27 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetObjectRequestV1.md +docs/GetObjectResponseV1.md +docs/HasObjectRequestV1.md +docs/HasObjectResponseV1.md +docs/SetObjectRequestV1.md +docs/SetObjectResponseV1.md +git_push.sh +go.mod +go.sum +model_get_object_request_v1.go +model_get_object_response_v1.go +model_has_object_request_v1.go +model_has_object_response_v1.go +model_set_object_request_v1.go +model_set_object_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.travis.yml b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/README.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..069c0bbbe8d --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,119 @@ +# Go API client for @hyperledger/cactus-plugin-object-store-ipfs + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-object-store-ipfs "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-object-store-ipfs.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-object-store-ipfs.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-object-store-ipfs.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-object-store-ipfs.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://www.cactus.stream* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetObjectV1**](docs/DefaultApi.md#getobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/get-object | Retrieves an object from the object store. +*DefaultApi* | [**HasObjectV1**](docs/DefaultApi.md#hasobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/has-object | Checks the presence of an object in the object store. +*DefaultApi* | [**SetObjectV1**](docs/DefaultApi.md#setobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/set-object | Sets an object in the object store under the specified key. + + +## Documentation For Models + + - [GetObjectRequestV1](docs/GetObjectRequestV1.md) + - [GetObjectResponseV1](docs/GetObjectResponseV1.md) + - [HasObjectRequestV1](docs/HasObjectRequestV1.md) + - [HasObjectResponseV1](docs/HasObjectResponseV1.md) + - [SetObjectRequestV1](docs/SetObjectRequestV1.md) + - [SetObjectResponseV1](docs/SetObjectResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api/openapi.yaml b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..5e40e1e22f4 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,229 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: 'Hyperledger Cactus Plugin - Object Store - IPFS ' + version: v2.0.0-alpha.1 +servers: +- description: Public test instance + url: "https://www.cactus.stream/{basePath}" + variables: + basePath: + default: "" +- description: Local test instance + url: "http://localhost:4000/{basePath}" + variables: + basePath: + default: "" +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/get-object: + post: + operationId: getObjectV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/object_store_get_object_v1_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetObjectResponseV1' + description: OK + summary: Retrieves an object from the object store. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/get-object + /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/set-object: + post: + operationId: setObjectV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/object_store_set_object_v1_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetObjectResponseV1' + description: OK + summary: Sets an object in the object store under the specified key. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/set-object + /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/has-object: + post: + operationId: hasObjectV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/object_store_has_object_v1_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasObjectResponseV1' + description: OK + summary: Checks the presence of an object in the object store. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/has-object +components: + requestBodies: + object_store_get_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetObjectRequestV1' + description: Request body to obtain an object via its key. + required: true + object_store_set_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetObjectRequestV1' + description: Request body to set an object under a key. + required: true + object_store_has_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasObjectRequestV1' + description: Request body to check presence of an object under a key. + required: true + responses: + object_store_get_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetObjectResponseV1' + description: OK + object_store_set_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetObjectResponseV1' + description: OK + object_store_has_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasObjectResponseV1' + description: OK + schemas: + GetObjectRequestV1: + example: + key: key + properties: + key: + description: The key for the entry to get from the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetObjectResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the object + store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key in the object store + as a string. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetObjectRequestV1: + example: + value: value + key: key + properties: + key: + description: The key for the entry to set in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key in the object + store. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetObjectResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasObjectRequestV1: + example: + key: key + properties: + key: + description: The key to check for presence in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasObjectResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an object under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api_default.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..4cfedbc6b7d --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,350 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getObjectRequestV1 *GetObjectRequestV1 +} + +// Request body to obtain an object via its key. +func (r ApiGetObjectV1Request) GetObjectRequestV1(getObjectRequestV1 GetObjectRequestV1) ApiGetObjectV1Request { + r.getObjectRequestV1 = &getObjectRequestV1 + return r +} + +func (r ApiGetObjectV1Request) Execute() (*GetObjectResponseV1, *http.Response, error) { + return r.ApiService.GetObjectV1Execute(r) +} + +/* +GetObjectV1 Retrieves an object from the object store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetObjectV1Request +*/ +func (a *DefaultApiService) GetObjectV1(ctx context.Context) ApiGetObjectV1Request { + return ApiGetObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetObjectResponseV1 +func (a *DefaultApiService) GetObjectV1Execute(r ApiGetObjectV1Request) (*GetObjectResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetObjectResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/get-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getObjectRequestV1 == nil { + return localVarReturnValue, nil, reportError("getObjectRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getObjectRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasObjectRequestV1 *HasObjectRequestV1 +} + +// Request body to check presence of an object under a key. +func (r ApiHasObjectV1Request) HasObjectRequestV1(hasObjectRequestV1 HasObjectRequestV1) ApiHasObjectV1Request { + r.hasObjectRequestV1 = &hasObjectRequestV1 + return r +} + +func (r ApiHasObjectV1Request) Execute() (*HasObjectResponseV1, *http.Response, error) { + return r.ApiService.HasObjectV1Execute(r) +} + +/* +HasObjectV1 Checks the presence of an object in the object store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasObjectV1Request +*/ +func (a *DefaultApiService) HasObjectV1(ctx context.Context) ApiHasObjectV1Request { + return ApiHasObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasObjectResponseV1 +func (a *DefaultApiService) HasObjectV1Execute(r ApiHasObjectV1Request) (*HasObjectResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasObjectResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/has-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.hasObjectRequestV1 == nil { + return localVarReturnValue, nil, reportError("hasObjectRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasObjectRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setObjectRequestV1 *SetObjectRequestV1 +} + +// Request body to set an object under a key. +func (r ApiSetObjectV1Request) SetObjectRequestV1(setObjectRequestV1 SetObjectRequestV1) ApiSetObjectV1Request { + r.setObjectRequestV1 = &setObjectRequestV1 + return r +} + +func (r ApiSetObjectV1Request) Execute() (*SetObjectResponseV1, *http.Response, error) { + return r.ApiService.SetObjectV1Execute(r) +} + +/* +SetObjectV1 Sets an object in the object store under the specified key. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetObjectV1Request +*/ +func (a *DefaultApiService) SetObjectV1(ctx context.Context) ApiSetObjectV1Request { + return ApiSetObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetObjectResponseV1 +func (a *DefaultApiService) SetObjectV1Execute(r ApiSetObjectV1Request) (*SetObjectResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetObjectResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/set-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setObjectRequestV1 == nil { + return localVarReturnValue, nil, reportError("setObjectRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setObjectRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/client.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..4683aa22993 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Object Store - IPFS API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/configuration.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..d8784584f77 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,231 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://www.cactus.stream/{basePath}", + Description: "Public test instance", + Variables: map[string]ServerVariable{ + "basePath": ServerVariable{ + Description: "No description provided", + DefaultValue: "", + }, + }, + }, + { + URL: "http://localhost:4000/{basePath}", + Description: "Local test instance", + Variables: map[string]ServerVariable{ + "basePath": ServerVariable{ + Description: "No description provided", + DefaultValue: "", + }, + }, + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..b429f828b94 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,203 @@ +# \DefaultApi + +All URIs are relative to *https://www.cactus.stream* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetObjectV1**](DefaultApi.md#GetObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/get-object | Retrieves an object from the object store. +[**HasObjectV1**](DefaultApi.md#HasObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/has-object | Checks the presence of an object in the object store. +[**SetObjectV1**](DefaultApi.md#SetObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-object-store-ipfs/set-object | Sets an object in the object store under the specified key. + + + +## GetObjectV1 + +> GetObjectResponseV1 GetObjectV1(ctx).GetObjectRequestV1(getObjectRequestV1).Execute() + +Retrieves an object from the object store. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" +) + +func main() { + getObjectRequestV1 := *openapiclient.NewGetObjectRequestV1("Key_example") // GetObjectRequestV1 | Request body to obtain an object via its key. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetObjectV1(context.Background()).GetObjectRequestV1(getObjectRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetObjectV1`: GetObjectResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getObjectRequestV1** | [**GetObjectRequestV1**](GetObjectRequestV1.md) | Request body to obtain an object via its key. | + +### Return type + +[**GetObjectResponseV1**](GetObjectResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasObjectV1 + +> HasObjectResponseV1 HasObjectV1(ctx).HasObjectRequestV1(hasObjectRequestV1).Execute() + +Checks the presence of an object in the object store. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" +) + +func main() { + hasObjectRequestV1 := *openapiclient.NewHasObjectRequestV1("Key_example") // HasObjectRequestV1 | Request body to check presence of an object under a key. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasObjectV1(context.Background()).HasObjectRequestV1(hasObjectRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasObjectV1`: HasObjectResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasObjectRequestV1** | [**HasObjectRequestV1**](HasObjectRequestV1.md) | Request body to check presence of an object under a key. | + +### Return type + +[**HasObjectResponseV1**](HasObjectResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetObjectV1 + +> SetObjectResponseV1 SetObjectV1(ctx).SetObjectRequestV1(setObjectRequestV1).Execute() + +Sets an object in the object store under the specified key. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" +) + +func main() { + setObjectRequestV1 := *openapiclient.NewSetObjectRequestV1("Key_example", "Value_example") // SetObjectRequestV1 | Request body to set an object under a key. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetObjectV1(context.Background()).SetObjectRequestV1(setObjectRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetObjectV1`: SetObjectResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setObjectRequestV1** | [**SetObjectRequestV1**](SetObjectRequestV1.md) | Request body to set an object under a key. | + +### Return type + +[**SetObjectResponseV1**](SetObjectResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md new file mode 100644 index 00000000000..8997952f375 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md @@ -0,0 +1,51 @@ +# GetObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the object store. | + +## Methods + +### NewGetObjectRequestV1 + +`func NewGetObjectRequestV1(key string, ) *GetObjectRequestV1` + +NewGetObjectRequestV1 instantiates a new GetObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetObjectRequestV1WithDefaults + +`func NewGetObjectRequestV1WithDefaults() *GetObjectRequestV1` + +NewGetObjectRequestV1WithDefaults instantiates a new GetObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md new file mode 100644 index 00000000000..4ede85a6bc6 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md @@ -0,0 +1,72 @@ +# GetObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the object store. | +**Value** | **string** | The value associated with the requested key in the object store as a string. | + +## Methods + +### NewGetObjectResponseV1 + +`func NewGetObjectResponseV1(key string, value string, ) *GetObjectResponseV1` + +NewGetObjectResponseV1 instantiates a new GetObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetObjectResponseV1WithDefaults + +`func NewGetObjectResponseV1WithDefaults() *GetObjectResponseV1` + +NewGetObjectResponseV1WithDefaults instantiates a new GetObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetObjectResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetObjectResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetObjectResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md new file mode 100644 index 00000000000..612dadfe057 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md @@ -0,0 +1,51 @@ +# HasObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the object store. | + +## Methods + +### NewHasObjectRequestV1 + +`func NewHasObjectRequestV1(key string, ) *HasObjectRequestV1` + +NewHasObjectRequestV1 instantiates a new HasObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasObjectRequestV1WithDefaults + +`func NewHasObjectRequestV1WithDefaults() *HasObjectRequestV1` + +NewHasObjectRequestV1WithDefaults instantiates a new HasObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md new file mode 100644 index 00000000000..bef915357e8 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md @@ -0,0 +1,93 @@ +# HasObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the object store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an object under 'key'. | + +## Methods + +### NewHasObjectResponseV1 + +`func NewHasObjectResponseV1(key string, checkedAt string, isPresent bool, ) *HasObjectResponseV1` + +NewHasObjectResponseV1 instantiates a new HasObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasObjectResponseV1WithDefaults + +`func NewHasObjectResponseV1WithDefaults() *HasObjectResponseV1` + +NewHasObjectResponseV1WithDefaults instantiates a new HasObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasObjectResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasObjectResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasObjectResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasObjectResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasObjectResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasObjectResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md new file mode 100644 index 00000000000..143dd24b093 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md @@ -0,0 +1,72 @@ +# SetObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set in the object store. | +**Value** | **string** | The value that will be associated with the key in the object store. | + +## Methods + +### NewSetObjectRequestV1 + +`func NewSetObjectRequestV1(key string, value string, ) *SetObjectRequestV1` + +NewSetObjectRequestV1 instantiates a new SetObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetObjectRequestV1WithDefaults + +`func NewSetObjectRequestV1WithDefaults() *SetObjectRequestV1` + +NewSetObjectRequestV1WithDefaults instantiates a new SetObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetObjectRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetObjectRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetObjectRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md new file mode 100644 index 00000000000..d8ff97d274d --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md @@ -0,0 +1,51 @@ +# SetObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value in the object store. | + +## Methods + +### NewSetObjectResponseV1 + +`func NewSetObjectResponseV1(key string, ) *SetObjectResponseV1` + +NewSetObjectResponseV1 instantiates a new SetObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetObjectResponseV1WithDefaults + +`func NewSetObjectResponseV1WithDefaults() *SetObjectResponseV1` + +NewSetObjectResponseV1WithDefaults instantiates a new SetObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/git_push.sh b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..4c497a85259 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.mod b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..a898ffad470 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.sum b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go new file mode 100644 index 00000000000..cfda24e27e3 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the GetObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetObjectRequestV1{} + +// GetObjectRequestV1 struct for GetObjectRequestV1 +type GetObjectRequestV1 struct { + // The key for the entry to get from the object store. + Key string `json:"key"` +} + +// NewGetObjectRequestV1 instantiates a new GetObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetObjectRequestV1(key string) *GetObjectRequestV1 { + this := GetObjectRequestV1{} + this.Key = key + return &this +} + +// NewGetObjectRequestV1WithDefaults instantiates a new GetObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetObjectRequestV1WithDefaults() *GetObjectRequestV1 { + this := GetObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetObjectRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetObjectRequestV1 struct { + value *GetObjectRequestV1 + isSet bool +} + +func (v NullableGetObjectRequestV1) Get() *GetObjectRequestV1 { + return v.value +} + +func (v *NullableGetObjectRequestV1) Set(val *GetObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetObjectRequestV1(val *GetObjectRequestV1) *NullableGetObjectRequestV1 { + return &NullableGetObjectRequestV1{value: val, isSet: true} +} + +func (v NullableGetObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go new file mode 100644 index 00000000000..174d3b6701d --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the GetObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetObjectResponseV1{} + +// GetObjectResponseV1 struct for GetObjectResponseV1 +type GetObjectResponseV1 struct { + // The key that was used to retrieve the value from the object store. + Key string `json:"key"` + // The value associated with the requested key in the object store as a string. + Value string `json:"value"` +} + +// NewGetObjectResponseV1 instantiates a new GetObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetObjectResponseV1(key string, value string) *GetObjectResponseV1 { + this := GetObjectResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetObjectResponseV1WithDefaults instantiates a new GetObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetObjectResponseV1WithDefaults() *GetObjectResponseV1 { + this := GetObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetObjectResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetObjectResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetObjectResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetObjectResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetObjectResponseV1 struct { + value *GetObjectResponseV1 + isSet bool +} + +func (v NullableGetObjectResponseV1) Get() *GetObjectResponseV1 { + return v.value +} + +func (v *NullableGetObjectResponseV1) Set(val *GetObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetObjectResponseV1(val *GetObjectResponseV1) *NullableGetObjectResponseV1 { + return &NullableGetObjectResponseV1{value: val, isSet: true} +} + +func (v NullableGetObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go new file mode 100644 index 00000000000..91878785974 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the HasObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasObjectRequestV1{} + +// HasObjectRequestV1 struct for HasObjectRequestV1 +type HasObjectRequestV1 struct { + // The key to check for presence in the object store. + Key string `json:"key"` +} + +// NewHasObjectRequestV1 instantiates a new HasObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasObjectRequestV1(key string) *HasObjectRequestV1 { + this := HasObjectRequestV1{} + this.Key = key + return &this +} + +// NewHasObjectRequestV1WithDefaults instantiates a new HasObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasObjectRequestV1WithDefaults() *HasObjectRequestV1 { + this := HasObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasObjectRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasObjectRequestV1 struct { + value *HasObjectRequestV1 + isSet bool +} + +func (v NullableHasObjectRequestV1) Get() *HasObjectRequestV1 { + return v.value +} + +func (v *NullableHasObjectRequestV1) Set(val *HasObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasObjectRequestV1(val *HasObjectRequestV1) *NullableHasObjectRequestV1 { + return &NullableHasObjectRequestV1{value: val, isSet: true} +} + +func (v NullableHasObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go new file mode 100644 index 00000000000..fa05e7c1ac6 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the HasObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasObjectResponseV1{} + +// HasObjectResponseV1 struct for HasObjectResponseV1 +type HasObjectResponseV1 struct { + // The key that was used to check the presence of the value in the object store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an object under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasObjectResponseV1 instantiates a new HasObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasObjectResponseV1(key string, checkedAt string, isPresent bool) *HasObjectResponseV1 { + this := HasObjectResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasObjectResponseV1WithDefaults instantiates a new HasObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasObjectResponseV1WithDefaults() *HasObjectResponseV1 { + this := HasObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasObjectResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasObjectResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasObjectResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasObjectResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasObjectResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasObjectResponseV1 struct { + value *HasObjectResponseV1 + isSet bool +} + +func (v NullableHasObjectResponseV1) Get() *HasObjectResponseV1 { + return v.value +} + +func (v *NullableHasObjectResponseV1) Set(val *HasObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasObjectResponseV1(val *HasObjectResponseV1) *NullableHasObjectResponseV1 { + return &NullableHasObjectResponseV1{value: val, isSet: true} +} + +func (v NullableHasObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go new file mode 100644 index 00000000000..8c9d6c3ba0c --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the SetObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetObjectRequestV1{} + +// SetObjectRequestV1 struct for SetObjectRequestV1 +type SetObjectRequestV1 struct { + // The key for the entry to set in the object store. + Key string `json:"key"` + // The value that will be associated with the key in the object store. + Value string `json:"value"` +} + +// NewSetObjectRequestV1 instantiates a new SetObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetObjectRequestV1(key string, value string) *SetObjectRequestV1 { + this := SetObjectRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetObjectRequestV1WithDefaults instantiates a new SetObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetObjectRequestV1WithDefaults() *SetObjectRequestV1 { + this := SetObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetObjectRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetObjectRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetObjectRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetObjectRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetObjectRequestV1 struct { + value *SetObjectRequestV1 + isSet bool +} + +func (v NullableSetObjectRequestV1) Get() *SetObjectRequestV1 { + return v.value +} + +func (v *NullableSetObjectRequestV1) Set(val *SetObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetObjectRequestV1(val *SetObjectRequestV1) *NullableSetObjectRequestV1 { + return &NullableSetObjectRequestV1{value: val, isSet: true} +} + +func (v NullableSetObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go new file mode 100644 index 00000000000..a038dda6265 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" +) + +// checks if the SetObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetObjectResponseV1{} + +// SetObjectResponseV1 struct for SetObjectResponseV1 +type SetObjectResponseV1 struct { + // The key that was used to set the value in the object store. + Key string `json:"key"` +} + +// NewSetObjectResponseV1 instantiates a new SetObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetObjectResponseV1(key string) *SetObjectResponseV1 { + this := SetObjectResponseV1{} + this.Key = key + return &this +} + +// NewSetObjectResponseV1WithDefaults instantiates a new SetObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetObjectResponseV1WithDefaults() *SetObjectResponseV1 { + this := SetObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetObjectResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetObjectResponseV1 struct { + value *SetObjectResponseV1 + isSet bool +} + +func (v NullableSetObjectResponseV1) Get() *SetObjectResponseV1 { + return v.value +} + +func (v *NullableSetObjectResponseV1) Set(val *SetObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetObjectResponseV1(val *SetObjectResponseV1) *NullableSetObjectResponseV1 { + return &NullableSetObjectResponseV1{value: val, isSet: true} +} + +func (v NullableSetObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/response.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..e8f979148db --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/test/api_default_test.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..e419759c7d0 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/extensions/@hyperledger/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-object-store-ipfs_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/utils.go b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..f6e01103353 --- /dev/null +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Object Store - IPFS + +Contains/describes the Hyperledger Cactus Object Store IPFS plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-object-store-ipfs + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/README.md b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/README.md index 5ab8a9ef5b6..0e756349e7b 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/README.md +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Object Store - IPFS - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata] Contains/describes the Hyperledger Cactus Object Store IPFS plugin. diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index c9e5493f2a0..0d3cc5d9caa 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index ac457f4fd02..910d81748dd 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 4ec97627363..2166dc7e8ce 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index d8b606692bd..3fefae2a69d 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 1c50dea1714..9c2cf4a6520 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 63b230f70bd..bfd50b57168 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 625171bfeb2..788e9dae0ef 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java index 2b145ba4051..07c443aacc4 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java @@ -50,7 +50,7 @@ /** * GetObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class GetObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java index 839e5fbf814..f13e41ccc26 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java @@ -50,7 +50,7 @@ /** * GetObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class GetObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java index 36943e41323..ea5b1636ae8 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java @@ -50,7 +50,7 @@ /** * HasObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class HasObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java index 26ac96cc4e4..578bcd51a03 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java @@ -50,7 +50,7 @@ /** * HasObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class HasObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java index 9c31695a4ce..0c6d554cc3a 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java @@ -50,7 +50,7 @@ /** * SetObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class SetObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java index 2efe85aa18f..7b119a0d067 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java +++ b/extensions/cactus-plugin-object-store-ipfs/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java @@ -50,7 +50,7 @@ /** * SetObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:57.037376743+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:56.152662182+05:30[Asia/Kolkata]") public class SetObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..b8666fde42c --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,21 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/HealthCheckResponse.md +docs/MemoryUsage.md +docs/WatchHealthcheckV1.md +git_push.sh +go.mod +go.sum +model_health_check_response.go +model_memory_usage.go +model_watch_healthcheck_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..2b18af5d596 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,116 @@ +# Go API client for @hyperledger/cactus-cmd-api-server + +Interact with a Cactus deployment through HTTP. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-cmd-api-server "github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-cmd-api-server.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-cmd-api-server.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-cmd-api-server.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-cmd-api-server.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetHealthCheckV1**](docs/DefaultApi.md#gethealthcheckv1) | **Get** /api/v1/api-server/healthcheck | Can be used to verify liveness of an API server instance +*DefaultApi* | [**GetOpenApiSpecV1**](docs/DefaultApi.md#getopenapispecv1) | **Get** /api/v1/api-server/get-open-api-spec | +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/api-server/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + +## Documentation For Models + + - [HealthCheckResponse](docs/HealthCheckResponse.md) + - [MemoryUsage](docs/MemoryUsage.md) + - [WatchHealthcheckV1](docs/WatchHealthcheckV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..7e9b0022568 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,129 @@ +openapi: 3.0.3 +info: + description: Interact with a Cactus deployment through HTTP. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/api-server/healthcheck: + get: + description: Returns the current timestamp of the API server as proof of health/liveness + operationId: getHealthCheckV1 + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HealthCheckResponse' + description: OK + summary: Can be used to verify liveness of an API server instance + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/api-server/healthcheck + /api/v1/api-server/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/api-server/get-prometheus-exporter-metrics + /api/v1/api-server/get-open-api-spec: + get: + description: Returns the openapi.json document of specific plugin. + operationId: getOpenApiSpecV1 + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOpenApiSpecV1EndpointResponse' + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/api-server/get-open-api-spec +components: + schemas: + WatchHealthcheckV1: + enum: + - org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Subscribe + - org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Next + - org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Unsubscribe + - org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Error + - org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + MemoryUsage: + example: + heapUsed: 1.4658129805029452 + external: 5.962133916683182 + rss: 0.8008281904610115 + heapTotal: 6.027456183070403 + arrayBuffers: 5.637376656633329 + properties: + rss: + title: Resident Set Size + type: number + heapTotal: + title: V8 memory usage - heap total + type: number + heapUsed: + title: V8 memory usage - heap used + type: number + external: + title: Memory usage of C++ objects bound to JavaScript objects managed by + V8 + type: number + arrayBuffers: + title: "Memory allocated for ArrayBuffers and SharedArrayBuffers, including\ + \ all Node.js Buffers" + type: number + type: object + HealthCheckResponse: + example: + createdAt: createdAt + memoryUsage: + heapUsed: 1.4658129805029452 + external: 5.962133916683182 + rss: 0.8008281904610115 + heapTotal: 6.027456183070403 + arrayBuffers: 5.637376656633329 + success: true + properties: + success: + type: boolean + createdAt: + type: string + memoryUsage: + $ref: '#/components/schemas/MemoryUsage' + required: + - createdAt + - memoryUsage + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + GetOpenApiSpecV1EndpointResponse: + nullable: false + type: string diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..db65d8fb20a --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,318 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetHealthCheckV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetHealthCheckV1Request) Execute() (*HealthCheckResponse, *http.Response, error) { + return r.ApiService.GetHealthCheckV1Execute(r) +} + +/* +GetHealthCheckV1 Can be used to verify liveness of an API server instance + +Returns the current timestamp of the API server as proof of health/liveness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetHealthCheckV1Request +*/ +func (a *DefaultApiService) GetHealthCheckV1(ctx context.Context) ApiGetHealthCheckV1Request { + return ApiGetHealthCheckV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HealthCheckResponse +func (a *DefaultApiService) GetHealthCheckV1Execute(r ApiGetHealthCheckV1Request) (*HealthCheckResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HealthCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetHealthCheckV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/api-server/healthcheck" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOpenApiSpecV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetOpenApiSpecV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetOpenApiSpecV1Execute(r) +} + +/* +GetOpenApiSpecV1 Method for GetOpenApiSpecV1 + +Returns the openapi.json document of specific plugin. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOpenApiSpecV1Request +*/ +func (a *DefaultApiService) GetOpenApiSpecV1(ctx context.Context) ApiGetOpenApiSpecV1Request { + return ApiGetOpenApiSpecV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetOpenApiSpecV1Execute(r ApiGetOpenApiSpecV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOpenApiSpecV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/api-server/get-open-api-spec" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/api-server/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..847c7185eea --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..5a8479714ee --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..adecdd998c9 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,192 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetHealthCheckV1**](DefaultApi.md#GetHealthCheckV1) | **Get** /api/v1/api-server/healthcheck | Can be used to verify liveness of an API server instance +[**GetOpenApiSpecV1**](DefaultApi.md#GetOpenApiSpecV1) | **Get** /api/v1/api-server/get-open-api-spec | +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/api-server/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + + +## GetHealthCheckV1 + +> HealthCheckResponse GetHealthCheckV1(ctx).Execute() + +Can be used to verify liveness of an API server instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetHealthCheckV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetHealthCheckV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHealthCheckV1`: HealthCheckResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetHealthCheckV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetHealthCheckV1Request struct via the builder pattern + + +### Return type + +[**HealthCheckResponse**](HealthCheckResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOpenApiSpecV1 + +> string GetOpenApiSpecV1(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetOpenApiSpecV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOpenApiSpecV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOpenApiSpecV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetOpenApiSpecV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOpenApiSpecV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/HealthCheckResponse.md b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/HealthCheckResponse.md new file mode 100644 index 00000000000..282ee9cdbea --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/HealthCheckResponse.md @@ -0,0 +1,98 @@ +# HealthCheckResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**CreatedAt** | **string** | | +**MemoryUsage** | [**MemoryUsage**](MemoryUsage.md) | | + +## Methods + +### NewHealthCheckResponse + +`func NewHealthCheckResponse(createdAt string, memoryUsage MemoryUsage, ) *HealthCheckResponse` + +NewHealthCheckResponse instantiates a new HealthCheckResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHealthCheckResponseWithDefaults + +`func NewHealthCheckResponseWithDefaults() *HealthCheckResponse` + +NewHealthCheckResponseWithDefaults instantiates a new HealthCheckResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *HealthCheckResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *HealthCheckResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *HealthCheckResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *HealthCheckResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *HealthCheckResponse) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *HealthCheckResponse) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *HealthCheckResponse) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetMemoryUsage + +`func (o *HealthCheckResponse) GetMemoryUsage() MemoryUsage` + +GetMemoryUsage returns the MemoryUsage field if non-nil, zero value otherwise. + +### GetMemoryUsageOk + +`func (o *HealthCheckResponse) GetMemoryUsageOk() (*MemoryUsage, bool)` + +GetMemoryUsageOk returns a tuple with the MemoryUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryUsage + +`func (o *HealthCheckResponse) SetMemoryUsage(v MemoryUsage)` + +SetMemoryUsage sets MemoryUsage field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/MemoryUsage.md b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/MemoryUsage.md new file mode 100644 index 00000000000..62abb9adae1 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/MemoryUsage.md @@ -0,0 +1,160 @@ +# MemoryUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Rss** | Pointer to **float32** | | [optional] +**HeapTotal** | Pointer to **float32** | | [optional] +**HeapUsed** | Pointer to **float32** | | [optional] +**External** | Pointer to **float32** | | [optional] +**ArrayBuffers** | Pointer to **float32** | | [optional] + +## Methods + +### NewMemoryUsage + +`func NewMemoryUsage() *MemoryUsage` + +NewMemoryUsage instantiates a new MemoryUsage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMemoryUsageWithDefaults + +`func NewMemoryUsageWithDefaults() *MemoryUsage` + +NewMemoryUsageWithDefaults instantiates a new MemoryUsage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRss + +`func (o *MemoryUsage) GetRss() float32` + +GetRss returns the Rss field if non-nil, zero value otherwise. + +### GetRssOk + +`func (o *MemoryUsage) GetRssOk() (*float32, bool)` + +GetRssOk returns a tuple with the Rss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRss + +`func (o *MemoryUsage) SetRss(v float32)` + +SetRss sets Rss field to given value. + +### HasRss + +`func (o *MemoryUsage) HasRss() bool` + +HasRss returns a boolean if a field has been set. + +### GetHeapTotal + +`func (o *MemoryUsage) GetHeapTotal() float32` + +GetHeapTotal returns the HeapTotal field if non-nil, zero value otherwise. + +### GetHeapTotalOk + +`func (o *MemoryUsage) GetHeapTotalOk() (*float32, bool)` + +GetHeapTotalOk returns a tuple with the HeapTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeapTotal + +`func (o *MemoryUsage) SetHeapTotal(v float32)` + +SetHeapTotal sets HeapTotal field to given value. + +### HasHeapTotal + +`func (o *MemoryUsage) HasHeapTotal() bool` + +HasHeapTotal returns a boolean if a field has been set. + +### GetHeapUsed + +`func (o *MemoryUsage) GetHeapUsed() float32` + +GetHeapUsed returns the HeapUsed field if non-nil, zero value otherwise. + +### GetHeapUsedOk + +`func (o *MemoryUsage) GetHeapUsedOk() (*float32, bool)` + +GetHeapUsedOk returns a tuple with the HeapUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeapUsed + +`func (o *MemoryUsage) SetHeapUsed(v float32)` + +SetHeapUsed sets HeapUsed field to given value. + +### HasHeapUsed + +`func (o *MemoryUsage) HasHeapUsed() bool` + +HasHeapUsed returns a boolean if a field has been set. + +### GetExternal + +`func (o *MemoryUsage) GetExternal() float32` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *MemoryUsage) GetExternalOk() (*float32, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *MemoryUsage) SetExternal(v float32)` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *MemoryUsage) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + +### GetArrayBuffers + +`func (o *MemoryUsage) GetArrayBuffers() float32` + +GetArrayBuffers returns the ArrayBuffers field if non-nil, zero value otherwise. + +### GetArrayBuffersOk + +`func (o *MemoryUsage) GetArrayBuffersOk() (*float32, bool)` + +GetArrayBuffersOk returns a tuple with the ArrayBuffers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArrayBuffers + +`func (o *MemoryUsage) SetArrayBuffers(v float32)` + +SetArrayBuffers sets ArrayBuffers field to given value. + +### HasArrayBuffers + +`func (o *MemoryUsage) HasArrayBuffers() bool` + +HasArrayBuffers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/WatchHealthcheckV1.md b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/WatchHealthcheckV1.md new file mode 100644 index 00000000000..3915950a9fe --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/docs/WatchHealthcheckV1.md @@ -0,0 +1,19 @@ +# WatchHealthcheckV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..302eb8c2e45 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..a3ef5c89fb4 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_health_check_response.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_health_check_response.go new file mode 100644 index 00000000000..ecab0c5b598 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_health_check_response.go @@ -0,0 +1,180 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "encoding/json" +) + +// checks if the HealthCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HealthCheckResponse{} + +// HealthCheckResponse struct for HealthCheckResponse +type HealthCheckResponse struct { + Success *bool `json:"success,omitempty"` + CreatedAt string `json:"createdAt"` + MemoryUsage MemoryUsage `json:"memoryUsage"` +} + +// NewHealthCheckResponse instantiates a new HealthCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHealthCheckResponse(createdAt string, memoryUsage MemoryUsage) *HealthCheckResponse { + this := HealthCheckResponse{} + this.CreatedAt = createdAt + this.MemoryUsage = memoryUsage + return &this +} + +// NewHealthCheckResponseWithDefaults instantiates a new HealthCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHealthCheckResponseWithDefaults() *HealthCheckResponse { + this := HealthCheckResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *HealthCheckResponse) GetSuccess() bool { + if o == nil || IsNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HealthCheckResponse) GetSuccessOk() (*bool, bool) { + if o == nil || IsNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *HealthCheckResponse) HasSuccess() bool { + if o != nil && !IsNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *HealthCheckResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *HealthCheckResponse) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *HealthCheckResponse) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *HealthCheckResponse) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetMemoryUsage returns the MemoryUsage field value +func (o *HealthCheckResponse) GetMemoryUsage() MemoryUsage { + if o == nil { + var ret MemoryUsage + return ret + } + + return o.MemoryUsage +} + +// GetMemoryUsageOk returns a tuple with the MemoryUsage field value +// and a boolean to check if the value has been set. +func (o *HealthCheckResponse) GetMemoryUsageOk() (*MemoryUsage, bool) { + if o == nil { + return nil, false + } + return &o.MemoryUsage, true +} + +// SetMemoryUsage sets field value +func (o *HealthCheckResponse) SetMemoryUsage(v MemoryUsage) { + o.MemoryUsage = v +} + +func (o HealthCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HealthCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["memoryUsage"] = o.MemoryUsage + return toSerialize, nil +} + +type NullableHealthCheckResponse struct { + value *HealthCheckResponse + isSet bool +} + +func (v NullableHealthCheckResponse) Get() *HealthCheckResponse { + return v.value +} + +func (v *NullableHealthCheckResponse) Set(val *HealthCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableHealthCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthCheckResponse(val *HealthCheckResponse) *NullableHealthCheckResponse { + return &NullableHealthCheckResponse{value: val, isSet: true} +} + +func (v NullableHealthCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_memory_usage.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_memory_usage.go new file mode 100644 index 00000000000..58789cb695b --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_memory_usage.go @@ -0,0 +1,270 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "encoding/json" +) + +// checks if the MemoryUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MemoryUsage{} + +// MemoryUsage struct for MemoryUsage +type MemoryUsage struct { + Rss *float32 `json:"rss,omitempty"` + HeapTotal *float32 `json:"heapTotal,omitempty"` + HeapUsed *float32 `json:"heapUsed,omitempty"` + External *float32 `json:"external,omitempty"` + ArrayBuffers *float32 `json:"arrayBuffers,omitempty"` +} + +// NewMemoryUsage instantiates a new MemoryUsage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMemoryUsage() *MemoryUsage { + this := MemoryUsage{} + return &this +} + +// NewMemoryUsageWithDefaults instantiates a new MemoryUsage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMemoryUsageWithDefaults() *MemoryUsage { + this := MemoryUsage{} + return &this +} + +// GetRss returns the Rss field value if set, zero value otherwise. +func (o *MemoryUsage) GetRss() float32 { + if o == nil || IsNil(o.Rss) { + var ret float32 + return ret + } + return *o.Rss +} + +// GetRssOk returns a tuple with the Rss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemoryUsage) GetRssOk() (*float32, bool) { + if o == nil || IsNil(o.Rss) { + return nil, false + } + return o.Rss, true +} + +// HasRss returns a boolean if a field has been set. +func (o *MemoryUsage) HasRss() bool { + if o != nil && !IsNil(o.Rss) { + return true + } + + return false +} + +// SetRss gets a reference to the given float32 and assigns it to the Rss field. +func (o *MemoryUsage) SetRss(v float32) { + o.Rss = &v +} + +// GetHeapTotal returns the HeapTotal field value if set, zero value otherwise. +func (o *MemoryUsage) GetHeapTotal() float32 { + if o == nil || IsNil(o.HeapTotal) { + var ret float32 + return ret + } + return *o.HeapTotal +} + +// GetHeapTotalOk returns a tuple with the HeapTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemoryUsage) GetHeapTotalOk() (*float32, bool) { + if o == nil || IsNil(o.HeapTotal) { + return nil, false + } + return o.HeapTotal, true +} + +// HasHeapTotal returns a boolean if a field has been set. +func (o *MemoryUsage) HasHeapTotal() bool { + if o != nil && !IsNil(o.HeapTotal) { + return true + } + + return false +} + +// SetHeapTotal gets a reference to the given float32 and assigns it to the HeapTotal field. +func (o *MemoryUsage) SetHeapTotal(v float32) { + o.HeapTotal = &v +} + +// GetHeapUsed returns the HeapUsed field value if set, zero value otherwise. +func (o *MemoryUsage) GetHeapUsed() float32 { + if o == nil || IsNil(o.HeapUsed) { + var ret float32 + return ret + } + return *o.HeapUsed +} + +// GetHeapUsedOk returns a tuple with the HeapUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemoryUsage) GetHeapUsedOk() (*float32, bool) { + if o == nil || IsNil(o.HeapUsed) { + return nil, false + } + return o.HeapUsed, true +} + +// HasHeapUsed returns a boolean if a field has been set. +func (o *MemoryUsage) HasHeapUsed() bool { + if o != nil && !IsNil(o.HeapUsed) { + return true + } + + return false +} + +// SetHeapUsed gets a reference to the given float32 and assigns it to the HeapUsed field. +func (o *MemoryUsage) SetHeapUsed(v float32) { + o.HeapUsed = &v +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *MemoryUsage) GetExternal() float32 { + if o == nil || IsNil(o.External) { + var ret float32 + return ret + } + return *o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemoryUsage) GetExternalOk() (*float32, bool) { + if o == nil || IsNil(o.External) { + return nil, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *MemoryUsage) HasExternal() bool { + if o != nil && !IsNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given float32 and assigns it to the External field. +func (o *MemoryUsage) SetExternal(v float32) { + o.External = &v +} + +// GetArrayBuffers returns the ArrayBuffers field value if set, zero value otherwise. +func (o *MemoryUsage) GetArrayBuffers() float32 { + if o == nil || IsNil(o.ArrayBuffers) { + var ret float32 + return ret + } + return *o.ArrayBuffers +} + +// GetArrayBuffersOk returns a tuple with the ArrayBuffers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemoryUsage) GetArrayBuffersOk() (*float32, bool) { + if o == nil || IsNil(o.ArrayBuffers) { + return nil, false + } + return o.ArrayBuffers, true +} + +// HasArrayBuffers returns a boolean if a field has been set. +func (o *MemoryUsage) HasArrayBuffers() bool { + if o != nil && !IsNil(o.ArrayBuffers) { + return true + } + + return false +} + +// SetArrayBuffers gets a reference to the given float32 and assigns it to the ArrayBuffers field. +func (o *MemoryUsage) SetArrayBuffers(v float32) { + o.ArrayBuffers = &v +} + +func (o MemoryUsage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MemoryUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Rss) { + toSerialize["rss"] = o.Rss + } + if !IsNil(o.HeapTotal) { + toSerialize["heapTotal"] = o.HeapTotal + } + if !IsNil(o.HeapUsed) { + toSerialize["heapUsed"] = o.HeapUsed + } + if !IsNil(o.External) { + toSerialize["external"] = o.External + } + if !IsNil(o.ArrayBuffers) { + toSerialize["arrayBuffers"] = o.ArrayBuffers + } + return toSerialize, nil +} + +type NullableMemoryUsage struct { + value *MemoryUsage + isSet bool +} + +func (v NullableMemoryUsage) Get() *MemoryUsage { + return v.value +} + +func (v *NullableMemoryUsage) Set(val *MemoryUsage) { + v.value = val + v.isSet = true +} + +func (v NullableMemoryUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableMemoryUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMemoryUsage(val *MemoryUsage) *NullableMemoryUsage { + return &NullableMemoryUsage{value: val, isSet: true} +} + +func (v NullableMemoryUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMemoryUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_watch_healthcheck_v1.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_watch_healthcheck_v1.go new file mode 100644 index 00000000000..475bb616ff8 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/model_watch_healthcheck_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "encoding/json" + "fmt" +) + +// WatchHealthcheckV1 the model 'WatchHealthcheckV1' +type WatchHealthcheckV1 string + +// List of WatchHealthcheckV1 +const ( + Subscribe WatchHealthcheckV1 = "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Subscribe" + Next WatchHealthcheckV1 = "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Next" + Unsubscribe WatchHealthcheckV1 = "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Unsubscribe" + Error WatchHealthcheckV1 = "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Error" + Complete WatchHealthcheckV1 = "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Complete" +) + +// All allowed values of WatchHealthcheckV1 enum +var AllowedWatchHealthcheckV1EnumValues = []WatchHealthcheckV1{ + "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Subscribe", + "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Next", + "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Unsubscribe", + "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Error", + "org.hyperledger.cactus.api.async.besu.WatchHealthcheckV1.Complete", +} + +func (v *WatchHealthcheckV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchHealthcheckV1(value) + for _, existing := range AllowedWatchHealthcheckV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchHealthcheckV1", value) +} + +// NewWatchHealthcheckV1FromValue returns a pointer to a valid WatchHealthcheckV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchHealthcheckV1FromValue(v string) (*WatchHealthcheckV1, error) { + ev := WatchHealthcheckV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchHealthcheckV1: valid values are %v", v, AllowedWatchHealthcheckV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchHealthcheckV1) IsValid() bool { + for _, existing := range AllowedWatchHealthcheckV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchHealthcheckV1 value +func (v WatchHealthcheckV1) Ptr() *WatchHealthcheckV1 { + return &v +} + +type NullableWatchHealthcheckV1 struct { + value *WatchHealthcheckV1 + isSet bool +} + +func (v NullableWatchHealthcheckV1) Get() *WatchHealthcheckV1 { + return v.value +} + +func (v *NullableWatchHealthcheckV1) Set(val *WatchHealthcheckV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchHealthcheckV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchHealthcheckV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchHealthcheckV1(val *WatchHealthcheckV1) *NullableWatchHealthcheckV1 { + return &NullableWatchHealthcheckV1{value: val, isSet: true} +} + +func (v NullableWatchHealthcheckV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchHealthcheckV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..d54bacc08c4 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..c49d48aeb49 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-cmd-api-server + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-cmd-api-server/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-cmd-api-server_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetHealthCheckV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetHealthCheckV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOpenApiSpecV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetOpenApiSpecV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..2440e9f6197 --- /dev/null +++ b/packages/cactus-cmd-api-server/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus API + +Interact with a Cactus deployment through HTTP. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-cmd-api-server + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/README.md index 6b866496de1..7a88293ec77 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata] Interact with a Cactus deployment through HTTP. diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index baeaf4dd78c..d7ee904594e 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 16818ed2389..5230c50dd02 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 0009bb9738c..0676f42aaf9 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 12c637bb149..46709fc9598 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index eed118f4467..d448334f560 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index f92ddf2e7fb..9a2a04d7568 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index b03b9328fc8..44cf84fb9cc 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HealthCheckResponse.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HealthCheckResponse.java index c51643533ca..01089458419 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HealthCheckResponse.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HealthCheckResponse.java @@ -51,7 +51,7 @@ /** * HealthCheckResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class HealthCheckResponse { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MemoryUsage.java b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MemoryUsage.java index 30be7f435dc..f3047ab1e19 100644 --- a/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MemoryUsage.java +++ b/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MemoryUsage.java @@ -51,7 +51,7 @@ /** * MemoryUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.107156364+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:27.745876359+05:30[Asia/Kolkata]") public class MemoryUsage { public static final String SERIALIZED_NAME_RSS = "rss"; @SerializedName(SERIALIZED_NAME_RSS) diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..79bb0eb5b33 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,76 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +client.go +configuration.go +docs/CactusNode.md +docs/CactusNodeAllOf.md +docs/CactusNodeMeta.md +docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md +docs/ConsensusAlgorithmFamiliesWithTxFinality.md +docs/ConsensusAlgorithmFamily.md +docs/Consortium.md +docs/ConsortiumDatabase.md +docs/ConsortiumMember.md +docs/Constants.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/GetObjectRequestV1.md +docs/GetObjectResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/HasObjectRequestV1.md +docs/HasObjectResponseV1.md +docs/JWSGeneral.md +docs/JWSRecipient.md +docs/Ledger.md +docs/LedgerType.md +docs/PluginImport.md +docs/PluginImportAction.md +docs/PluginImportType.md +docs/PluginInstance.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +docs/SetObjectRequestV1.md +docs/SetObjectResponseV1.md +git_push.sh +go.mod +go.sum +model_cactus_node.go +model_cactus_node_all_of.go +model_cactus_node_meta.go +model_consensus_algorithm_families_with_out_tx_finality.go +model_consensus_algorithm_families_with_tx_finality.go +model_consensus_algorithm_family.go +model_consortium.go +model_consortium_database.go +model_consortium_member.go +model_constants.go +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_get_object_request_v1.go +model_get_object_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_has_object_request_v1.go +model_has_object_response_v1.go +model_jws_general.go +model_jws_recipient.go +model_ledger.go +model_ledger_type.go +model_plugin_import.go +model_plugin_import_action.go +model_plugin_import_type.go +model_plugin_instance.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +model_set_object_request_v1.go +model_set_object_response_v1.go +response.go +utils.go diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..4847187d0d1 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,141 @@ +# Go API client for @hyperledger/cactus-core-api + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-core-api "github.com/hyperledger/cacti/packages/@hyperledger/cactus-core-api/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-core-api.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-core-api.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-core-api.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-core-api.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- + + +## Documentation For Models + + - [CactusNode](docs/CactusNode.md) + - [CactusNodeAllOf](docs/CactusNodeAllOf.md) + - [CactusNodeMeta](docs/CactusNodeMeta.md) + - [ConsensusAlgorithmFamiliesWithOutTxFinality](docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md) + - [ConsensusAlgorithmFamiliesWithTxFinality](docs/ConsensusAlgorithmFamiliesWithTxFinality.md) + - [ConsensusAlgorithmFamily](docs/ConsensusAlgorithmFamily.md) + - [Consortium](docs/Consortium.md) + - [ConsortiumDatabase](docs/ConsortiumDatabase.md) + - [ConsortiumMember](docs/ConsortiumMember.md) + - [Constants](docs/Constants.md) + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [GetObjectRequestV1](docs/GetObjectRequestV1.md) + - [GetObjectResponseV1](docs/GetObjectResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [HasObjectRequestV1](docs/HasObjectRequestV1.md) + - [HasObjectResponseV1](docs/HasObjectResponseV1.md) + - [JWSGeneral](docs/JWSGeneral.md) + - [JWSRecipient](docs/JWSRecipient.md) + - [Ledger](docs/Ledger.md) + - [LedgerType](docs/LedgerType.md) + - [PluginImport](docs/PluginImport.md) + - [PluginImportAction](docs/PluginImportAction.md) + - [PluginImportType](docs/PluginImportType.md) + - [PluginInstance](docs/PluginInstance.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + - [SetObjectRequestV1](docs/SetObjectRequestV1.md) + - [SetObjectResponseV1](docs/SetObjectResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..e87e78da534 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,712 @@ +openapi: 3.0.3 +info: + description: "Contains/describes the core API types for Cactus. Does not describe\ + \ actual endpoints on its own as this is left to the implementing plugins who\ + \ can import and re-use commonly needed type definitions from this specification.\ + \ One example of said commonly used type definitions would be the types related\ + \ to consortium management, cactus nodes, ledgers, etc.." + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Core API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: {} +components: + requestBodies: + object_store_get_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetObjectRequestV1' + description: Request body to obtain an object via its key. + required: true + object_store_set_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetObjectRequestV1' + description: Request body to set an object under a key. + required: true + object_store_has_object_v1_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasObjectRequestV1' + description: Request body to check presence of an object under a key. + required: true + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + keychain_has_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + description: Request body for checking a keychain entry via its key + required: true + keychain_delete_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + description: Request body to delete a keychain entry via its key + required: true + responses: + object_store_get_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetObjectResponseV1' + description: OK + object_store_set_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetObjectResponseV1' + description: OK + object_store_has_object_v1_response_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasObjectResponseV1' + description: OK + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + keychain_has_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + keychain_has_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_has_entry_401: + description: Authorization information is missing or invalid. + keychain_has_entry_500: + description: Unexpected error. + keychain_delete_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + keychain_delete_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_delete_entry_401: + description: Authorization information is missing or invalid. + keychain_delete_entry_500: + description: Unexpected error. + schemas: + Constants: + enum: + - /api/v1/async/socket-io/connect + type: string + x-enum-varnames: + - SocketIoConnectionPathV1 + PluginImport: + properties: + packageName: + maxLength: 1024 + minLength: 1 + nullable: false + type: string + type: + $ref: '#/components/schemas/PluginImportType' + action: + $ref: '#/components/schemas/PluginImportAction' + options: {} + required: + - action + - packageName + - type + type: object + PluginImportType: + enum: + - org.hyperledger.cactus.plugin_import_type.LOCAL + - org.hyperledger.cactus.plugin_import_type.REMOTE + type: string + PluginImportAction: + enum: + - org.hyperledger.cactus.plugin_import_action.INSTANTIATE + - org.hyperledger.cactus.plugin_import_action.INSTALL + type: string + ConsensusAlgorithmFamily: + description: "Enumerates a list of consensus algorithm families in existence.\ + \ Does not intend to be an exhaustive list, just a practical one, meaning\ + \ that we only include items here that are relevant to Hyperledger Cactus\ + \ in fulfilling its own duties. This can be extended later as more sophisticated\ + \ features of Cactus get implemented. This enum is meant to be first and foremost\ + \ a useful abstraction for achieving practical tasks, not an encyclopedia\ + \ and therefore we ask of everyone that this to be extended only in ways that\ + \ serve a practical purpose for the runtime behavior of Cactus or Cactus plugins\ + \ in general. The bottom line is that we can accept this enum being not 100%\ + \ accurate as long as it 100% satisfies what it was designed to do." + enum: + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK + type: string + ConsensusAlgorithmFamiliesWithTxFinality: + description: Enumerates a list of consensus algorithm families that provide + immediate finality + enum: + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE + type: string + ConsensusAlgorithmFamiliesWithOutTxFinality: + description: Enumerates a list of consensus algorithm families that do not provide + immediate finality + enum: + - org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK + type: string + x-enum-varnames: + - WORK + PrimaryKey: + maxLength: 128 + minLength: 1 + nullable: false + type: string + ConsortiumMemberId: + $ref: '#/components/schemas/PrimaryKey' + CactusNodeId: + $ref: '#/components/schemas/PrimaryKey' + ConsortiumId: + $ref: '#/components/schemas/PrimaryKey' + LedgerId: + $ref: '#/components/schemas/PrimaryKey' + PluginInstanceId: + $ref: '#/components/schemas/PrimaryKey' + ConsortiumDatabase: + properties: + consortium: + default: [] + description: "A collection of Consortium entities. In practice this should\ + \ only ever contain a single consortium, but we defined it as an array\ + \ to keep the convention up with the rest of the collections defined in\ + \ the Consortium data in general. Also, if we ever decide to somehow have\ + \ some sort of consortium to consortium integration (which does not make\ + \ much sense in the current frame of mind of the author in the year 2020)\ + \ then having this as an array will have proven itself to be an excellent\ + \ long term compatibility/extensibility decision indeed." + items: + $ref: '#/components/schemas/Consortium' + maxItems: 2048 + minItems: 0 + type: array + ledger: + default: [] + description: The complete collection of all ledger entities in existence + within the consortium. + items: + $ref: '#/components/schemas/Ledger' + maxItems: 2048 + minItems: 0 + type: array + consortiumMember: + default: [] + description: The complete collection of all consortium member entities in + existence within the consortium. + items: + $ref: '#/components/schemas/ConsortiumMember' + maxItems: 2048 + minItems: 0 + type: array + cactusNode: + default: [] + description: The complete collection of all cactus nodes entities in existence + within the consortium. + items: + $ref: '#/components/schemas/CactusNode' + maxItems: 2048 + minItems: 0 + type: array + pluginInstance: + default: [] + description: The complete collection of all plugin instance entities in + existence within the consortium. + items: + $ref: '#/components/schemas/PluginInstance' + maxItems: 2048 + minItems: 0 + type: array + required: + - cactusNode + - consortium + - consortiumMember + - ledger + - pluginInstance + Ledger: + properties: + id: + maxLength: 128 + minLength: 1 + nullable: false + type: string + ledgerType: + $ref: '#/components/schemas/LedgerType' + consortiumMemberId: + maxLength: 128 + minLength: 1 + nullable: false + type: string + required: + - id + - ledgerType + type: object + LedgerType: + description: "Enumerates the different ledger vendors and their major versions\ + \ encoded within the name of the LedgerType. For example \"BESU_1X\" involves\ + \ all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until,\ + \ but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further\ + \ explanation." + enum: + - BESU_1X + - BESU_2X + - BURROW_0X + - CORDA_4X + - FABRIC_14X + - FABRIC_2 + - QUORUM_2X + - SAWTOOTH_1X + type: string + Consortium: + properties: + id: + maxLength: 128 + minLength: 1 + nullable: false + type: string + name: + type: string + mainApiHost: + type: string + memberIds: + default: [] + description: The collection (array) of primary keys of consortium member + entities that belong to this Consortium. + items: + $ref: '#/components/schemas/ConsortiumMemberId' + maxItems: 2048 + minItems: 1 + nullable: false + type: array + required: + - id + - mainApiHost + - memberIds + - name + type: object + ConsortiumMember: + properties: + id: + maxLength: 128 + minLength: 1 + nullable: false + type: string + name: + description: The human readable name a Consortium member can be referred + to while making it easy for humans to distinguish this particular consortium + member entity from any other ones. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + nodeIds: + default: [] + items: + $ref: '#/components/schemas/CactusNodeId' + maxItems: 2048 + minItems: 1 + nullable: false + type: array + required: + - id + - name + - nodeIds + type: object + CactusNodeMeta: + description: A Cactus node meta information + properties: + nodeApiHost: + maxLength: 1024 + minLength: 1 + nullable: false + type: string + publicKeyPem: + description: The PEM encoded public key that was used to generate the JWS + included in the response (the jws property) + format: "Must only contain the public key, never include here the PEM that\ + \ also contains a private key. See PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail" + maxLength: 65535 + minLength: 1 + nullable: false + type: string + required: + - nodeApiHost + - publicKeyPem + type: object + CactusNode: + allOf: + - $ref: '#/components/schemas/CactusNodeMeta' + - $ref: '#/components/schemas/CactusNode_allOf' + description: "A Cactus node can be a single server, or a set of servers behind\ + \ a load balancer acting as one." + type: object + PluginInstance: + properties: + id: + maxLength: 128 + minLength: 1 + nullable: false + type: string + packageName: + maxLength: 4096 + minLength: 1 + nullable: false + type: string + required: + - id + - packageName + type: object + JWSCompact: + description: "A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515\ + \ for info about standard." + example: eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiSm9obiBEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.DOCNCqEMN7CQ_z-RMndiyldljXOk6WFIZxRzNF5Ylg4 + maxLength: 65535 + minLength: 5 + pattern: "/^[a-zA-Z0-9-_]+?.[a-zA-Z0-9-_]+?.([a-zA-Z0-9-_]+)?$/" + type: string + JWSRecipient: + description: "A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515\ + \ for info about standard." + properties: + signature: + type: string + protected: + type: string + header: + additionalProperties: true + type: object + required: + - signature + type: object + JWSGeneral: + properties: + payload: + maxLength: 65535 + minLength: 1 + type: string + signatures: + items: + $ref: '#/components/schemas/JWSRecipient' + type: array + required: + - payload + - signatures + type: object + GetObjectRequestV1: + additionalProperties: false + properties: + key: + description: The key for the entry to get from the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetObjectResponseV1: + properties: + key: + description: The key that was used to retrieve the value from the object + store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key in the object store + as a string. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + HasObjectRequestV1: + additionalProperties: false + properties: + key: + description: The key to check for presence in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasObjectResponseV1: + properties: + key: + description: The key that was used to check the presence of the value in + the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an object under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object + SetObjectRequestV1: + additionalProperties: false + properties: + key: + description: The key for the entry to set in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key in the object + store. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetObjectResponseV1: + properties: + key: + description: The key that was used to set the value in the object store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryRequestV1: + additionalProperties: false + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + properties: + key: + description: The key for the entry to check the presence of on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + properties: + key: + description: The key that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryRequestV1: + additionalProperties: false + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + properties: + key: + description: The key that was used to check the presence of the value in + the entry store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object + CactusNode_allOf: + properties: + id: + maxLength: 128 + minLength: 1 + nullable: false + type: string + consortiumId: + maxLength: 128 + minLength: 1 + nullable: false + type: string + memberId: + maxLength: 128 + minLength: 1 + nullable: false + type: string + ledgerIds: + default: [] + description: Stores an array of Ledger entity IDs that are reachable (routable) + via this Cactus Node. This information is used by the client side SDK + API client to figure out at runtime where to send API requests that are + specific to a certain ledger such as requests to execute transactions. + items: + $ref: '#/components/schemas/LedgerId' + maxItems: 2048 + minItems: 0 + nullable: false + type: array + pluginInstanceIds: + default: [] + items: + $ref: '#/components/schemas/PluginInstanceId' + maxItems: 2048 + minItems: 0 + nullable: false + type: array + required: + - consortiumId + - id + - ledgerIds + - memberId + - nodeApiHost + - pluginInstanceIds + - publicKeyPem + type: object + example: null diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..ded73e9b1b0 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,653 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Core API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..3c7f15f5010 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNode.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNode.md new file mode 100644 index 00000000000..a35d59f2025 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNode.md @@ -0,0 +1,177 @@ +# CactusNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeApiHost** | **string** | | +**PublicKeyPem** | **string** | The PEM encoded public key that was used to generate the JWS included in the response (the jws property) | +**Id** | **string** | | +**ConsortiumId** | **string** | | +**MemberId** | **string** | | +**LedgerIds** | **[]string** | Stores an array of Ledger entity IDs that are reachable (routable) via this Cactus Node. This information is used by the client side SDK API client to figure out at runtime where to send API requests that are specific to a certain ledger such as requests to execute transactions. | [default to []] +**PluginInstanceIds** | **[]string** | | [default to []] + +## Methods + +### NewCactusNode + +`func NewCactusNode(nodeApiHost string, publicKeyPem string, id string, consortiumId string, memberId string, ledgerIds []string, pluginInstanceIds []string, ) *CactusNode` + +NewCactusNode instantiates a new CactusNode object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCactusNodeWithDefaults + +`func NewCactusNodeWithDefaults() *CactusNode` + +NewCactusNodeWithDefaults instantiates a new CactusNode object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeApiHost + +`func (o *CactusNode) GetNodeApiHost() string` + +GetNodeApiHost returns the NodeApiHost field if non-nil, zero value otherwise. + +### GetNodeApiHostOk + +`func (o *CactusNode) GetNodeApiHostOk() (*string, bool)` + +GetNodeApiHostOk returns a tuple with the NodeApiHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeApiHost + +`func (o *CactusNode) SetNodeApiHost(v string)` + +SetNodeApiHost sets NodeApiHost field to given value. + + +### GetPublicKeyPem + +`func (o *CactusNode) GetPublicKeyPem() string` + +GetPublicKeyPem returns the PublicKeyPem field if non-nil, zero value otherwise. + +### GetPublicKeyPemOk + +`func (o *CactusNode) GetPublicKeyPemOk() (*string, bool)` + +GetPublicKeyPemOk returns a tuple with the PublicKeyPem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKeyPem + +`func (o *CactusNode) SetPublicKeyPem(v string)` + +SetPublicKeyPem sets PublicKeyPem field to given value. + + +### GetId + +`func (o *CactusNode) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CactusNode) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CactusNode) SetId(v string)` + +SetId sets Id field to given value. + + +### GetConsortiumId + +`func (o *CactusNode) GetConsortiumId() string` + +GetConsortiumId returns the ConsortiumId field if non-nil, zero value otherwise. + +### GetConsortiumIdOk + +`func (o *CactusNode) GetConsortiumIdOk() (*string, bool)` + +GetConsortiumIdOk returns a tuple with the ConsortiumId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsortiumId + +`func (o *CactusNode) SetConsortiumId(v string)` + +SetConsortiumId sets ConsortiumId field to given value. + + +### GetMemberId + +`func (o *CactusNode) GetMemberId() string` + +GetMemberId returns the MemberId field if non-nil, zero value otherwise. + +### GetMemberIdOk + +`func (o *CactusNode) GetMemberIdOk() (*string, bool)` + +GetMemberIdOk returns a tuple with the MemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberId + +`func (o *CactusNode) SetMemberId(v string)` + +SetMemberId sets MemberId field to given value. + + +### GetLedgerIds + +`func (o *CactusNode) GetLedgerIds() []string` + +GetLedgerIds returns the LedgerIds field if non-nil, zero value otherwise. + +### GetLedgerIdsOk + +`func (o *CactusNode) GetLedgerIdsOk() (*[]string, bool)` + +GetLedgerIdsOk returns a tuple with the LedgerIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerIds + +`func (o *CactusNode) SetLedgerIds(v []string)` + +SetLedgerIds sets LedgerIds field to given value. + + +### GetPluginInstanceIds + +`func (o *CactusNode) GetPluginInstanceIds() []string` + +GetPluginInstanceIds returns the PluginInstanceIds field if non-nil, zero value otherwise. + +### GetPluginInstanceIdsOk + +`func (o *CactusNode) GetPluginInstanceIdsOk() (*[]string, bool)` + +GetPluginInstanceIdsOk returns a tuple with the PluginInstanceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPluginInstanceIds + +`func (o *CactusNode) SetPluginInstanceIds(v []string)` + +SetPluginInstanceIds sets PluginInstanceIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeAllOf.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeAllOf.md new file mode 100644 index 00000000000..49887f7503b --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeAllOf.md @@ -0,0 +1,135 @@ +# CactusNodeAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**ConsortiumId** | **string** | | +**MemberId** | **string** | | +**LedgerIds** | **[]string** | Stores an array of Ledger entity IDs that are reachable (routable) via this Cactus Node. This information is used by the client side SDK API client to figure out at runtime where to send API requests that are specific to a certain ledger such as requests to execute transactions. | [default to []] +**PluginInstanceIds** | **[]string** | | [default to []] + +## Methods + +### NewCactusNodeAllOf + +`func NewCactusNodeAllOf(id string, consortiumId string, memberId string, ledgerIds []string, pluginInstanceIds []string, ) *CactusNodeAllOf` + +NewCactusNodeAllOf instantiates a new CactusNodeAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCactusNodeAllOfWithDefaults + +`func NewCactusNodeAllOfWithDefaults() *CactusNodeAllOf` + +NewCactusNodeAllOfWithDefaults instantiates a new CactusNodeAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CactusNodeAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CactusNodeAllOf) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CactusNodeAllOf) SetId(v string)` + +SetId sets Id field to given value. + + +### GetConsortiumId + +`func (o *CactusNodeAllOf) GetConsortiumId() string` + +GetConsortiumId returns the ConsortiumId field if non-nil, zero value otherwise. + +### GetConsortiumIdOk + +`func (o *CactusNodeAllOf) GetConsortiumIdOk() (*string, bool)` + +GetConsortiumIdOk returns a tuple with the ConsortiumId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsortiumId + +`func (o *CactusNodeAllOf) SetConsortiumId(v string)` + +SetConsortiumId sets ConsortiumId field to given value. + + +### GetMemberId + +`func (o *CactusNodeAllOf) GetMemberId() string` + +GetMemberId returns the MemberId field if non-nil, zero value otherwise. + +### GetMemberIdOk + +`func (o *CactusNodeAllOf) GetMemberIdOk() (*string, bool)` + +GetMemberIdOk returns a tuple with the MemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberId + +`func (o *CactusNodeAllOf) SetMemberId(v string)` + +SetMemberId sets MemberId field to given value. + + +### GetLedgerIds + +`func (o *CactusNodeAllOf) GetLedgerIds() []string` + +GetLedgerIds returns the LedgerIds field if non-nil, zero value otherwise. + +### GetLedgerIdsOk + +`func (o *CactusNodeAllOf) GetLedgerIdsOk() (*[]string, bool)` + +GetLedgerIdsOk returns a tuple with the LedgerIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerIds + +`func (o *CactusNodeAllOf) SetLedgerIds(v []string)` + +SetLedgerIds sets LedgerIds field to given value. + + +### GetPluginInstanceIds + +`func (o *CactusNodeAllOf) GetPluginInstanceIds() []string` + +GetPluginInstanceIds returns the PluginInstanceIds field if non-nil, zero value otherwise. + +### GetPluginInstanceIdsOk + +`func (o *CactusNodeAllOf) GetPluginInstanceIdsOk() (*[]string, bool)` + +GetPluginInstanceIdsOk returns a tuple with the PluginInstanceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPluginInstanceIds + +`func (o *CactusNodeAllOf) SetPluginInstanceIds(v []string)` + +SetPluginInstanceIds sets PluginInstanceIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeMeta.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeMeta.md new file mode 100644 index 00000000000..7c27b7490c7 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/CactusNodeMeta.md @@ -0,0 +1,72 @@ +# CactusNodeMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeApiHost** | **string** | | +**PublicKeyPem** | **string** | The PEM encoded public key that was used to generate the JWS included in the response (the jws property) | + +## Methods + +### NewCactusNodeMeta + +`func NewCactusNodeMeta(nodeApiHost string, publicKeyPem string, ) *CactusNodeMeta` + +NewCactusNodeMeta instantiates a new CactusNodeMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCactusNodeMetaWithDefaults + +`func NewCactusNodeMetaWithDefaults() *CactusNodeMeta` + +NewCactusNodeMetaWithDefaults instantiates a new CactusNodeMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeApiHost + +`func (o *CactusNodeMeta) GetNodeApiHost() string` + +GetNodeApiHost returns the NodeApiHost field if non-nil, zero value otherwise. + +### GetNodeApiHostOk + +`func (o *CactusNodeMeta) GetNodeApiHostOk() (*string, bool)` + +GetNodeApiHostOk returns a tuple with the NodeApiHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeApiHost + +`func (o *CactusNodeMeta) SetNodeApiHost(v string)` + +SetNodeApiHost sets NodeApiHost field to given value. + + +### GetPublicKeyPem + +`func (o *CactusNodeMeta) GetPublicKeyPem() string` + +GetPublicKeyPem returns the PublicKeyPem field if non-nil, zero value otherwise. + +### GetPublicKeyPemOk + +`func (o *CactusNodeMeta) GetPublicKeyPemOk() (*string, bool)` + +GetPublicKeyPemOk returns a tuple with the PublicKeyPem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKeyPem + +`func (o *CactusNodeMeta) SetPublicKeyPem(v string)` + +SetPublicKeyPem sets PublicKeyPem field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md new file mode 100644 index 00000000000..f98fa8c71dc --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithOutTxFinality.md @@ -0,0 +1,11 @@ +# ConsensusAlgorithmFamiliesWithOutTxFinality + +## Enum + + +* `WORK` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithTxFinality.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithTxFinality.md new file mode 100644 index 00000000000..10048af674f --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamiliesWithTxFinality.md @@ -0,0 +1,13 @@ +# ConsensusAlgorithmFamiliesWithTxFinality + +## Enum + + +* `AUTHORITY` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY"`) + +* `STAKE` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamily.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamily.md new file mode 100644 index 00000000000..ecb042ebf31 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsensusAlgorithmFamily.md @@ -0,0 +1,15 @@ +# ConsensusAlgorithmFamily + +## Enum + + +* `AUTHORITY` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY"`) + +* `STAKE` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE"`) + +* `WORK` (value: `"org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Consortium.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Consortium.md new file mode 100644 index 00000000000..1b1eee64d38 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Consortium.md @@ -0,0 +1,114 @@ +# Consortium + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Name** | **string** | | +**MainApiHost** | **string** | | +**MemberIds** | **[]string** | The collection (array) of primary keys of consortium member entities that belong to this Consortium. | [default to []] + +## Methods + +### NewConsortium + +`func NewConsortium(id string, name string, mainApiHost string, memberIds []string, ) *Consortium` + +NewConsortium instantiates a new Consortium object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConsortiumWithDefaults + +`func NewConsortiumWithDefaults() *Consortium` + +NewConsortiumWithDefaults instantiates a new Consortium object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Consortium) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Consortium) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Consortium) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *Consortium) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Consortium) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Consortium) SetName(v string)` + +SetName sets Name field to given value. + + +### GetMainApiHost + +`func (o *Consortium) GetMainApiHost() string` + +GetMainApiHost returns the MainApiHost field if non-nil, zero value otherwise. + +### GetMainApiHostOk + +`func (o *Consortium) GetMainApiHostOk() (*string, bool)` + +GetMainApiHostOk returns a tuple with the MainApiHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainApiHost + +`func (o *Consortium) SetMainApiHost(v string)` + +SetMainApiHost sets MainApiHost field to given value. + + +### GetMemberIds + +`func (o *Consortium) GetMemberIds() []string` + +GetMemberIds returns the MemberIds field if non-nil, zero value otherwise. + +### GetMemberIdsOk + +`func (o *Consortium) GetMemberIdsOk() (*[]string, bool)` + +GetMemberIdsOk returns a tuple with the MemberIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberIds + +`func (o *Consortium) SetMemberIds(v []string)` + +SetMemberIds sets MemberIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumDatabase.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumDatabase.md new file mode 100644 index 00000000000..ef55837f598 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumDatabase.md @@ -0,0 +1,135 @@ +# ConsortiumDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Consortium** | [**[]Consortium**](Consortium.md) | A collection of Consortium entities. In practice this should only ever contain a single consortium, but we defined it as an array to keep the convention up with the rest of the collections defined in the Consortium data in general. Also, if we ever decide to somehow have some sort of consortium to consortium integration (which does not make much sense in the current frame of mind of the author in the year 2020) then having this as an array will have proven itself to be an excellent long term compatibility/extensibility decision indeed. | [default to []] +**Ledger** | [**[]Ledger**](Ledger.md) | The complete collection of all ledger entities in existence within the consortium. | [default to []] +**ConsortiumMember** | [**[]ConsortiumMember**](ConsortiumMember.md) | The complete collection of all consortium member entities in existence within the consortium. | [default to []] +**CactusNode** | [**[]CactusNode**](CactusNode.md) | The complete collection of all cactus nodes entities in existence within the consortium. | [default to []] +**PluginInstance** | [**[]PluginInstance**](PluginInstance.md) | The complete collection of all plugin instance entities in existence within the consortium. | [default to []] + +## Methods + +### NewConsortiumDatabase + +`func NewConsortiumDatabase(consortium []Consortium, ledger []Ledger, consortiumMember []ConsortiumMember, cactusNode []CactusNode, pluginInstance []PluginInstance, ) *ConsortiumDatabase` + +NewConsortiumDatabase instantiates a new ConsortiumDatabase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConsortiumDatabaseWithDefaults + +`func NewConsortiumDatabaseWithDefaults() *ConsortiumDatabase` + +NewConsortiumDatabaseWithDefaults instantiates a new ConsortiumDatabase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConsortium + +`func (o *ConsortiumDatabase) GetConsortium() []Consortium` + +GetConsortium returns the Consortium field if non-nil, zero value otherwise. + +### GetConsortiumOk + +`func (o *ConsortiumDatabase) GetConsortiumOk() (*[]Consortium, bool)` + +GetConsortiumOk returns a tuple with the Consortium field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsortium + +`func (o *ConsortiumDatabase) SetConsortium(v []Consortium)` + +SetConsortium sets Consortium field to given value. + + +### GetLedger + +`func (o *ConsortiumDatabase) GetLedger() []Ledger` + +GetLedger returns the Ledger field if non-nil, zero value otherwise. + +### GetLedgerOk + +`func (o *ConsortiumDatabase) GetLedgerOk() (*[]Ledger, bool)` + +GetLedgerOk returns a tuple with the Ledger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedger + +`func (o *ConsortiumDatabase) SetLedger(v []Ledger)` + +SetLedger sets Ledger field to given value. + + +### GetConsortiumMember + +`func (o *ConsortiumDatabase) GetConsortiumMember() []ConsortiumMember` + +GetConsortiumMember returns the ConsortiumMember field if non-nil, zero value otherwise. + +### GetConsortiumMemberOk + +`func (o *ConsortiumDatabase) GetConsortiumMemberOk() (*[]ConsortiumMember, bool)` + +GetConsortiumMemberOk returns a tuple with the ConsortiumMember field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsortiumMember + +`func (o *ConsortiumDatabase) SetConsortiumMember(v []ConsortiumMember)` + +SetConsortiumMember sets ConsortiumMember field to given value. + + +### GetCactusNode + +`func (o *ConsortiumDatabase) GetCactusNode() []CactusNode` + +GetCactusNode returns the CactusNode field if non-nil, zero value otherwise. + +### GetCactusNodeOk + +`func (o *ConsortiumDatabase) GetCactusNodeOk() (*[]CactusNode, bool)` + +GetCactusNodeOk returns a tuple with the CactusNode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCactusNode + +`func (o *ConsortiumDatabase) SetCactusNode(v []CactusNode)` + +SetCactusNode sets CactusNode field to given value. + + +### GetPluginInstance + +`func (o *ConsortiumDatabase) GetPluginInstance() []PluginInstance` + +GetPluginInstance returns the PluginInstance field if non-nil, zero value otherwise. + +### GetPluginInstanceOk + +`func (o *ConsortiumDatabase) GetPluginInstanceOk() (*[]PluginInstance, bool)` + +GetPluginInstanceOk returns a tuple with the PluginInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPluginInstance + +`func (o *ConsortiumDatabase) SetPluginInstance(v []PluginInstance)` + +SetPluginInstance sets PluginInstance field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumMember.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumMember.md new file mode 100644 index 00000000000..315b8db979f --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/ConsortiumMember.md @@ -0,0 +1,93 @@ +# ConsortiumMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Name** | **string** | The human readable name a Consortium member can be referred to while making it easy for humans to distinguish this particular consortium member entity from any other ones. | +**NodeIds** | **[]string** | | [default to []] + +## Methods + +### NewConsortiumMember + +`func NewConsortiumMember(id string, name string, nodeIds []string, ) *ConsortiumMember` + +NewConsortiumMember instantiates a new ConsortiumMember object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConsortiumMemberWithDefaults + +`func NewConsortiumMemberWithDefaults() *ConsortiumMember` + +NewConsortiumMemberWithDefaults instantiates a new ConsortiumMember object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ConsortiumMember) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConsortiumMember) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConsortiumMember) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ConsortiumMember) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConsortiumMember) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConsortiumMember) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNodeIds + +`func (o *ConsortiumMember) GetNodeIds() []string` + +GetNodeIds returns the NodeIds field if non-nil, zero value otherwise. + +### GetNodeIdsOk + +`func (o *ConsortiumMember) GetNodeIdsOk() (*[]string, bool)` + +GetNodeIdsOk returns a tuple with the NodeIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeIds + +`func (o *ConsortiumMember) SetNodeIds(v []string)` + +SetNodeIds sets NodeIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Constants.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Constants.md new file mode 100644 index 00000000000..c9467ce1e2b --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Constants.md @@ -0,0 +1,11 @@ +# Constants + +## Enum + + +* `SocketIoConnectionPathV1` (value: `"/api/v1/async/socket-io/connect"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..bc1dbbfacf8 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to check the presence of on the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..fd82de447d4 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md new file mode 100644 index 00000000000..8997952f375 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectRequestV1.md @@ -0,0 +1,51 @@ +# GetObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the object store. | + +## Methods + +### NewGetObjectRequestV1 + +`func NewGetObjectRequestV1(key string, ) *GetObjectRequestV1` + +NewGetObjectRequestV1 instantiates a new GetObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetObjectRequestV1WithDefaults + +`func NewGetObjectRequestV1WithDefaults() *GetObjectRequestV1` + +NewGetObjectRequestV1WithDefaults instantiates a new GetObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md new file mode 100644 index 00000000000..4ede85a6bc6 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/GetObjectResponseV1.md @@ -0,0 +1,72 @@ +# GetObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the object store. | +**Value** | **string** | The value associated with the requested key in the object store as a string. | + +## Methods + +### NewGetObjectResponseV1 + +`func NewGetObjectResponseV1(key string, value string, ) *GetObjectResponseV1` + +NewGetObjectResponseV1 instantiates a new GetObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetObjectResponseV1WithDefaults + +`func NewGetObjectResponseV1WithDefaults() *GetObjectResponseV1` + +NewGetObjectResponseV1WithDefaults instantiates a new GetObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetObjectResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetObjectResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetObjectResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..705d35faa23 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the entry store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md new file mode 100644 index 00000000000..612dadfe057 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectRequestV1.md @@ -0,0 +1,51 @@ +# HasObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the object store. | + +## Methods + +### NewHasObjectRequestV1 + +`func NewHasObjectRequestV1(key string, ) *HasObjectRequestV1` + +NewHasObjectRequestV1 instantiates a new HasObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasObjectRequestV1WithDefaults + +`func NewHasObjectRequestV1WithDefaults() *HasObjectRequestV1` + +NewHasObjectRequestV1WithDefaults instantiates a new HasObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md new file mode 100644 index 00000000000..bef915357e8 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/HasObjectResponseV1.md @@ -0,0 +1,93 @@ +# HasObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the object store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an object under 'key'. | + +## Methods + +### NewHasObjectResponseV1 + +`func NewHasObjectResponseV1(key string, checkedAt string, isPresent bool, ) *HasObjectResponseV1` + +NewHasObjectResponseV1 instantiates a new HasObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasObjectResponseV1WithDefaults + +`func NewHasObjectResponseV1WithDefaults() *HasObjectResponseV1` + +NewHasObjectResponseV1WithDefaults instantiates a new HasObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasObjectResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasObjectResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasObjectResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasObjectResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasObjectResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasObjectResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md new file mode 100644 index 00000000000..ad9224d3a01 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md @@ -0,0 +1,72 @@ +# JWSGeneral + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Payload** | **string** | | +**Signatures** | [**[]JWSRecipient**](JWSRecipient.md) | | + +## Methods + +### NewJWSGeneral + +`func NewJWSGeneral(payload string, signatures []JWSRecipient, ) *JWSGeneral` + +NewJWSGeneral instantiates a new JWSGeneral object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJWSGeneralWithDefaults + +`func NewJWSGeneralWithDefaults() *JWSGeneral` + +NewJWSGeneralWithDefaults instantiates a new JWSGeneral object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPayload + +`func (o *JWSGeneral) GetPayload() string` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *JWSGeneral) GetPayloadOk() (*string, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *JWSGeneral) SetPayload(v string)` + +SetPayload sets Payload field to given value. + + +### GetSignatures + +`func (o *JWSGeneral) GetSignatures() []JWSRecipient` + +GetSignatures returns the Signatures field if non-nil, zero value otherwise. + +### GetSignaturesOk + +`func (o *JWSGeneral) GetSignaturesOk() (*[]JWSRecipient, bool)` + +GetSignaturesOk returns a tuple with the Signatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignatures + +`func (o *JWSGeneral) SetSignatures(v []JWSRecipient)` + +SetSignatures sets Signatures field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md new file mode 100644 index 00000000000..bb9c096427e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md @@ -0,0 +1,103 @@ +# JWSRecipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signature** | **string** | | +**Protected** | Pointer to **string** | | [optional] +**Header** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewJWSRecipient + +`func NewJWSRecipient(signature string, ) *JWSRecipient` + +NewJWSRecipient instantiates a new JWSRecipient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJWSRecipientWithDefaults + +`func NewJWSRecipientWithDefaults() *JWSRecipient` + +NewJWSRecipientWithDefaults instantiates a new JWSRecipient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignature + +`func (o *JWSRecipient) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *JWSRecipient) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *JWSRecipient) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetProtected + +`func (o *JWSRecipient) GetProtected() string` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *JWSRecipient) GetProtectedOk() (*string, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *JWSRecipient) SetProtected(v string)` + +SetProtected sets Protected field to given value. + +### HasProtected + +`func (o *JWSRecipient) HasProtected() bool` + +HasProtected returns a boolean if a field has been set. + +### GetHeader + +`func (o *JWSRecipient) GetHeader() map[string]interface{}` + +GetHeader returns the Header field if non-nil, zero value otherwise. + +### GetHeaderOk + +`func (o *JWSRecipient) GetHeaderOk() (*map[string]interface{}, bool)` + +GetHeaderOk returns a tuple with the Header field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeader + +`func (o *JWSRecipient) SetHeader(v map[string]interface{})` + +SetHeader sets Header field to given value. + +### HasHeader + +`func (o *JWSRecipient) HasHeader() bool` + +HasHeader returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Ledger.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Ledger.md new file mode 100644 index 00000000000..fe34fdb4d80 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/Ledger.md @@ -0,0 +1,98 @@ +# Ledger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**LedgerType** | [**LedgerType**](LedgerType.md) | | +**ConsortiumMemberId** | Pointer to **string** | | [optional] + +## Methods + +### NewLedger + +`func NewLedger(id string, ledgerType LedgerType, ) *Ledger` + +NewLedger instantiates a new Ledger object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLedgerWithDefaults + +`func NewLedgerWithDefaults() *Ledger` + +NewLedgerWithDefaults instantiates a new Ledger object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Ledger) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Ledger) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Ledger) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLedgerType + +`func (o *Ledger) GetLedgerType() LedgerType` + +GetLedgerType returns the LedgerType field if non-nil, zero value otherwise. + +### GetLedgerTypeOk + +`func (o *Ledger) GetLedgerTypeOk() (*LedgerType, bool)` + +GetLedgerTypeOk returns a tuple with the LedgerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerType + +`func (o *Ledger) SetLedgerType(v LedgerType)` + +SetLedgerType sets LedgerType field to given value. + + +### GetConsortiumMemberId + +`func (o *Ledger) GetConsortiumMemberId() string` + +GetConsortiumMemberId returns the ConsortiumMemberId field if non-nil, zero value otherwise. + +### GetConsortiumMemberIdOk + +`func (o *Ledger) GetConsortiumMemberIdOk() (*string, bool)` + +GetConsortiumMemberIdOk returns a tuple with the ConsortiumMemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsortiumMemberId + +`func (o *Ledger) SetConsortiumMemberId(v string)` + +SetConsortiumMemberId sets ConsortiumMemberId field to given value. + +### HasConsortiumMemberId + +`func (o *Ledger) HasConsortiumMemberId() bool` + +HasConsortiumMemberId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/LedgerType.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/LedgerType.md new file mode 100644 index 00000000000..12304a47cb0 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/LedgerType.md @@ -0,0 +1,25 @@ +# LedgerType + +## Enum + + +* `BESU_1_X` (value: `"BESU_1X"`) + +* `BESU_2_X` (value: `"BESU_2X"`) + +* `BURROW_0_X` (value: `"BURROW_0X"`) + +* `CORDA_4_X` (value: `"CORDA_4X"`) + +* `FABRIC_14_X` (value: `"FABRIC_14X"`) + +* `FABRIC_2` (value: `"FABRIC_2"`) + +* `QUORUM_2_X` (value: `"QUORUM_2X"`) + +* `SAWTOOTH_1_X` (value: `"SAWTOOTH_1X"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImport.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImport.md new file mode 100644 index 00000000000..f2046a2d12d --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImport.md @@ -0,0 +1,129 @@ +# PluginImport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PackageName** | **string** | | +**Type** | [**PluginImportType**](PluginImportType.md) | | +**Action** | [**PluginImportAction**](PluginImportAction.md) | | +**Options** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPluginImport + +`func NewPluginImport(packageName string, type_ PluginImportType, action PluginImportAction, ) *PluginImport` + +NewPluginImport instantiates a new PluginImport object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPluginImportWithDefaults + +`func NewPluginImportWithDefaults() *PluginImport` + +NewPluginImportWithDefaults instantiates a new PluginImport object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageName + +`func (o *PluginImport) GetPackageName() string` + +GetPackageName returns the PackageName field if non-nil, zero value otherwise. + +### GetPackageNameOk + +`func (o *PluginImport) GetPackageNameOk() (*string, bool)` + +GetPackageNameOk returns a tuple with the PackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageName + +`func (o *PluginImport) SetPackageName(v string)` + +SetPackageName sets PackageName field to given value. + + +### GetType + +`func (o *PluginImport) GetType() PluginImportType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PluginImport) GetTypeOk() (*PluginImportType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PluginImport) SetType(v PluginImportType)` + +SetType sets Type field to given value. + + +### GetAction + +`func (o *PluginImport) GetAction() PluginImportAction` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PluginImport) GetActionOk() (*PluginImportAction, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PluginImport) SetAction(v PluginImportAction)` + +SetAction sets Action field to given value. + + +### GetOptions + +`func (o *PluginImport) GetOptions() interface{}` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *PluginImport) GetOptionsOk() (*interface{}, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *PluginImport) SetOptions(v interface{})` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *PluginImport) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *PluginImport) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *PluginImport) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportAction.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportAction.md new file mode 100644 index 00000000000..478c6ae063e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportAction.md @@ -0,0 +1,13 @@ +# PluginImportAction + +## Enum + + +* `INSTANTIATE` (value: `"org.hyperledger.cactus.plugin_import_action.INSTANTIATE"`) + +* `INSTALL` (value: `"org.hyperledger.cactus.plugin_import_action.INSTALL"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportType.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportType.md new file mode 100644 index 00000000000..22555fa6a5b --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginImportType.md @@ -0,0 +1,13 @@ +# PluginImportType + +## Enum + + +* `LOCAL` (value: `"org.hyperledger.cactus.plugin_import_type.LOCAL"`) + +* `REMOTE` (value: `"org.hyperledger.cactus.plugin_import_type.REMOTE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginInstance.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginInstance.md new file mode 100644 index 00000000000..546a2714dc6 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/PluginInstance.md @@ -0,0 +1,72 @@ +# PluginInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**PackageName** | **string** | | + +## Methods + +### NewPluginInstance + +`func NewPluginInstance(id string, packageName string, ) *PluginInstance` + +NewPluginInstance instantiates a new PluginInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPluginInstanceWithDefaults + +`func NewPluginInstanceWithDefaults() *PluginInstance` + +NewPluginInstanceWithDefaults instantiates a new PluginInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PluginInstance) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PluginInstance) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PluginInstance) SetId(v string)` + +SetId sets Id field to given value. + + +### GetPackageName + +`func (o *PluginInstance) GetPackageName() string` + +GetPackageName returns the PackageName field if non-nil, zero value otherwise. + +### GetPackageNameOk + +`func (o *PluginInstance) GetPackageNameOk() (*string, bool)` + +GetPackageNameOk returns a tuple with the PackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageName + +`func (o *PluginInstance) SetPackageName(v string)` + +SetPackageName sets PackageName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md new file mode 100644 index 00000000000..143dd24b093 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectRequestV1.md @@ -0,0 +1,72 @@ +# SetObjectRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set in the object store. | +**Value** | **string** | The value that will be associated with the key in the object store. | + +## Methods + +### NewSetObjectRequestV1 + +`func NewSetObjectRequestV1(key string, value string, ) *SetObjectRequestV1` + +NewSetObjectRequestV1 instantiates a new SetObjectRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetObjectRequestV1WithDefaults + +`func NewSetObjectRequestV1WithDefaults() *SetObjectRequestV1` + +NewSetObjectRequestV1WithDefaults instantiates a new SetObjectRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetObjectRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetObjectRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetObjectRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetObjectRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetObjectRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetObjectRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md new file mode 100644 index 00000000000..d8ff97d274d --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/docs/SetObjectResponseV1.md @@ -0,0 +1,51 @@ +# SetObjectResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value in the object store. | + +## Methods + +### NewSetObjectResponseV1 + +`func NewSetObjectResponseV1(key string, ) *SetObjectResponseV1` + +NewSetObjectResponseV1 instantiates a new SetObjectResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetObjectResponseV1WithDefaults + +`func NewSetObjectResponseV1WithDefaults() *SetObjectResponseV1` + +NewSetObjectResponseV1WithDefaults instantiates a new SetObjectResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetObjectResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetObjectResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetObjectResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..fca41b0c9be --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-core-api/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..11121484f54 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-core-api/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node.go new file mode 100644 index 00000000000..99cf2652d00 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node.go @@ -0,0 +1,281 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the CactusNode type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CactusNode{} + +// CactusNode A Cactus node can be a single server, or a set of servers behind a load balancer acting as one. +type CactusNode struct { + NodeApiHost string `json:"nodeApiHost"` + // The PEM encoded public key that was used to generate the JWS included in the response (the jws property) + PublicKeyPem string `json:"publicKeyPem"` + Id string `json:"id"` + ConsortiumId string `json:"consortiumId"` + MemberId string `json:"memberId"` + // Stores an array of Ledger entity IDs that are reachable (routable) via this Cactus Node. This information is used by the client side SDK API client to figure out at runtime where to send API requests that are specific to a certain ledger such as requests to execute transactions. + LedgerIds []string `json:"ledgerIds"` + PluginInstanceIds []string `json:"pluginInstanceIds"` +} + +// NewCactusNode instantiates a new CactusNode object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCactusNode(nodeApiHost string, publicKeyPem string, id string, consortiumId string, memberId string, ledgerIds []string, pluginInstanceIds []string) *CactusNode { + this := CactusNode{} + this.NodeApiHost = nodeApiHost + this.PublicKeyPem = publicKeyPem + this.Id = id + this.ConsortiumId = consortiumId + this.MemberId = memberId + this.LedgerIds = ledgerIds + this.PluginInstanceIds = pluginInstanceIds + return &this +} + +// NewCactusNodeWithDefaults instantiates a new CactusNode object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCactusNodeWithDefaults() *CactusNode { + this := CactusNode{} + return &this +} + +// GetNodeApiHost returns the NodeApiHost field value +func (o *CactusNode) GetNodeApiHost() string { + if o == nil { + var ret string + return ret + } + + return o.NodeApiHost +} + +// GetNodeApiHostOk returns a tuple with the NodeApiHost field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetNodeApiHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NodeApiHost, true +} + +// SetNodeApiHost sets field value +func (o *CactusNode) SetNodeApiHost(v string) { + o.NodeApiHost = v +} + +// GetPublicKeyPem returns the PublicKeyPem field value +func (o *CactusNode) GetPublicKeyPem() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKeyPem +} + +// GetPublicKeyPemOk returns a tuple with the PublicKeyPem field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetPublicKeyPemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKeyPem, true +} + +// SetPublicKeyPem sets field value +func (o *CactusNode) SetPublicKeyPem(v string) { + o.PublicKeyPem = v +} + +// GetId returns the Id field value +func (o *CactusNode) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CactusNode) SetId(v string) { + o.Id = v +} + +// GetConsortiumId returns the ConsortiumId field value +func (o *CactusNode) GetConsortiumId() string { + if o == nil { + var ret string + return ret + } + + return o.ConsortiumId +} + +// GetConsortiumIdOk returns a tuple with the ConsortiumId field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetConsortiumIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConsortiumId, true +} + +// SetConsortiumId sets field value +func (o *CactusNode) SetConsortiumId(v string) { + o.ConsortiumId = v +} + +// GetMemberId returns the MemberId field value +func (o *CactusNode) GetMemberId() string { + if o == nil { + var ret string + return ret + } + + return o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetMemberIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MemberId, true +} + +// SetMemberId sets field value +func (o *CactusNode) SetMemberId(v string) { + o.MemberId = v +} + +// GetLedgerIds returns the LedgerIds field value +func (o *CactusNode) GetLedgerIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.LedgerIds +} + +// GetLedgerIdsOk returns a tuple with the LedgerIds field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetLedgerIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.LedgerIds, true +} + +// SetLedgerIds sets field value +func (o *CactusNode) SetLedgerIds(v []string) { + o.LedgerIds = v +} + +// GetPluginInstanceIds returns the PluginInstanceIds field value +func (o *CactusNode) GetPluginInstanceIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.PluginInstanceIds +} + +// GetPluginInstanceIdsOk returns a tuple with the PluginInstanceIds field value +// and a boolean to check if the value has been set. +func (o *CactusNode) GetPluginInstanceIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.PluginInstanceIds, true +} + +// SetPluginInstanceIds sets field value +func (o *CactusNode) SetPluginInstanceIds(v []string) { + o.PluginInstanceIds = v +} + +func (o CactusNode) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CactusNode) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nodeApiHost"] = o.NodeApiHost + toSerialize["publicKeyPem"] = o.PublicKeyPem + toSerialize["id"] = o.Id + toSerialize["consortiumId"] = o.ConsortiumId + toSerialize["memberId"] = o.MemberId + toSerialize["ledgerIds"] = o.LedgerIds + toSerialize["pluginInstanceIds"] = o.PluginInstanceIds + return toSerialize, nil +} + +type NullableCactusNode struct { + value *CactusNode + isSet bool +} + +func (v NullableCactusNode) Get() *CactusNode { + return v.value +} + +func (v *NullableCactusNode) Set(val *CactusNode) { + v.value = val + v.isSet = true +} + +func (v NullableCactusNode) IsSet() bool { + return v.isSet +} + +func (v *NullableCactusNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCactusNode(val *CactusNode) *NullableCactusNode { + return &NullableCactusNode{value: val, isSet: true} +} + +func (v NullableCactusNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCactusNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_all_of.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_all_of.go new file mode 100644 index 00000000000..72eeb44fe45 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_all_of.go @@ -0,0 +1,226 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the CactusNodeAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CactusNodeAllOf{} + +// CactusNodeAllOf struct for CactusNodeAllOf +type CactusNodeAllOf struct { + Id string `json:"id"` + ConsortiumId string `json:"consortiumId"` + MemberId string `json:"memberId"` + // Stores an array of Ledger entity IDs that are reachable (routable) via this Cactus Node. This information is used by the client side SDK API client to figure out at runtime where to send API requests that are specific to a certain ledger such as requests to execute transactions. + LedgerIds []string `json:"ledgerIds"` + PluginInstanceIds []string `json:"pluginInstanceIds"` +} + +// NewCactusNodeAllOf instantiates a new CactusNodeAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCactusNodeAllOf(id string, consortiumId string, memberId string, ledgerIds []string, pluginInstanceIds []string) *CactusNodeAllOf { + this := CactusNodeAllOf{} + this.Id = id + this.ConsortiumId = consortiumId + this.MemberId = memberId + this.LedgerIds = ledgerIds + this.PluginInstanceIds = pluginInstanceIds + return &this +} + +// NewCactusNodeAllOfWithDefaults instantiates a new CactusNodeAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCactusNodeAllOfWithDefaults() *CactusNodeAllOf { + this := CactusNodeAllOf{} + return &this +} + +// GetId returns the Id field value +func (o *CactusNodeAllOf) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CactusNodeAllOf) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CactusNodeAllOf) SetId(v string) { + o.Id = v +} + +// GetConsortiumId returns the ConsortiumId field value +func (o *CactusNodeAllOf) GetConsortiumId() string { + if o == nil { + var ret string + return ret + } + + return o.ConsortiumId +} + +// GetConsortiumIdOk returns a tuple with the ConsortiumId field value +// and a boolean to check if the value has been set. +func (o *CactusNodeAllOf) GetConsortiumIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConsortiumId, true +} + +// SetConsortiumId sets field value +func (o *CactusNodeAllOf) SetConsortiumId(v string) { + o.ConsortiumId = v +} + +// GetMemberId returns the MemberId field value +func (o *CactusNodeAllOf) GetMemberId() string { + if o == nil { + var ret string + return ret + } + + return o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value +// and a boolean to check if the value has been set. +func (o *CactusNodeAllOf) GetMemberIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MemberId, true +} + +// SetMemberId sets field value +func (o *CactusNodeAllOf) SetMemberId(v string) { + o.MemberId = v +} + +// GetLedgerIds returns the LedgerIds field value +func (o *CactusNodeAllOf) GetLedgerIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.LedgerIds +} + +// GetLedgerIdsOk returns a tuple with the LedgerIds field value +// and a boolean to check if the value has been set. +func (o *CactusNodeAllOf) GetLedgerIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.LedgerIds, true +} + +// SetLedgerIds sets field value +func (o *CactusNodeAllOf) SetLedgerIds(v []string) { + o.LedgerIds = v +} + +// GetPluginInstanceIds returns the PluginInstanceIds field value +func (o *CactusNodeAllOf) GetPluginInstanceIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.PluginInstanceIds +} + +// GetPluginInstanceIdsOk returns a tuple with the PluginInstanceIds field value +// and a boolean to check if the value has been set. +func (o *CactusNodeAllOf) GetPluginInstanceIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.PluginInstanceIds, true +} + +// SetPluginInstanceIds sets field value +func (o *CactusNodeAllOf) SetPluginInstanceIds(v []string) { + o.PluginInstanceIds = v +} + +func (o CactusNodeAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CactusNodeAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["consortiumId"] = o.ConsortiumId + toSerialize["memberId"] = o.MemberId + toSerialize["ledgerIds"] = o.LedgerIds + toSerialize["pluginInstanceIds"] = o.PluginInstanceIds + return toSerialize, nil +} + +type NullableCactusNodeAllOf struct { + value *CactusNodeAllOf + isSet bool +} + +func (v NullableCactusNodeAllOf) Get() *CactusNodeAllOf { + return v.value +} + +func (v *NullableCactusNodeAllOf) Set(val *CactusNodeAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCactusNodeAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCactusNodeAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCactusNodeAllOf(val *CactusNodeAllOf) *NullableCactusNodeAllOf { + return &NullableCactusNodeAllOf{value: val, isSet: true} +} + +func (v NullableCactusNodeAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCactusNodeAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_meta.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_meta.go new file mode 100644 index 00000000000..135598fb9eb --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_cactus_node_meta.go @@ -0,0 +1,145 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the CactusNodeMeta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CactusNodeMeta{} + +// CactusNodeMeta A Cactus node meta information +type CactusNodeMeta struct { + NodeApiHost string `json:"nodeApiHost"` + // The PEM encoded public key that was used to generate the JWS included in the response (the jws property) + PublicKeyPem string `json:"publicKeyPem"` +} + +// NewCactusNodeMeta instantiates a new CactusNodeMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCactusNodeMeta(nodeApiHost string, publicKeyPem string) *CactusNodeMeta { + this := CactusNodeMeta{} + this.NodeApiHost = nodeApiHost + this.PublicKeyPem = publicKeyPem + return &this +} + +// NewCactusNodeMetaWithDefaults instantiates a new CactusNodeMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCactusNodeMetaWithDefaults() *CactusNodeMeta { + this := CactusNodeMeta{} + return &this +} + +// GetNodeApiHost returns the NodeApiHost field value +func (o *CactusNodeMeta) GetNodeApiHost() string { + if o == nil { + var ret string + return ret + } + + return o.NodeApiHost +} + +// GetNodeApiHostOk returns a tuple with the NodeApiHost field value +// and a boolean to check if the value has been set. +func (o *CactusNodeMeta) GetNodeApiHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NodeApiHost, true +} + +// SetNodeApiHost sets field value +func (o *CactusNodeMeta) SetNodeApiHost(v string) { + o.NodeApiHost = v +} + +// GetPublicKeyPem returns the PublicKeyPem field value +func (o *CactusNodeMeta) GetPublicKeyPem() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKeyPem +} + +// GetPublicKeyPemOk returns a tuple with the PublicKeyPem field value +// and a boolean to check if the value has been set. +func (o *CactusNodeMeta) GetPublicKeyPemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKeyPem, true +} + +// SetPublicKeyPem sets field value +func (o *CactusNodeMeta) SetPublicKeyPem(v string) { + o.PublicKeyPem = v +} + +func (o CactusNodeMeta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CactusNodeMeta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nodeApiHost"] = o.NodeApiHost + toSerialize["publicKeyPem"] = o.PublicKeyPem + return toSerialize, nil +} + +type NullableCactusNodeMeta struct { + value *CactusNodeMeta + isSet bool +} + +func (v NullableCactusNodeMeta) Get() *CactusNodeMeta { + return v.value +} + +func (v *NullableCactusNodeMeta) Set(val *CactusNodeMeta) { + v.value = val + v.isSet = true +} + +func (v NullableCactusNodeMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableCactusNodeMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCactusNodeMeta(val *CactusNodeMeta) *NullableCactusNodeMeta { + return &NullableCactusNodeMeta{value: val, isSet: true} +} + +func (v NullableCactusNodeMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCactusNodeMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_out_tx_finality.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_out_tx_finality.go new file mode 100644 index 00000000000..b025a6602a2 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_out_tx_finality.go @@ -0,0 +1,109 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// ConsensusAlgorithmFamiliesWithOutTxFinality Enumerates a list of consensus algorithm families that do not provide immediate finality +type ConsensusAlgorithmFamiliesWithOutTxFinality string + +// List of ConsensusAlgorithmFamiliesWithOutTxFinality +const ( + WORK ConsensusAlgorithmFamiliesWithOutTxFinality = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK" +) + +// All allowed values of ConsensusAlgorithmFamiliesWithOutTxFinality enum +var AllowedConsensusAlgorithmFamiliesWithOutTxFinalityEnumValues = []ConsensusAlgorithmFamiliesWithOutTxFinality{ + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK", +} + +func (v *ConsensusAlgorithmFamiliesWithOutTxFinality) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsensusAlgorithmFamiliesWithOutTxFinality(value) + for _, existing := range AllowedConsensusAlgorithmFamiliesWithOutTxFinalityEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsensusAlgorithmFamiliesWithOutTxFinality", value) +} + +// NewConsensusAlgorithmFamiliesWithOutTxFinalityFromValue returns a pointer to a valid ConsensusAlgorithmFamiliesWithOutTxFinality +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsensusAlgorithmFamiliesWithOutTxFinalityFromValue(v string) (*ConsensusAlgorithmFamiliesWithOutTxFinality, error) { + ev := ConsensusAlgorithmFamiliesWithOutTxFinality(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsensusAlgorithmFamiliesWithOutTxFinality: valid values are %v", v, AllowedConsensusAlgorithmFamiliesWithOutTxFinalityEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsensusAlgorithmFamiliesWithOutTxFinality) IsValid() bool { + for _, existing := range AllowedConsensusAlgorithmFamiliesWithOutTxFinalityEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsensusAlgorithmFamiliesWithOutTxFinality value +func (v ConsensusAlgorithmFamiliesWithOutTxFinality) Ptr() *ConsensusAlgorithmFamiliesWithOutTxFinality { + return &v +} + +type NullableConsensusAlgorithmFamiliesWithOutTxFinality struct { + value *ConsensusAlgorithmFamiliesWithOutTxFinality + isSet bool +} + +func (v NullableConsensusAlgorithmFamiliesWithOutTxFinality) Get() *ConsensusAlgorithmFamiliesWithOutTxFinality { + return v.value +} + +func (v *NullableConsensusAlgorithmFamiliesWithOutTxFinality) Set(val *ConsensusAlgorithmFamiliesWithOutTxFinality) { + v.value = val + v.isSet = true +} + +func (v NullableConsensusAlgorithmFamiliesWithOutTxFinality) IsSet() bool { + return v.isSet +} + +func (v *NullableConsensusAlgorithmFamiliesWithOutTxFinality) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsensusAlgorithmFamiliesWithOutTxFinality(val *ConsensusAlgorithmFamiliesWithOutTxFinality) *NullableConsensusAlgorithmFamiliesWithOutTxFinality { + return &NullableConsensusAlgorithmFamiliesWithOutTxFinality{value: val, isSet: true} +} + +func (v NullableConsensusAlgorithmFamiliesWithOutTxFinality) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsensusAlgorithmFamiliesWithOutTxFinality) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_tx_finality.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_tx_finality.go new file mode 100644 index 00000000000..9804e747a84 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_families_with_tx_finality.go @@ -0,0 +1,111 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// ConsensusAlgorithmFamiliesWithTxFinality Enumerates a list of consensus algorithm families that provide immediate finality +type ConsensusAlgorithmFamiliesWithTxFinality string + +// List of ConsensusAlgorithmFamiliesWithTxFinality +const ( + AUTHORITY ConsensusAlgorithmFamiliesWithTxFinality = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY" + STAKE ConsensusAlgorithmFamiliesWithTxFinality = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE" +) + +// All allowed values of ConsensusAlgorithmFamiliesWithTxFinality enum +var AllowedConsensusAlgorithmFamiliesWithTxFinalityEnumValues = []ConsensusAlgorithmFamiliesWithTxFinality{ + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE", +} + +func (v *ConsensusAlgorithmFamiliesWithTxFinality) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsensusAlgorithmFamiliesWithTxFinality(value) + for _, existing := range AllowedConsensusAlgorithmFamiliesWithTxFinalityEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsensusAlgorithmFamiliesWithTxFinality", value) +} + +// NewConsensusAlgorithmFamiliesWithTxFinalityFromValue returns a pointer to a valid ConsensusAlgorithmFamiliesWithTxFinality +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsensusAlgorithmFamiliesWithTxFinalityFromValue(v string) (*ConsensusAlgorithmFamiliesWithTxFinality, error) { + ev := ConsensusAlgorithmFamiliesWithTxFinality(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsensusAlgorithmFamiliesWithTxFinality: valid values are %v", v, AllowedConsensusAlgorithmFamiliesWithTxFinalityEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsensusAlgorithmFamiliesWithTxFinality) IsValid() bool { + for _, existing := range AllowedConsensusAlgorithmFamiliesWithTxFinalityEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsensusAlgorithmFamiliesWithTxFinality value +func (v ConsensusAlgorithmFamiliesWithTxFinality) Ptr() *ConsensusAlgorithmFamiliesWithTxFinality { + return &v +} + +type NullableConsensusAlgorithmFamiliesWithTxFinality struct { + value *ConsensusAlgorithmFamiliesWithTxFinality + isSet bool +} + +func (v NullableConsensusAlgorithmFamiliesWithTxFinality) Get() *ConsensusAlgorithmFamiliesWithTxFinality { + return v.value +} + +func (v *NullableConsensusAlgorithmFamiliesWithTxFinality) Set(val *ConsensusAlgorithmFamiliesWithTxFinality) { + v.value = val + v.isSet = true +} + +func (v NullableConsensusAlgorithmFamiliesWithTxFinality) IsSet() bool { + return v.isSet +} + +func (v *NullableConsensusAlgorithmFamiliesWithTxFinality) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsensusAlgorithmFamiliesWithTxFinality(val *ConsensusAlgorithmFamiliesWithTxFinality) *NullableConsensusAlgorithmFamiliesWithTxFinality { + return &NullableConsensusAlgorithmFamiliesWithTxFinality{value: val, isSet: true} +} + +func (v NullableConsensusAlgorithmFamiliesWithTxFinality) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsensusAlgorithmFamiliesWithTxFinality) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_family.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_family.go new file mode 100644 index 00000000000..5e42c46dd3c --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consensus_algorithm_family.go @@ -0,0 +1,113 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// ConsensusAlgorithmFamily Enumerates a list of consensus algorithm families in existence. Does not intend to be an exhaustive list, just a practical one, meaning that we only include items here that are relevant to Hyperledger Cactus in fulfilling its own duties. This can be extended later as more sophisticated features of Cactus get implemented. This enum is meant to be first and foremost a useful abstraction for achieving practical tasks, not an encyclopedia and therefore we ask of everyone that this to be extended only in ways that serve a practical purpose for the runtime behavior of Cactus or Cactus plugins in general. The bottom line is that we can accept this enum being not 100% accurate as long as it 100% satisfies what it was designed to do. +type ConsensusAlgorithmFamily string + +// List of ConsensusAlgorithmFamily +const ( + AUTHORITY ConsensusAlgorithmFamily = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY" + STAKE ConsensusAlgorithmFamily = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE" + WORK ConsensusAlgorithmFamily = "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK" +) + +// All allowed values of ConsensusAlgorithmFamily enum +var AllowedConsensusAlgorithmFamilyEnumValues = []ConsensusAlgorithmFamily{ + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK", +} + +func (v *ConsensusAlgorithmFamily) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsensusAlgorithmFamily(value) + for _, existing := range AllowedConsensusAlgorithmFamilyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsensusAlgorithmFamily", value) +} + +// NewConsensusAlgorithmFamilyFromValue returns a pointer to a valid ConsensusAlgorithmFamily +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsensusAlgorithmFamilyFromValue(v string) (*ConsensusAlgorithmFamily, error) { + ev := ConsensusAlgorithmFamily(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsensusAlgorithmFamily: valid values are %v", v, AllowedConsensusAlgorithmFamilyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsensusAlgorithmFamily) IsValid() bool { + for _, existing := range AllowedConsensusAlgorithmFamilyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsensusAlgorithmFamily value +func (v ConsensusAlgorithmFamily) Ptr() *ConsensusAlgorithmFamily { + return &v +} + +type NullableConsensusAlgorithmFamily struct { + value *ConsensusAlgorithmFamily + isSet bool +} + +func (v NullableConsensusAlgorithmFamily) Get() *ConsensusAlgorithmFamily { + return v.value +} + +func (v *NullableConsensusAlgorithmFamily) Set(val *ConsensusAlgorithmFamily) { + v.value = val + v.isSet = true +} + +func (v NullableConsensusAlgorithmFamily) IsSet() bool { + return v.isSet +} + +func (v *NullableConsensusAlgorithmFamily) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsensusAlgorithmFamily(val *ConsensusAlgorithmFamily) *NullableConsensusAlgorithmFamily { + return &NullableConsensusAlgorithmFamily{value: val, isSet: true} +} + +func (v NullableConsensusAlgorithmFamily) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsensusAlgorithmFamily) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium.go new file mode 100644 index 00000000000..2012b22e18c --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium.go @@ -0,0 +1,199 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the Consortium type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Consortium{} + +// Consortium struct for Consortium +type Consortium struct { + Id string `json:"id"` + Name string `json:"name"` + MainApiHost string `json:"mainApiHost"` + // The collection (array) of primary keys of consortium member entities that belong to this Consortium. + MemberIds []string `json:"memberIds"` +} + +// NewConsortium instantiates a new Consortium object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsortium(id string, name string, mainApiHost string, memberIds []string) *Consortium { + this := Consortium{} + this.Id = id + this.Name = name + this.MainApiHost = mainApiHost + this.MemberIds = memberIds + return &this +} + +// NewConsortiumWithDefaults instantiates a new Consortium object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsortiumWithDefaults() *Consortium { + this := Consortium{} + return &this +} + +// GetId returns the Id field value +func (o *Consortium) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Consortium) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Consortium) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *Consortium) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Consortium) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Consortium) SetName(v string) { + o.Name = v +} + +// GetMainApiHost returns the MainApiHost field value +func (o *Consortium) GetMainApiHost() string { + if o == nil { + var ret string + return ret + } + + return o.MainApiHost +} + +// GetMainApiHostOk returns a tuple with the MainApiHost field value +// and a boolean to check if the value has been set. +func (o *Consortium) GetMainApiHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MainApiHost, true +} + +// SetMainApiHost sets field value +func (o *Consortium) SetMainApiHost(v string) { + o.MainApiHost = v +} + +// GetMemberIds returns the MemberIds field value +func (o *Consortium) GetMemberIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.MemberIds +} + +// GetMemberIdsOk returns a tuple with the MemberIds field value +// and a boolean to check if the value has been set. +func (o *Consortium) GetMemberIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.MemberIds, true +} + +// SetMemberIds sets field value +func (o *Consortium) SetMemberIds(v []string) { + o.MemberIds = v +} + +func (o Consortium) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Consortium) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["mainApiHost"] = o.MainApiHost + toSerialize["memberIds"] = o.MemberIds + return toSerialize, nil +} + +type NullableConsortium struct { + value *Consortium + isSet bool +} + +func (v NullableConsortium) Get() *Consortium { + return v.value +} + +func (v *NullableConsortium) Set(val *Consortium) { + v.value = val + v.isSet = true +} + +func (v NullableConsortium) IsSet() bool { + return v.isSet +} + +func (v *NullableConsortium) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsortium(val *Consortium) *NullableConsortium { + return &NullableConsortium{value: val, isSet: true} +} + +func (v NullableConsortium) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsortium) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_database.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_database.go new file mode 100644 index 00000000000..aaec8bbf248 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_database.go @@ -0,0 +1,230 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the ConsortiumDatabase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConsortiumDatabase{} + +// ConsortiumDatabase struct for ConsortiumDatabase +type ConsortiumDatabase struct { + // A collection of Consortium entities. In practice this should only ever contain a single consortium, but we defined it as an array to keep the convention up with the rest of the collections defined in the Consortium data in general. Also, if we ever decide to somehow have some sort of consortium to consortium integration (which does not make much sense in the current frame of mind of the author in the year 2020) then having this as an array will have proven itself to be an excellent long term compatibility/extensibility decision indeed. + Consortium []Consortium `json:"consortium"` + // The complete collection of all ledger entities in existence within the consortium. + Ledger []Ledger `json:"ledger"` + // The complete collection of all consortium member entities in existence within the consortium. + ConsortiumMember []ConsortiumMember `json:"consortiumMember"` + // The complete collection of all cactus nodes entities in existence within the consortium. + CactusNode []CactusNode `json:"cactusNode"` + // The complete collection of all plugin instance entities in existence within the consortium. + PluginInstance []PluginInstance `json:"pluginInstance"` +} + +// NewConsortiumDatabase instantiates a new ConsortiumDatabase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsortiumDatabase(consortium []Consortium, ledger []Ledger, consortiumMember []ConsortiumMember, cactusNode []CactusNode, pluginInstance []PluginInstance) *ConsortiumDatabase { + this := ConsortiumDatabase{} + this.Consortium = consortium + this.Ledger = ledger + this.ConsortiumMember = consortiumMember + this.CactusNode = cactusNode + this.PluginInstance = pluginInstance + return &this +} + +// NewConsortiumDatabaseWithDefaults instantiates a new ConsortiumDatabase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsortiumDatabaseWithDefaults() *ConsortiumDatabase { + this := ConsortiumDatabase{} + return &this +} + +// GetConsortium returns the Consortium field value +func (o *ConsortiumDatabase) GetConsortium() []Consortium { + if o == nil { + var ret []Consortium + return ret + } + + return o.Consortium +} + +// GetConsortiumOk returns a tuple with the Consortium field value +// and a boolean to check if the value has been set. +func (o *ConsortiumDatabase) GetConsortiumOk() ([]Consortium, bool) { + if o == nil { + return nil, false + } + return o.Consortium, true +} + +// SetConsortium sets field value +func (o *ConsortiumDatabase) SetConsortium(v []Consortium) { + o.Consortium = v +} + +// GetLedger returns the Ledger field value +func (o *ConsortiumDatabase) GetLedger() []Ledger { + if o == nil { + var ret []Ledger + return ret + } + + return o.Ledger +} + +// GetLedgerOk returns a tuple with the Ledger field value +// and a boolean to check if the value has been set. +func (o *ConsortiumDatabase) GetLedgerOk() ([]Ledger, bool) { + if o == nil { + return nil, false + } + return o.Ledger, true +} + +// SetLedger sets field value +func (o *ConsortiumDatabase) SetLedger(v []Ledger) { + o.Ledger = v +} + +// GetConsortiumMember returns the ConsortiumMember field value +func (o *ConsortiumDatabase) GetConsortiumMember() []ConsortiumMember { + if o == nil { + var ret []ConsortiumMember + return ret + } + + return o.ConsortiumMember +} + +// GetConsortiumMemberOk returns a tuple with the ConsortiumMember field value +// and a boolean to check if the value has been set. +func (o *ConsortiumDatabase) GetConsortiumMemberOk() ([]ConsortiumMember, bool) { + if o == nil { + return nil, false + } + return o.ConsortiumMember, true +} + +// SetConsortiumMember sets field value +func (o *ConsortiumDatabase) SetConsortiumMember(v []ConsortiumMember) { + o.ConsortiumMember = v +} + +// GetCactusNode returns the CactusNode field value +func (o *ConsortiumDatabase) GetCactusNode() []CactusNode { + if o == nil { + var ret []CactusNode + return ret + } + + return o.CactusNode +} + +// GetCactusNodeOk returns a tuple with the CactusNode field value +// and a boolean to check if the value has been set. +func (o *ConsortiumDatabase) GetCactusNodeOk() ([]CactusNode, bool) { + if o == nil { + return nil, false + } + return o.CactusNode, true +} + +// SetCactusNode sets field value +func (o *ConsortiumDatabase) SetCactusNode(v []CactusNode) { + o.CactusNode = v +} + +// GetPluginInstance returns the PluginInstance field value +func (o *ConsortiumDatabase) GetPluginInstance() []PluginInstance { + if o == nil { + var ret []PluginInstance + return ret + } + + return o.PluginInstance +} + +// GetPluginInstanceOk returns a tuple with the PluginInstance field value +// and a boolean to check if the value has been set. +func (o *ConsortiumDatabase) GetPluginInstanceOk() ([]PluginInstance, bool) { + if o == nil { + return nil, false + } + return o.PluginInstance, true +} + +// SetPluginInstance sets field value +func (o *ConsortiumDatabase) SetPluginInstance(v []PluginInstance) { + o.PluginInstance = v +} + +func (o ConsortiumDatabase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConsortiumDatabase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["consortium"] = o.Consortium + toSerialize["ledger"] = o.Ledger + toSerialize["consortiumMember"] = o.ConsortiumMember + toSerialize["cactusNode"] = o.CactusNode + toSerialize["pluginInstance"] = o.PluginInstance + return toSerialize, nil +} + +type NullableConsortiumDatabase struct { + value *ConsortiumDatabase + isSet bool +} + +func (v NullableConsortiumDatabase) Get() *ConsortiumDatabase { + return v.value +} + +func (v *NullableConsortiumDatabase) Set(val *ConsortiumDatabase) { + v.value = val + v.isSet = true +} + +func (v NullableConsortiumDatabase) IsSet() bool { + return v.isSet +} + +func (v *NullableConsortiumDatabase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsortiumDatabase(val *ConsortiumDatabase) *NullableConsortiumDatabase { + return &NullableConsortiumDatabase{value: val, isSet: true} +} + +func (v NullableConsortiumDatabase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsortiumDatabase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_member.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_member.go new file mode 100644 index 00000000000..4119df81209 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_consortium_member.go @@ -0,0 +1,172 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the ConsortiumMember type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConsortiumMember{} + +// ConsortiumMember struct for ConsortiumMember +type ConsortiumMember struct { + Id string `json:"id"` + // The human readable name a Consortium member can be referred to while making it easy for humans to distinguish this particular consortium member entity from any other ones. + Name string `json:"name"` + NodeIds []string `json:"nodeIds"` +} + +// NewConsortiumMember instantiates a new ConsortiumMember object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsortiumMember(id string, name string, nodeIds []string) *ConsortiumMember { + this := ConsortiumMember{} + this.Id = id + this.Name = name + this.NodeIds = nodeIds + return &this +} + +// NewConsortiumMemberWithDefaults instantiates a new ConsortiumMember object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsortiumMemberWithDefaults() *ConsortiumMember { + this := ConsortiumMember{} + return &this +} + +// GetId returns the Id field value +func (o *ConsortiumMember) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConsortiumMember) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConsortiumMember) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ConsortiumMember) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConsortiumMember) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConsortiumMember) SetName(v string) { + o.Name = v +} + +// GetNodeIds returns the NodeIds field value +func (o *ConsortiumMember) GetNodeIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.NodeIds +} + +// GetNodeIdsOk returns a tuple with the NodeIds field value +// and a boolean to check if the value has been set. +func (o *ConsortiumMember) GetNodeIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.NodeIds, true +} + +// SetNodeIds sets field value +func (o *ConsortiumMember) SetNodeIds(v []string) { + o.NodeIds = v +} + +func (o ConsortiumMember) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConsortiumMember) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["nodeIds"] = o.NodeIds + return toSerialize, nil +} + +type NullableConsortiumMember struct { + value *ConsortiumMember + isSet bool +} + +func (v NullableConsortiumMember) Get() *ConsortiumMember { + return v.value +} + +func (v *NullableConsortiumMember) Set(val *ConsortiumMember) { + v.value = val + v.isSet = true +} + +func (v NullableConsortiumMember) IsSet() bool { + return v.isSet +} + +func (v *NullableConsortiumMember) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsortiumMember(val *ConsortiumMember) *NullableConsortiumMember { + return &NullableConsortiumMember{value: val, isSet: true} +} + +func (v NullableConsortiumMember) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsortiumMember) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_constants.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_constants.go new file mode 100644 index 00000000000..44b408a30ba --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_constants.go @@ -0,0 +1,109 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// Constants the model 'Constants' +type Constants string + +// List of Constants +const ( + SocketIoConnectionPathV1 Constants = "/api/v1/async/socket-io/connect" +) + +// All allowed values of Constants enum +var AllowedConstantsEnumValues = []Constants{ + "/api/v1/async/socket-io/connect", +} + +func (v *Constants) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Constants(value) + for _, existing := range AllowedConstantsEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Constants", value) +} + +// NewConstantsFromValue returns a pointer to a valid Constants +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConstantsFromValue(v string) (*Constants, error) { + ev := Constants(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Constants: valid values are %v", v, AllowedConstantsEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Constants) IsValid() bool { + for _, existing := range AllowedConstantsEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Constants value +func (v Constants) Ptr() *Constants { + return &v +} + +type NullableConstants struct { + value *Constants + isSet bool +} + +func (v NullableConstants) Get() *Constants { + return v.value +} + +func (v *NullableConstants) Set(val *Constants) { + v.value = val + v.isSet = true +} + +func (v NullableConstants) IsSet() bool { + return v.isSet +} + +func (v *NullableConstants) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConstants(val *Constants) *NullableConstants { + return &NullableConstants{value: val, isSet: true} +} + +func (v NullableConstants) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConstants) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..0df2978fd54 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key for the entry to check the presence of on the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..8f5e6be64f3 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..64c6544ccd5 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..fe2dc904246 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go new file mode 100644 index 00000000000..4eb06cbd79f --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the GetObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetObjectRequestV1{} + +// GetObjectRequestV1 struct for GetObjectRequestV1 +type GetObjectRequestV1 struct { + // The key for the entry to get from the object store. + Key string `json:"key"` +} + +// NewGetObjectRequestV1 instantiates a new GetObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetObjectRequestV1(key string) *GetObjectRequestV1 { + this := GetObjectRequestV1{} + this.Key = key + return &this +} + +// NewGetObjectRequestV1WithDefaults instantiates a new GetObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetObjectRequestV1WithDefaults() *GetObjectRequestV1 { + this := GetObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetObjectRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetObjectRequestV1 struct { + value *GetObjectRequestV1 + isSet bool +} + +func (v NullableGetObjectRequestV1) Get() *GetObjectRequestV1 { + return v.value +} + +func (v *NullableGetObjectRequestV1) Set(val *GetObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetObjectRequestV1(val *GetObjectRequestV1) *NullableGetObjectRequestV1 { + return &NullableGetObjectRequestV1{value: val, isSet: true} +} + +func (v NullableGetObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go new file mode 100644 index 00000000000..d41b19351cd --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_get_object_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the GetObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetObjectResponseV1{} + +// GetObjectResponseV1 struct for GetObjectResponseV1 +type GetObjectResponseV1 struct { + // The key that was used to retrieve the value from the object store. + Key string `json:"key"` + // The value associated with the requested key in the object store as a string. + Value string `json:"value"` +} + +// NewGetObjectResponseV1 instantiates a new GetObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetObjectResponseV1(key string, value string) *GetObjectResponseV1 { + this := GetObjectResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetObjectResponseV1WithDefaults instantiates a new GetObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetObjectResponseV1WithDefaults() *GetObjectResponseV1 { + this := GetObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetObjectResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetObjectResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetObjectResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetObjectResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetObjectResponseV1 struct { + value *GetObjectResponseV1 + isSet bool +} + +func (v NullableGetObjectResponseV1) Get() *GetObjectResponseV1 { + return v.value +} + +func (v *NullableGetObjectResponseV1) Set(val *GetObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetObjectResponseV1(val *GetObjectResponseV1) *NullableGetObjectResponseV1 { + return &NullableGetObjectResponseV1{value: val, isSet: true} +} + +func (v NullableGetObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..e98205eccf0 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..7516e1b6392 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the entry store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go new file mode 100644 index 00000000000..1a51e326d05 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the HasObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasObjectRequestV1{} + +// HasObjectRequestV1 struct for HasObjectRequestV1 +type HasObjectRequestV1 struct { + // The key to check for presence in the object store. + Key string `json:"key"` +} + +// NewHasObjectRequestV1 instantiates a new HasObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasObjectRequestV1(key string) *HasObjectRequestV1 { + this := HasObjectRequestV1{} + this.Key = key + return &this +} + +// NewHasObjectRequestV1WithDefaults instantiates a new HasObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasObjectRequestV1WithDefaults() *HasObjectRequestV1 { + this := HasObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasObjectRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasObjectRequestV1 struct { + value *HasObjectRequestV1 + isSet bool +} + +func (v NullableHasObjectRequestV1) Get() *HasObjectRequestV1 { + return v.value +} + +func (v *NullableHasObjectRequestV1) Set(val *HasObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasObjectRequestV1(val *HasObjectRequestV1) *NullableHasObjectRequestV1 { + return &NullableHasObjectRequestV1{value: val, isSet: true} +} + +func (v NullableHasObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go new file mode 100644 index 00000000000..e580fd8db14 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_has_object_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the HasObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasObjectResponseV1{} + +// HasObjectResponseV1 struct for HasObjectResponseV1 +type HasObjectResponseV1 struct { + // The key that was used to check the presence of the value in the object store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an object under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasObjectResponseV1 instantiates a new HasObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasObjectResponseV1(key string, checkedAt string, isPresent bool) *HasObjectResponseV1 { + this := HasObjectResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasObjectResponseV1WithDefaults instantiates a new HasObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasObjectResponseV1WithDefaults() *HasObjectResponseV1 { + this := HasObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasObjectResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasObjectResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasObjectResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasObjectResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasObjectResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasObjectResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasObjectResponseV1 struct { + value *HasObjectResponseV1 + isSet bool +} + +func (v NullableHasObjectResponseV1) Get() *HasObjectResponseV1 { + return v.value +} + +func (v *NullableHasObjectResponseV1) Set(val *HasObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasObjectResponseV1(val *HasObjectResponseV1) *NullableHasObjectResponseV1 { + return &NullableHasObjectResponseV1{value: val, isSet: true} +} + +func (v NullableHasObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_general.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_general.go new file mode 100644 index 00000000000..15afb7bd27e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_general.go @@ -0,0 +1,144 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the JWSGeneral type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JWSGeneral{} + +// JWSGeneral struct for JWSGeneral +type JWSGeneral struct { + Payload string `json:"payload"` + Signatures []JWSRecipient `json:"signatures"` +} + +// NewJWSGeneral instantiates a new JWSGeneral object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJWSGeneral(payload string, signatures []JWSRecipient) *JWSGeneral { + this := JWSGeneral{} + this.Payload = payload + this.Signatures = signatures + return &this +} + +// NewJWSGeneralWithDefaults instantiates a new JWSGeneral object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJWSGeneralWithDefaults() *JWSGeneral { + this := JWSGeneral{} + return &this +} + +// GetPayload returns the Payload field value +func (o *JWSGeneral) GetPayload() string { + if o == nil { + var ret string + return ret + } + + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value +// and a boolean to check if the value has been set. +func (o *JWSGeneral) GetPayloadOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Payload, true +} + +// SetPayload sets field value +func (o *JWSGeneral) SetPayload(v string) { + o.Payload = v +} + +// GetSignatures returns the Signatures field value +func (o *JWSGeneral) GetSignatures() []JWSRecipient { + if o == nil { + var ret []JWSRecipient + return ret + } + + return o.Signatures +} + +// GetSignaturesOk returns a tuple with the Signatures field value +// and a boolean to check if the value has been set. +func (o *JWSGeneral) GetSignaturesOk() ([]JWSRecipient, bool) { + if o == nil { + return nil, false + } + return o.Signatures, true +} + +// SetSignatures sets field value +func (o *JWSGeneral) SetSignatures(v []JWSRecipient) { + o.Signatures = v +} + +func (o JWSGeneral) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JWSGeneral) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["payload"] = o.Payload + toSerialize["signatures"] = o.Signatures + return toSerialize, nil +} + +type NullableJWSGeneral struct { + value *JWSGeneral + isSet bool +} + +func (v NullableJWSGeneral) Get() *JWSGeneral { + return v.value +} + +func (v *NullableJWSGeneral) Set(val *JWSGeneral) { + v.value = val + v.isSet = true +} + +func (v NullableJWSGeneral) IsSet() bool { + return v.isSet +} + +func (v *NullableJWSGeneral) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJWSGeneral(val *JWSGeneral) *NullableJWSGeneral { + return &NullableJWSGeneral{value: val, isSet: true} +} + +func (v NullableJWSGeneral) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJWSGeneral) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_recipient.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_recipient.go new file mode 100644 index 00000000000..2228e89236d --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_jws_recipient.go @@ -0,0 +1,189 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the JWSRecipient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JWSRecipient{} + +// JWSRecipient A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515 for info about standard. +type JWSRecipient struct { + Signature string `json:"signature"` + Protected *string `json:"protected,omitempty"` + Header map[string]interface{} `json:"header,omitempty"` +} + +// NewJWSRecipient instantiates a new JWSRecipient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJWSRecipient(signature string) *JWSRecipient { + this := JWSRecipient{} + this.Signature = signature + return &this +} + +// NewJWSRecipientWithDefaults instantiates a new JWSRecipient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJWSRecipientWithDefaults() *JWSRecipient { + this := JWSRecipient{} + return &this +} + +// GetSignature returns the Signature field value +func (o *JWSRecipient) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *JWSRecipient) SetSignature(v string) { + o.Signature = v +} + +// GetProtected returns the Protected field value if set, zero value otherwise. +func (o *JWSRecipient) GetProtected() string { + if o == nil || IsNil(o.Protected) { + var ret string + return ret + } + return *o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetProtectedOk() (*string, bool) { + if o == nil || IsNil(o.Protected) { + return nil, false + } + return o.Protected, true +} + +// HasProtected returns a boolean if a field has been set. +func (o *JWSRecipient) HasProtected() bool { + if o != nil && !IsNil(o.Protected) { + return true + } + + return false +} + +// SetProtected gets a reference to the given string and assigns it to the Protected field. +func (o *JWSRecipient) SetProtected(v string) { + o.Protected = &v +} + +// GetHeader returns the Header field value if set, zero value otherwise. +func (o *JWSRecipient) GetHeader() map[string]interface{} { + if o == nil || IsNil(o.Header) { + var ret map[string]interface{} + return ret + } + return o.Header +} + +// GetHeaderOk returns a tuple with the Header field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetHeaderOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Header) { + return map[string]interface{}{}, false + } + return o.Header, true +} + +// HasHeader returns a boolean if a field has been set. +func (o *JWSRecipient) HasHeader() bool { + if o != nil && !IsNil(o.Header) { + return true + } + + return false +} + +// SetHeader gets a reference to the given map[string]interface{} and assigns it to the Header field. +func (o *JWSRecipient) SetHeader(v map[string]interface{}) { + o.Header = v +} + +func (o JWSRecipient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JWSRecipient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["signature"] = o.Signature + if !IsNil(o.Protected) { + toSerialize["protected"] = o.Protected + } + if !IsNil(o.Header) { + toSerialize["header"] = o.Header + } + return toSerialize, nil +} + +type NullableJWSRecipient struct { + value *JWSRecipient + isSet bool +} + +func (v NullableJWSRecipient) Get() *JWSRecipient { + return v.value +} + +func (v *NullableJWSRecipient) Set(val *JWSRecipient) { + v.value = val + v.isSet = true +} + +func (v NullableJWSRecipient) IsSet() bool { + return v.isSet +} + +func (v *NullableJWSRecipient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJWSRecipient(val *JWSRecipient) *NullableJWSRecipient { + return &NullableJWSRecipient{value: val, isSet: true} +} + +func (v NullableJWSRecipient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJWSRecipient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger.go new file mode 100644 index 00000000000..acc8ce513b8 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger.go @@ -0,0 +1,180 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the Ledger type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Ledger{} + +// Ledger struct for Ledger +type Ledger struct { + Id string `json:"id"` + LedgerType LedgerType `json:"ledgerType"` + ConsortiumMemberId *string `json:"consortiumMemberId,omitempty"` +} + +// NewLedger instantiates a new Ledger object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLedger(id string, ledgerType LedgerType) *Ledger { + this := Ledger{} + this.Id = id + this.LedgerType = ledgerType + return &this +} + +// NewLedgerWithDefaults instantiates a new Ledger object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLedgerWithDefaults() *Ledger { + this := Ledger{} + return &this +} + +// GetId returns the Id field value +func (o *Ledger) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Ledger) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Ledger) SetId(v string) { + o.Id = v +} + +// GetLedgerType returns the LedgerType field value +func (o *Ledger) GetLedgerType() LedgerType { + if o == nil { + var ret LedgerType + return ret + } + + return o.LedgerType +} + +// GetLedgerTypeOk returns a tuple with the LedgerType field value +// and a boolean to check if the value has been set. +func (o *Ledger) GetLedgerTypeOk() (*LedgerType, bool) { + if o == nil { + return nil, false + } + return &o.LedgerType, true +} + +// SetLedgerType sets field value +func (o *Ledger) SetLedgerType(v LedgerType) { + o.LedgerType = v +} + +// GetConsortiumMemberId returns the ConsortiumMemberId field value if set, zero value otherwise. +func (o *Ledger) GetConsortiumMemberId() string { + if o == nil || IsNil(o.ConsortiumMemberId) { + var ret string + return ret + } + return *o.ConsortiumMemberId +} + +// GetConsortiumMemberIdOk returns a tuple with the ConsortiumMemberId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Ledger) GetConsortiumMemberIdOk() (*string, bool) { + if o == nil || IsNil(o.ConsortiumMemberId) { + return nil, false + } + return o.ConsortiumMemberId, true +} + +// HasConsortiumMemberId returns a boolean if a field has been set. +func (o *Ledger) HasConsortiumMemberId() bool { + if o != nil && !IsNil(o.ConsortiumMemberId) { + return true + } + + return false +} + +// SetConsortiumMemberId gets a reference to the given string and assigns it to the ConsortiumMemberId field. +func (o *Ledger) SetConsortiumMemberId(v string) { + o.ConsortiumMemberId = &v +} + +func (o Ledger) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Ledger) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["ledgerType"] = o.LedgerType + if !IsNil(o.ConsortiumMemberId) { + toSerialize["consortiumMemberId"] = o.ConsortiumMemberId + } + return toSerialize, nil +} + +type NullableLedger struct { + value *Ledger + isSet bool +} + +func (v NullableLedger) Get() *Ledger { + return v.value +} + +func (v *NullableLedger) Set(val *Ledger) { + v.value = val + v.isSet = true +} + +func (v NullableLedger) IsSet() bool { + return v.isSet +} + +func (v *NullableLedger) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLedger(val *Ledger) *NullableLedger { + return &NullableLedger{value: val, isSet: true} +} + +func (v NullableLedger) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLedger) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger_type.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger_type.go new file mode 100644 index 00000000000..ccfb1d7ad78 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger_type.go @@ -0,0 +1,123 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// LedgerType Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation. +type LedgerType string + +// List of LedgerType +const ( + BESU_1_X LedgerType = "BESU_1X" + BESU_2_X LedgerType = "BESU_2X" + BURROW_0_X LedgerType = "BURROW_0X" + CORDA_4_X LedgerType = "CORDA_4X" + FABRIC_14_X LedgerType = "FABRIC_14X" + FABRIC_2 LedgerType = "FABRIC_2" + QUORUM_2_X LedgerType = "QUORUM_2X" + SAWTOOTH_1_X LedgerType = "SAWTOOTH_1X" +) + +// All allowed values of LedgerType enum +var AllowedLedgerTypeEnumValues = []LedgerType{ + "BESU_1X", + "BESU_2X", + "BURROW_0X", + "CORDA_4X", + "FABRIC_14X", + "FABRIC_2", + "QUORUM_2X", + "SAWTOOTH_1X", +} + +func (v *LedgerType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LedgerType(value) + for _, existing := range AllowedLedgerTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LedgerType", value) +} + +// NewLedgerTypeFromValue returns a pointer to a valid LedgerType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLedgerTypeFromValue(v string) (*LedgerType, error) { + ev := LedgerType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LedgerType: valid values are %v", v, AllowedLedgerTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LedgerType) IsValid() bool { + for _, existing := range AllowedLedgerTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to LedgerType value +func (v LedgerType) Ptr() *LedgerType { + return &v +} + +type NullableLedgerType struct { + value *LedgerType + isSet bool +} + +func (v NullableLedgerType) Get() *LedgerType { + return v.value +} + +func (v *NullableLedgerType) Set(val *LedgerType) { + v.value = val + v.isSet = true +} + +func (v NullableLedgerType) IsSet() bool { + return v.isSet +} + +func (v *NullableLedgerType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLedgerType(val *LedgerType) *NullableLedgerType { + return &NullableLedgerType{value: val, isSet: true} +} + +func (v NullableLedgerType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLedgerType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import.go new file mode 100644 index 00000000000..da91ab6e798 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import.go @@ -0,0 +1,208 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the PluginImport type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PluginImport{} + +// PluginImport struct for PluginImport +type PluginImport struct { + PackageName string `json:"packageName"` + Type PluginImportType `json:"type"` + Action PluginImportAction `json:"action"` + Options interface{} `json:"options,omitempty"` +} + +// NewPluginImport instantiates a new PluginImport object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPluginImport(packageName string, type_ PluginImportType, action PluginImportAction) *PluginImport { + this := PluginImport{} + this.PackageName = packageName + this.Type = type_ + this.Action = action + return &this +} + +// NewPluginImportWithDefaults instantiates a new PluginImport object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPluginImportWithDefaults() *PluginImport { + this := PluginImport{} + return &this +} + +// GetPackageName returns the PackageName field value +func (o *PluginImport) GetPackageName() string { + if o == nil { + var ret string + return ret + } + + return o.PackageName +} + +// GetPackageNameOk returns a tuple with the PackageName field value +// and a boolean to check if the value has been set. +func (o *PluginImport) GetPackageNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageName, true +} + +// SetPackageName sets field value +func (o *PluginImport) SetPackageName(v string) { + o.PackageName = v +} + +// GetType returns the Type field value +func (o *PluginImport) GetType() PluginImportType { + if o == nil { + var ret PluginImportType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PluginImport) GetTypeOk() (*PluginImportType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PluginImport) SetType(v PluginImportType) { + o.Type = v +} + +// GetAction returns the Action field value +func (o *PluginImport) GetAction() PluginImportAction { + if o == nil { + var ret PluginImportAction + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PluginImport) GetActionOk() (*PluginImportAction, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PluginImport) SetAction(v PluginImportAction) { + o.Action = v +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PluginImport) GetOptions() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PluginImport) GetOptionsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Options) { + return nil, false + } + return &o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *PluginImport) HasOptions() bool { + if o != nil && IsNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given interface{} and assigns it to the Options field. +func (o *PluginImport) SetOptions(v interface{}) { + o.Options = v +} + +func (o PluginImport) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PluginImport) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["packageName"] = o.PackageName + toSerialize["type"] = o.Type + toSerialize["action"] = o.Action + if o.Options != nil { + toSerialize["options"] = o.Options + } + return toSerialize, nil +} + +type NullablePluginImport struct { + value *PluginImport + isSet bool +} + +func (v NullablePluginImport) Get() *PluginImport { + return v.value +} + +func (v *NullablePluginImport) Set(val *PluginImport) { + v.value = val + v.isSet = true +} + +func (v NullablePluginImport) IsSet() bool { + return v.isSet +} + +func (v *NullablePluginImport) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePluginImport(val *PluginImport) *NullablePluginImport { + return &NullablePluginImport{value: val, isSet: true} +} + +func (v NullablePluginImport) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePluginImport) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_action.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_action.go new file mode 100644 index 00000000000..568cfd02f23 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_action.go @@ -0,0 +1,111 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// PluginImportAction the model 'PluginImportAction' +type PluginImportAction string + +// List of PluginImportAction +const ( + INSTANTIATE PluginImportAction = "org.hyperledger.cactus.plugin_import_action.INSTANTIATE" + INSTALL PluginImportAction = "org.hyperledger.cactus.plugin_import_action.INSTALL" +) + +// All allowed values of PluginImportAction enum +var AllowedPluginImportActionEnumValues = []PluginImportAction{ + "org.hyperledger.cactus.plugin_import_action.INSTANTIATE", + "org.hyperledger.cactus.plugin_import_action.INSTALL", +} + +func (v *PluginImportAction) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PluginImportAction(value) + for _, existing := range AllowedPluginImportActionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PluginImportAction", value) +} + +// NewPluginImportActionFromValue returns a pointer to a valid PluginImportAction +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPluginImportActionFromValue(v string) (*PluginImportAction, error) { + ev := PluginImportAction(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PluginImportAction: valid values are %v", v, AllowedPluginImportActionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PluginImportAction) IsValid() bool { + for _, existing := range AllowedPluginImportActionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PluginImportAction value +func (v PluginImportAction) Ptr() *PluginImportAction { + return &v +} + +type NullablePluginImportAction struct { + value *PluginImportAction + isSet bool +} + +func (v NullablePluginImportAction) Get() *PluginImportAction { + return v.value +} + +func (v *NullablePluginImportAction) Set(val *PluginImportAction) { + v.value = val + v.isSet = true +} + +func (v NullablePluginImportAction) IsSet() bool { + return v.isSet +} + +func (v *NullablePluginImportAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePluginImportAction(val *PluginImportAction) *NullablePluginImportAction { + return &NullablePluginImportAction{value: val, isSet: true} +} + +func (v NullablePluginImportAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePluginImportAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_type.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_type.go new file mode 100644 index 00000000000..9d863afc8bd --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_import_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "fmt" +) + +// PluginImportType the model 'PluginImportType' +type PluginImportType string + +// List of PluginImportType +const ( + LOCAL PluginImportType = "org.hyperledger.cactus.plugin_import_type.LOCAL" + REMOTE PluginImportType = "org.hyperledger.cactus.plugin_import_type.REMOTE" +) + +// All allowed values of PluginImportType enum +var AllowedPluginImportTypeEnumValues = []PluginImportType{ + "org.hyperledger.cactus.plugin_import_type.LOCAL", + "org.hyperledger.cactus.plugin_import_type.REMOTE", +} + +func (v *PluginImportType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PluginImportType(value) + for _, existing := range AllowedPluginImportTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PluginImportType", value) +} + +// NewPluginImportTypeFromValue returns a pointer to a valid PluginImportType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPluginImportTypeFromValue(v string) (*PluginImportType, error) { + ev := PluginImportType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PluginImportType: valid values are %v", v, AllowedPluginImportTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PluginImportType) IsValid() bool { + for _, existing := range AllowedPluginImportTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PluginImportType value +func (v PluginImportType) Ptr() *PluginImportType { + return &v +} + +type NullablePluginImportType struct { + value *PluginImportType + isSet bool +} + +func (v NullablePluginImportType) Get() *PluginImportType { + return v.value +} + +func (v *NullablePluginImportType) Set(val *PluginImportType) { + v.value = val + v.isSet = true +} + +func (v NullablePluginImportType) IsSet() bool { + return v.isSet +} + +func (v *NullablePluginImportType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePluginImportType(val *PluginImportType) *NullablePluginImportType { + return &NullablePluginImportType{value: val, isSet: true} +} + +func (v NullablePluginImportType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePluginImportType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_instance.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_instance.go new file mode 100644 index 00000000000..8157520323e --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_plugin_instance.go @@ -0,0 +1,144 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the PluginInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PluginInstance{} + +// PluginInstance struct for PluginInstance +type PluginInstance struct { + Id string `json:"id"` + PackageName string `json:"packageName"` +} + +// NewPluginInstance instantiates a new PluginInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPluginInstance(id string, packageName string) *PluginInstance { + this := PluginInstance{} + this.Id = id + this.PackageName = packageName + return &this +} + +// NewPluginInstanceWithDefaults instantiates a new PluginInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPluginInstanceWithDefaults() *PluginInstance { + this := PluginInstance{} + return &this +} + +// GetId returns the Id field value +func (o *PluginInstance) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PluginInstance) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PluginInstance) SetId(v string) { + o.Id = v +} + +// GetPackageName returns the PackageName field value +func (o *PluginInstance) GetPackageName() string { + if o == nil { + var ret string + return ret + } + + return o.PackageName +} + +// GetPackageNameOk returns a tuple with the PackageName field value +// and a boolean to check if the value has been set. +func (o *PluginInstance) GetPackageNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageName, true +} + +// SetPackageName sets field value +func (o *PluginInstance) SetPackageName(v string) { + o.PackageName = v +} + +func (o PluginInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PluginInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["packageName"] = o.PackageName + return toSerialize, nil +} + +type NullablePluginInstance struct { + value *PluginInstance + isSet bool +} + +func (v NullablePluginInstance) Get() *PluginInstance { + return v.value +} + +func (v *NullablePluginInstance) Set(val *PluginInstance) { + v.value = val + v.isSet = true +} + +func (v NullablePluginInstance) IsSet() bool { + return v.isSet +} + +func (v *NullablePluginInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePluginInstance(val *PluginInstance) *NullablePluginInstance { + return &NullablePluginInstance{value: val, isSet: true} +} + +func (v NullablePluginInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePluginInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..f9db528a4f9 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..bda492c186c --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go new file mode 100644 index 00000000000..a3133921c8d --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the SetObjectRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetObjectRequestV1{} + +// SetObjectRequestV1 struct for SetObjectRequestV1 +type SetObjectRequestV1 struct { + // The key for the entry to set in the object store. + Key string `json:"key"` + // The value that will be associated with the key in the object store. + Value string `json:"value"` +} + +// NewSetObjectRequestV1 instantiates a new SetObjectRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetObjectRequestV1(key string, value string) *SetObjectRequestV1 { + this := SetObjectRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetObjectRequestV1WithDefaults instantiates a new SetObjectRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetObjectRequestV1WithDefaults() *SetObjectRequestV1 { + this := SetObjectRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetObjectRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetObjectRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetObjectRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetObjectRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetObjectRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetObjectRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetObjectRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetObjectRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetObjectRequestV1 struct { + value *SetObjectRequestV1 + isSet bool +} + +func (v NullableSetObjectRequestV1) Get() *SetObjectRequestV1 { + return v.value +} + +func (v *NullableSetObjectRequestV1) Set(val *SetObjectRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetObjectRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetObjectRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetObjectRequestV1(val *SetObjectRequestV1) *NullableSetObjectRequestV1 { + return &NullableSetObjectRequestV1{value: val, isSet: true} +} + +func (v NullableSetObjectRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetObjectRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go new file mode 100644 index 00000000000..ec21453f920 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_set_object_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" +) + +// checks if the SetObjectResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetObjectResponseV1{} + +// SetObjectResponseV1 struct for SetObjectResponseV1 +type SetObjectResponseV1 struct { + // The key that was used to set the value in the object store. + Key string `json:"key"` +} + +// NewSetObjectResponseV1 instantiates a new SetObjectResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetObjectResponseV1(key string) *SetObjectResponseV1 { + this := SetObjectResponseV1{} + this.Key = key + return &this +} + +// NewSetObjectResponseV1WithDefaults instantiates a new SetObjectResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetObjectResponseV1WithDefaults() *SetObjectResponseV1 { + this := SetObjectResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetObjectResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetObjectResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetObjectResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetObjectResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetObjectResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetObjectResponseV1 struct { + value *SetObjectResponseV1 + isSet bool +} + +func (v NullableSetObjectResponseV1) Get() *SetObjectResponseV1 { + return v.value +} + +func (v *NullableSetObjectResponseV1) Set(val *SetObjectResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetObjectResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetObjectResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetObjectResponseV1(val *SetObjectResponseV1) *NullableSetObjectResponseV1 { + return &NullableSetObjectResponseV1{value: val, isSet: true} +} + +func (v NullableSetObjectResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetObjectResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..5b3b176382f --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-core-api/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..3c9b214db44 --- /dev/null +++ b/packages/cactus-core-api/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Core API + +Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-core-api + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/README.md index e7aeb62f792..7fe79edb610 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Core API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata] Contains/describes the core API types for Cactus. Does not describe actual endpoints on its own as this is left to the implementing plugins who can import and re-use commonly needed type definitions from this specification. One example of said commonly used type definitions would be the types related to consortium management, cactus nodes, ledgers, etc.. diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index e4d58402a9c..c6ed7880ff7 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 4bda8a86df2..6fa604101cc 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 6b4b1b3644b..da45333994d 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 567415322d3..98cf1a2d98c 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 8d2a6363de4..ef0b5159e10 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index b545983b4fb..6ce87248bb7 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index ca43d11f4d8..fd0be977dfb 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNode.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNode.java index d2fcb866c14..fbd578bf755 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNode.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNode.java @@ -52,7 +52,7 @@ /** * A Cactus node can be a single server, or a set of servers behind a load balancer acting as one. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class CactusNode { public static final String SERIALIZED_NAME_NODE_API_HOST = "nodeApiHost"; @SerializedName(SERIALIZED_NAME_NODE_API_HOST) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeAllOf.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeAllOf.java index 52314f42691..2f610a3e6d5 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeAllOf.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeAllOf.java @@ -52,7 +52,7 @@ /** * CactusNodeAllOf */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class CactusNodeAllOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeMeta.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeMeta.java index 8faec8217ad..1649797c55d 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeMeta.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CactusNodeMeta.java @@ -50,7 +50,7 @@ /** * A Cactus node meta information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class CactusNodeMeta { public static final String SERIALIZED_NAME_NODE_API_HOST = "nodeApiHost"; @SerializedName(SERIALIZED_NAME_NODE_API_HOST) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Consortium.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Consortium.java index 9981a8bb837..f949f7702f0 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Consortium.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Consortium.java @@ -52,7 +52,7 @@ /** * Consortium */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class Consortium { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumDatabase.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumDatabase.java index f349ebba2cc..c636b3e73c9 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumDatabase.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumDatabase.java @@ -57,7 +57,7 @@ /** * ConsortiumDatabase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class ConsortiumDatabase { public static final String SERIALIZED_NAME_CONSORTIUM = "consortium"; @SerializedName(SERIALIZED_NAME_CONSORTIUM) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumMember.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumMember.java index 63e2c09b1cf..c0c1757cba8 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumMember.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsortiumMember.java @@ -52,7 +52,7 @@ /** * ConsortiumMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class ConsortiumMember { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index edcd0f9bade..2e26c102fc9 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index 610e381260d..30dafdafff5 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index 8c30147ffa4..b9631256f62 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index 11cc6e2a666..9b9db015179 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java index 5e803c34012..309c80fb5af 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectRequestV1.java @@ -50,7 +50,7 @@ /** * GetObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class GetObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java index d908c9dcbe4..ab2acc43320 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetObjectResponseV1.java @@ -50,7 +50,7 @@ /** * GetObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class GetObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index 2e8eb31eeff..8a1173e139c 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index a45ae0856b9..edc5a0079a8 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java index 7af58dfc059..eab537b6d3d 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectRequestV1.java @@ -50,7 +50,7 @@ /** * HasObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class HasObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java index e0d47a2e670..87f0ab25d70 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasObjectResponseV1.java @@ -50,7 +50,7 @@ /** * HasObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class HasObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java index 619d22e5e85..1cbba7c2bf2 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java @@ -53,7 +53,7 @@ /** * JWSGeneral */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class JWSGeneral { public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java index f6c4bd1160d..cb4639fec7e 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java @@ -52,7 +52,7 @@ /** * A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515 for info about standard. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class JWSRecipient { public static final String SERIALIZED_NAME_SIGNATURE = "signature"; @SerializedName(SERIALIZED_NAME_SIGNATURE) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Ledger.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Ledger.java index 0173e804aaa..5d8fc023519 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Ledger.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Ledger.java @@ -51,7 +51,7 @@ /** * Ledger */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class Ledger { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginImport.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginImport.java index 2b212d06692..3977b346773 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginImport.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginImport.java @@ -53,7 +53,7 @@ /** * PluginImport */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class PluginImport { public static final String SERIALIZED_NAME_PACKAGE_NAME = "packageName"; @SerializedName(SERIALIZED_NAME_PACKAGE_NAME) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginInstance.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginInstance.java index 4150df7fccf..de3f8cc61aa 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginInstance.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PluginInstance.java @@ -50,7 +50,7 @@ /** * PluginInstance */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class PluginInstance { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index 4767f1776af..f5545fc5b91 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index 7071fa44467..c5fe947bf80 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java index 9155eb0e23e..763df329c39 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectRequestV1.java @@ -50,7 +50,7 @@ /** * SetObjectRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class SetObjectRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java index 83470d4fa56..11bf530b70a 100644 --- a/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java +++ b/packages/cactus-core-api/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetObjectResponseV1.java @@ -50,7 +50,7 @@ /** * SetObjectResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:15.708308621+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:01.994574398+05:30[Asia/Kolkata]") public class SetObjectResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..1d249e8f484 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,23 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetConsortiumJwsResponse.md +docs/GetNodeJwsResponse.md +docs/JWSGeneral.md +docs/JWSRecipient.md +git_push.sh +go.mod +go.sum +model_get_consortium_jws_response.go +model_get_node_jws_response.go +model_jws_general.go +model_jws_recipient.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..ef02a542eaa --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,117 @@ +# Go API client for @hyperledger/cactus-plugin-consortium-manual + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-consortium-manual "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-consortium-manual.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-consortium-manual.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-consortium-manual.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-consortium-manual.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetConsortiumJwsV1**](docs/DefaultApi.md#getconsortiumjwsv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/consortium/jws | Retrieves a consortium JWS +*DefaultApi* | [**GetNodeJwsV1**](docs/DefaultApi.md#getnodejwsv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/node/jws | Retrieves the JWT of a Cactus Node +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + +## Documentation For Models + + - [GetConsortiumJwsResponse](docs/GetConsortiumJwsResponse.md) + - [GetNodeJwsResponse](docs/GetNodeJwsResponse.md) + - [JWSGeneral](docs/JWSGeneral.md) + - [JWSRecipient](docs/JWSRecipient.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..ab98e9f9cb6 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,166 @@ +openapi: 3.0.3 +info: + description: Manage a Cactus consortium through the APIs. Needs administrative privileges. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Consortium Web Service + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/consortium/jws: + post: + description: The JWS asserting the consortium metadata (pub keys and hosts of + nodes) + operationId: getConsortiumJwsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetConsortiumJwsRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetConsortiumJwsResponse' + description: OK + summary: Retrieves a consortium JWS + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/consortium/jws + /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/node/jws: + post: + operationId: getNodeJwsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNodeJwsRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetNodeJwsResponse' + description: OK + summary: Retrieves the JWT of a Cactus Node + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/node/jws + /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/get-prometheus-exporter-metrics +components: + schemas: + GetNodeJwsResponse: + example: + jws: + payload: payload + signatures: + - protected: protected + signature: signature + header: + key: "" + - protected: protected + signature: signature + header: + key: "" + properties: + jws: + $ref: '#/components/schemas/JWSGeneral' + required: + - jws + type: object + GetConsortiumJwsResponse: + example: + jws: + payload: payload + signatures: + - protected: protected + signature: signature + header: + key: "" + - protected: protected + signature: signature + header: + key: "" + properties: + jws: + $ref: '#/components/schemas/JWSGeneral' + required: + - jws + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + GetNodeJwsRequest: + additionalProperties: false + properties: {} + type: object + GetConsortiumJwsRequest: + additionalProperties: false + properties: {} + type: object + JWSGeneral: + example: + payload: payload + signatures: + - protected: protected + signature: signature + header: + key: "" + - protected: protected + signature: signature + header: + key: "" + properties: + payload: + maxLength: 65535 + minLength: 1 + type: string + signatures: + items: + $ref: '#/components/schemas/JWSRecipient' + type: array + required: + - payload + - signatures + type: object + JWSRecipient: + description: "A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515\ + \ for info about standard." + example: + protected: protected + signature: signature + header: + key: "" + properties: + signature: + type: string + protected: + type: string + header: + additionalProperties: true + type: object + required: + - signature + type: object diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..3ea2bc87bf6 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,332 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetConsortiumJwsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + body *map[string]interface{} +} + +func (r ApiGetConsortiumJwsV1Request) Body(body map[string]interface{}) ApiGetConsortiumJwsV1Request { + r.body = &body + return r +} + +func (r ApiGetConsortiumJwsV1Request) Execute() (*GetConsortiumJwsResponse, *http.Response, error) { + return r.ApiService.GetConsortiumJwsV1Execute(r) +} + +/* +GetConsortiumJwsV1 Retrieves a consortium JWS + +The JWS asserting the consortium metadata (pub keys and hosts of nodes) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetConsortiumJwsV1Request +*/ +func (a *DefaultApiService) GetConsortiumJwsV1(ctx context.Context) ApiGetConsortiumJwsV1Request { + return ApiGetConsortiumJwsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetConsortiumJwsResponse +func (a *DefaultApiService) GetConsortiumJwsV1Execute(r ApiGetConsortiumJwsV1Request) (*GetConsortiumJwsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetConsortiumJwsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetConsortiumJwsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/consortium/jws" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetNodeJwsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + body *map[string]interface{} +} + +func (r ApiGetNodeJwsV1Request) Body(body map[string]interface{}) ApiGetNodeJwsV1Request { + r.body = &body + return r +} + +func (r ApiGetNodeJwsV1Request) Execute() (*GetNodeJwsResponse, *http.Response, error) { + return r.ApiService.GetNodeJwsV1Execute(r) +} + +/* +GetNodeJwsV1 Retrieves the JWT of a Cactus Node + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetNodeJwsV1Request +*/ +func (a *DefaultApiService) GetNodeJwsV1(ctx context.Context) ApiGetNodeJwsV1Request { + return ApiGetNodeJwsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetNodeJwsResponse +func (a *DefaultApiService) GetNodeJwsV1Execute(r ApiGetNodeJwsV1Request) (*GetNodeJwsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetNodeJwsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetNodeJwsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/node/jws" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..144fd85e34c --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Consortium Web Service API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..019bc90079c --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..03d49a67fd3 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,200 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetConsortiumJwsV1**](DefaultApi.md#GetConsortiumJwsV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/consortium/jws | Retrieves a consortium JWS +[**GetNodeJwsV1**](DefaultApi.md#GetNodeJwsV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/node/jws | Retrieves the JWT of a Cactus Node +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-consortium-manual/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + + +## GetConsortiumJwsV1 + +> GetConsortiumJwsResponse GetConsortiumJwsV1(ctx).Body(body).Execute() + +Retrieves a consortium JWS + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetConsortiumJwsV1(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetConsortiumJwsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConsortiumJwsV1`: GetConsortiumJwsResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetConsortiumJwsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConsortiumJwsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + +[**GetConsortiumJwsResponse**](GetConsortiumJwsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetNodeJwsV1 + +> GetNodeJwsResponse GetNodeJwsV1(ctx).Body(body).Execute() + +Retrieves the JWT of a Cactus Node + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetNodeJwsV1(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetNodeJwsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNodeJwsV1`: GetNodeJwsResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetNodeJwsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetNodeJwsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + +[**GetNodeJwsResponse**](GetNodeJwsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetConsortiumJwsResponse.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetConsortiumJwsResponse.md new file mode 100644 index 00000000000..431474195db --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetConsortiumJwsResponse.md @@ -0,0 +1,51 @@ +# GetConsortiumJwsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jws** | [**JWSGeneral**](JWSGeneral.md) | | + +## Methods + +### NewGetConsortiumJwsResponse + +`func NewGetConsortiumJwsResponse(jws JWSGeneral, ) *GetConsortiumJwsResponse` + +NewGetConsortiumJwsResponse instantiates a new GetConsortiumJwsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetConsortiumJwsResponseWithDefaults + +`func NewGetConsortiumJwsResponseWithDefaults() *GetConsortiumJwsResponse` + +NewGetConsortiumJwsResponseWithDefaults instantiates a new GetConsortiumJwsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJws + +`func (o *GetConsortiumJwsResponse) GetJws() JWSGeneral` + +GetJws returns the Jws field if non-nil, zero value otherwise. + +### GetJwsOk + +`func (o *GetConsortiumJwsResponse) GetJwsOk() (*JWSGeneral, bool)` + +GetJwsOk returns a tuple with the Jws field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJws + +`func (o *GetConsortiumJwsResponse) SetJws(v JWSGeneral)` + +SetJws sets Jws field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetNodeJwsResponse.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetNodeJwsResponse.md new file mode 100644 index 00000000000..54e55d923a9 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/GetNodeJwsResponse.md @@ -0,0 +1,51 @@ +# GetNodeJwsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jws** | [**JWSGeneral**](JWSGeneral.md) | | + +## Methods + +### NewGetNodeJwsResponse + +`func NewGetNodeJwsResponse(jws JWSGeneral, ) *GetNodeJwsResponse` + +NewGetNodeJwsResponse instantiates a new GetNodeJwsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetNodeJwsResponseWithDefaults + +`func NewGetNodeJwsResponseWithDefaults() *GetNodeJwsResponse` + +NewGetNodeJwsResponseWithDefaults instantiates a new GetNodeJwsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJws + +`func (o *GetNodeJwsResponse) GetJws() JWSGeneral` + +GetJws returns the Jws field if non-nil, zero value otherwise. + +### GetJwsOk + +`func (o *GetNodeJwsResponse) GetJwsOk() (*JWSGeneral, bool)` + +GetJwsOk returns a tuple with the Jws field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJws + +`func (o *GetNodeJwsResponse) SetJws(v JWSGeneral)` + +SetJws sets Jws field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md new file mode 100644 index 00000000000..ad9224d3a01 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSGeneral.md @@ -0,0 +1,72 @@ +# JWSGeneral + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Payload** | **string** | | +**Signatures** | [**[]JWSRecipient**](JWSRecipient.md) | | + +## Methods + +### NewJWSGeneral + +`func NewJWSGeneral(payload string, signatures []JWSRecipient, ) *JWSGeneral` + +NewJWSGeneral instantiates a new JWSGeneral object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJWSGeneralWithDefaults + +`func NewJWSGeneralWithDefaults() *JWSGeneral` + +NewJWSGeneralWithDefaults instantiates a new JWSGeneral object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPayload + +`func (o *JWSGeneral) GetPayload() string` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *JWSGeneral) GetPayloadOk() (*string, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *JWSGeneral) SetPayload(v string)` + +SetPayload sets Payload field to given value. + + +### GetSignatures + +`func (o *JWSGeneral) GetSignatures() []JWSRecipient` + +GetSignatures returns the Signatures field if non-nil, zero value otherwise. + +### GetSignaturesOk + +`func (o *JWSGeneral) GetSignaturesOk() (*[]JWSRecipient, bool)` + +GetSignaturesOk returns a tuple with the Signatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignatures + +`func (o *JWSGeneral) SetSignatures(v []JWSRecipient)` + +SetSignatures sets Signatures field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md new file mode 100644 index 00000000000..bb9c096427e --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/docs/JWSRecipient.md @@ -0,0 +1,103 @@ +# JWSRecipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signature** | **string** | | +**Protected** | Pointer to **string** | | [optional] +**Header** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewJWSRecipient + +`func NewJWSRecipient(signature string, ) *JWSRecipient` + +NewJWSRecipient instantiates a new JWSRecipient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJWSRecipientWithDefaults + +`func NewJWSRecipientWithDefaults() *JWSRecipient` + +NewJWSRecipientWithDefaults instantiates a new JWSRecipient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignature + +`func (o *JWSRecipient) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *JWSRecipient) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *JWSRecipient) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetProtected + +`func (o *JWSRecipient) GetProtected() string` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *JWSRecipient) GetProtectedOk() (*string, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *JWSRecipient) SetProtected(v string)` + +SetProtected sets Protected field to given value. + +### HasProtected + +`func (o *JWSRecipient) HasProtected() bool` + +HasProtected returns a boolean if a field has been set. + +### GetHeader + +`func (o *JWSRecipient) GetHeader() map[string]interface{}` + +GetHeader returns the Header field if non-nil, zero value otherwise. + +### GetHeaderOk + +`func (o *JWSRecipient) GetHeaderOk() (*map[string]interface{}, bool)` + +GetHeaderOk returns a tuple with the Header field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeader + +`func (o *JWSRecipient) SetHeader(v map[string]interface{})` + +SetHeader sets Header field to given value. + +### HasHeader + +`func (o *JWSRecipient) HasHeader() bool` + +HasHeader returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..48ab2c92fbb --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..5568bc97e5a --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_consortium_jws_response.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_consortium_jws_response.go new file mode 100644 index 00000000000..81cdbe9e17c --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_consortium_jws_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "encoding/json" +) + +// checks if the GetConsortiumJwsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetConsortiumJwsResponse{} + +// GetConsortiumJwsResponse struct for GetConsortiumJwsResponse +type GetConsortiumJwsResponse struct { + Jws JWSGeneral `json:"jws"` +} + +// NewGetConsortiumJwsResponse instantiates a new GetConsortiumJwsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetConsortiumJwsResponse(jws JWSGeneral) *GetConsortiumJwsResponse { + this := GetConsortiumJwsResponse{} + this.Jws = jws + return &this +} + +// NewGetConsortiumJwsResponseWithDefaults instantiates a new GetConsortiumJwsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetConsortiumJwsResponseWithDefaults() *GetConsortiumJwsResponse { + this := GetConsortiumJwsResponse{} + return &this +} + +// GetJws returns the Jws field value +func (o *GetConsortiumJwsResponse) GetJws() JWSGeneral { + if o == nil { + var ret JWSGeneral + return ret + } + + return o.Jws +} + +// GetJwsOk returns a tuple with the Jws field value +// and a boolean to check if the value has been set. +func (o *GetConsortiumJwsResponse) GetJwsOk() (*JWSGeneral, bool) { + if o == nil { + return nil, false + } + return &o.Jws, true +} + +// SetJws sets field value +func (o *GetConsortiumJwsResponse) SetJws(v JWSGeneral) { + o.Jws = v +} + +func (o GetConsortiumJwsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetConsortiumJwsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["jws"] = o.Jws + return toSerialize, nil +} + +type NullableGetConsortiumJwsResponse struct { + value *GetConsortiumJwsResponse + isSet bool +} + +func (v NullableGetConsortiumJwsResponse) Get() *GetConsortiumJwsResponse { + return v.value +} + +func (v *NullableGetConsortiumJwsResponse) Set(val *GetConsortiumJwsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetConsortiumJwsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetConsortiumJwsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetConsortiumJwsResponse(val *GetConsortiumJwsResponse) *NullableGetConsortiumJwsResponse { + return &NullableGetConsortiumJwsResponse{value: val, isSet: true} +} + +func (v NullableGetConsortiumJwsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetConsortiumJwsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_node_jws_response.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_node_jws_response.go new file mode 100644 index 00000000000..d42b2224928 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_get_node_jws_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "encoding/json" +) + +// checks if the GetNodeJwsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetNodeJwsResponse{} + +// GetNodeJwsResponse struct for GetNodeJwsResponse +type GetNodeJwsResponse struct { + Jws JWSGeneral `json:"jws"` +} + +// NewGetNodeJwsResponse instantiates a new GetNodeJwsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetNodeJwsResponse(jws JWSGeneral) *GetNodeJwsResponse { + this := GetNodeJwsResponse{} + this.Jws = jws + return &this +} + +// NewGetNodeJwsResponseWithDefaults instantiates a new GetNodeJwsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetNodeJwsResponseWithDefaults() *GetNodeJwsResponse { + this := GetNodeJwsResponse{} + return &this +} + +// GetJws returns the Jws field value +func (o *GetNodeJwsResponse) GetJws() JWSGeneral { + if o == nil { + var ret JWSGeneral + return ret + } + + return o.Jws +} + +// GetJwsOk returns a tuple with the Jws field value +// and a boolean to check if the value has been set. +func (o *GetNodeJwsResponse) GetJwsOk() (*JWSGeneral, bool) { + if o == nil { + return nil, false + } + return &o.Jws, true +} + +// SetJws sets field value +func (o *GetNodeJwsResponse) SetJws(v JWSGeneral) { + o.Jws = v +} + +func (o GetNodeJwsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetNodeJwsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["jws"] = o.Jws + return toSerialize, nil +} + +type NullableGetNodeJwsResponse struct { + value *GetNodeJwsResponse + isSet bool +} + +func (v NullableGetNodeJwsResponse) Get() *GetNodeJwsResponse { + return v.value +} + +func (v *NullableGetNodeJwsResponse) Set(val *GetNodeJwsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetNodeJwsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetNodeJwsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetNodeJwsResponse(val *GetNodeJwsResponse) *NullableGetNodeJwsResponse { + return &NullableGetNodeJwsResponse{value: val, isSet: true} +} + +func (v NullableGetNodeJwsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetNodeJwsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_general.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_general.go new file mode 100644 index 00000000000..53f2ce1f897 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_general.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "encoding/json" +) + +// checks if the JWSGeneral type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JWSGeneral{} + +// JWSGeneral struct for JWSGeneral +type JWSGeneral struct { + Payload string `json:"payload"` + Signatures []JWSRecipient `json:"signatures"` +} + +// NewJWSGeneral instantiates a new JWSGeneral object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJWSGeneral(payload string, signatures []JWSRecipient) *JWSGeneral { + this := JWSGeneral{} + this.Payload = payload + this.Signatures = signatures + return &this +} + +// NewJWSGeneralWithDefaults instantiates a new JWSGeneral object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJWSGeneralWithDefaults() *JWSGeneral { + this := JWSGeneral{} + return &this +} + +// GetPayload returns the Payload field value +func (o *JWSGeneral) GetPayload() string { + if o == nil { + var ret string + return ret + } + + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value +// and a boolean to check if the value has been set. +func (o *JWSGeneral) GetPayloadOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Payload, true +} + +// SetPayload sets field value +func (o *JWSGeneral) SetPayload(v string) { + o.Payload = v +} + +// GetSignatures returns the Signatures field value +func (o *JWSGeneral) GetSignatures() []JWSRecipient { + if o == nil { + var ret []JWSRecipient + return ret + } + + return o.Signatures +} + +// GetSignaturesOk returns a tuple with the Signatures field value +// and a boolean to check if the value has been set. +func (o *JWSGeneral) GetSignaturesOk() ([]JWSRecipient, bool) { + if o == nil { + return nil, false + } + return o.Signatures, true +} + +// SetSignatures sets field value +func (o *JWSGeneral) SetSignatures(v []JWSRecipient) { + o.Signatures = v +} + +func (o JWSGeneral) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JWSGeneral) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["payload"] = o.Payload + toSerialize["signatures"] = o.Signatures + return toSerialize, nil +} + +type NullableJWSGeneral struct { + value *JWSGeneral + isSet bool +} + +func (v NullableJWSGeneral) Get() *JWSGeneral { + return v.value +} + +func (v *NullableJWSGeneral) Set(val *JWSGeneral) { + v.value = val + v.isSet = true +} + +func (v NullableJWSGeneral) IsSet() bool { + return v.isSet +} + +func (v *NullableJWSGeneral) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJWSGeneral(val *JWSGeneral) *NullableJWSGeneral { + return &NullableJWSGeneral{value: val, isSet: true} +} + +func (v NullableJWSGeneral) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJWSGeneral) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_recipient.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_recipient.go new file mode 100644 index 00000000000..fff445587f9 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/model_jws_recipient.go @@ -0,0 +1,189 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "encoding/json" +) + +// checks if the JWSRecipient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JWSRecipient{} + +// JWSRecipient A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515 for info about standard. +type JWSRecipient struct { + Signature string `json:"signature"` + Protected *string `json:"protected,omitempty"` + Header map[string]interface{} `json:"header,omitempty"` +} + +// NewJWSRecipient instantiates a new JWSRecipient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJWSRecipient(signature string) *JWSRecipient { + this := JWSRecipient{} + this.Signature = signature + return &this +} + +// NewJWSRecipientWithDefaults instantiates a new JWSRecipient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJWSRecipientWithDefaults() *JWSRecipient { + this := JWSRecipient{} + return &this +} + +// GetSignature returns the Signature field value +func (o *JWSRecipient) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *JWSRecipient) SetSignature(v string) { + o.Signature = v +} + +// GetProtected returns the Protected field value if set, zero value otherwise. +func (o *JWSRecipient) GetProtected() string { + if o == nil || IsNil(o.Protected) { + var ret string + return ret + } + return *o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetProtectedOk() (*string, bool) { + if o == nil || IsNil(o.Protected) { + return nil, false + } + return o.Protected, true +} + +// HasProtected returns a boolean if a field has been set. +func (o *JWSRecipient) HasProtected() bool { + if o != nil && !IsNil(o.Protected) { + return true + } + + return false +} + +// SetProtected gets a reference to the given string and assigns it to the Protected field. +func (o *JWSRecipient) SetProtected(v string) { + o.Protected = &v +} + +// GetHeader returns the Header field value if set, zero value otherwise. +func (o *JWSRecipient) GetHeader() map[string]interface{} { + if o == nil || IsNil(o.Header) { + var ret map[string]interface{} + return ret + } + return o.Header +} + +// GetHeaderOk returns a tuple with the Header field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JWSRecipient) GetHeaderOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Header) { + return map[string]interface{}{}, false + } + return o.Header, true +} + +// HasHeader returns a boolean if a field has been set. +func (o *JWSRecipient) HasHeader() bool { + if o != nil && !IsNil(o.Header) { + return true + } + + return false +} + +// SetHeader gets a reference to the given map[string]interface{} and assigns it to the Header field. +func (o *JWSRecipient) SetHeader(v map[string]interface{}) { + o.Header = v +} + +func (o JWSRecipient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JWSRecipient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["signature"] = o.Signature + if !IsNil(o.Protected) { + toSerialize["protected"] = o.Protected + } + if !IsNil(o.Header) { + toSerialize["header"] = o.Header + } + return toSerialize, nil +} + +type NullableJWSRecipient struct { + value *JWSRecipient + isSet bool +} + +func (v NullableJWSRecipient) Get() *JWSRecipient { + return v.value +} + +func (v *NullableJWSRecipient) Set(val *JWSRecipient) { + v.value = val + v.isSet = true +} + +func (v NullableJWSRecipient) IsSet() bool { + return v.isSet +} + +func (v *NullableJWSRecipient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJWSRecipient(val *JWSRecipient) *NullableJWSRecipient { + return &NullableJWSRecipient{value: val, isSet: true} +} + +func (v NullableJWSRecipient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJWSRecipient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..2dd4069eb42 --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..1fc2abbf19d --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-consortium-manual_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetConsortiumJwsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetConsortiumJwsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetNodeJwsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetNodeJwsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..69dcf4da99f --- /dev/null +++ b/packages/cactus-plugin-consortium-manual/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Consortium Web Service + +Manage a Cactus consortium through the APIs. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-consortium-manual + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/README.md index 693e76b0c03..0936e5a48e3 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Consortium Web Service - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata] Manage a Cactus consortium through the APIs. Needs administrative privileges. diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 5b49a6ad982..5db81c61b99 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 3c91a7bf600..b521552a496 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 39cfdd9f28a..de6fb690ebd 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index a712c605a0b..d02f571d844 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 49c37e0844b..b491adeed4f 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index fb2116c869a..b048f1b2ffe 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index de86f1170a6..9b2cc78b183 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetConsortiumJwsResponse.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetConsortiumJwsResponse.java index 99a70e32569..8f4f3a44e19 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetConsortiumJwsResponse.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetConsortiumJwsResponse.java @@ -51,7 +51,7 @@ /** * GetConsortiumJwsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class GetConsortiumJwsResponse { public static final String SERIALIZED_NAME_JWS = "jws"; @SerializedName(SERIALIZED_NAME_JWS) diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetNodeJwsResponse.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetNodeJwsResponse.java index 9e570e72777..0e889f4fcd7 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetNodeJwsResponse.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetNodeJwsResponse.java @@ -51,7 +51,7 @@ /** * GetNodeJwsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class GetNodeJwsResponse { public static final String SERIALIZED_NAME_JWS = "jws"; @SerializedName(SERIALIZED_NAME_JWS) diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java index eb27cd73d97..135208dd0c1 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSGeneral.java @@ -53,7 +53,7 @@ /** * JWSGeneral */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class JWSGeneral { public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) diff --git a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java index 84a07b5a419..b6b9b77045c 100644 --- a/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java +++ b/packages/cactus-plugin-consortium-manual/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JWSRecipient.java @@ -52,7 +52,7 @@ /** * A JSON Web Signature. See: https://tools.ietf.org/html/rfc7515 for info about standard. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.382618367+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.192712270+05:30[Asia/Kolkata]") public class JWSRecipient { public static final String SERIALIZED_NAME_SIGNATURE = "signature"; @SerializedName(SERIALIZED_NAME_SIGNATURE) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..1037c73001c --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,45 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetSingleStatusRequest.md +docs/GetStatusRequest.md +docs/InitializeRequest.md +docs/InvokeContractV1Response.md +docs/NewContractRequest.md +docs/NewContractRequestGas.md +docs/RefundRequest.md +docs/RunTransactionResponse.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3TransactionReceipt.md +docs/WithdrawRequest.md +git_push.sh +go.mod +go.sum +model_get_single_status_request.go +model_get_status_request.go +model_initialize_request.go +model_invoke_contract_v1_response.go +model_new_contract_request.go +model_new_contract_request_gas.go +model_refund_request.go +model_run_transaction_response.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction_receipt.go +model_withdraw_request.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..6f726d1abec --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,131 @@ +# Go API client for @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-htlc-eth-besu-erc20 "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu-erc20.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu-erc20.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu-erc20.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu-erc20.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetSingleStatusV1**](docs/DefaultApi.md#getsinglestatusv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status | +*DefaultApi* | [**GetStatusV1**](docs/DefaultApi.md#getstatusv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status | +*DefaultApi* | [**InitializeV1**](docs/DefaultApi.md#initializev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/initialize | Initialize contract +*DefaultApi* | [**NewContractV1**](docs/DefaultApi.md#newcontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/new-contract | Create a new hashtimelock contract +*DefaultApi* | [**RefundV1**](docs/DefaultApi.md#refundv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/refund | Refund a hashtimelock contract +*DefaultApi* | [**WithdrawV1**](docs/DefaultApi.md#withdrawv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/withdraw | Withdraw a hashtimelock contract + + +## Documentation For Models + + - [GetSingleStatusRequest](docs/GetSingleStatusRequest.md) + - [GetStatusRequest](docs/GetStatusRequest.md) + - [InitializeRequest](docs/InitializeRequest.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [NewContractRequest](docs/NewContractRequest.md) + - [NewContractRequestGas](docs/NewContractRequestGas.md) + - [RefundRequest](docs/RefundRequest.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + - [WithdrawRequest](docs/WithdrawRequest.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..3091cead387 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,575 @@ +openapi: 3.0.3 +info: + description: Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/initialize: + post: + operationId: initializeV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InitializeRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + summary: Initialize contract + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/initialize + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/withdraw: + post: + operationId: withdrawV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WithdrawRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Withdraw a hashtimelock contract + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/withdraw + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status: + post: + operationId: getStatusV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetStatusRequest' + responses: + "200": + content: + application/json: + schema: + items: + format: uint256 + type: integer + type: array + description: Array of status + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status: + post: + operationId: getSingleStatusV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetSingleStatusRequest' + responses: + "200": + content: + application/json: + schema: + format: uint256 + type: integer + description: Status + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/refund: + post: + operationId: refundV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefundRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Refund a hashtimelock contract + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/refund + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/new-contract: + post: + operationId: newContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NewContractRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Create a new hashtimelock contract + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/new-contract +components: + responses: + GetStatusResponse: + content: + application/json: + schema: + items: + format: uint256 + type: integer + type: array + description: Array of status + GetSingleStatusResponse: + content: + application/json: + schema: + format: uint256 + type: integer + description: Status + schemas: + NewContractRequest: + additionalProperties: false + example: + receiver: receiver + outputAmount: 6.027456183070403 + outputNetwork: outputNetwork + connectorId: connectorId + hashLock: hashLock + contractAddress: contractAddress + inputAmount: 0.8008281904610115 + tokenAddress: tokenAddress + outputAddress: outputAddress + keychainId: keychainId + gas: null + web3SigningCredential: + type: null + expiration: 1.4658129805029452 + properties: + contractAddress: + description: Contract address + nullable: false + type: string + inputAmount: + description: Input amount to lock + nullable: false + type: number + outputAmount: + description: Output amount to lock + nullable: false + type: number + expiration: + description: Timestamp to expire the contract + nullable: false + type: number + hashLock: + description: Hashlock needed to refund the amount + nullable: false + type: string + tokenAddress: + description: The token address + nullable: false + type: string + receiver: + description: The receiver address + nullable: false + type: string + outputNetwork: + description: The output network id + nullable: false + type: string + outputAddress: + description: The output address to receive the tokens + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychian plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractRequest_gas' + required: + - connectorId + - contractAddress + - expiration + - hashLock + - inputAmount + - keychainId + - outputAddress + - outputAmount + - outputNetwork + - receiver + - tokenAddress + - web3SigningCredential + type: object + RefundRequest: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + gas: null + web3SigningCredential: + type: null + id: id + properties: + id: + description: Contract htlc id for refund + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractRequest_gas' + required: + - connectorId + - id + - keychainId + - web3SigningCredential + type: object + WithdrawRequest: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + gas: null + web3SigningCredential: + type: null + id: id + secret: secret + properties: + id: + description: Contract locked id + nullable: false + type: string + secret: + description: Secret need to unlock the contract + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractRequest_gas' + required: + - connectorId + - id + - keychainId + - secret + - web3SigningCredential + type: object + GetStatusRequest: + additionalProperties: false + description: Defines the parameters for retrieving the status of the HTLC swap. + example: + keychainId: keychainId + connectorId: connectorId + ids: + - ids + - ids + web3SigningCredential: + type: null + properties: + ids: + items: + type: string + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + type: string + keychainId: + type: string + required: + - connectorId + - ids + - keychainId + - web3SigningCredential + type: object + GetSingleStatusRequest: + additionalProperties: false + description: Defines the parameters for retrieving the single status of the + HTLC swap. + example: + keychainId: keychainId + connectorId: connectorId + web3SigningCredential: + type: null + id: id + properties: + id: + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + type: string + keychainId: + type: string + required: + - connectorId + - id + - keychainId + - web3SigningCredential + type: object + InitializeRequest: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + constructorArgs: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + properties: + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + type: number + required: + - connectorId + - constructorArgs + - keychainId + - web3SigningCredential + type: object + RunTransactionResponse: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - keychainId + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + NewContractRequest_gas: + oneOf: + - type: string + - type: number diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..74ec777e890 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,653 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetSingleStatusV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getSingleStatusRequest *GetSingleStatusRequest +} + +func (r ApiGetSingleStatusV1Request) GetSingleStatusRequest(getSingleStatusRequest GetSingleStatusRequest) ApiGetSingleStatusV1Request { + r.getSingleStatusRequest = &getSingleStatusRequest + return r +} + +func (r ApiGetSingleStatusV1Request) Execute() (int32, *http.Response, error) { + return r.ApiService.GetSingleStatusV1Execute(r) +} + +/* +GetSingleStatusV1 Method for GetSingleStatusV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSingleStatusV1Request +*/ +func (a *DefaultApiService) GetSingleStatusV1(ctx context.Context) ApiGetSingleStatusV1Request { + return ApiGetSingleStatusV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return int32 +func (a *DefaultApiService) GetSingleStatusV1Execute(r ApiGetSingleStatusV1Request) (int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int32 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSingleStatusV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getSingleStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetStatusV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getStatusRequest *GetStatusRequest +} + +func (r ApiGetStatusV1Request) GetStatusRequest(getStatusRequest GetStatusRequest) ApiGetStatusV1Request { + r.getStatusRequest = &getStatusRequest + return r +} + +func (r ApiGetStatusV1Request) Execute() ([]int32, *http.Response, error) { + return r.ApiService.GetStatusV1Execute(r) +} + +/* +GetStatusV1 Method for GetStatusV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStatusV1Request +*/ +func (a *DefaultApiService) GetStatusV1(ctx context.Context) ApiGetStatusV1Request { + return ApiGetStatusV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []int32 +func (a *DefaultApiService) GetStatusV1Execute(r ApiGetStatusV1Request) ([]int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []int32 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetStatusV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInitializeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + initializeRequest *InitializeRequest +} + +func (r ApiInitializeV1Request) InitializeRequest(initializeRequest InitializeRequest) ApiInitializeV1Request { + r.initializeRequest = &initializeRequest + return r +} + +func (r ApiInitializeV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.InitializeV1Execute(r) +} + +/* +InitializeV1 Initialize contract + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInitializeV1Request +*/ +func (a *DefaultApiService) InitializeV1(ctx context.Context) ApiInitializeV1Request { + return ApiInitializeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) InitializeV1Execute(r ApiInitializeV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InitializeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/initialize" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.initializeRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiNewContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + newContractRequest *NewContractRequest +} + +func (r ApiNewContractV1Request) NewContractRequest(newContractRequest NewContractRequest) ApiNewContractV1Request { + r.newContractRequest = &newContractRequest + return r +} + +func (r ApiNewContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.NewContractV1Execute(r) +} + +/* +NewContractV1 Create a new hashtimelock contract + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiNewContractV1Request +*/ +func (a *DefaultApiService) NewContractV1(ctx context.Context) ApiNewContractV1Request { + return ApiNewContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) NewContractV1Execute(r ApiNewContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.NewContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/new-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.newContractRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRefundV1Request struct { + ctx context.Context + ApiService *DefaultApiService + refundRequest *RefundRequest +} + +func (r ApiRefundV1Request) RefundRequest(refundRequest RefundRequest) ApiRefundV1Request { + r.refundRequest = &refundRequest + return r +} + +func (r ApiRefundV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.RefundV1Execute(r) +} + +/* +RefundV1 Refund a hashtimelock contract + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRefundV1Request +*/ +func (a *DefaultApiService) RefundV1(ctx context.Context) ApiRefundV1Request { + return ApiRefundV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) RefundV1Execute(r ApiRefundV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RefundV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/refund" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.refundRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWithdrawV1Request struct { + ctx context.Context + ApiService *DefaultApiService + withdrawRequest *WithdrawRequest +} + +func (r ApiWithdrawV1Request) WithdrawRequest(withdrawRequest WithdrawRequest) ApiWithdrawV1Request { + r.withdrawRequest = &withdrawRequest + return r +} + +func (r ApiWithdrawV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.WithdrawV1Execute(r) +} + +/* +WithdrawV1 Withdraw a hashtimelock contract + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWithdrawV1Request +*/ +func (a *DefaultApiService) WithdrawV1(ctx context.Context) ApiWithdrawV1Request { + return ApiWithdrawV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) WithdrawV1Execute(r ApiWithdrawV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.WithdrawV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/withdraw" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.withdrawRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..5bea2091218 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..5cdf8b42d1f --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..42f1ce2a63a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,398 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSingleStatusV1**](DefaultApi.md#GetSingleStatusV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status | +[**GetStatusV1**](DefaultApi.md#GetStatusV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status | +[**InitializeV1**](DefaultApi.md#InitializeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/initialize | Initialize contract +[**NewContractV1**](DefaultApi.md#NewContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/new-contract | Create a new hashtimelock contract +[**RefundV1**](DefaultApi.md#RefundV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/refund | Refund a hashtimelock contract +[**WithdrawV1**](DefaultApi.md#WithdrawV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/withdraw | Withdraw a hashtimelock contract + + + +## GetSingleStatusV1 + +> int32 GetSingleStatusV1(ctx).GetSingleStatusRequest(getSingleStatusRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + getSingleStatusRequest := *openapiclient.NewGetSingleStatusRequest("Id_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // GetSingleStatusRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetSingleStatusV1(context.Background()).GetSingleStatusRequest(getSingleStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSingleStatusV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleStatusV1`: int32 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSingleStatusV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSingleStatusV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getSingleStatusRequest** | [**GetSingleStatusRequest**](GetSingleStatusRequest.md) | | + +### Return type + +**int32** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetStatusV1 + +> []int32 GetStatusV1(ctx).GetStatusRequest(getStatusRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + getStatusRequest := *openapiclient.NewGetStatusRequest([]string{"Ids_example"}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // GetStatusRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetStatusV1(context.Background()).GetStatusRequest(getStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetStatusV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusV1`: []int32 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetStatusV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStatusV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getStatusRequest** | [**GetStatusRequest**](GetStatusRequest.md) | | + +### Return type + +**[]int32** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InitializeV1 + +> RunTransactionResponse InitializeV1(ctx).InitializeRequest(initializeRequest).Execute() + +Initialize contract + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + initializeRequest := *openapiclient.NewInitializeRequest("ConnectorId_example", "KeychainId_example", []interface{}{nil}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}) // InitializeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InitializeV1(context.Background()).InitializeRequest(initializeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InitializeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InitializeV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InitializeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInitializeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **initializeRequest** | [**InitializeRequest**](InitializeRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## NewContractV1 + +> InvokeContractV1Response NewContractV1(ctx).NewContractRequest(newContractRequest).Execute() + +Create a new hashtimelock contract + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + newContractRequest := *openapiclient.NewNewContractRequest("ContractAddress_example", float32(123), float32(123), float32(123), "HashLock_example", "TokenAddress_example", "Receiver_example", "OutputNetwork_example", "OutputAddress_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // NewContractRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.NewContractV1(context.Background()).NewContractRequest(newContractRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.NewContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `NewContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.NewContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiNewContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **newContractRequest** | [**NewContractRequest**](NewContractRequest.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RefundV1 + +> InvokeContractV1Response RefundV1(ctx).RefundRequest(refundRequest).Execute() + +Refund a hashtimelock contract + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + refundRequest := *openapiclient.NewRefundRequest("Id_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // RefundRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RefundV1(context.Background()).RefundRequest(refundRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RefundV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RefundV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RefundV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRefundV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **refundRequest** | [**RefundRequest**](RefundRequest.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WithdrawV1 + +> InvokeContractV1Response WithdrawV1(ctx).WithdrawRequest(withdrawRequest).Execute() + +Withdraw a hashtimelock contract + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func main() { + withdrawRequest := *openapiclient.NewWithdrawRequest("Id_example", "Secret_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // WithdrawRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.WithdrawV1(context.Background()).WithdrawRequest(withdrawRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.WithdrawV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WithdrawV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.WithdrawV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWithdrawV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **withdrawRequest** | [**WithdrawRequest**](WithdrawRequest.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md new file mode 100644 index 00000000000..0c4e3cd0246 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md @@ -0,0 +1,114 @@ +# GetSingleStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | | +**KeychainId** | **string** | | + +## Methods + +### NewGetSingleStatusRequest + +`func NewGetSingleStatusRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *GetSingleStatusRequest` + +NewGetSingleStatusRequest instantiates a new GetSingleStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetSingleStatusRequestWithDefaults + +`func NewGetSingleStatusRequestWithDefaults() *GetSingleStatusRequest` + +NewGetSingleStatusRequestWithDefaults instantiates a new GetSingleStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GetSingleStatusRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetSingleStatusRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GetSingleStatusRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWeb3SigningCredential + +`func (o *GetSingleStatusRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *GetSingleStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *GetSingleStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *GetSingleStatusRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *GetSingleStatusRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *GetSingleStatusRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *GetSingleStatusRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *GetSingleStatusRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *GetSingleStatusRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md new file mode 100644 index 00000000000..b5f87ce6b40 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md @@ -0,0 +1,114 @@ +# GetStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | **[]string** | | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | | +**KeychainId** | **string** | | + +## Methods + +### NewGetStatusRequest + +`func NewGetStatusRequest(ids []string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *GetStatusRequest` + +NewGetStatusRequest instantiates a new GetStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetStatusRequestWithDefaults + +`func NewGetStatusRequestWithDefaults() *GetStatusRequest` + +NewGetStatusRequestWithDefaults instantiates a new GetStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *GetStatusRequest) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *GetStatusRequest) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *GetStatusRequest) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetWeb3SigningCredential + +`func (o *GetStatusRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *GetStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *GetStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *GetStatusRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *GetStatusRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *GetStatusRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *GetStatusRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *GetStatusRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *GetStatusRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md new file mode 100644 index 00000000000..5835ee518ec --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md @@ -0,0 +1,140 @@ +# InitializeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**ConstructorArgs** | **[]interface{}** | | [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] + +## Methods + +### NewInitializeRequest + +`func NewInitializeRequest(connectorId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, ) *InitializeRequest` + +NewInitializeRequest instantiates a new InitializeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInitializeRequestWithDefaults + +`func NewInitializeRequestWithDefaults() *InitializeRequest` + +NewInitializeRequestWithDefaults instantiates a new InitializeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorId + +`func (o *InitializeRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *InitializeRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *InitializeRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *InitializeRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InitializeRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InitializeRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetConstructorArgs + +`func (o *InitializeRequest) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *InitializeRequest) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *InitializeRequest) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + + +### GetWeb3SigningCredential + +`func (o *InitializeRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InitializeRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InitializeRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *InitializeRequest) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InitializeRequest) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InitializeRequest) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InitializeRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequest.md new file mode 100644 index 00000000000..adca20a3244 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequest.md @@ -0,0 +1,308 @@ +# NewContractRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractAddress** | **string** | Contract address | +**InputAmount** | **float32** | Input amount to lock | +**OutputAmount** | **float32** | Output amount to lock | +**Expiration** | **float32** | Timestamp to expire the contract | +**HashLock** | **string** | Hashlock needed to refund the amount | +**TokenAddress** | **string** | The token address | +**Receiver** | **string** | The receiver address | +**OutputNetwork** | **string** | The output network id | +**OutputAddress** | **string** | The output address to receive the tokens | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychian plugin | +**Gas** | Pointer to [**NewContractRequestGas**](NewContractRequestGas.md) | | [optional] + +## Methods + +### NewNewContractRequest + +`func NewNewContractRequest(contractAddress string, inputAmount float32, outputAmount float32, expiration float32, hashLock string, tokenAddress string, receiver string, outputNetwork string, outputAddress string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *NewContractRequest` + +NewNewContractRequest instantiates a new NewContractRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNewContractRequestWithDefaults + +`func NewNewContractRequestWithDefaults() *NewContractRequest` + +NewNewContractRequestWithDefaults instantiates a new NewContractRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractAddress + +`func (o *NewContractRequest) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *NewContractRequest) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *NewContractRequest) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetInputAmount + +`func (o *NewContractRequest) GetInputAmount() float32` + +GetInputAmount returns the InputAmount field if non-nil, zero value otherwise. + +### GetInputAmountOk + +`func (o *NewContractRequest) GetInputAmountOk() (*float32, bool)` + +GetInputAmountOk returns a tuple with the InputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputAmount + +`func (o *NewContractRequest) SetInputAmount(v float32)` + +SetInputAmount sets InputAmount field to given value. + + +### GetOutputAmount + +`func (o *NewContractRequest) GetOutputAmount() float32` + +GetOutputAmount returns the OutputAmount field if non-nil, zero value otherwise. + +### GetOutputAmountOk + +`func (o *NewContractRequest) GetOutputAmountOk() (*float32, bool)` + +GetOutputAmountOk returns a tuple with the OutputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAmount + +`func (o *NewContractRequest) SetOutputAmount(v float32)` + +SetOutputAmount sets OutputAmount field to given value. + + +### GetExpiration + +`func (o *NewContractRequest) GetExpiration() float32` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *NewContractRequest) GetExpirationOk() (*float32, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *NewContractRequest) SetExpiration(v float32)` + +SetExpiration sets Expiration field to given value. + + +### GetHashLock + +`func (o *NewContractRequest) GetHashLock() string` + +GetHashLock returns the HashLock field if non-nil, zero value otherwise. + +### GetHashLockOk + +`func (o *NewContractRequest) GetHashLockOk() (*string, bool)` + +GetHashLockOk returns a tuple with the HashLock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashLock + +`func (o *NewContractRequest) SetHashLock(v string)` + +SetHashLock sets HashLock field to given value. + + +### GetTokenAddress + +`func (o *NewContractRequest) GetTokenAddress() string` + +GetTokenAddress returns the TokenAddress field if non-nil, zero value otherwise. + +### GetTokenAddressOk + +`func (o *NewContractRequest) GetTokenAddressOk() (*string, bool)` + +GetTokenAddressOk returns a tuple with the TokenAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenAddress + +`func (o *NewContractRequest) SetTokenAddress(v string)` + +SetTokenAddress sets TokenAddress field to given value. + + +### GetReceiver + +`func (o *NewContractRequest) GetReceiver() string` + +GetReceiver returns the Receiver field if non-nil, zero value otherwise. + +### GetReceiverOk + +`func (o *NewContractRequest) GetReceiverOk() (*string, bool)` + +GetReceiverOk returns a tuple with the Receiver field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiver + +`func (o *NewContractRequest) SetReceiver(v string)` + +SetReceiver sets Receiver field to given value. + + +### GetOutputNetwork + +`func (o *NewContractRequest) GetOutputNetwork() string` + +GetOutputNetwork returns the OutputNetwork field if non-nil, zero value otherwise. + +### GetOutputNetworkOk + +`func (o *NewContractRequest) GetOutputNetworkOk() (*string, bool)` + +GetOutputNetworkOk returns a tuple with the OutputNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputNetwork + +`func (o *NewContractRequest) SetOutputNetwork(v string)` + +SetOutputNetwork sets OutputNetwork field to given value. + + +### GetOutputAddress + +`func (o *NewContractRequest) GetOutputAddress() string` + +GetOutputAddress returns the OutputAddress field if non-nil, zero value otherwise. + +### GetOutputAddressOk + +`func (o *NewContractRequest) GetOutputAddressOk() (*string, bool)` + +GetOutputAddressOk returns a tuple with the OutputAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAddress + +`func (o *NewContractRequest) SetOutputAddress(v string)` + +SetOutputAddress sets OutputAddress field to given value. + + +### GetWeb3SigningCredential + +`func (o *NewContractRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *NewContractRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *NewContractRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *NewContractRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *NewContractRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *NewContractRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *NewContractRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *NewContractRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *NewContractRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *NewContractRequest) GetGas() NewContractRequestGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *NewContractRequest) GetGasOk() (*NewContractRequestGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *NewContractRequest) SetGas(v NewContractRequestGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *NewContractRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequestGas.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequestGas.md new file mode 100644 index 00000000000..d3be7610bbf --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/NewContractRequestGas.md @@ -0,0 +1,30 @@ +# NewContractRequestGas + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewNewContractRequestGas + +`func NewNewContractRequestGas() *NewContractRequestGas` + +NewNewContractRequestGas instantiates a new NewContractRequestGas object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNewContractRequestGasWithDefaults + +`func NewNewContractRequestGasWithDefaults() *NewContractRequestGas` + +NewNewContractRequestGasWithDefaults instantiates a new NewContractRequestGas object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RefundRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RefundRequest.md new file mode 100644 index 00000000000..b2fab0d6b15 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RefundRequest.md @@ -0,0 +1,140 @@ +# RefundRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Contract htlc id for refund | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**Gas** | Pointer to [**NewContractRequestGas**](NewContractRequestGas.md) | | [optional] + +## Methods + +### NewRefundRequest + +`func NewRefundRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *RefundRequest` + +NewRefundRequest instantiates a new RefundRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRefundRequestWithDefaults + +`func NewRefundRequestWithDefaults() *RefundRequest` + +NewRefundRequestWithDefaults instantiates a new RefundRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RefundRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RefundRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RefundRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWeb3SigningCredential + +`func (o *RefundRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RefundRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RefundRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *RefundRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *RefundRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *RefundRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *RefundRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *RefundRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *RefundRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *RefundRequest) GetGas() NewContractRequestGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *RefundRequest) GetGasOk() (*NewContractRequestGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *RefundRequest) SetGas(v NewContractRequestGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *RefundRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..3d96e8d596a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,51 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..bcd385ee609 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,135 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, secret string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..8a08034fcaa --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,114 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..f44682c74a0 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,234 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/WithdrawRequest.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/WithdrawRequest.md new file mode 100644 index 00000000000..d9ac9229d75 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/docs/WithdrawRequest.md @@ -0,0 +1,161 @@ +# WithdrawRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Contract locked id | +**Secret** | **string** | Secret need to unlock the contract | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**Gas** | Pointer to [**NewContractRequestGas**](NewContractRequestGas.md) | | [optional] + +## Methods + +### NewWithdrawRequest + +`func NewWithdrawRequest(id string, secret string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *WithdrawRequest` + +NewWithdrawRequest instantiates a new WithdrawRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWithdrawRequestWithDefaults + +`func NewWithdrawRequestWithDefaults() *WithdrawRequest` + +NewWithdrawRequestWithDefaults instantiates a new WithdrawRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WithdrawRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WithdrawRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WithdrawRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSecret + +`func (o *WithdrawRequest) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *WithdrawRequest) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *WithdrawRequest) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetWeb3SigningCredential + +`func (o *WithdrawRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *WithdrawRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *WithdrawRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *WithdrawRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *WithdrawRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *WithdrawRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *WithdrawRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *WithdrawRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *WithdrawRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *WithdrawRequest) GetGas() NewContractRequestGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *WithdrawRequest) GetGasOk() (*NewContractRequestGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *WithdrawRequest) SetGas(v NewContractRequestGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *WithdrawRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..e5c45a72e44 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..e492b0308d7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_single_status_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_single_status_request.go new file mode 100644 index 00000000000..b2709369703 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_single_status_request.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the GetSingleStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSingleStatusRequest{} + +// GetSingleStatusRequest Defines the parameters for retrieving the single status of the HTLC swap. +type GetSingleStatusRequest struct { + Id string `json:"id"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + ConnectorId string `json:"connectorId"` + KeychainId string `json:"keychainId"` +} + +// NewGetSingleStatusRequest instantiates a new GetSingleStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetSingleStatusRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *GetSingleStatusRequest { + this := GetSingleStatusRequest{} + this.Id = id + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewGetSingleStatusRequestWithDefaults instantiates a new GetSingleStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetSingleStatusRequestWithDefaults() *GetSingleStatusRequest { + this := GetSingleStatusRequest{} + return &this +} + +// GetId returns the Id field value +func (o *GetSingleStatusRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetSingleStatusRequest) SetId(v string) { + o.Id = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *GetSingleStatusRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *GetSingleStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *GetSingleStatusRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *GetSingleStatusRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *GetSingleStatusRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *GetSingleStatusRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o GetSingleStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSingleStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableGetSingleStatusRequest struct { + value *GetSingleStatusRequest + isSet bool +} + +func (v NullableGetSingleStatusRequest) Get() *GetSingleStatusRequest { + return v.value +} + +func (v *NullableGetSingleStatusRequest) Set(val *GetSingleStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetSingleStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSingleStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSingleStatusRequest(val *GetSingleStatusRequest) *NullableGetSingleStatusRequest { + return &NullableGetSingleStatusRequest{value: val, isSet: true} +} + +func (v NullableGetSingleStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSingleStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_status_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_status_request.go new file mode 100644 index 00000000000..93a99422ddf --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_get_status_request.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the GetStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetStatusRequest{} + +// GetStatusRequest Defines the parameters for retrieving the status of the HTLC swap. +type GetStatusRequest struct { + Ids []string `json:"ids"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + ConnectorId string `json:"connectorId"` + KeychainId string `json:"keychainId"` +} + +// NewGetStatusRequest instantiates a new GetStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetStatusRequest(ids []string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *GetStatusRequest { + this := GetStatusRequest{} + this.Ids = ids + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewGetStatusRequestWithDefaults instantiates a new GetStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetStatusRequestWithDefaults() *GetStatusRequest { + this := GetStatusRequest{} + return &this +} + +// GetIds returns the Ids field value +func (o *GetStatusRequest) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *GetStatusRequest) SetIds(v []string) { + o.Ids = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *GetStatusRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *GetStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *GetStatusRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *GetStatusRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *GetStatusRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *GetStatusRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o GetStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ids"] = o.Ids + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableGetStatusRequest struct { + value *GetStatusRequest + isSet bool +} + +func (v NullableGetStatusRequest) Get() *GetStatusRequest { + return v.value +} + +func (v *NullableGetStatusRequest) Set(val *GetStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetStatusRequest(val *GetStatusRequest) *NullableGetStatusRequest { + return &NullableGetStatusRequest{value: val, isSet: true} +} + +func (v NullableGetStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_initialize_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_initialize_request.go new file mode 100644 index 00000000000..ac9480a0af8 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_initialize_request.go @@ -0,0 +1,236 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the InitializeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InitializeRequest{} + +// InitializeRequest struct for InitializeRequest +type InitializeRequest struct { + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + ConstructorArgs []interface{} `json:"constructorArgs"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` +} + +// NewInitializeRequest instantiates a new InitializeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInitializeRequest(connectorId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential) *InitializeRequest { + this := InitializeRequest{} + this.ConnectorId = connectorId + this.KeychainId = keychainId + this.ConstructorArgs = constructorArgs + this.Web3SigningCredential = web3SigningCredential + return &this +} + +// NewInitializeRequestWithDefaults instantiates a new InitializeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInitializeRequestWithDefaults() *InitializeRequest { + this := InitializeRequest{} + return &this +} + +// GetConnectorId returns the ConnectorId field value +func (o *InitializeRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *InitializeRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *InitializeRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *InitializeRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetConstructorArgs returns the ConstructorArgs field value +func (o *InitializeRequest) GetConstructorArgs() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ConstructorArgs, true +} + +// SetConstructorArgs sets field value +func (o *InitializeRequest) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InitializeRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InitializeRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InitializeRequest) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InitializeRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *InitializeRequest) SetGas(v float32) { + o.Gas = &v +} + +func (o InitializeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InitializeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + toSerialize["constructorArgs"] = o.ConstructorArgs + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableInitializeRequest struct { + value *InitializeRequest + isSet bool +} + +func (v NullableInitializeRequest) Get() *InitializeRequest { + return v.value +} + +func (v *NullableInitializeRequest) Set(val *InitializeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableInitializeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableInitializeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInitializeRequest(val *InitializeRequest) *NullableInitializeRequest { + return &NullableInitializeRequest{value: val, isSet: true} +} + +func (v NullableInitializeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInitializeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..db99316f87c --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || IsNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !IsNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request.go new file mode 100644 index 00000000000..07b54d5e8ca --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request.go @@ -0,0 +1,461 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the NewContractRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NewContractRequest{} + +// NewContractRequest struct for NewContractRequest +type NewContractRequest struct { + // Contract address + ContractAddress string `json:"contractAddress"` + // Input amount to lock + InputAmount float32 `json:"inputAmount"` + // Output amount to lock + OutputAmount float32 `json:"outputAmount"` + // Timestamp to expire the contract + Expiration float32 `json:"expiration"` + // Hashlock needed to refund the amount + HashLock string `json:"hashLock"` + // The token address + TokenAddress string `json:"tokenAddress"` + // The receiver address + Receiver string `json:"receiver"` + // The output network id + OutputNetwork string `json:"outputNetwork"` + // The output address to receive the tokens + OutputAddress string `json:"outputAddress"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychian plugin + KeychainId string `json:"keychainId"` + Gas *NewContractRequestGas `json:"gas,omitempty"` +} + +// NewNewContractRequest instantiates a new NewContractRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNewContractRequest(contractAddress string, inputAmount float32, outputAmount float32, expiration float32, hashLock string, tokenAddress string, receiver string, outputNetwork string, outputAddress string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *NewContractRequest { + this := NewContractRequest{} + this.ContractAddress = contractAddress + this.InputAmount = inputAmount + this.OutputAmount = outputAmount + this.Expiration = expiration + this.HashLock = hashLock + this.TokenAddress = tokenAddress + this.Receiver = receiver + this.OutputNetwork = outputNetwork + this.OutputAddress = outputAddress + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewNewContractRequestWithDefaults instantiates a new NewContractRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNewContractRequestWithDefaults() *NewContractRequest { + this := NewContractRequest{} + return &this +} + +// GetContractAddress returns the ContractAddress field value +func (o *NewContractRequest) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *NewContractRequest) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetInputAmount returns the InputAmount field value +func (o *NewContractRequest) GetInputAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.InputAmount +} + +// GetInputAmountOk returns a tuple with the InputAmount field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetInputAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.InputAmount, true +} + +// SetInputAmount sets field value +func (o *NewContractRequest) SetInputAmount(v float32) { + o.InputAmount = v +} + +// GetOutputAmount returns the OutputAmount field value +func (o *NewContractRequest) GetOutputAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OutputAmount +} + +// GetOutputAmountOk returns a tuple with the OutputAmount field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetOutputAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OutputAmount, true +} + +// SetOutputAmount sets field value +func (o *NewContractRequest) SetOutputAmount(v float32) { + o.OutputAmount = v +} + +// GetExpiration returns the Expiration field value +func (o *NewContractRequest) GetExpiration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetExpirationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Expiration, true +} + +// SetExpiration sets field value +func (o *NewContractRequest) SetExpiration(v float32) { + o.Expiration = v +} + +// GetHashLock returns the HashLock field value +func (o *NewContractRequest) GetHashLock() string { + if o == nil { + var ret string + return ret + } + + return o.HashLock +} + +// GetHashLockOk returns a tuple with the HashLock field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetHashLockOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashLock, true +} + +// SetHashLock sets field value +func (o *NewContractRequest) SetHashLock(v string) { + o.HashLock = v +} + +// GetTokenAddress returns the TokenAddress field value +func (o *NewContractRequest) GetTokenAddress() string { + if o == nil { + var ret string + return ret + } + + return o.TokenAddress +} + +// GetTokenAddressOk returns a tuple with the TokenAddress field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetTokenAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenAddress, true +} + +// SetTokenAddress sets field value +func (o *NewContractRequest) SetTokenAddress(v string) { + o.TokenAddress = v +} + +// GetReceiver returns the Receiver field value +func (o *NewContractRequest) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *NewContractRequest) SetReceiver(v string) { + o.Receiver = v +} + +// GetOutputNetwork returns the OutputNetwork field value +func (o *NewContractRequest) GetOutputNetwork() string { + if o == nil { + var ret string + return ret + } + + return o.OutputNetwork +} + +// GetOutputNetworkOk returns a tuple with the OutputNetwork field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetOutputNetworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputNetwork, true +} + +// SetOutputNetwork sets field value +func (o *NewContractRequest) SetOutputNetwork(v string) { + o.OutputNetwork = v +} + +// GetOutputAddress returns the OutputAddress field value +func (o *NewContractRequest) GetOutputAddress() string { + if o == nil { + var ret string + return ret + } + + return o.OutputAddress +} + +// GetOutputAddressOk returns a tuple with the OutputAddress field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetOutputAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputAddress, true +} + +// SetOutputAddress sets field value +func (o *NewContractRequest) SetOutputAddress(v string) { + o.OutputAddress = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *NewContractRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *NewContractRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *NewContractRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *NewContractRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *NewContractRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *NewContractRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *NewContractRequest) GetGas() NewContractRequestGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractRequestGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NewContractRequest) GetGasOk() (*NewContractRequestGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *NewContractRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractRequestGas and assigns it to the Gas field. +func (o *NewContractRequest) SetGas(v NewContractRequestGas) { + o.Gas = &v +} + +func (o NewContractRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NewContractRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractAddress"] = o.ContractAddress + toSerialize["inputAmount"] = o.InputAmount + toSerialize["outputAmount"] = o.OutputAmount + toSerialize["expiration"] = o.Expiration + toSerialize["hashLock"] = o.HashLock + toSerialize["tokenAddress"] = o.TokenAddress + toSerialize["receiver"] = o.Receiver + toSerialize["outputNetwork"] = o.OutputNetwork + toSerialize["outputAddress"] = o.OutputAddress + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableNewContractRequest struct { + value *NewContractRequest + isSet bool +} + +func (v NullableNewContractRequest) Get() *NewContractRequest { + return v.value +} + +func (v *NullableNewContractRequest) Set(val *NewContractRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNewContractRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNewContractRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNewContractRequest(val *NewContractRequest) *NullableNewContractRequest { + return &NullableNewContractRequest{value: val, isSet: true} +} + +func (v NullableNewContractRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNewContractRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request_gas.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request_gas.go new file mode 100644 index 00000000000..e3d0efb473f --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_new_contract_request_gas.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" + "fmt" +) + +// NewContractRequestGas - struct for NewContractRequestGas +type NewContractRequestGas struct { + Float32 *float32 + String *string +} + +// float32AsNewContractRequestGas is a convenience function that returns float32 wrapped in NewContractRequestGas +func Float32AsNewContractRequestGas(v *float32) NewContractRequestGas { + return NewContractRequestGas{ + Float32: v, + } +} + +// stringAsNewContractRequestGas is a convenience function that returns string wrapped in NewContractRequestGas +func StringAsNewContractRequestGas(v *string) NewContractRequestGas { + return NewContractRequestGas{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *NewContractRequestGas) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(NewContractRequestGas)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(NewContractRequestGas)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src NewContractRequestGas) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *NewContractRequestGas) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableNewContractRequestGas struct { + value *NewContractRequestGas + isSet bool +} + +func (v NullableNewContractRequestGas) Get() *NewContractRequestGas { + return v.value +} + +func (v *NullableNewContractRequestGas) Set(val *NewContractRequestGas) { + v.value = val + v.isSet = true +} + +func (v NullableNewContractRequestGas) IsSet() bool { + return v.isSet +} + +func (v *NullableNewContractRequestGas) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNewContractRequestGas(val *NewContractRequestGas) *NullableNewContractRequestGas { + return &NullableNewContractRequestGas{value: val, isSet: true} +} + +func (v NullableNewContractRequestGas) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNewContractRequestGas) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_refund_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_refund_request.go new file mode 100644 index 00000000000..fd17fce8d63 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_refund_request.go @@ -0,0 +1,237 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the RefundRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RefundRequest{} + +// RefundRequest struct for RefundRequest +type RefundRequest struct { + // Contract htlc id for refund + Id string `json:"id"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + Gas *NewContractRequestGas `json:"gas,omitempty"` +} + +// NewRefundRequest instantiates a new RefundRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRefundRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *RefundRequest { + this := RefundRequest{} + this.Id = id + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewRefundRequestWithDefaults instantiates a new RefundRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRefundRequestWithDefaults() *RefundRequest { + this := RefundRequest{} + return &this +} + +// GetId returns the Id field value +func (o *RefundRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RefundRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RefundRequest) SetId(v string) { + o.Id = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RefundRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RefundRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RefundRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *RefundRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *RefundRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *RefundRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *RefundRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *RefundRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *RefundRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *RefundRequest) GetGas() NewContractRequestGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractRequestGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RefundRequest) GetGasOk() (*NewContractRequestGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *RefundRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractRequestGas and assigns it to the Gas field. +func (o *RefundRequest) SetGas(v NewContractRequestGas) { + o.Gas = &v +} + +func (o RefundRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RefundRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableRefundRequest struct { + value *RefundRequest + isSet bool +} + +func (v NullableRefundRequest) Get() *RefundRequest { + return v.value +} + +func (v *NullableRefundRequest) Set(val *RefundRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRefundRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRefundRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRefundRequest(val *RefundRequest) *NullableRefundRequest { + return &NullableRefundRequest{value: val, isSet: true} +} + +func (v NullableRefundRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRefundRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..b056b8e2976 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..f88bf18117b --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..577f5e0e397 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,201 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId string `json:"keychainId"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + this.KeychainId = keychainId + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..e43609e1cf8 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..e668f4eee8c --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..b4f878a7b74 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..45bfec14d7f --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,385 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_withdraw_request.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_withdraw_request.go new file mode 100644 index 00000000000..682437ca6c6 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/model_withdraw_request.go @@ -0,0 +1,265 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" +) + +// checks if the WithdrawRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WithdrawRequest{} + +// WithdrawRequest struct for WithdrawRequest +type WithdrawRequest struct { + // Contract locked id + Id string `json:"id"` + // Secret need to unlock the contract + Secret string `json:"secret"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + Gas *NewContractRequestGas `json:"gas,omitempty"` +} + +// NewWithdrawRequest instantiates a new WithdrawRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWithdrawRequest(id string, secret string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *WithdrawRequest { + this := WithdrawRequest{} + this.Id = id + this.Secret = secret + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewWithdrawRequestWithDefaults instantiates a new WithdrawRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWithdrawRequestWithDefaults() *WithdrawRequest { + this := WithdrawRequest{} + return &this +} + +// GetId returns the Id field value +func (o *WithdrawRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WithdrawRequest) SetId(v string) { + o.Id = v +} + +// GetSecret returns the Secret field value +func (o *WithdrawRequest) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *WithdrawRequest) SetSecret(v string) { + o.Secret = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *WithdrawRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *WithdrawRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *WithdrawRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *WithdrawRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *WithdrawRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *WithdrawRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *WithdrawRequest) GetGas() NewContractRequestGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractRequestGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WithdrawRequest) GetGasOk() (*NewContractRequestGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *WithdrawRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractRequestGas and assigns it to the Gas field. +func (o *WithdrawRequest) SetGas(v NewContractRequestGas) { + o.Gas = &v +} + +func (o WithdrawRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WithdrawRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["secret"] = o.Secret + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableWithdrawRequest struct { + value *WithdrawRequest + isSet bool +} + +func (v NullableWithdrawRequest) Get() *WithdrawRequest { + return v.value +} + +func (v *NullableWithdrawRequest) Set(val *WithdrawRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWithdrawRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWithdrawRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWithdrawRequest(val *WithdrawRequest) *NullableWithdrawRequest { + return &NullableWithdrawRequest{value: val, isSet: true} +} + +func (v NullableWithdrawRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWithdrawRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..ab02c8e8a75 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..e74e42ff129 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,97 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-htlc-eth-besu-erc20_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetSingleStatusV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetSingleStatusV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetStatusV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetStatusV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InitializeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InitializeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService NewContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.NewContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RefundV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RefundV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService WithdrawV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.WithdrawV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..621aaed96b7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 + +Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu-erc20 + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/README.md index 44a94c157fd..afd92898c64 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - HTLC ETH BESU ERC20 - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata] Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 60ff5fa1f7e..957384d5b87 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 85180b275f5..84c2cf11e8a 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 32afb45cdf7..ce66cd3938c 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 2bb1d8ae394..fa226b77365 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 76979aff747..d8d73d4383a 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 43178735a4e..b2177ae3c3e 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index dd7cc75f180..38b332ad329 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java index c66aad20954..33ce34c6075 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java @@ -51,7 +51,7 @@ /** * Defines the parameters for retrieving the single status of the HTLC swap. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class GetSingleStatusRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java index 6084f0c440a..df2613781cb 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java @@ -53,7 +53,7 @@ /** * Defines the parameters for retrieving the status of the HTLC swap. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class GetStatusRequest { public static final String SERIALIZED_NAME_IDS = "ids"; @SerializedName(SERIALIZED_NAME_IDS) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java index 3e21b53be90..a45a212c44d 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java @@ -54,7 +54,7 @@ /** * InitializeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class InitializeRequest { public static final String SERIALIZED_NAME_CONNECTOR_ID = "connectorId"; @SerializedName(SERIALIZED_NAME_CONNECTOR_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index 73ab97f9485..9576657f9dc 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequest.java index 5ffdf7b7d89..9f4a76e2895 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequest.java @@ -53,7 +53,7 @@ /** * NewContractRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class NewContractRequest { public static final String SERIALIZED_NAME_CONTRACT_ADDRESS = "contractAddress"; @SerializedName(SERIALIZED_NAME_CONTRACT_ADDRESS) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequestGas.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequestGas.java index 7d18ad768c4..9c94cf48c4c 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequestGas.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractRequestGas.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class NewContractRequestGas extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(NewContractRequestGas.class.getName()); diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundRequest.java index b7d19e61187..2bfaddcba23 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundRequest.java @@ -52,7 +52,7 @@ /** * RefundRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class RefundRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 02c7beb26d4..30775d2fb21 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -51,7 +51,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index 3c5dff19959..3355a9680cb 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index f5014b3726e..257c6e4eb8c 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index 7cf9c6fc490..d53ad62e547 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index d9e252a372f..3ea3e39d8c5 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index d95689e6844..d349377c223 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -52,7 +52,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawRequest.java b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawRequest.java index 07ecd55eab6..21893e332d0 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawRequest.java @@ -52,7 +52,7 @@ /** * WithdrawRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.715728497+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.623343061+05:30[Asia/Kolkata]") public class WithdrawRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..858253ee9c7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,45 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetSingleStatusRequest.md +docs/GetStatusRequest.md +docs/InitializeRequest.md +docs/InvokeContractV1Response.md +docs/NewContractObj.md +docs/NewContractObjGas.md +docs/RefundReq.md +docs/RunTransactionResponse.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3TransactionReceipt.md +docs/WithdrawReq.md +git_push.sh +go.mod +go.sum +model_get_single_status_request.go +model_get_status_request.go +model_initialize_request.go +model_invoke_contract_v1_response.go +model_new_contract_obj.go +model_new_contract_obj_gas.go +model_refund_req.go +model_run_transaction_response.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction_receipt.go +model_withdraw_req.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..e95cccc0365 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,131 @@ +# Go API client for @hyperledger/cactus-plugin-htlc-eth-besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-htlc-eth-besu "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-htlc-eth-besu.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetSingleStatusV1**](docs/DefaultApi.md#getsinglestatusv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-single-status | +*DefaultApi* | [**GetStatusV1**](docs/DefaultApi.md#getstatusv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-status | +*DefaultApi* | [**InitializeV1**](docs/DefaultApi.md#initializev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/initialize | +*DefaultApi* | [**NewContractV1**](docs/DefaultApi.md#newcontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/new-contract | +*DefaultApi* | [**RefundV1**](docs/DefaultApi.md#refundv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/refund | +*DefaultApi* | [**WithdrawV1**](docs/DefaultApi.md#withdrawv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/withdraw | + + +## Documentation For Models + + - [GetSingleStatusRequest](docs/GetSingleStatusRequest.md) + - [GetStatusRequest](docs/GetStatusRequest.md) + - [InitializeRequest](docs/InitializeRequest.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [NewContractObj](docs/NewContractObj.md) + - [NewContractObjGas](docs/NewContractObjGas.md) + - [RefundReq](docs/RefundReq.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + - [WithdrawReq](docs/WithdrawReq.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..4ff47716273 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,547 @@ +openapi: 3.0.3 +info: + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - HTLC-ETH Besu + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/new-contract: + post: + operationId: newContractV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NewContractObj' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/new-contract + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/withdraw: + post: + operationId: withdrawV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WithdrawReq' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/withdraw + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/refund: + post: + operationId: refundV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefundReq' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/refund + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-status: + post: + operationId: getStatusV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetStatusRequest' + responses: + "200": + content: + application/json: + schema: + items: + format: uint256 + type: integer + type: array + description: Array of status + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-status + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-single-status: + post: + operationId: getSingleStatusV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetSingleStatusRequest' + responses: + "200": + content: + application/json: + schema: + format: uint256 + type: integer + description: Status + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-single-status + /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/initialize: + post: + operationId: initializeV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InitializeRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/initialize +components: + responses: + GetStatusResponse: + content: + application/json: + schema: + items: + format: uint256 + type: integer + type: array + description: Array of status + GetSingleStatusResponse: + content: + application/json: + schema: + format: uint256 + type: integer + description: Status + schemas: + NewContractObj: + additionalProperties: false + example: + outputAddress: outputAddress + receiver: receiver + keychainId: keychainId + outputAmount: 6.027456183070403 + outputNetwork: outputNetwork + connectorId: connectorId + hashLock: hashLock + gas: null + contractAddress: contractAddress + web3SigningCredential: + type: null + inputAmount: 0.8008281904610115 + expiration: 1.4658129805029452 + properties: + contractAddress: + description: Contract address + nullable: false + type: string + inputAmount: + type: number + outputAmount: + type: number + expiration: + type: number + hashLock: + type: string + receiver: + type: string + outputNetwork: + nullable: false + type: string + outputAddress: + nullable: false + type: string + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + keychainId: + description: keychainId for the keychian plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractObj_gas' + required: + - connectorId + - contractAddress + - expiration + - hashLock + - keychainId + - outputAddress + - outputAmount + - outputNetwork + - web3SigningCredential + type: object + RefundReq: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + gas: null + web3SigningCredential: + type: null + id: id + properties: + id: + description: Contract htlc id for refund + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractObj_gas' + required: + - connectorId + - id + - keychainId + - web3SigningCredential + type: object + WithdrawReq: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + gas: null + web3SigningCredential: + type: null + id: id + secret: secret + properties: + id: + description: Contract locked id + nullable: false + type: string + secret: + description: Secret need to unlock the contract + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + gas: + $ref: '#/components/schemas/NewContractObj_gas' + required: + - connectorId + - id + - keychainId + - secret + - web3SigningCredential + type: object + InitializeRequest: + additionalProperties: false + example: + keychainId: keychainId + connectorId: connectorId + constructorArgs: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + properties: + connectorId: + description: connectorId for the connector besu plugin + nullable: false + type: string + keychainId: + description: keychainId for the keychain plugin + nullable: false + type: string + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + type: number + required: + - connectorId + - constructorArgs + - keychainId + - web3SigningCredential + type: object + GetStatusRequest: + additionalProperties: false + description: Defines the parameters for retrieving the status of the HTLC swap. + example: + keychainId: keychainId + connectorId: connectorId + ids: + - ids + - ids + web3SigningCredential: + type: null + properties: + ids: + items: + type: string + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + type: string + keychainId: + type: string + required: + - connectorId + - ids + - keychainId + - web3SigningCredential + type: object + GetSingleStatusRequest: + additionalProperties: false + description: Defines the parameters for retrieving the single status of the + HTLC swap. + example: + keychainId: keychainId + connectorId: connectorId + web3SigningCredential: + type: null + id: id + properties: + id: + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + connectorId: + type: string + keychainId: + type: string + required: + - connectorId + - id + - keychainId + - web3SigningCredential + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + RunTransactionResponse: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - keychainId + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + NewContractObj_gas: + oneOf: + - type: string + - type: number diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..2a2923e0e00 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,653 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetSingleStatusV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getSingleStatusRequest *GetSingleStatusRequest +} + +func (r ApiGetSingleStatusV1Request) GetSingleStatusRequest(getSingleStatusRequest GetSingleStatusRequest) ApiGetSingleStatusV1Request { + r.getSingleStatusRequest = &getSingleStatusRequest + return r +} + +func (r ApiGetSingleStatusV1Request) Execute() (int32, *http.Response, error) { + return r.ApiService.GetSingleStatusV1Execute(r) +} + +/* +GetSingleStatusV1 Method for GetSingleStatusV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSingleStatusV1Request +*/ +func (a *DefaultApiService) GetSingleStatusV1(ctx context.Context) ApiGetSingleStatusV1Request { + return ApiGetSingleStatusV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return int32 +func (a *DefaultApiService) GetSingleStatusV1Execute(r ApiGetSingleStatusV1Request) (int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int32 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSingleStatusV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-single-status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getSingleStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetStatusV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getStatusRequest *GetStatusRequest +} + +func (r ApiGetStatusV1Request) GetStatusRequest(getStatusRequest GetStatusRequest) ApiGetStatusV1Request { + r.getStatusRequest = &getStatusRequest + return r +} + +func (r ApiGetStatusV1Request) Execute() ([]int32, *http.Response, error) { + return r.ApiService.GetStatusV1Execute(r) +} + +/* +GetStatusV1 Method for GetStatusV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStatusV1Request +*/ +func (a *DefaultApiService) GetStatusV1(ctx context.Context) ApiGetStatusV1Request { + return ApiGetStatusV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []int32 +func (a *DefaultApiService) GetStatusV1Execute(r ApiGetStatusV1Request) ([]int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []int32 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetStatusV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInitializeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + initializeRequest *InitializeRequest +} + +func (r ApiInitializeV1Request) InitializeRequest(initializeRequest InitializeRequest) ApiInitializeV1Request { + r.initializeRequest = &initializeRequest + return r +} + +func (r ApiInitializeV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.InitializeV1Execute(r) +} + +/* +InitializeV1 Method for InitializeV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInitializeV1Request +*/ +func (a *DefaultApiService) InitializeV1(ctx context.Context) ApiInitializeV1Request { + return ApiInitializeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) InitializeV1Execute(r ApiInitializeV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InitializeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/initialize" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.initializeRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiNewContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + newContractObj *NewContractObj +} + +func (r ApiNewContractV1Request) NewContractObj(newContractObj NewContractObj) ApiNewContractV1Request { + r.newContractObj = &newContractObj + return r +} + +func (r ApiNewContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.NewContractV1Execute(r) +} + +/* +NewContractV1 Method for NewContractV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiNewContractV1Request +*/ +func (a *DefaultApiService) NewContractV1(ctx context.Context) ApiNewContractV1Request { + return ApiNewContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) NewContractV1Execute(r ApiNewContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.NewContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/new-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.newContractObj + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRefundV1Request struct { + ctx context.Context + ApiService *DefaultApiService + refundReq *RefundReq +} + +func (r ApiRefundV1Request) RefundReq(refundReq RefundReq) ApiRefundV1Request { + r.refundReq = &refundReq + return r +} + +func (r ApiRefundV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.RefundV1Execute(r) +} + +/* +RefundV1 Method for RefundV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRefundV1Request +*/ +func (a *DefaultApiService) RefundV1(ctx context.Context) ApiRefundV1Request { + return ApiRefundV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) RefundV1Execute(r ApiRefundV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RefundV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/refund" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.refundReq + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWithdrawV1Request struct { + ctx context.Context + ApiService *DefaultApiService + withdrawReq *WithdrawReq +} + +func (r ApiWithdrawV1Request) WithdrawReq(withdrawReq WithdrawReq) ApiWithdrawV1Request { + r.withdrawReq = &withdrawReq + return r +} + +func (r ApiWithdrawV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.WithdrawV1Execute(r) +} + +/* +WithdrawV1 Method for WithdrawV1 + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWithdrawV1Request +*/ +func (a *DefaultApiService) WithdrawV1(ctx context.Context) ApiWithdrawV1Request { + return ApiWithdrawV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) WithdrawV1Execute(r ApiWithdrawV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.WithdrawV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/withdraw" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.withdrawReq + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..c03d97cf058 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - HTLC-ETH Besu API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..c5d9711da37 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..65972994d78 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,398 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSingleStatusV1**](DefaultApi.md#GetSingleStatusV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-single-status | +[**GetStatusV1**](DefaultApi.md#GetStatusV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/get-status | +[**InitializeV1**](DefaultApi.md#InitializeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/initialize | +[**NewContractV1**](DefaultApi.md#NewContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/new-contract | +[**RefundV1**](DefaultApi.md#RefundV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/refund | +[**WithdrawV1**](DefaultApi.md#WithdrawV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu/withdraw | + + + +## GetSingleStatusV1 + +> int32 GetSingleStatusV1(ctx).GetSingleStatusRequest(getSingleStatusRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getSingleStatusRequest := *openapiclient.NewGetSingleStatusRequest("Id_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // GetSingleStatusRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetSingleStatusV1(context.Background()).GetSingleStatusRequest(getSingleStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSingleStatusV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleStatusV1`: int32 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSingleStatusV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSingleStatusV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getSingleStatusRequest** | [**GetSingleStatusRequest**](GetSingleStatusRequest.md) | | + +### Return type + +**int32** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetStatusV1 + +> []int32 GetStatusV1(ctx).GetStatusRequest(getStatusRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getStatusRequest := *openapiclient.NewGetStatusRequest([]string{"Ids_example"}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // GetStatusRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetStatusV1(context.Background()).GetStatusRequest(getStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetStatusV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusV1`: []int32 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetStatusV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStatusV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getStatusRequest** | [**GetStatusRequest**](GetStatusRequest.md) | | + +### Return type + +**[]int32** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InitializeV1 + +> RunTransactionResponse InitializeV1(ctx).InitializeRequest(initializeRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + initializeRequest := *openapiclient.NewInitializeRequest("ConnectorId_example", "KeychainId_example", []interface{}{nil}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}) // InitializeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InitializeV1(context.Background()).InitializeRequest(initializeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InitializeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InitializeV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InitializeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInitializeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **initializeRequest** | [**InitializeRequest**](InitializeRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## NewContractV1 + +> InvokeContractV1Response NewContractV1(ctx).NewContractObj(newContractObj).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + newContractObj := *openapiclient.NewNewContractObj("ContractAddress_example", float32(123), float32(123), "HashLock_example", "OutputNetwork_example", "OutputAddress_example", "ConnectorId_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "KeychainId_example") // NewContractObj | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.NewContractV1(context.Background()).NewContractObj(newContractObj).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.NewContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `NewContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.NewContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiNewContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **newContractObj** | [**NewContractObj**](NewContractObj.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RefundV1 + +> InvokeContractV1Response RefundV1(ctx).RefundReq(refundReq).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + refundReq := *openapiclient.NewRefundReq("Id_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // RefundReq | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RefundV1(context.Background()).RefundReq(refundReq).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RefundV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RefundV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RefundV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRefundV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **refundReq** | [**RefundReq**](RefundReq.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WithdrawV1 + +> InvokeContractV1Response WithdrawV1(ctx).WithdrawReq(withdrawReq).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + withdrawReq := *openapiclient.NewWithdrawReq("Id_example", "Secret_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "ConnectorId_example", "KeychainId_example") // WithdrawReq | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.WithdrawV1(context.Background()).WithdrawReq(withdrawReq).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.WithdrawV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WithdrawV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.WithdrawV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWithdrawV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **withdrawReq** | [**WithdrawReq**](WithdrawReq.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md new file mode 100644 index 00000000000..0c4e3cd0246 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetSingleStatusRequest.md @@ -0,0 +1,114 @@ +# GetSingleStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | | +**KeychainId** | **string** | | + +## Methods + +### NewGetSingleStatusRequest + +`func NewGetSingleStatusRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *GetSingleStatusRequest` + +NewGetSingleStatusRequest instantiates a new GetSingleStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetSingleStatusRequestWithDefaults + +`func NewGetSingleStatusRequestWithDefaults() *GetSingleStatusRequest` + +NewGetSingleStatusRequestWithDefaults instantiates a new GetSingleStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GetSingleStatusRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetSingleStatusRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GetSingleStatusRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWeb3SigningCredential + +`func (o *GetSingleStatusRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *GetSingleStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *GetSingleStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *GetSingleStatusRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *GetSingleStatusRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *GetSingleStatusRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *GetSingleStatusRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *GetSingleStatusRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *GetSingleStatusRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md new file mode 100644 index 00000000000..b5f87ce6b40 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/GetStatusRequest.md @@ -0,0 +1,114 @@ +# GetStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | **[]string** | | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | | +**KeychainId** | **string** | | + +## Methods + +### NewGetStatusRequest + +`func NewGetStatusRequest(ids []string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *GetStatusRequest` + +NewGetStatusRequest instantiates a new GetStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetStatusRequestWithDefaults + +`func NewGetStatusRequestWithDefaults() *GetStatusRequest` + +NewGetStatusRequestWithDefaults instantiates a new GetStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *GetStatusRequest) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *GetStatusRequest) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *GetStatusRequest) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetWeb3SigningCredential + +`func (o *GetStatusRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *GetStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *GetStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *GetStatusRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *GetStatusRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *GetStatusRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *GetStatusRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *GetStatusRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *GetStatusRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md new file mode 100644 index 00000000000..5835ee518ec --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InitializeRequest.md @@ -0,0 +1,140 @@ +# InitializeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**ConstructorArgs** | **[]interface{}** | | [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] + +## Methods + +### NewInitializeRequest + +`func NewInitializeRequest(connectorId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, ) *InitializeRequest` + +NewInitializeRequest instantiates a new InitializeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInitializeRequestWithDefaults + +`func NewInitializeRequestWithDefaults() *InitializeRequest` + +NewInitializeRequestWithDefaults instantiates a new InitializeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorId + +`func (o *InitializeRequest) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *InitializeRequest) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *InitializeRequest) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *InitializeRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InitializeRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InitializeRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetConstructorArgs + +`func (o *InitializeRequest) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *InitializeRequest) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *InitializeRequest) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + + +### GetWeb3SigningCredential + +`func (o *InitializeRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InitializeRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InitializeRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *InitializeRequest) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InitializeRequest) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InitializeRequest) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InitializeRequest) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObj.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObj.md new file mode 100644 index 00000000000..a82c6132c25 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObj.md @@ -0,0 +1,297 @@ +# NewContractObj + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractAddress** | **string** | Contract address | +**InputAmount** | Pointer to **float32** | | [optional] +**OutputAmount** | **float32** | | +**Expiration** | **float32** | | +**HashLock** | **string** | | +**Receiver** | Pointer to **string** | | [optional] +**OutputNetwork** | **string** | | +**OutputAddress** | **string** | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**KeychainId** | **string** | keychainId for the keychian plugin | +**Gas** | Pointer to [**NewContractObjGas**](NewContractObjGas.md) | | [optional] + +## Methods + +### NewNewContractObj + +`func NewNewContractObj(contractAddress string, outputAmount float32, expiration float32, hashLock string, outputNetwork string, outputAddress string, connectorId string, web3SigningCredential Web3SigningCredential, keychainId string, ) *NewContractObj` + +NewNewContractObj instantiates a new NewContractObj object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNewContractObjWithDefaults + +`func NewNewContractObjWithDefaults() *NewContractObj` + +NewNewContractObjWithDefaults instantiates a new NewContractObj object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractAddress + +`func (o *NewContractObj) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *NewContractObj) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *NewContractObj) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetInputAmount + +`func (o *NewContractObj) GetInputAmount() float32` + +GetInputAmount returns the InputAmount field if non-nil, zero value otherwise. + +### GetInputAmountOk + +`func (o *NewContractObj) GetInputAmountOk() (*float32, bool)` + +GetInputAmountOk returns a tuple with the InputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputAmount + +`func (o *NewContractObj) SetInputAmount(v float32)` + +SetInputAmount sets InputAmount field to given value. + +### HasInputAmount + +`func (o *NewContractObj) HasInputAmount() bool` + +HasInputAmount returns a boolean if a field has been set. + +### GetOutputAmount + +`func (o *NewContractObj) GetOutputAmount() float32` + +GetOutputAmount returns the OutputAmount field if non-nil, zero value otherwise. + +### GetOutputAmountOk + +`func (o *NewContractObj) GetOutputAmountOk() (*float32, bool)` + +GetOutputAmountOk returns a tuple with the OutputAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAmount + +`func (o *NewContractObj) SetOutputAmount(v float32)` + +SetOutputAmount sets OutputAmount field to given value. + + +### GetExpiration + +`func (o *NewContractObj) GetExpiration() float32` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *NewContractObj) GetExpirationOk() (*float32, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *NewContractObj) SetExpiration(v float32)` + +SetExpiration sets Expiration field to given value. + + +### GetHashLock + +`func (o *NewContractObj) GetHashLock() string` + +GetHashLock returns the HashLock field if non-nil, zero value otherwise. + +### GetHashLockOk + +`func (o *NewContractObj) GetHashLockOk() (*string, bool)` + +GetHashLockOk returns a tuple with the HashLock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashLock + +`func (o *NewContractObj) SetHashLock(v string)` + +SetHashLock sets HashLock field to given value. + + +### GetReceiver + +`func (o *NewContractObj) GetReceiver() string` + +GetReceiver returns the Receiver field if non-nil, zero value otherwise. + +### GetReceiverOk + +`func (o *NewContractObj) GetReceiverOk() (*string, bool)` + +GetReceiverOk returns a tuple with the Receiver field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiver + +`func (o *NewContractObj) SetReceiver(v string)` + +SetReceiver sets Receiver field to given value. + +### HasReceiver + +`func (o *NewContractObj) HasReceiver() bool` + +HasReceiver returns a boolean if a field has been set. + +### GetOutputNetwork + +`func (o *NewContractObj) GetOutputNetwork() string` + +GetOutputNetwork returns the OutputNetwork field if non-nil, zero value otherwise. + +### GetOutputNetworkOk + +`func (o *NewContractObj) GetOutputNetworkOk() (*string, bool)` + +GetOutputNetworkOk returns a tuple with the OutputNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputNetwork + +`func (o *NewContractObj) SetOutputNetwork(v string)` + +SetOutputNetwork sets OutputNetwork field to given value. + + +### GetOutputAddress + +`func (o *NewContractObj) GetOutputAddress() string` + +GetOutputAddress returns the OutputAddress field if non-nil, zero value otherwise. + +### GetOutputAddressOk + +`func (o *NewContractObj) GetOutputAddressOk() (*string, bool)` + +GetOutputAddressOk returns a tuple with the OutputAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputAddress + +`func (o *NewContractObj) SetOutputAddress(v string)` + +SetOutputAddress sets OutputAddress field to given value. + + +### GetConnectorId + +`func (o *NewContractObj) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *NewContractObj) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *NewContractObj) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetWeb3SigningCredential + +`func (o *NewContractObj) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *NewContractObj) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *NewContractObj) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetKeychainId + +`func (o *NewContractObj) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *NewContractObj) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *NewContractObj) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *NewContractObj) GetGas() NewContractObjGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *NewContractObj) GetGasOk() (*NewContractObjGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *NewContractObj) SetGas(v NewContractObjGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *NewContractObj) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObjGas.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObjGas.md new file mode 100644 index 00000000000..093291dbe95 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/NewContractObjGas.md @@ -0,0 +1,30 @@ +# NewContractObjGas + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewNewContractObjGas + +`func NewNewContractObjGas() *NewContractObjGas` + +NewNewContractObjGas instantiates a new NewContractObjGas object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNewContractObjGasWithDefaults + +`func NewNewContractObjGasWithDefaults() *NewContractObjGas` + +NewNewContractObjGasWithDefaults instantiates a new NewContractObjGas object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RefundReq.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RefundReq.md new file mode 100644 index 00000000000..110d967c671 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RefundReq.md @@ -0,0 +1,140 @@ +# RefundReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Contract htlc id for refund | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**Gas** | Pointer to [**NewContractObjGas**](NewContractObjGas.md) | | [optional] + +## Methods + +### NewRefundReq + +`func NewRefundReq(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *RefundReq` + +NewRefundReq instantiates a new RefundReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRefundReqWithDefaults + +`func NewRefundReqWithDefaults() *RefundReq` + +NewRefundReqWithDefaults instantiates a new RefundReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RefundReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RefundReq) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RefundReq) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWeb3SigningCredential + +`func (o *RefundReq) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RefundReq) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RefundReq) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *RefundReq) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *RefundReq) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *RefundReq) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *RefundReq) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *RefundReq) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *RefundReq) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *RefundReq) GetGas() NewContractObjGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *RefundReq) GetGasOk() (*NewContractObjGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *RefundReq) SetGas(v NewContractObjGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *RefundReq) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..3d96e8d596a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,51 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..bcd385ee609 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,135 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, secret string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..8a08034fcaa --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,114 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..f44682c74a0 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,234 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/WithdrawReq.md b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/WithdrawReq.md new file mode 100644 index 00000000000..fd29c960710 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/docs/WithdrawReq.md @@ -0,0 +1,161 @@ +# WithdrawReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Contract locked id | +**Secret** | **string** | Secret need to unlock the contract | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**ConnectorId** | **string** | connectorId for the connector besu plugin | +**KeychainId** | **string** | keychainId for the keychain plugin | +**Gas** | Pointer to [**NewContractObjGas**](NewContractObjGas.md) | | [optional] + +## Methods + +### NewWithdrawReq + +`func NewWithdrawReq(id string, secret string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string, ) *WithdrawReq` + +NewWithdrawReq instantiates a new WithdrawReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWithdrawReqWithDefaults + +`func NewWithdrawReqWithDefaults() *WithdrawReq` + +NewWithdrawReqWithDefaults instantiates a new WithdrawReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WithdrawReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WithdrawReq) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WithdrawReq) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSecret + +`func (o *WithdrawReq) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *WithdrawReq) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *WithdrawReq) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetWeb3SigningCredential + +`func (o *WithdrawReq) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *WithdrawReq) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *WithdrawReq) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetConnectorId + +`func (o *WithdrawReq) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *WithdrawReq) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *WithdrawReq) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetKeychainId + +`func (o *WithdrawReq) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *WithdrawReq) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *WithdrawReq) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *WithdrawReq) GetGas() NewContractObjGas` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *WithdrawReq) GetGasOk() (*NewContractObjGas, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *WithdrawReq) SetGas(v NewContractObjGas)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *WithdrawReq) HasGas() bool` + +HasGas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..7b6adff103f --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..b67a45dd474 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_single_status_request.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_single_status_request.go new file mode 100644 index 00000000000..9c5faa9deb7 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_single_status_request.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the GetSingleStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSingleStatusRequest{} + +// GetSingleStatusRequest Defines the parameters for retrieving the single status of the HTLC swap. +type GetSingleStatusRequest struct { + Id string `json:"id"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + ConnectorId string `json:"connectorId"` + KeychainId string `json:"keychainId"` +} + +// NewGetSingleStatusRequest instantiates a new GetSingleStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetSingleStatusRequest(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *GetSingleStatusRequest { + this := GetSingleStatusRequest{} + this.Id = id + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewGetSingleStatusRequestWithDefaults instantiates a new GetSingleStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetSingleStatusRequestWithDefaults() *GetSingleStatusRequest { + this := GetSingleStatusRequest{} + return &this +} + +// GetId returns the Id field value +func (o *GetSingleStatusRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetSingleStatusRequest) SetId(v string) { + o.Id = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *GetSingleStatusRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *GetSingleStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *GetSingleStatusRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *GetSingleStatusRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *GetSingleStatusRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *GetSingleStatusRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *GetSingleStatusRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o GetSingleStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSingleStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableGetSingleStatusRequest struct { + value *GetSingleStatusRequest + isSet bool +} + +func (v NullableGetSingleStatusRequest) Get() *GetSingleStatusRequest { + return v.value +} + +func (v *NullableGetSingleStatusRequest) Set(val *GetSingleStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetSingleStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSingleStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSingleStatusRequest(val *GetSingleStatusRequest) *NullableGetSingleStatusRequest { + return &NullableGetSingleStatusRequest{value: val, isSet: true} +} + +func (v NullableGetSingleStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSingleStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_status_request.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_status_request.go new file mode 100644 index 00000000000..f0a351c0f13 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_get_status_request.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the GetStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetStatusRequest{} + +// GetStatusRequest Defines the parameters for retrieving the status of the HTLC swap. +type GetStatusRequest struct { + Ids []string `json:"ids"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + ConnectorId string `json:"connectorId"` + KeychainId string `json:"keychainId"` +} + +// NewGetStatusRequest instantiates a new GetStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetStatusRequest(ids []string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *GetStatusRequest { + this := GetStatusRequest{} + this.Ids = ids + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewGetStatusRequestWithDefaults instantiates a new GetStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetStatusRequestWithDefaults() *GetStatusRequest { + this := GetStatusRequest{} + return &this +} + +// GetIds returns the Ids field value +func (o *GetStatusRequest) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *GetStatusRequest) SetIds(v []string) { + o.Ids = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *GetStatusRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *GetStatusRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *GetStatusRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *GetStatusRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *GetStatusRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *GetStatusRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *GetStatusRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o GetStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ids"] = o.Ids + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableGetStatusRequest struct { + value *GetStatusRequest + isSet bool +} + +func (v NullableGetStatusRequest) Get() *GetStatusRequest { + return v.value +} + +func (v *NullableGetStatusRequest) Set(val *GetStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetStatusRequest(val *GetStatusRequest) *NullableGetStatusRequest { + return &NullableGetStatusRequest{value: val, isSet: true} +} + +func (v NullableGetStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_initialize_request.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_initialize_request.go new file mode 100644 index 00000000000..8f204911df2 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_initialize_request.go @@ -0,0 +1,236 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the InitializeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InitializeRequest{} + +// InitializeRequest struct for InitializeRequest +type InitializeRequest struct { + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + ConstructorArgs []interface{} `json:"constructorArgs"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` +} + +// NewInitializeRequest instantiates a new InitializeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInitializeRequest(connectorId string, keychainId string, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential) *InitializeRequest { + this := InitializeRequest{} + this.ConnectorId = connectorId + this.KeychainId = keychainId + this.ConstructorArgs = constructorArgs + this.Web3SigningCredential = web3SigningCredential + return &this +} + +// NewInitializeRequestWithDefaults instantiates a new InitializeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInitializeRequestWithDefaults() *InitializeRequest { + this := InitializeRequest{} + return &this +} + +// GetConnectorId returns the ConnectorId field value +func (o *InitializeRequest) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *InitializeRequest) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *InitializeRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *InitializeRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetConstructorArgs returns the ConstructorArgs field value +func (o *InitializeRequest) GetConstructorArgs() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ConstructorArgs, true +} + +// SetConstructorArgs sets field value +func (o *InitializeRequest) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InitializeRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InitializeRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InitializeRequest) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InitializeRequest) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InitializeRequest) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *InitializeRequest) SetGas(v float32) { + o.Gas = &v +} + +func (o InitializeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InitializeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + toSerialize["constructorArgs"] = o.ConstructorArgs + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableInitializeRequest struct { + value *InitializeRequest + isSet bool +} + +func (v NullableInitializeRequest) Get() *InitializeRequest { + return v.value +} + +func (v *NullableInitializeRequest) Set(val *InitializeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableInitializeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableInitializeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInitializeRequest(val *InitializeRequest) *NullableInitializeRequest { + return &NullableInitializeRequest{value: val, isSet: true} +} + +func (v NullableInitializeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInitializeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..41b85402e40 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || IsNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !IsNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj.go new file mode 100644 index 00000000000..24a9d02db3a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj.go @@ -0,0 +1,444 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the NewContractObj type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NewContractObj{} + +// NewContractObj struct for NewContractObj +type NewContractObj struct { + // Contract address + ContractAddress string `json:"contractAddress"` + InputAmount *float32 `json:"inputAmount,omitempty"` + OutputAmount float32 `json:"outputAmount"` + Expiration float32 `json:"expiration"` + HashLock string `json:"hashLock"` + Receiver *string `json:"receiver,omitempty"` + OutputNetwork string `json:"outputNetwork"` + OutputAddress string `json:"outputAddress"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // keychainId for the keychian plugin + KeychainId string `json:"keychainId"` + Gas *NewContractObjGas `json:"gas,omitempty"` +} + +// NewNewContractObj instantiates a new NewContractObj object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNewContractObj(contractAddress string, outputAmount float32, expiration float32, hashLock string, outputNetwork string, outputAddress string, connectorId string, web3SigningCredential Web3SigningCredential, keychainId string) *NewContractObj { + this := NewContractObj{} + this.ContractAddress = contractAddress + this.OutputAmount = outputAmount + this.Expiration = expiration + this.HashLock = hashLock + this.OutputNetwork = outputNetwork + this.OutputAddress = outputAddress + this.ConnectorId = connectorId + this.Web3SigningCredential = web3SigningCredential + this.KeychainId = keychainId + return &this +} + +// NewNewContractObjWithDefaults instantiates a new NewContractObj object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNewContractObjWithDefaults() *NewContractObj { + this := NewContractObj{} + return &this +} + +// GetContractAddress returns the ContractAddress field value +func (o *NewContractObj) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *NewContractObj) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetInputAmount returns the InputAmount field value if set, zero value otherwise. +func (o *NewContractObj) GetInputAmount() float32 { + if o == nil || IsNil(o.InputAmount) { + var ret float32 + return ret + } + return *o.InputAmount +} + +// GetInputAmountOk returns a tuple with the InputAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetInputAmountOk() (*float32, bool) { + if o == nil || IsNil(o.InputAmount) { + return nil, false + } + return o.InputAmount, true +} + +// HasInputAmount returns a boolean if a field has been set. +func (o *NewContractObj) HasInputAmount() bool { + if o != nil && !IsNil(o.InputAmount) { + return true + } + + return false +} + +// SetInputAmount gets a reference to the given float32 and assigns it to the InputAmount field. +func (o *NewContractObj) SetInputAmount(v float32) { + o.InputAmount = &v +} + +// GetOutputAmount returns the OutputAmount field value +func (o *NewContractObj) GetOutputAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OutputAmount +} + +// GetOutputAmountOk returns a tuple with the OutputAmount field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetOutputAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OutputAmount, true +} + +// SetOutputAmount sets field value +func (o *NewContractObj) SetOutputAmount(v float32) { + o.OutputAmount = v +} + +// GetExpiration returns the Expiration field value +func (o *NewContractObj) GetExpiration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetExpirationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Expiration, true +} + +// SetExpiration sets field value +func (o *NewContractObj) SetExpiration(v float32) { + o.Expiration = v +} + +// GetHashLock returns the HashLock field value +func (o *NewContractObj) GetHashLock() string { + if o == nil { + var ret string + return ret + } + + return o.HashLock +} + +// GetHashLockOk returns a tuple with the HashLock field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetHashLockOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashLock, true +} + +// SetHashLock sets field value +func (o *NewContractObj) SetHashLock(v string) { + o.HashLock = v +} + +// GetReceiver returns the Receiver field value if set, zero value otherwise. +func (o *NewContractObj) GetReceiver() string { + if o == nil || IsNil(o.Receiver) { + var ret string + return ret + } + return *o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetReceiverOk() (*string, bool) { + if o == nil || IsNil(o.Receiver) { + return nil, false + } + return o.Receiver, true +} + +// HasReceiver returns a boolean if a field has been set. +func (o *NewContractObj) HasReceiver() bool { + if o != nil && !IsNil(o.Receiver) { + return true + } + + return false +} + +// SetReceiver gets a reference to the given string and assigns it to the Receiver field. +func (o *NewContractObj) SetReceiver(v string) { + o.Receiver = &v +} + +// GetOutputNetwork returns the OutputNetwork field value +func (o *NewContractObj) GetOutputNetwork() string { + if o == nil { + var ret string + return ret + } + + return o.OutputNetwork +} + +// GetOutputNetworkOk returns a tuple with the OutputNetwork field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetOutputNetworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputNetwork, true +} + +// SetOutputNetwork sets field value +func (o *NewContractObj) SetOutputNetwork(v string) { + o.OutputNetwork = v +} + +// GetOutputAddress returns the OutputAddress field value +func (o *NewContractObj) GetOutputAddress() string { + if o == nil { + var ret string + return ret + } + + return o.OutputAddress +} + +// GetOutputAddressOk returns a tuple with the OutputAddress field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetOutputAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OutputAddress, true +} + +// SetOutputAddress sets field value +func (o *NewContractObj) SetOutputAddress(v string) { + o.OutputAddress = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *NewContractObj) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *NewContractObj) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *NewContractObj) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *NewContractObj) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetKeychainId returns the KeychainId field value +func (o *NewContractObj) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *NewContractObj) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *NewContractObj) GetGas() NewContractObjGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractObjGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NewContractObj) GetGasOk() (*NewContractObjGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *NewContractObj) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractObjGas and assigns it to the Gas field. +func (o *NewContractObj) SetGas(v NewContractObjGas) { + o.Gas = &v +} + +func (o NewContractObj) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NewContractObj) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractAddress"] = o.ContractAddress + if !IsNil(o.InputAmount) { + toSerialize["inputAmount"] = o.InputAmount + } + toSerialize["outputAmount"] = o.OutputAmount + toSerialize["expiration"] = o.Expiration + toSerialize["hashLock"] = o.HashLock + if !IsNil(o.Receiver) { + toSerialize["receiver"] = o.Receiver + } + toSerialize["outputNetwork"] = o.OutputNetwork + toSerialize["outputAddress"] = o.OutputAddress + toSerialize["connectorId"] = o.ConnectorId + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableNewContractObj struct { + value *NewContractObj + isSet bool +} + +func (v NullableNewContractObj) Get() *NewContractObj { + return v.value +} + +func (v *NullableNewContractObj) Set(val *NewContractObj) { + v.value = val + v.isSet = true +} + +func (v NullableNewContractObj) IsSet() bool { + return v.isSet +} + +func (v *NullableNewContractObj) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNewContractObj(val *NewContractObj) *NullableNewContractObj { + return &NullableNewContractObj{value: val, isSet: true} +} + +func (v NullableNewContractObj) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNewContractObj) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj_gas.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj_gas.go new file mode 100644 index 00000000000..bfca8f7980d --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_new_contract_obj_gas.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" + "fmt" +) + +// NewContractObjGas - struct for NewContractObjGas +type NewContractObjGas struct { + Float32 *float32 + String *string +} + +// float32AsNewContractObjGas is a convenience function that returns float32 wrapped in NewContractObjGas +func Float32AsNewContractObjGas(v *float32) NewContractObjGas { + return NewContractObjGas{ + Float32: v, + } +} + +// stringAsNewContractObjGas is a convenience function that returns string wrapped in NewContractObjGas +func StringAsNewContractObjGas(v *string) NewContractObjGas { + return NewContractObjGas{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *NewContractObjGas) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(NewContractObjGas)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(NewContractObjGas)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src NewContractObjGas) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *NewContractObjGas) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableNewContractObjGas struct { + value *NewContractObjGas + isSet bool +} + +func (v NullableNewContractObjGas) Get() *NewContractObjGas { + return v.value +} + +func (v *NullableNewContractObjGas) Set(val *NewContractObjGas) { + v.value = val + v.isSet = true +} + +func (v NullableNewContractObjGas) IsSet() bool { + return v.isSet +} + +func (v *NullableNewContractObjGas) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNewContractObjGas(val *NewContractObjGas) *NullableNewContractObjGas { + return &NullableNewContractObjGas{value: val, isSet: true} +} + +func (v NullableNewContractObjGas) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNewContractObjGas) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_refund_req.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_refund_req.go new file mode 100644 index 00000000000..b550c84fe5a --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_refund_req.go @@ -0,0 +1,237 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the RefundReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RefundReq{} + +// RefundReq struct for RefundReq +type RefundReq struct { + // Contract htlc id for refund + Id string `json:"id"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + Gas *NewContractObjGas `json:"gas,omitempty"` +} + +// NewRefundReq instantiates a new RefundReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRefundReq(id string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *RefundReq { + this := RefundReq{} + this.Id = id + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewRefundReqWithDefaults instantiates a new RefundReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRefundReqWithDefaults() *RefundReq { + this := RefundReq{} + return &this +} + +// GetId returns the Id field value +func (o *RefundReq) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RefundReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RefundReq) SetId(v string) { + o.Id = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RefundReq) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RefundReq) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RefundReq) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *RefundReq) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *RefundReq) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *RefundReq) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *RefundReq) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *RefundReq) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *RefundReq) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *RefundReq) GetGas() NewContractObjGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractObjGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RefundReq) GetGasOk() (*NewContractObjGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *RefundReq) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractObjGas and assigns it to the Gas field. +func (o *RefundReq) SetGas(v NewContractObjGas) { + o.Gas = &v +} + +func (o RefundReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RefundReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableRefundReq struct { + value *RefundReq + isSet bool +} + +func (v NullableRefundReq) Get() *RefundReq { + return v.value +} + +func (v *NullableRefundReq) Set(val *RefundReq) { + v.value = val + v.isSet = true +} + +func (v NullableRefundReq) IsSet() bool { + return v.isSet +} + +func (v *NullableRefundReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRefundReq(val *RefundReq) *NullableRefundReq { + return &NullableRefundReq{value: val, isSet: true} +} + +func (v NullableRefundReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRefundReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..b62562fb8ea --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..82694331155 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..4791b49684b --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,201 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId string `json:"keychainId"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + this.KeychainId = keychainId + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..148838f7168 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..fb9faedf4f3 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..72dde849c82 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..582cafdc582 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,385 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_withdraw_req.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_withdraw_req.go new file mode 100644 index 00000000000..e26af4e2024 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/model_withdraw_req.go @@ -0,0 +1,265 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" +) + +// checks if the WithdrawReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WithdrawReq{} + +// WithdrawReq struct for WithdrawReq +type WithdrawReq struct { + // Contract locked id + Id string `json:"id"` + // Secret need to unlock the contract + Secret string `json:"secret"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // connectorId for the connector besu plugin + ConnectorId string `json:"connectorId"` + // keychainId for the keychain plugin + KeychainId string `json:"keychainId"` + Gas *NewContractObjGas `json:"gas,omitempty"` +} + +// NewWithdrawReq instantiates a new WithdrawReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWithdrawReq(id string, secret string, web3SigningCredential Web3SigningCredential, connectorId string, keychainId string) *WithdrawReq { + this := WithdrawReq{} + this.Id = id + this.Secret = secret + this.Web3SigningCredential = web3SigningCredential + this.ConnectorId = connectorId + this.KeychainId = keychainId + return &this +} + +// NewWithdrawReqWithDefaults instantiates a new WithdrawReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWithdrawReqWithDefaults() *WithdrawReq { + this := WithdrawReq{} + return &this +} + +// GetId returns the Id field value +func (o *WithdrawReq) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WithdrawReq) SetId(v string) { + o.Id = v +} + +// GetSecret returns the Secret field value +func (o *WithdrawReq) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *WithdrawReq) SetSecret(v string) { + o.Secret = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *WithdrawReq) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *WithdrawReq) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetConnectorId returns the ConnectorId field value +func (o *WithdrawReq) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *WithdrawReq) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetKeychainId returns the KeychainId field value +func (o *WithdrawReq) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *WithdrawReq) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *WithdrawReq) GetGas() NewContractObjGas { + if o == nil || IsNil(o.Gas) { + var ret NewContractObjGas + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WithdrawReq) GetGasOk() (*NewContractObjGas, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *WithdrawReq) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given NewContractObjGas and assigns it to the Gas field. +func (o *WithdrawReq) SetGas(v NewContractObjGas) { + o.Gas = &v +} + +func (o WithdrawReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WithdrawReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["secret"] = o.Secret + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["connectorId"] = o.ConnectorId + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + return toSerialize, nil +} + +type NullableWithdrawReq struct { + value *WithdrawReq + isSet bool +} + +func (v NullableWithdrawReq) Get() *WithdrawReq { + return v.value +} + +func (v *NullableWithdrawReq) Set(val *WithdrawReq) { + v.value = val + v.isSet = true +} + +func (v NullableWithdrawReq) IsSet() bool { + return v.isSet +} + +func (v *NullableWithdrawReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWithdrawReq(val *WithdrawReq) *NullableWithdrawReq { + return &NullableWithdrawReq{value: val, isSet: true} +} + +func (v NullableWithdrawReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWithdrawReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..d4acd96b855 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..024a8b874d3 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,97 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-htlc-eth-besu_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetSingleStatusV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetSingleStatusV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetStatusV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetStatusV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InitializeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InitializeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService NewContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.NewContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RefundV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RefundV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService WithdrawV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.WithdrawV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..45582154987 --- /dev/null +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - HTLC-ETH Besu + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-htlc-eth-besu + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/README.md index 1d5471fc1d8..1216f168ce0 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - HTLC-ETH Besu - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata] No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 716e4498208..40962089aff 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 78ecffaff8a..a20e6c0d192 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index ab620a51eab..3787761db38 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index d67695abb4e..b1c2731fc8d 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index e668b4a5ece..8c53b8721a7 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 13caad97374..3305ba7ae6d 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 16d020b6831..f48950b8525 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java index 41b8fd8008e..25a8eb7144e 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSingleStatusRequest.java @@ -51,7 +51,7 @@ /** * Defines the parameters for retrieving the single status of the HTLC swap. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class GetSingleStatusRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java index c899c4bd519..f0bb116ca3c 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetStatusRequest.java @@ -53,7 +53,7 @@ /** * Defines the parameters for retrieving the status of the HTLC swap. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class GetStatusRequest { public static final String SERIALIZED_NAME_IDS = "ids"; @SerializedName(SERIALIZED_NAME_IDS) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java index f7eff524976..b9492fa07b7 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InitializeRequest.java @@ -54,7 +54,7 @@ /** * InitializeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class InitializeRequest { public static final String SERIALIZED_NAME_CONNECTOR_ID = "connectorId"; @SerializedName(SERIALIZED_NAME_CONNECTOR_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index 044f70609a9..937633a78f3 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObj.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObj.java index cc443205763..282f903bf60 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObj.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObj.java @@ -53,7 +53,7 @@ /** * NewContractObj */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class NewContractObj { public static final String SERIALIZED_NAME_CONTRACT_ADDRESS = "contractAddress"; @SerializedName(SERIALIZED_NAME_CONTRACT_ADDRESS) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObjGas.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObjGas.java index 3256034307f..467f5bdb903 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObjGas.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NewContractObjGas.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class NewContractObjGas extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(NewContractObjGas.class.getName()); diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundReq.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundReq.java index 014a07db11d..044c8bf03f9 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundReq.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RefundReq.java @@ -52,7 +52,7 @@ /** * RefundReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class RefundReq { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 63aa2bd7282..c4e9fbdeacc 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -51,7 +51,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index 45b9d2033da..5d3cecfc441 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index 72e80966a8a..5470161d97e 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index c7b6216bab4..af76b9eeaa7 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index c9760b140dc..5d7d9ad3cf5 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index 04da7e4cd20..969e5848196 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -52,7 +52,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawReq.java b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawReq.java index 64d13552024..5e3306e29b8 100644 --- a/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawReq.java +++ b/packages/cactus-plugin-htlc-eth-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WithdrawReq.java @@ -52,7 +52,7 @@ /** * WithdrawReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:36.929605031+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:46.557532212+05:30[Asia/Kolkata]") public class WithdrawReq { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a6d7c63d461 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,31 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +git_push.sh +go.mod +go.sum +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..5af5eca6e83 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,123 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-aws-sm + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-aws-sm "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-aws-sm.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-aws-sm.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-aws-sm.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-aws-sm.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteKeychainEntryV1**](docs/DefaultApi.md#deletekeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +*DefaultApi* | [**GetKeychainEntryV1**](docs/DefaultApi.md#getkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**HasKeychainEntryV1**](docs/DefaultApi.md#haskeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +*DefaultApi* | [**SetKeychainEntryV1**](docs/DefaultApi.md#setkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/set-keychain-entry | Sets a value under a key on the keychain backend. + + +## Documentation For Models + + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..13299307c6f --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,364 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Keychain API types/paths for Hyperledger Cactus. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus - Keychain API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-keychain-entry: + post: + operationId: getKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_get_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "404": + description: A keychain item with the specified key was not found. + "500": + description: Unexpected error. + summary: Retrieves the contents of a keychain entry from the backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/set-keychain-entry: + post: + operationId: setKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_set_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Sets a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/set-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/delete-keychain-entry: + post: + operationId: deleteKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_delete_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Deletes an entry under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/delete-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/has-keychain-entry: + post: + operationId: hasKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_has_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Checks that an entry exists under a key on the keychain backend + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/has-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-prometheus-exporter-metrics +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + keychain_delete_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + description: Request body to delete a keychain entry via its key + required: true + keychain_has_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + description: Request body for checking a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + keychain_delete_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + keychain_delete_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_delete_entry_401: + description: Authorization information is missing or invalid. + keychain_delete_entry_500: + description: Unexpected error. + keychain_has_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + keychain_has_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_has_entry_401: + description: Authorization information is missing or invalid. + keychain_has_entry_500: + description: Unexpected error. + schemas: + PrometheusExporterMetricsResponse: + nullable: false + type: string + GetSecretRequest: + additionalProperties: false + nullable: false + type: object + GetSecretResponse: + nullable: false + type: string + GetKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + example: + value: value + key: key + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to check the presence of on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the entry store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..d47b3a8745b --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,556 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeleteKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deleteKeychainEntryRequestV1 *DeleteKeychainEntryRequestV1 +} + +// Request body to delete a keychain entry via its key +func (r ApiDeleteKeychainEntryV1Request) DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1 DeleteKeychainEntryRequestV1) ApiDeleteKeychainEntryV1Request { + r.deleteKeychainEntryRequestV1 = &deleteKeychainEntryRequestV1 + return r +} + +func (r ApiDeleteKeychainEntryV1Request) Execute() (*DeleteKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.DeleteKeychainEntryV1Execute(r) +} + +/* +DeleteKeychainEntryV1 Deletes an entry under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteKeychainEntryV1Request +*/ +func (a *DefaultApiService) DeleteKeychainEntryV1(ctx context.Context) ApiDeleteKeychainEntryV1Request { + return ApiDeleteKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeleteKeychainEntryResponseV1 +func (a *DefaultApiService) DeleteKeychainEntryV1Execute(r ApiDeleteKeychainEntryV1Request) (*DeleteKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/delete-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deleteKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("deleteKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getKeychainEntryRequestV1 *GetKeychainEntryRequestV1 +} + +// Request body to obtain a keychain entry via its key +func (r ApiGetKeychainEntryV1Request) GetKeychainEntryRequestV1(getKeychainEntryRequestV1 GetKeychainEntryRequestV1) ApiGetKeychainEntryV1Request { + r.getKeychainEntryRequestV1 = &getKeychainEntryRequestV1 + return r +} + +func (r ApiGetKeychainEntryV1Request) Execute() (*GetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.GetKeychainEntryV1Execute(r) +} + +/* +GetKeychainEntryV1 Retrieves the contents of a keychain entry from the backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKeychainEntryV1Request +*/ +func (a *DefaultApiService) GetKeychainEntryV1(ctx context.Context) ApiGetKeychainEntryV1Request { + return ApiGetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetKeychainEntryResponseV1 +func (a *DefaultApiService) GetKeychainEntryV1Execute(r ApiGetKeychainEntryV1Request) (*GetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("getKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasKeychainEntryRequestV1 *HasKeychainEntryRequestV1 +} + +// Request body for checking a keychain entry via its key +func (r ApiHasKeychainEntryV1Request) HasKeychainEntryRequestV1(hasKeychainEntryRequestV1 HasKeychainEntryRequestV1) ApiHasKeychainEntryV1Request { + r.hasKeychainEntryRequestV1 = &hasKeychainEntryRequestV1 + return r +} + +func (r ApiHasKeychainEntryV1Request) Execute() (*HasKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.HasKeychainEntryV1Execute(r) +} + +/* +HasKeychainEntryV1 Checks that an entry exists under a key on the keychain backend + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasKeychainEntryV1Request +*/ +func (a *DefaultApiService) HasKeychainEntryV1(ctx context.Context) ApiHasKeychainEntryV1Request { + return ApiHasKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasKeychainEntryResponseV1 +func (a *DefaultApiService) HasKeychainEntryV1Execute(r ApiHasKeychainEntryV1Request) (*HasKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/has-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.hasKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("hasKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setKeychainEntryRequestV1 *SetKeychainEntryRequestV1 +} + +// Request body to write/update a keychain entry via its key +func (r ApiSetKeychainEntryV1Request) SetKeychainEntryRequestV1(setKeychainEntryRequestV1 SetKeychainEntryRequestV1) ApiSetKeychainEntryV1Request { + r.setKeychainEntryRequestV1 = &setKeychainEntryRequestV1 + return r +} + +func (r ApiSetKeychainEntryV1Request) Execute() (*SetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.SetKeychainEntryV1Execute(r) +} + +/* +SetKeychainEntryV1 Sets a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetKeychainEntryV1Request +*/ +func (a *DefaultApiService) SetKeychainEntryV1(ctx context.Context) ApiSetKeychainEntryV1Request { + return ApiSetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetKeychainEntryResponseV1 +func (a *DefaultApiService) SetKeychainEntryV1Execute(r ApiSetKeychainEntryV1Request) (*SetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/set-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("setKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..00af527488b --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus - Keychain API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..76a93b83205 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..c34abf5fbd6 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,328 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteKeychainEntryV1**](DefaultApi.md#DeleteKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +[**GetKeychainEntryV1**](DefaultApi.md#GetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**HasKeychainEntryV1**](DefaultApi.md#HasKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +[**SetKeychainEntryV1**](DefaultApi.md#SetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-aws-sm/set-keychain-entry | Sets a value under a key on the keychain backend. + + + +## DeleteKeychainEntryV1 + +> DeleteKeychainEntryResponseV1 DeleteKeychainEntryV1(ctx).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + +Deletes an entry under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + deleteKeychainEntryRequestV1 := *openapiclient.NewDeleteKeychainEntryRequestV1("Key_example") // DeleteKeychainEntryRequestV1 | Request body to delete a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKeychainEntryV1`: DeleteKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteKeychainEntryRequestV1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md) | Request body to delete a keychain entry via its key | + +### Return type + +[**DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKeychainEntryV1 + +> GetKeychainEntryResponseV1 GetKeychainEntryV1(ctx).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + +Retrieves the contents of a keychain entry from the backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + getKeychainEntryRequestV1 := *openapiclient.NewGetKeychainEntryRequestV1("Key_example") // GetKeychainEntryRequestV1 | Request body to obtain a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKeychainEntryV1`: GetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getKeychainEntryRequestV1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md) | Request body to obtain a keychain entry via its key | + +### Return type + +[**GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasKeychainEntryV1 + +> HasKeychainEntryResponseV1 HasKeychainEntryV1(ctx).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + +Checks that an entry exists under a key on the keychain backend + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + hasKeychainEntryRequestV1 := *openapiclient.NewHasKeychainEntryRequestV1("Key_example") // HasKeychainEntryRequestV1 | Request body for checking a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasKeychainEntryV1`: HasKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasKeychainEntryRequestV1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md) | Request body for checking a keychain entry via its key | + +### Return type + +[**HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetKeychainEntryV1 + +> SetKeychainEntryResponseV1 SetKeychainEntryV1(ctx).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + +Sets a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + setKeychainEntryRequestV1 := *openapiclient.NewSetKeychainEntryRequestV1("Key_example", "Value_example") // SetKeychainEntryRequestV1 | Request body to write/update a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetKeychainEntryV1`: SetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setKeychainEntryRequestV1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md) | Request body to write/update a keychain entry via its key | + +### Return type + +[**SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..bc1dbbfacf8 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to check the presence of on the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..fd82de447d4 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..705d35faa23 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the entry store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..a16a370e929 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..6c8949e6a47 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..fa29115f0ff --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key for the entry to check the presence of on the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..836904d2c10 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..11546bd2d02 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..be8991cf2f6 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..34a1c029a57 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..b25d0299d40 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the entry store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..9e5b70305b8 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..45582a8e8c3 --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..249141a100a --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..254fea45dce --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,85 @@ +/* +Hyperledger Cactus - Keychain API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-aws-sm_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..a2aa2daabac --- /dev/null +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-aws-sm + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/README.md index e5b213f6f47..5d1a0f6aa52 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus - Keychain API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata] Contains/describes the Keychain API types/paths for Hyperledger Cactus. diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index d701960a287..fb03635ff8e 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index e4edde08618..9d838901c71 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 3684df11e39..4a527132efd 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index c73784204d0..f495313c014 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 5a096b3e5e2..786cd584090 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index c3c1a842cbb..fa7195d70c4 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 57749839c33..4d214918d2d 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index a3f532cb34f..b39a2c7c635 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index 5ae3dcff64b..dc525ff0c1a 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index 489ca0b19da..d8ff84d68af 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index ebe0e1d00cb..9be40bb2647 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index ed8f3a6d132..5a785cecf62 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index 966f4ff8490..ae3da6ce1dc 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index 8e1d4fb7e24..afb21b8d7d6 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index 30e345446d2..8ec95e2f40e 100644 --- a/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.060703623+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.328465745+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a6d7c63d461 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,31 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +git_push.sh +go.mod +go.sum +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..33dc5efafc3 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,122 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-azure-kv + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-azure-kv "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-azure-kv.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-azure-kv.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-azure-kv.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-azure-kv.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteKeychainEntryV1**](docs/DefaultApi.md#deletekeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/delete-keychain-entry | Deletes a value under a key on the keychain backend. +*DefaultApi* | [**GetKeychainEntryV1**](docs/DefaultApi.md#getkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +*DefaultApi* | [**HasKeychainEntryV1**](docs/DefaultApi.md#haskeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +*DefaultApi* | [**SetKeychainEntryV1**](docs/DefaultApi.md#setkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/set-keychain-entry | Sets a value under a key on the keychain backend. + + +## Documentation For Models + + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..e8f26910259 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,344 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Keychain API types/paths for Hyperledger Cactus. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus - Keychain API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/get-keychain-entry: + post: + operationId: getKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_get_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "404": + description: A keychain item with the specified key was not found. + "500": + description: Unexpected error. + summary: Retrieves the contents of a keychain entry from the backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/get-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/set-keychain-entry: + post: + operationId: setKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_set_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Sets a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/set-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/delete-keychain-entry: + post: + operationId: deleteKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_delete_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Deletes a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/delete-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/has-keychain-entry: + post: + operationId: hasKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_has_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Checks that an entry exists under a key on the keychain backend + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/has-keychain-entry + verbLowerCase: post +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + keychain_delete_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + description: Request body to delete a keychain entry via its key + required: true + keychain_has_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + description: Request body for checking a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + keychain_delete_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + keychain_delete_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_delete_entry_401: + description: Authorization information is missing or invalid. + keychain_delete_entry_500: + description: Unexpected error. + keychain_has_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + keychain_has_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_has_entry_401: + description: Authorization information is missing or invalid. + keychain_has_entry_500: + description: Unexpected error. + schemas: + GetSecretRequest: + nullable: false + type: string + GetSecretResponse: + nullable: false + type: string + GetKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + example: + value: value + key: key + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to check the presence of on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the entry store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..1cdb9c5d3e7 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,459 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeleteKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deleteKeychainEntryRequestV1 *DeleteKeychainEntryRequestV1 +} + +// Request body to delete a keychain entry via its key +func (r ApiDeleteKeychainEntryV1Request) DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1 DeleteKeychainEntryRequestV1) ApiDeleteKeychainEntryV1Request { + r.deleteKeychainEntryRequestV1 = &deleteKeychainEntryRequestV1 + return r +} + +func (r ApiDeleteKeychainEntryV1Request) Execute() (*DeleteKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.DeleteKeychainEntryV1Execute(r) +} + +/* +DeleteKeychainEntryV1 Deletes a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteKeychainEntryV1Request +*/ +func (a *DefaultApiService) DeleteKeychainEntryV1(ctx context.Context) ApiDeleteKeychainEntryV1Request { + return ApiDeleteKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeleteKeychainEntryResponseV1 +func (a *DefaultApiService) DeleteKeychainEntryV1Execute(r ApiDeleteKeychainEntryV1Request) (*DeleteKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/delete-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deleteKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("deleteKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getKeychainEntryRequestV1 *GetKeychainEntryRequestV1 +} + +// Request body to obtain a keychain entry via its key +func (r ApiGetKeychainEntryV1Request) GetKeychainEntryRequestV1(getKeychainEntryRequestV1 GetKeychainEntryRequestV1) ApiGetKeychainEntryV1Request { + r.getKeychainEntryRequestV1 = &getKeychainEntryRequestV1 + return r +} + +func (r ApiGetKeychainEntryV1Request) Execute() (*GetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.GetKeychainEntryV1Execute(r) +} + +/* +GetKeychainEntryV1 Retrieves the contents of a keychain entry from the backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKeychainEntryV1Request +*/ +func (a *DefaultApiService) GetKeychainEntryV1(ctx context.Context) ApiGetKeychainEntryV1Request { + return ApiGetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetKeychainEntryResponseV1 +func (a *DefaultApiService) GetKeychainEntryV1Execute(r ApiGetKeychainEntryV1Request) (*GetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/get-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("getKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasKeychainEntryRequestV1 *HasKeychainEntryRequestV1 +} + +// Request body for checking a keychain entry via its key +func (r ApiHasKeychainEntryV1Request) HasKeychainEntryRequestV1(hasKeychainEntryRequestV1 HasKeychainEntryRequestV1) ApiHasKeychainEntryV1Request { + r.hasKeychainEntryRequestV1 = &hasKeychainEntryRequestV1 + return r +} + +func (r ApiHasKeychainEntryV1Request) Execute() (*HasKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.HasKeychainEntryV1Execute(r) +} + +/* +HasKeychainEntryV1 Checks that an entry exists under a key on the keychain backend + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasKeychainEntryV1Request +*/ +func (a *DefaultApiService) HasKeychainEntryV1(ctx context.Context) ApiHasKeychainEntryV1Request { + return ApiHasKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasKeychainEntryResponseV1 +func (a *DefaultApiService) HasKeychainEntryV1Execute(r ApiHasKeychainEntryV1Request) (*HasKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/has-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.hasKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("hasKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setKeychainEntryRequestV1 *SetKeychainEntryRequestV1 +} + +// Request body to write/update a keychain entry via its key +func (r ApiSetKeychainEntryV1Request) SetKeychainEntryRequestV1(setKeychainEntryRequestV1 SetKeychainEntryRequestV1) ApiSetKeychainEntryV1Request { + r.setKeychainEntryRequestV1 = &setKeychainEntryRequestV1 + return r +} + +func (r ApiSetKeychainEntryV1Request) Execute() (*SetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.SetKeychainEntryV1Execute(r) +} + +/* +SetKeychainEntryV1 Sets a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetKeychainEntryV1Request +*/ +func (a *DefaultApiService) SetKeychainEntryV1(ctx context.Context) ApiSetKeychainEntryV1Request { + return ApiSetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetKeychainEntryResponseV1 +func (a *DefaultApiService) SetKeychainEntryV1Execute(r ApiSetKeychainEntryV1Request) (*SetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/set-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("setKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..a04f3429815 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus - Keychain API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..cf9dc8039af --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..fdc8fb8b359 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,268 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteKeychainEntryV1**](DefaultApi.md#DeleteKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/delete-keychain-entry | Deletes a value under a key on the keychain backend. +[**GetKeychainEntryV1**](DefaultApi.md#GetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +[**HasKeychainEntryV1**](DefaultApi.md#HasKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +[**SetKeychainEntryV1**](DefaultApi.md#SetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-azure-kv/set-keychain-entry | Sets a value under a key on the keychain backend. + + + +## DeleteKeychainEntryV1 + +> DeleteKeychainEntryResponseV1 DeleteKeychainEntryV1(ctx).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + +Deletes a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +) + +func main() { + deleteKeychainEntryRequestV1 := *openapiclient.NewDeleteKeychainEntryRequestV1("Key_example") // DeleteKeychainEntryRequestV1 | Request body to delete a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKeychainEntryV1`: DeleteKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteKeychainEntryRequestV1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md) | Request body to delete a keychain entry via its key | + +### Return type + +[**DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKeychainEntryV1 + +> GetKeychainEntryResponseV1 GetKeychainEntryV1(ctx).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + +Retrieves the contents of a keychain entry from the backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +) + +func main() { + getKeychainEntryRequestV1 := *openapiclient.NewGetKeychainEntryRequestV1("Key_example") // GetKeychainEntryRequestV1 | Request body to obtain a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKeychainEntryV1`: GetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getKeychainEntryRequestV1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md) | Request body to obtain a keychain entry via its key | + +### Return type + +[**GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasKeychainEntryV1 + +> HasKeychainEntryResponseV1 HasKeychainEntryV1(ctx).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + +Checks that an entry exists under a key on the keychain backend + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +) + +func main() { + hasKeychainEntryRequestV1 := *openapiclient.NewHasKeychainEntryRequestV1("Key_example") // HasKeychainEntryRequestV1 | Request body for checking a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasKeychainEntryV1`: HasKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasKeychainEntryRequestV1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md) | Request body for checking a keychain entry via its key | + +### Return type + +[**HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetKeychainEntryV1 + +> SetKeychainEntryResponseV1 SetKeychainEntryV1(ctx).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + +Sets a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +) + +func main() { + setKeychainEntryRequestV1 := *openapiclient.NewSetKeychainEntryRequestV1("Key_example", "Value_example") // SetKeychainEntryRequestV1 | Request body to write/update a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetKeychainEntryV1`: SetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setKeychainEntryRequestV1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md) | Request body to write/update a keychain entry via its key | + +### Return type + +[**SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..bc1dbbfacf8 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to check the presence of on the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..fd82de447d4 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..705d35faa23 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the entry store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..c7c033928e0 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..62a60bea484 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..f6e90fc81d1 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key for the entry to check the presence of on the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..3388a808276 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..abbb1f69189 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..9219f2bc8ae --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..dbb09a6b90e --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..a10cbba6e43 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the entry store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..a0300e4f28a --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..f31b8b084d6 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..49c25b3dc53 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..b594343fc28 --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,73 @@ +/* +Hyperledger Cactus - Keychain API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-azure-kv_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..27b2f3957dd --- /dev/null +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-azure-kv + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/README.md index 48552d1c1d1..ef3aae50b2d 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus - Keychain API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata] Contains/describes the Keychain API types/paths for Hyperledger Cactus. diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 51a71b6ac01..6e46d50e659 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 08bb31ef986..2f3e4b9f1b0 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index edbb94637fd..ed7b26f4cb1 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index bc175cc45c1..d897d5b4587 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index b4427a9240e..afb0bddb97a 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index a017e28a695..cbf6c85bb34 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 17280fbb6fc..1f3268819aa 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index 63df0f6d924..231df4ec553 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index 910ddca829b..80b71a9d3c2 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index 9e767ea025a..d410c46e775 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index 6a72a8c9ab6..63d3907f5e3 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index b648de3fdfb..639dea61551 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index 5c4eba5ed09..77b652ad1c0 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index c01a4d755a8..62aef4ff812 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index eba01784932..f21202f57e6 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:47.093140151+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:44.224145167+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a6d7c63d461 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,31 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +git_push.sh +go.mod +go.sum +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..5c13a41c044 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,122 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-google-sm + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-google-sm "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-google-sm.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-google-sm.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-google-sm.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-google-sm.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteKeychainEntryV1**](docs/DefaultApi.md#deletekeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +*DefaultApi* | [**GetKeychainEntryV1**](docs/DefaultApi.md#getkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +*DefaultApi* | [**HasKeychainEntryV1**](docs/DefaultApi.md#haskeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend. +*DefaultApi* | [**SetKeychainEntryV1**](docs/DefaultApi.md#setkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/set-keychain-entry | Sets a value under a key on the keychain backend. + + +## Documentation For Models + + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..7eca8233894 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,324 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Keychain API types/paths for Hyperledger Cactus. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus - Keychain API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/get-keychain-entry: + post: + operationId: getKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_get_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "404": + description: A keychain item with the specified key was not found. + "500": + description: Unexpected error. + summary: Retrieves the contents of a keychain entry from the backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/get-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/set-keychain-entry: + post: + operationId: setKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_set_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Sets a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/set-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/delete-keychain-entry: + post: + operationId: deleteKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_delete_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + summary: Deletes an entry under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/delete-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/has-keychain-entry: + post: + operationId: hasKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_has_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Checks that an entry exists under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/has-keychain-entry + verbLowerCase: post +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + keychain_delete_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + description: Request body to delete a keychain entry via its key + required: true + keychain_has_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + description: Request body for checking a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + keychain_delete_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + keychain_has_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + keychain_has_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_has_entry_401: + description: Authorization information is missing or invalid. + keychain_has_entry_500: + description: Unexpected error. + schemas: + GetKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + example: + value: value + key: key + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to check the presence of on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the entry store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..ec5973df8cd --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,459 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeleteKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deleteKeychainEntryRequestV1 *DeleteKeychainEntryRequestV1 +} + +// Request body to delete a keychain entry via its key +func (r ApiDeleteKeychainEntryV1Request) DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1 DeleteKeychainEntryRequestV1) ApiDeleteKeychainEntryV1Request { + r.deleteKeychainEntryRequestV1 = &deleteKeychainEntryRequestV1 + return r +} + +func (r ApiDeleteKeychainEntryV1Request) Execute() (*DeleteKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.DeleteKeychainEntryV1Execute(r) +} + +/* +DeleteKeychainEntryV1 Deletes an entry under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteKeychainEntryV1Request +*/ +func (a *DefaultApiService) DeleteKeychainEntryV1(ctx context.Context) ApiDeleteKeychainEntryV1Request { + return ApiDeleteKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeleteKeychainEntryResponseV1 +func (a *DefaultApiService) DeleteKeychainEntryV1Execute(r ApiDeleteKeychainEntryV1Request) (*DeleteKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/delete-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deleteKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("deleteKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getKeychainEntryRequestV1 *GetKeychainEntryRequestV1 +} + +// Request body to obtain a keychain entry via its key +func (r ApiGetKeychainEntryV1Request) GetKeychainEntryRequestV1(getKeychainEntryRequestV1 GetKeychainEntryRequestV1) ApiGetKeychainEntryV1Request { + r.getKeychainEntryRequestV1 = &getKeychainEntryRequestV1 + return r +} + +func (r ApiGetKeychainEntryV1Request) Execute() (*GetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.GetKeychainEntryV1Execute(r) +} + +/* +GetKeychainEntryV1 Retrieves the contents of a keychain entry from the backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKeychainEntryV1Request +*/ +func (a *DefaultApiService) GetKeychainEntryV1(ctx context.Context) ApiGetKeychainEntryV1Request { + return ApiGetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetKeychainEntryResponseV1 +func (a *DefaultApiService) GetKeychainEntryV1Execute(r ApiGetKeychainEntryV1Request) (*GetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/get-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("getKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasKeychainEntryRequestV1 *HasKeychainEntryRequestV1 +} + +// Request body for checking a keychain entry via its key +func (r ApiHasKeychainEntryV1Request) HasKeychainEntryRequestV1(hasKeychainEntryRequestV1 HasKeychainEntryRequestV1) ApiHasKeychainEntryV1Request { + r.hasKeychainEntryRequestV1 = &hasKeychainEntryRequestV1 + return r +} + +func (r ApiHasKeychainEntryV1Request) Execute() (*HasKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.HasKeychainEntryV1Execute(r) +} + +/* +HasKeychainEntryV1 Checks that an entry exists under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasKeychainEntryV1Request +*/ +func (a *DefaultApiService) HasKeychainEntryV1(ctx context.Context) ApiHasKeychainEntryV1Request { + return ApiHasKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasKeychainEntryResponseV1 +func (a *DefaultApiService) HasKeychainEntryV1Execute(r ApiHasKeychainEntryV1Request) (*HasKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/has-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.hasKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("hasKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setKeychainEntryRequestV1 *SetKeychainEntryRequestV1 +} + +// Request body to write/update a keychain entry via its key +func (r ApiSetKeychainEntryV1Request) SetKeychainEntryRequestV1(setKeychainEntryRequestV1 SetKeychainEntryRequestV1) ApiSetKeychainEntryV1Request { + r.setKeychainEntryRequestV1 = &setKeychainEntryRequestV1 + return r +} + +func (r ApiSetKeychainEntryV1Request) Execute() (*SetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.SetKeychainEntryV1Execute(r) +} + +/* +SetKeychainEntryV1 Sets a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetKeychainEntryV1Request +*/ +func (a *DefaultApiService) SetKeychainEntryV1(ctx context.Context) ApiSetKeychainEntryV1Request { + return ApiSetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetKeychainEntryResponseV1 +func (a *DefaultApiService) SetKeychainEntryV1Execute(r ApiSetKeychainEntryV1Request) (*SetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/set-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("setKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..12941e4168d --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus - Keychain API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..ecc2d402456 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..4a0c51d2f9f --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,268 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteKeychainEntryV1**](DefaultApi.md#DeleteKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +[**GetKeychainEntryV1**](DefaultApi.md#GetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +[**HasKeychainEntryV1**](DefaultApi.md#HasKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend. +[**SetKeychainEntryV1**](DefaultApi.md#SetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-google-sm/set-keychain-entry | Sets a value under a key on the keychain backend. + + + +## DeleteKeychainEntryV1 + +> DeleteKeychainEntryResponseV1 DeleteKeychainEntryV1(ctx).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + +Deletes an entry under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + deleteKeychainEntryRequestV1 := *openapiclient.NewDeleteKeychainEntryRequestV1("Key_example") // DeleteKeychainEntryRequestV1 | Request body to delete a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKeychainEntryV1`: DeleteKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteKeychainEntryRequestV1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md) | Request body to delete a keychain entry via its key | + +### Return type + +[**DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKeychainEntryV1 + +> GetKeychainEntryResponseV1 GetKeychainEntryV1(ctx).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + +Retrieves the contents of a keychain entry from the backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + getKeychainEntryRequestV1 := *openapiclient.NewGetKeychainEntryRequestV1("Key_example") // GetKeychainEntryRequestV1 | Request body to obtain a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKeychainEntryV1`: GetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getKeychainEntryRequestV1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md) | Request body to obtain a keychain entry via its key | + +### Return type + +[**GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasKeychainEntryV1 + +> HasKeychainEntryResponseV1 HasKeychainEntryV1(ctx).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + +Checks that an entry exists under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + hasKeychainEntryRequestV1 := *openapiclient.NewHasKeychainEntryRequestV1("Key_example") // HasKeychainEntryRequestV1 | Request body for checking a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasKeychainEntryV1`: HasKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasKeychainEntryRequestV1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md) | Request body for checking a keychain entry via its key | + +### Return type + +[**HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetKeychainEntryV1 + +> SetKeychainEntryResponseV1 SetKeychainEntryV1(ctx).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + +Sets a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +) + +func main() { + setKeychainEntryRequestV1 := *openapiclient.NewSetKeychainEntryRequestV1("Key_example", "Value_example") // SetKeychainEntryRequestV1 | Request body to write/update a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetKeychainEntryV1`: SetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setKeychainEntryRequestV1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md) | Request body to write/update a keychain entry via its key | + +### Return type + +[**SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..bc1dbbfacf8 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to check the presence of on the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..fd82de447d4 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..705d35faa23 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the entry store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..6d466c4b466 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..6ffbfc3059c --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..0531d3bd2ca --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key for the entry to check the presence of on the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..06da4faecde --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..b1bd2b1618e --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..3afa7771307 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..3a347f74cc6 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..8e8a33344b8 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the entry store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..16e070c19ae --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..732421b7f0a --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..985577c0b14 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..899b3a50bb3 --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,73 @@ +/* +Hyperledger Cactus - Keychain API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-google-sm_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..47280f95b7e --- /dev/null +++ b/packages/cactus-plugin-keychain-google-sm/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-google-sm + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/README.md index c52ab6dbea6..cf8772dbf7b 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus - Keychain API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata] Contains/describes the Keychain API types/paths for Hyperledger Cactus. diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 53887963880..06ca9d9b0dc 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index f9552f98c04..16fbedb09b6 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index f29ac443b42..dace34fa443 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index dd7282ceeff..b8758ef650d 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 39edd9d8366..c182a238f03 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 3dcd5e0e4d6..66f1828cd1a 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 876f058ecaf..875684afc46 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index cc6cab19a25..d6068492443 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index adcc07018bf..e659db55353 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index 3a756b6eb32..cd0e754d204 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index 68951496b4b..44d4ca9088f 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index 250e4573231..7c9c1eb4c3f 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index dc222c128ef..80603edcf00 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index 8819be0135d..67401f80502 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index 6cde9b9824a..2bc950a9e5b 100644 --- a/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.671287962+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:46.138928627+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a6d7c63d461 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,31 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +git_push.sh +go.mod +go.sum +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..9f515390359 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,122 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-memory-wasm + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-memory-wasm "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory-wasm.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory-wasm.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory-wasm.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory-wasm.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteKeychainEntryV1**](docs/DefaultApi.md#deletekeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +*DefaultApi* | [**GetKeychainEntryV1**](docs/DefaultApi.md#getkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +*DefaultApi* | [**HasKeychainEntryV1**](docs/DefaultApi.md#haskeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +*DefaultApi* | [**SetKeychainEntryV1**](docs/DefaultApi.md#setkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry | Sets a value under a key on the keychain backend. + + +## Documentation For Models + + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..f6aaf16ef25 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,340 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin + which is designed to help with testing and development and is implemented in Rust + instead of Typescript. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Keychain Memory WASM + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry: + post: + operationId: getKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_get_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "404": + description: A keychain item with the specified key was not found. + "500": + description: Unexpected error. + summary: Retrieves the contents of a keychain entry from the backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry: + post: + operationId: setKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_set_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Sets a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry: + post: + operationId: deleteKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_delete_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Deletes an entry under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry: + post: + operationId: hasKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_has_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Checks that an entry exists under a key on the keychain backend + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry + verbLowerCase: post +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + keychain_delete_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + description: Request body to delete a keychain entry via its key + required: true + keychain_has_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + description: Request body for checking a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + keychain_delete_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + keychain_delete_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_delete_entry_401: + description: Authorization information is missing or invalid. + keychain_delete_entry_500: + description: Unexpected error. + keychain_has_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + keychain_has_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_has_entry_401: + description: Authorization information is missing or invalid. + keychain_has_entry_500: + description: Unexpected error. + schemas: + GetKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + example: + value: value + key: key + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to check the presence of on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the entry store. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..21273554198 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,459 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeleteKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deleteKeychainEntryRequestV1 *DeleteKeychainEntryRequestV1 +} + +// Request body to delete a keychain entry via its key +func (r ApiDeleteKeychainEntryV1Request) DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1 DeleteKeychainEntryRequestV1) ApiDeleteKeychainEntryV1Request { + r.deleteKeychainEntryRequestV1 = &deleteKeychainEntryRequestV1 + return r +} + +func (r ApiDeleteKeychainEntryV1Request) Execute() (*DeleteKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.DeleteKeychainEntryV1Execute(r) +} + +/* +DeleteKeychainEntryV1 Deletes an entry under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteKeychainEntryV1Request +*/ +func (a *DefaultApiService) DeleteKeychainEntryV1(ctx context.Context) ApiDeleteKeychainEntryV1Request { + return ApiDeleteKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeleteKeychainEntryResponseV1 +func (a *DefaultApiService) DeleteKeychainEntryV1Execute(r ApiDeleteKeychainEntryV1Request) (*DeleteKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deleteKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("deleteKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getKeychainEntryRequestV1 *GetKeychainEntryRequestV1 +} + +// Request body to obtain a keychain entry via its key +func (r ApiGetKeychainEntryV1Request) GetKeychainEntryRequestV1(getKeychainEntryRequestV1 GetKeychainEntryRequestV1) ApiGetKeychainEntryV1Request { + r.getKeychainEntryRequestV1 = &getKeychainEntryRequestV1 + return r +} + +func (r ApiGetKeychainEntryV1Request) Execute() (*GetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.GetKeychainEntryV1Execute(r) +} + +/* +GetKeychainEntryV1 Retrieves the contents of a keychain entry from the backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKeychainEntryV1Request +*/ +func (a *DefaultApiService) GetKeychainEntryV1(ctx context.Context) ApiGetKeychainEntryV1Request { + return ApiGetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetKeychainEntryResponseV1 +func (a *DefaultApiService) GetKeychainEntryV1Execute(r ApiGetKeychainEntryV1Request) (*GetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("getKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasKeychainEntryRequestV1 *HasKeychainEntryRequestV1 +} + +// Request body for checking a keychain entry via its key +func (r ApiHasKeychainEntryV1Request) HasKeychainEntryRequestV1(hasKeychainEntryRequestV1 HasKeychainEntryRequestV1) ApiHasKeychainEntryV1Request { + r.hasKeychainEntryRequestV1 = &hasKeychainEntryRequestV1 + return r +} + +func (r ApiHasKeychainEntryV1Request) Execute() (*HasKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.HasKeychainEntryV1Execute(r) +} + +/* +HasKeychainEntryV1 Checks that an entry exists under a key on the keychain backend + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasKeychainEntryV1Request +*/ +func (a *DefaultApiService) HasKeychainEntryV1(ctx context.Context) ApiHasKeychainEntryV1Request { + return ApiHasKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasKeychainEntryResponseV1 +func (a *DefaultApiService) HasKeychainEntryV1Execute(r ApiHasKeychainEntryV1Request) (*HasKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.hasKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("hasKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setKeychainEntryRequestV1 *SetKeychainEntryRequestV1 +} + +// Request body to write/update a keychain entry via its key +func (r ApiSetKeychainEntryV1Request) SetKeychainEntryRequestV1(setKeychainEntryRequestV1 SetKeychainEntryRequestV1) ApiSetKeychainEntryV1Request { + r.setKeychainEntryRequestV1 = &setKeychainEntryRequestV1 + return r +} + +func (r ApiSetKeychainEntryV1Request) Execute() (*SetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.SetKeychainEntryV1Execute(r) +} + +/* +SetKeychainEntryV1 Sets a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetKeychainEntryV1Request +*/ +func (a *DefaultApiService) SetKeychainEntryV1(ctx context.Context) ApiSetKeychainEntryV1Request { + return ApiSetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetKeychainEntryResponseV1 +func (a *DefaultApiService) SetKeychainEntryV1Execute(r ApiSetKeychainEntryV1Request) (*SetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("setKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..7752b658b7b --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Keychain Memory WASM API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..4a14840536c --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..60be79894d7 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,268 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteKeychainEntryV1**](DefaultApi.md#DeleteKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry | Deletes an entry under a key on the keychain backend. +[**GetKeychainEntryV1**](DefaultApi.md#GetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +[**HasKeychainEntryV1**](DefaultApi.md#HasKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend +[**SetKeychainEntryV1**](DefaultApi.md#SetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry | Sets a value under a key on the keychain backend. + + + +## DeleteKeychainEntryV1 + +> DeleteKeychainEntryResponseV1 DeleteKeychainEntryV1(ctx).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + +Deletes an entry under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +) + +func main() { + deleteKeychainEntryRequestV1 := *openapiclient.NewDeleteKeychainEntryRequestV1("Key_example") // DeleteKeychainEntryRequestV1 | Request body to delete a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKeychainEntryV1`: DeleteKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteKeychainEntryRequestV1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md) | Request body to delete a keychain entry via its key | + +### Return type + +[**DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKeychainEntryV1 + +> GetKeychainEntryResponseV1 GetKeychainEntryV1(ctx).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + +Retrieves the contents of a keychain entry from the backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +) + +func main() { + getKeychainEntryRequestV1 := *openapiclient.NewGetKeychainEntryRequestV1("Key_example") // GetKeychainEntryRequestV1 | Request body to obtain a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKeychainEntryV1`: GetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getKeychainEntryRequestV1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md) | Request body to obtain a keychain entry via its key | + +### Return type + +[**GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasKeychainEntryV1 + +> HasKeychainEntryResponseV1 HasKeychainEntryV1(ctx).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + +Checks that an entry exists under a key on the keychain backend + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +) + +func main() { + hasKeychainEntryRequestV1 := *openapiclient.NewHasKeychainEntryRequestV1("Key_example") // HasKeychainEntryRequestV1 | Request body for checking a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasKeychainEntryV1`: HasKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasKeychainEntryRequestV1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md) | Request body for checking a keychain entry via its key | + +### Return type + +[**HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetKeychainEntryV1 + +> SetKeychainEntryResponseV1 SetKeychainEntryV1(ctx).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + +Sets a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +) + +func main() { + setKeychainEntryRequestV1 := *openapiclient.NewSetKeychainEntryRequestV1("Key_example", "Value_example") // SetKeychainEntryRequestV1 | Request body to write/update a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetKeychainEntryV1`: SetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setKeychainEntryRequestV1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md) | Request body to write/update a keychain entry via its key | + +### Return type + +[**SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..bc1dbbfacf8 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to check the presence of on the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..fd82de447d4 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..705d35faa23 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the entry store. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..aa639603382 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..4a520d80d52 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..bd74951f806 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key for the entry to check the presence of on the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..6721e9f82a9 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..e541741eb21 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..eae1cdc7e6b --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..8e553fd9bbb --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..2aee8029312 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the entry store. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..e0f91361817 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..49f47ad4217 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..0e97c7c404e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..a1ebf69cd99 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,73 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-memory-wasm_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..83ff7d59d0b --- /dev/null +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory WASM + +Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory-wasm + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/README.md index 57db482820b..e26f1bbbbb5 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Keychain Memory WASM - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata] Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript. diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 85ddb041e7b..de1f58e1fcc 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index f25df34e766..5090c51cbd6 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 91954ea5988..4ed102d95ff 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 578e08590b3..f7e43f9b754 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 9808c1852b5..42b809aaf4b 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index a54f2a03ab4..4224d39b9c2 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 39d67a4e3b4..81c29bfc4ba 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index f0c841a32ed..19c35008dd2 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index 042dcb4f5ec..5a83cca4e19 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index 99a96c03945..d2ae7d4bba5 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index 61081903e20..861ecdc71ec 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index f6fe42ddce0..6438515612b 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index 75adccc030e..adf1a0298cd 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index 0c889ea08b3..dab70e57530 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index db39d15b6aa..f396bff37cb 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:56.360430586+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:55.811607900+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..d8fef8d9a13 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,23 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetKeychainEntryRequest.md +docs/GetKeychainEntryResponse.md +docs/SetKeychainEntryRequest.md +docs/SetKeychainEntryResponse.md +git_push.sh +go.mod +go.sum +model_get_keychain_entry_request.go +model_get_keychain_entry_response.go +model_set_keychain_entry_request.go +model_set_keychain_entry_response.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..fb54b787915 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,115 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-memory "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-memory.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + +## Documentation For Models + + - [GetKeychainEntryRequest](docs/GetKeychainEntryRequest.md) + - [GetKeychainEntryResponse](docs/GetKeychainEntryResponse.md) + - [SetKeychainEntryRequest](docs/SetKeychainEntryRequest.md) + - [SetKeychainEntryResponse](docs/SetKeychainEntryResponse.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..321ad28bf5f --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,136 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Hyperledger Cactus Keychain Memory plugin. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: 'Hyperledger Cactus Plugin - Keychain Memory ' + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequest' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequest' + description: Request body to write/update a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponse' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponse' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + schemas: + GetKeychainEntryRequest: + additionalProperties: false + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponse: + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequest: + additionalProperties: false + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponse: + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..a213de05e3e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,120 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..cc5afae7165 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Keychain Memory API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..0d73cd3fac3 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..69cad14266b --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,68 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics | Get the Prometheus Metrics + + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequest.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequest.md new file mode 100644 index 00000000000..a1db92a6904 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequest.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequest + +`func NewGetKeychainEntryRequest(key string, ) *GetKeychainEntryRequest` + +NewGetKeychainEntryRequest instantiates a new GetKeychainEntryRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestWithDefaults + +`func NewGetKeychainEntryRequestWithDefaults() *GetKeychainEntryRequest` + +NewGetKeychainEntryRequestWithDefaults instantiates a new GetKeychainEntryRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequest) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponse.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponse.md new file mode 100644 index 00000000000..f6ddc867368 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponse.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponse + +`func NewGetKeychainEntryResponse(key string, value string, ) *GetKeychainEntryResponse` + +NewGetKeychainEntryResponse instantiates a new GetKeychainEntryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseWithDefaults + +`func NewGetKeychainEntryResponseWithDefaults() *GetKeychainEntryResponse` + +NewGetKeychainEntryResponseWithDefaults instantiates a new GetKeychainEntryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponse) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponse) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequest.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequest.md new file mode 100644 index 00000000000..623e377d7ed --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequest.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequest + +`func NewSetKeychainEntryRequest(key string, value string, ) *SetKeychainEntryRequest` + +NewSetKeychainEntryRequest instantiates a new SetKeychainEntryRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestWithDefaults + +`func NewSetKeychainEntryRequestWithDefaults() *SetKeychainEntryRequest` + +NewSetKeychainEntryRequestWithDefaults instantiates a new SetKeychainEntryRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequest) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequest) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponse.md b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponse.md new file mode 100644 index 00000000000..fc3db7213c5 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponse.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponse + +`func NewSetKeychainEntryResponse(key string, ) *SetKeychainEntryResponse` + +NewSetKeychainEntryResponse instantiates a new SetKeychainEntryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseWithDefaults + +`func NewSetKeychainEntryResponseWithDefaults() *SetKeychainEntryResponse` + +NewSetKeychainEntryResponseWithDefaults instantiates a new SetKeychainEntryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponse) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..93d804c7cc2 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..5d3c0047549 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request.go new file mode 100644 index 00000000000..ed4e257bc01 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequest{} + +// GetKeychainEntryRequest struct for GetKeychainEntryRequest +type GetKeychainEntryRequest struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequest instantiates a new GetKeychainEntryRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequest(key string) *GetKeychainEntryRequest { + this := GetKeychainEntryRequest{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestWithDefaults instantiates a new GetKeychainEntryRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestWithDefaults() *GetKeychainEntryRequest { + this := GetKeychainEntryRequest{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequest) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequest) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequest) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequest struct { + value *GetKeychainEntryRequest + isSet bool +} + +func (v NullableGetKeychainEntryRequest) Get() *GetKeychainEntryRequest { + return v.value +} + +func (v *NullableGetKeychainEntryRequest) Set(val *GetKeychainEntryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequest(val *GetKeychainEntryRequest) *NullableGetKeychainEntryRequest { + return &NullableGetKeychainEntryRequest{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response.go new file mode 100644 index 00000000000..ce5a1563c8b --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponse{} + +// GetKeychainEntryResponse struct for GetKeychainEntryResponse +type GetKeychainEntryResponse struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponse instantiates a new GetKeychainEntryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponse(key string, value string) *GetKeychainEntryResponse { + this := GetKeychainEntryResponse{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseWithDefaults instantiates a new GetKeychainEntryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseWithDefaults() *GetKeychainEntryResponse { + this := GetKeychainEntryResponse{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponse) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponse) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponse) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponse) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponse) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponse struct { + value *GetKeychainEntryResponse + isSet bool +} + +func (v NullableGetKeychainEntryResponse) Get() *GetKeychainEntryResponse { + return v.value +} + +func (v *NullableGetKeychainEntryResponse) Set(val *GetKeychainEntryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponse(val *GetKeychainEntryResponse) *NullableGetKeychainEntryResponse { + return &NullableGetKeychainEntryResponse{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request.go new file mode 100644 index 00000000000..3527b9b5fe4 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequest{} + +// SetKeychainEntryRequest struct for SetKeychainEntryRequest +type SetKeychainEntryRequest struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequest instantiates a new SetKeychainEntryRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequest(key string, value string) *SetKeychainEntryRequest { + this := SetKeychainEntryRequest{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestWithDefaults instantiates a new SetKeychainEntryRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestWithDefaults() *SetKeychainEntryRequest { + this := SetKeychainEntryRequest{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequest) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequest) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequest) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequest) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequest) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequest struct { + value *SetKeychainEntryRequest + isSet bool +} + +func (v NullableSetKeychainEntryRequest) Get() *SetKeychainEntryRequest { + return v.value +} + +func (v *NullableSetKeychainEntryRequest) Set(val *SetKeychainEntryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequest(val *SetKeychainEntryRequest) *NullableSetKeychainEntryRequest { + return &NullableSetKeychainEntryRequest{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response.go new file mode 100644 index 00000000000..c1f12871fc0 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponse{} + +// SetKeychainEntryResponse struct for SetKeychainEntryResponse +type SetKeychainEntryResponse struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponse instantiates a new SetKeychainEntryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponse(key string) *SetKeychainEntryResponse { + this := SetKeychainEntryResponse{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseWithDefaults instantiates a new SetKeychainEntryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseWithDefaults() *SetKeychainEntryResponse { + this := SetKeychainEntryResponse{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponse) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponse) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponse) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponse struct { + value *SetKeychainEntryResponse + isSet bool +} + +func (v NullableSetKeychainEntryResponse) Get() *SetKeychainEntryResponse { + return v.value +} + +func (v *NullableSetKeychainEntryResponse) Set(val *SetKeychainEntryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponse(val *SetKeychainEntryResponse) *NullableSetKeychainEntryResponse { + return &NullableSetKeychainEntryResponse{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..555b4200d9e --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..26b5d2d41dd --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,37 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-memory_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..7ce031089d5 --- /dev/null +++ b/packages/cactus-plugin-keychain-memory/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Keychain Memory + +Contains/describes the Hyperledger Cactus Keychain Memory plugin. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-memory + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/README.md index bb078acb141..fb6eaafbdaa 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Keychain Memory - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata] Contains/describes the Hyperledger Cactus Keychain Memory plugin. diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 332175cc5f0..075b5133bbd 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 7d608ca9703..0c2135f585b 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 931ab0b1722..53c70b86416 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 1f213689a04..7a60b02170f 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 0a90775b3b3..65ec45ec851 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 3ff48576824..36176c2df74 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index e20efcf1abf..f62535825bc 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequest.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequest.java index 938fba692c7..67ebb03525b 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequest.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequest.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class GetKeychainEntryRequest { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponse.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponse.java index 2ae6075f6f5..49728fa957c 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponse.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponse.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class GetKeychainEntryResponse { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequest.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequest.java index a99dad40e71..16585bac1ce 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequest.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequest.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class SetKeychainEntryRequest { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponse.java b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponse.java index 795ccabe98f..1b44f65834e 100644 --- a/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponse.java +++ b/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponse.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.449684435+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:50.579090332+05:30[Asia/Kolkata]") public class SetKeychainEntryResponse { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a6d7c63d461 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,31 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/DeleteKeychainEntryRequestV1.md +docs/DeleteKeychainEntryResponseV1.md +docs/GetKeychainEntryRequestV1.md +docs/GetKeychainEntryResponseV1.md +docs/HasKeychainEntryRequestV1.md +docs/HasKeychainEntryResponseV1.md +docs/SetKeychainEntryRequestV1.md +docs/SetKeychainEntryResponseV1.md +git_push.sh +go.mod +go.sum +model_delete_keychain_entry_request_v1.go +model_delete_keychain_entry_response_v1.go +model_get_keychain_entry_request_v1.go +model_get_keychain_entry_response_v1.go +model_has_keychain_entry_request_v1.go +model_has_keychain_entry_response_v1.go +model_set_keychain_entry_request_v1.go +model_set_keychain_entry_response_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..09a513e53d8 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,123 @@ +# Go API client for @hyperledger/cactus-plugin-keychain-vault + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-keychain-vault "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-vault.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-vault.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-vault.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-keychain-vault.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteKeychainEntryV1**](docs/DefaultApi.md#deletekeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry | Deletes an entry from the keychain stored under the provided key. +*DefaultApi* | [**GetKeychainEntryV1**](docs/DefaultApi.md#getkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**HasKeychainEntryV1**](docs/DefaultApi.md#haskeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry | Retrieves the information regarding a key being present on the keychain or not. +*DefaultApi* | [**SetKeychainEntryV1**](docs/DefaultApi.md#setkeychainentryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry | Sets a value under a key on the keychain backend. + + +## Documentation For Models + + - [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md) + - [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md) + - [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md) + - [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md) + - [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md) + - [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md) + - [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md) + - [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..3a9e98d67ab --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,310 @@ +openapi: 3.0.3 +info: + description: Contains/describes the Keychain API types/paths for Hyperledger Cactus. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus - Keychain API + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry: + post: + operationId: getKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_get_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "404": + description: A keychain item with the specified key was not found. + "500": + description: Unexpected error. + summary: Retrieves the contents of a keychain entry from the backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry: + post: + operationId: deleteKeychainEntryV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryRequestV1' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteKeychainEntryResponseV1' + description: OK + summary: Deletes an entry from the keychain stored under the provided key. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry: + post: + operationId: hasKeychainEntryV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryRequestV1' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/HasKeychainEntryResponseV1' + description: OK + summary: Retrieves the information regarding a key being present on the keychain + or not. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry: + post: + operationId: setKeychainEntryV1 + parameters: [] + requestBody: + $ref: '#/components/requestBodies/keychain_set_entry_request_body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + "400": + description: "Bad request. Key must be a string and longer than 0, shorter\ + \ than 1024 characters." + "401": + description: Authorization information is missing or invalid. + "500": + description: Unexpected error. + summary: Sets a value under a key on the keychain backend. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics +components: + requestBodies: + keychain_get_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryRequestV1' + description: Request body to obtain a keychain entry via its key + required: true + keychain_set_entry_request_body: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryRequestV1' + description: Request body to write/update a keychain entry via its key + required: true + responses: + keychain_get_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetKeychainEntryResponseV1' + description: OK + keychain_get_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_get_entry_401: + description: Authorization information is missing or invalid. + keychain_get_entry_404: + description: A keychain item with the specified key was not found. + keychain_get_entry_500: + description: Unexpected error. + keychain_set_entry_200: + content: + application/json: + schema: + $ref: '#/components/schemas/SetKeychainEntryResponseV1' + description: OK + keychain_set_entry_400: + description: "Bad request. Key must be a string and longer than 0, shorter than\ + \ 1024 characters." + keychain_set_entry_401: + description: Authorization information is missing or invalid. + keychain_set_entry_500: + description: Unexpected error. + schemas: + PrometheusExporterMetricsResponse: + nullable: false + type: string + HasKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key to check for presence in the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + HasKeychainEntryResponseV1: + example: + checkedAt: checkedAt + isPresent: true + key: key + properties: + key: + description: The key that was used to check the presence of the value in + the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + checkedAt: + description: Date and time encoded as JSON when the presence check was performed + by the plugin backend. + nullable: false + type: string + isPresent: + description: The boolean true or false indicating the presence or absence + of an entry under 'key'. + nullable: false + type: boolean + required: + - checkedAt + - isPresent + - key + type: object + DeleteKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key of the entry to delete from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + DeleteKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key of the entry that was deleted from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryRequestV1: + additionalProperties: false + example: + key: key + properties: + key: + description: The key for the entry to get from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object + GetKeychainEntryResponseV1: + example: + value: value + key: key + properties: + key: + description: The key that was used to retrieve the value from the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value associated with the requested key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryRequestV1: + additionalProperties: false + example: + value: value + key: key + properties: + key: + description: The key for the entry to set on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + value: + description: The value that will be associated with the key on the keychain. + maxLength: 10485760 + minLength: 0 + nullable: false + type: string + required: + - key + - value + type: object + SetKeychainEntryResponseV1: + example: + key: key + properties: + key: + description: The key that was used to set the value on the keychain. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - key + type: object diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..fa68752e4b4 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,548 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeleteKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deleteKeychainEntryRequestV1 *DeleteKeychainEntryRequestV1 +} + +func (r ApiDeleteKeychainEntryV1Request) DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1 DeleteKeychainEntryRequestV1) ApiDeleteKeychainEntryV1Request { + r.deleteKeychainEntryRequestV1 = &deleteKeychainEntryRequestV1 + return r +} + +func (r ApiDeleteKeychainEntryV1Request) Execute() (*DeleteKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.DeleteKeychainEntryV1Execute(r) +} + +/* +DeleteKeychainEntryV1 Deletes an entry from the keychain stored under the provided key. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteKeychainEntryV1Request +*/ +func (a *DefaultApiService) DeleteKeychainEntryV1(ctx context.Context) ApiDeleteKeychainEntryV1Request { + return ApiDeleteKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeleteKeychainEntryResponseV1 +func (a *DefaultApiService) DeleteKeychainEntryV1Execute(r ApiDeleteKeychainEntryV1Request) (*DeleteKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getKeychainEntryRequestV1 *GetKeychainEntryRequestV1 +} + +// Request body to obtain a keychain entry via its key +func (r ApiGetKeychainEntryV1Request) GetKeychainEntryRequestV1(getKeychainEntryRequestV1 GetKeychainEntryRequestV1) ApiGetKeychainEntryV1Request { + r.getKeychainEntryRequestV1 = &getKeychainEntryRequestV1 + return r +} + +func (r ApiGetKeychainEntryV1Request) Execute() (*GetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.GetKeychainEntryV1Execute(r) +} + +/* +GetKeychainEntryV1 Retrieves the contents of a keychain entry from the backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKeychainEntryV1Request +*/ +func (a *DefaultApiService) GetKeychainEntryV1(ctx context.Context) ApiGetKeychainEntryV1Request { + return ApiGetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetKeychainEntryResponseV1 +func (a *DefaultApiService) GetKeychainEntryV1Execute(r ApiGetKeychainEntryV1Request) (*GetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.getKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("getKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHasKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + hasKeychainEntryRequestV1 *HasKeychainEntryRequestV1 +} + +func (r ApiHasKeychainEntryV1Request) HasKeychainEntryRequestV1(hasKeychainEntryRequestV1 HasKeychainEntryRequestV1) ApiHasKeychainEntryV1Request { + r.hasKeychainEntryRequestV1 = &hasKeychainEntryRequestV1 + return r +} + +func (r ApiHasKeychainEntryV1Request) Execute() (*HasKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.HasKeychainEntryV1Execute(r) +} + +/* +HasKeychainEntryV1 Retrieves the information regarding a key being present on the keychain or not. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHasKeychainEntryV1Request +*/ +func (a *DefaultApiService) HasKeychainEntryV1(ctx context.Context) ApiHasKeychainEntryV1Request { + return ApiHasKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HasKeychainEntryResponseV1 +func (a *DefaultApiService) HasKeychainEntryV1Execute(r ApiHasKeychainEntryV1Request) (*HasKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HasKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.HasKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.hasKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetKeychainEntryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + setKeychainEntryRequestV1 *SetKeychainEntryRequestV1 +} + +// Request body to write/update a keychain entry via its key +func (r ApiSetKeychainEntryV1Request) SetKeychainEntryRequestV1(setKeychainEntryRequestV1 SetKeychainEntryRequestV1) ApiSetKeychainEntryV1Request { + r.setKeychainEntryRequestV1 = &setKeychainEntryRequestV1 + return r +} + +func (r ApiSetKeychainEntryV1Request) Execute() (*SetKeychainEntryResponseV1, *http.Response, error) { + return r.ApiService.SetKeychainEntryV1Execute(r) +} + +/* +SetKeychainEntryV1 Sets a value under a key on the keychain backend. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetKeychainEntryV1Request +*/ +func (a *DefaultApiService) SetKeychainEntryV1(ctx context.Context) ApiSetKeychainEntryV1Request { + return ApiSetKeychainEntryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetKeychainEntryResponseV1 +func (a *DefaultApiService) SetKeychainEntryV1Execute(r ApiSetKeychainEntryV1Request) (*SetKeychainEntryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetKeychainEntryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetKeychainEntryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setKeychainEntryRequestV1 == nil { + return localVarReturnValue, nil, reportError("setKeychainEntryRequestV1 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setKeychainEntryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..acb2a64a274 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus - Keychain API API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..55577240435 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..16ff649db72 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,328 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteKeychainEntryV1**](DefaultApi.md#DeleteKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry | Deletes an entry from the keychain stored under the provided key. +[**GetKeychainEntryV1**](DefaultApi.md#GetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry | Retrieves the contents of a keychain entry from the backend. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**HasKeychainEntryV1**](DefaultApi.md#HasKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry | Retrieves the information regarding a key being present on the keychain or not. +[**SetKeychainEntryV1**](DefaultApi.md#SetKeychainEntryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry | Sets a value under a key on the keychain backend. + + + +## DeleteKeychainEntryV1 + +> DeleteKeychainEntryResponseV1 DeleteKeychainEntryV1(ctx).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + +Deletes an entry from the keychain stored under the provided key. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func main() { + deleteKeychainEntryRequestV1 := *openapiclient.NewDeleteKeychainEntryRequestV1("Key_example") // DeleteKeychainEntryRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).DeleteKeychainEntryRequestV1(deleteKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKeychainEntryV1`: DeleteKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteKeychainEntryRequestV1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md) | | + +### Return type + +[**DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKeychainEntryV1 + +> GetKeychainEntryResponseV1 GetKeychainEntryV1(ctx).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + +Retrieves the contents of a keychain entry from the backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func main() { + getKeychainEntryRequestV1 := *openapiclient.NewGetKeychainEntryRequestV1("Key_example") // GetKeychainEntryRequestV1 | Request body to obtain a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).GetKeychainEntryRequestV1(getKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKeychainEntryV1`: GetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getKeychainEntryRequestV1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md) | Request body to obtain a keychain entry via its key | + +### Return type + +[**GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## HasKeychainEntryV1 + +> HasKeychainEntryResponseV1 HasKeychainEntryV1(ctx).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + +Retrieves the information regarding a key being present on the keychain or not. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func main() { + hasKeychainEntryRequestV1 := *openapiclient.NewHasKeychainEntryRequestV1("Key_example") // HasKeychainEntryRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).HasKeychainEntryRequestV1(hasKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.HasKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HasKeychainEntryV1`: HasKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.HasKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiHasKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hasKeychainEntryRequestV1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md) | | + +### Return type + +[**HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetKeychainEntryV1 + +> SetKeychainEntryResponseV1 SetKeychainEntryV1(ctx).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + +Sets a value under a key on the keychain backend. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func main() { + setKeychainEntryRequestV1 := *openapiclient.NewSetKeychainEntryRequestV1("Key_example", "Value_example") // SetKeychainEntryRequestV1 | Request body to write/update a keychain entry via its key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).SetKeychainEntryRequestV1(setKeychainEntryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetKeychainEntryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetKeychainEntryV1`: SetKeychainEntryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetKeychainEntryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetKeychainEntryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **setKeychainEntryRequestV1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md) | Request body to write/update a keychain entry via its key | + +### Return type + +[**SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md new file mode 100644 index 00000000000..b61c1d3c188 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key of the entry to delete from the keychain. | + +## Methods + +### NewDeleteKeychainEntryRequestV1 + +`func NewDeleteKeychainEntryRequestV1(key string, ) *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryRequestV1WithDefaults + +`func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1` + +NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md new file mode 100644 index 00000000000..5ea6e03f31c --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/DeleteKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# DeleteKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key of the entry that was deleted from the keychain. | + +## Methods + +### NewDeleteKeychainEntryResponseV1 + +`func NewDeleteKeychainEntryResponseV1(key string, ) *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteKeychainEntryResponseV1WithDefaults + +`func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1` + +NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *DeleteKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *DeleteKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..91f4a536952 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# GetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to get from the keychain. | + +## Methods + +### NewGetKeychainEntryRequestV1 + +`func NewGetKeychainEntryRequestV1(key string, ) *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryRequestV1WithDefaults + +`func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1` + +NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..d1ec10af086 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/GetKeychainEntryResponseV1.md @@ -0,0 +1,72 @@ +# GetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to retrieve the value from the keychain. | +**Value** | **string** | The value associated with the requested key on the keychain. | + +## Methods + +### NewGetKeychainEntryResponseV1 + +`func NewGetKeychainEntryResponseV1(key string, value string, ) *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetKeychainEntryResponseV1WithDefaults + +`func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1` + +NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *GetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *GetKeychainEntryResponseV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *GetKeychainEntryResponseV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md new file mode 100644 index 00000000000..5fa1b8c7c3f --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryRequestV1.md @@ -0,0 +1,51 @@ +# HasKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to check for presence in the keychain. | + +## Methods + +### NewHasKeychainEntryRequestV1 + +`func NewHasKeychainEntryRequestV1(key string, ) *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryRequestV1WithDefaults + +`func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1` + +NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md new file mode 100644 index 00000000000..4ba58f14a0f --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/HasKeychainEntryResponseV1.md @@ -0,0 +1,93 @@ +# HasKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to check the presence of the value in the keychain. | +**CheckedAt** | **string** | Date and time encoded as JSON when the presence check was performed by the plugin backend. | +**IsPresent** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. | + +## Methods + +### NewHasKeychainEntryResponseV1 + +`func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool, ) *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHasKeychainEntryResponseV1WithDefaults + +`func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1` + +NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *HasKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *HasKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetCheckedAt + +`func (o *HasKeychainEntryResponseV1) GetCheckedAt() string` + +GetCheckedAt returns the CheckedAt field if non-nil, zero value otherwise. + +### GetCheckedAtOk + +`func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool)` + +GetCheckedAtOk returns a tuple with the CheckedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckedAt + +`func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string)` + +SetCheckedAt sets CheckedAt field to given value. + + +### GetIsPresent + +`func (o *HasKeychainEntryResponseV1) GetIsPresent() bool` + +GetIsPresent returns the IsPresent field if non-nil, zero value otherwise. + +### GetIsPresentOk + +`func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool)` + +GetIsPresentOk returns a tuple with the IsPresent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPresent + +`func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool)` + +SetIsPresent sets IsPresent field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md new file mode 100644 index 00000000000..a45492808e6 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryRequestV1.md @@ -0,0 +1,72 @@ +# SetKeychainEntryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for the entry to set on the keychain. | +**Value** | **string** | The value that will be associated with the key on the keychain. | + +## Methods + +### NewSetKeychainEntryRequestV1 + +`func NewSetKeychainEntryRequestV1(key string, value string, ) *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryRequestV1WithDefaults + +`func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1` + +NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryRequestV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryRequestV1) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetKeychainEntryRequestV1) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetKeychainEntryRequestV1) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md new file mode 100644 index 00000000000..2a4f905c35e --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/docs/SetKeychainEntryResponseV1.md @@ -0,0 +1,51 @@ +# SetKeychainEntryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key that was used to set the value on the keychain. | + +## Methods + +### NewSetKeychainEntryResponseV1 + +`func NewSetKeychainEntryResponseV1(key string, ) *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetKeychainEntryResponseV1WithDefaults + +`func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1` + +NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *SetKeychainEntryResponseV1) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetKeychainEntryResponseV1) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..55ae13dd443 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..46710d52689 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go new file mode 100644 index 00000000000..4e584002c06 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryRequestV1{} + +// DeleteKeychainEntryRequestV1 struct for DeleteKeychainEntryRequestV1 +type DeleteKeychainEntryRequestV1 struct { + // The key of the entry to delete from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryRequestV1 instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryRequestV1(key string) *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryRequestV1WithDefaults instantiates a new DeleteKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryRequestV1WithDefaults() *DeleteKeychainEntryRequestV1 { + this := DeleteKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryRequestV1 struct { + value *DeleteKeychainEntryRequestV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryRequestV1) Get() *DeleteKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryRequestV1) Set(val *DeleteKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryRequestV1(val *DeleteKeychainEntryRequestV1) *NullableDeleteKeychainEntryRequestV1 { + return &NullableDeleteKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go new file mode 100644 index 00000000000..9271e1a3b15 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_delete_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the DeleteKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteKeychainEntryResponseV1{} + +// DeleteKeychainEntryResponseV1 struct for DeleteKeychainEntryResponseV1 +type DeleteKeychainEntryResponseV1 struct { + // The key of the entry that was deleted from the keychain. + Key string `json:"key"` +} + +// NewDeleteKeychainEntryResponseV1 instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteKeychainEntryResponseV1(key string) *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewDeleteKeychainEntryResponseV1WithDefaults instantiates a new DeleteKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteKeychainEntryResponseV1WithDefaults() *DeleteKeychainEntryResponseV1 { + this := DeleteKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *DeleteKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *DeleteKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *DeleteKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o DeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableDeleteKeychainEntryResponseV1 struct { + value *DeleteKeychainEntryResponseV1 + isSet bool +} + +func (v NullableDeleteKeychainEntryResponseV1) Get() *DeleteKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableDeleteKeychainEntryResponseV1) Set(val *DeleteKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteKeychainEntryResponseV1(val *DeleteKeychainEntryResponseV1) *NullableDeleteKeychainEntryResponseV1 { + return &NullableDeleteKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableDeleteKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go new file mode 100644 index 00000000000..ddc7f4272d9 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryRequestV1{} + +// GetKeychainEntryRequestV1 struct for GetKeychainEntryRequestV1 +type GetKeychainEntryRequestV1 struct { + // The key for the entry to get from the keychain. + Key string `json:"key"` +} + +// NewGetKeychainEntryRequestV1 instantiates a new GetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryRequestV1(key string) *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewGetKeychainEntryRequestV1WithDefaults instantiates a new GetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryRequestV1WithDefaults() *GetKeychainEntryRequestV1 { + this := GetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o GetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableGetKeychainEntryRequestV1 struct { + value *GetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableGetKeychainEntryRequestV1) Get() *GetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableGetKeychainEntryRequestV1) Set(val *GetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryRequestV1(val *GetKeychainEntryRequestV1) *NullableGetKeychainEntryRequestV1 { + return &NullableGetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go new file mode 100644 index 00000000000..7e9efe7349b --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_get_keychain_entry_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the GetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetKeychainEntryResponseV1{} + +// GetKeychainEntryResponseV1 struct for GetKeychainEntryResponseV1 +type GetKeychainEntryResponseV1 struct { + // The key that was used to retrieve the value from the keychain. + Key string `json:"key"` + // The value associated with the requested key on the keychain. + Value string `json:"value"` +} + +// NewGetKeychainEntryResponseV1 instantiates a new GetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetKeychainEntryResponseV1(key string, value string) *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + this.Key = key + this.Value = value + return &this +} + +// NewGetKeychainEntryResponseV1WithDefaults instantiates a new GetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetKeychainEntryResponseV1WithDefaults() *GetKeychainEntryResponseV1 { + this := GetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *GetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *GetKeychainEntryResponseV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetKeychainEntryResponseV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetKeychainEntryResponseV1) SetValue(v string) { + o.Value = v +} + +func (o GetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableGetKeychainEntryResponseV1 struct { + value *GetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableGetKeychainEntryResponseV1) Get() *GetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableGetKeychainEntryResponseV1) Set(val *GetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetKeychainEntryResponseV1(val *GetKeychainEntryResponseV1) *NullableGetKeychainEntryResponseV1 { + return &NullableGetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableGetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go new file mode 100644 index 00000000000..1871b03279c --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_request_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryRequestV1{} + +// HasKeychainEntryRequestV1 struct for HasKeychainEntryRequestV1 +type HasKeychainEntryRequestV1 struct { + // The key to check for presence in the keychain. + Key string `json:"key"` +} + +// NewHasKeychainEntryRequestV1 instantiates a new HasKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryRequestV1(key string) *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + this.Key = key + return &this +} + +// NewHasKeychainEntryRequestV1WithDefaults instantiates a new HasKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryRequestV1WithDefaults() *HasKeychainEntryRequestV1 { + this := HasKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +func (o HasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableHasKeychainEntryRequestV1 struct { + value *HasKeychainEntryRequestV1 + isSet bool +} + +func (v NullableHasKeychainEntryRequestV1) Get() *HasKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableHasKeychainEntryRequestV1) Set(val *HasKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryRequestV1(val *HasKeychainEntryRequestV1) *NullableHasKeychainEntryRequestV1 { + return &NullableHasKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go new file mode 100644 index 00000000000..253e791d9d1 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_has_keychain_entry_response_v1.go @@ -0,0 +1,174 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the HasKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HasKeychainEntryResponseV1{} + +// HasKeychainEntryResponseV1 struct for HasKeychainEntryResponseV1 +type HasKeychainEntryResponseV1 struct { + // The key that was used to check the presence of the value in the keychain. + Key string `json:"key"` + // Date and time encoded as JSON when the presence check was performed by the plugin backend. + CheckedAt string `json:"checkedAt"` + // The boolean true or false indicating the presence or absence of an entry under 'key'. + IsPresent bool `json:"isPresent"` +} + +// NewHasKeychainEntryResponseV1 instantiates a new HasKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHasKeychainEntryResponseV1(key string, checkedAt string, isPresent bool) *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + this.Key = key + this.CheckedAt = checkedAt + this.IsPresent = isPresent + return &this +} + +// NewHasKeychainEntryResponseV1WithDefaults instantiates a new HasKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHasKeychainEntryResponseV1WithDefaults() *HasKeychainEntryResponseV1 { + this := HasKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *HasKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *HasKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +// GetCheckedAt returns the CheckedAt field value +func (o *HasKeychainEntryResponseV1) GetCheckedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CheckedAt +} + +// GetCheckedAtOk returns a tuple with the CheckedAt field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetCheckedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CheckedAt, true +} + +// SetCheckedAt sets field value +func (o *HasKeychainEntryResponseV1) SetCheckedAt(v string) { + o.CheckedAt = v +} + +// GetIsPresent returns the IsPresent field value +func (o *HasKeychainEntryResponseV1) GetIsPresent() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPresent +} + +// GetIsPresentOk returns a tuple with the IsPresent field value +// and a boolean to check if the value has been set. +func (o *HasKeychainEntryResponseV1) GetIsPresentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPresent, true +} + +// SetIsPresent sets field value +func (o *HasKeychainEntryResponseV1) SetIsPresent(v bool) { + o.IsPresent = v +} + +func (o HasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HasKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["checkedAt"] = o.CheckedAt + toSerialize["isPresent"] = o.IsPresent + return toSerialize, nil +} + +type NullableHasKeychainEntryResponseV1 struct { + value *HasKeychainEntryResponseV1 + isSet bool +} + +func (v NullableHasKeychainEntryResponseV1) Get() *HasKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableHasKeychainEntryResponseV1) Set(val *HasKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableHasKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableHasKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHasKeychainEntryResponseV1(val *HasKeychainEntryResponseV1) *NullableHasKeychainEntryResponseV1 { + return &NullableHasKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableHasKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHasKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go new file mode 100644 index 00000000000..57c04960f37 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryRequestV1{} + +// SetKeychainEntryRequestV1 struct for SetKeychainEntryRequestV1 +type SetKeychainEntryRequestV1 struct { + // The key for the entry to set on the keychain. + Key string `json:"key"` + // The value that will be associated with the key on the keychain. + Value string `json:"value"` +} + +// NewSetKeychainEntryRequestV1 instantiates a new SetKeychainEntryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryRequestV1(key string, value string) *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + this.Key = key + this.Value = value + return &this +} + +// NewSetKeychainEntryRequestV1WithDefaults instantiates a new SetKeychainEntryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryRequestV1WithDefaults() *SetKeychainEntryRequestV1 { + this := SetKeychainEntryRequestV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryRequestV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryRequestV1) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetKeychainEntryRequestV1) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryRequestV1) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetKeychainEntryRequestV1) SetValue(v string) { + o.Value = v +} + +func (o SetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetKeychainEntryRequestV1 struct { + value *SetKeychainEntryRequestV1 + isSet bool +} + +func (v NullableSetKeychainEntryRequestV1) Get() *SetKeychainEntryRequestV1 { + return v.value +} + +func (v *NullableSetKeychainEntryRequestV1) Set(val *SetKeychainEntryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryRequestV1(val *SetKeychainEntryRequestV1) *NullableSetKeychainEntryRequestV1 { + return &NullableSetKeychainEntryRequestV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go new file mode 100644 index 00000000000..dd36725818c --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/model_set_keychain_entry_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" +) + +// checks if the SetKeychainEntryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetKeychainEntryResponseV1{} + +// SetKeychainEntryResponseV1 struct for SetKeychainEntryResponseV1 +type SetKeychainEntryResponseV1 struct { + // The key that was used to set the value on the keychain. + Key string `json:"key"` +} + +// NewSetKeychainEntryResponseV1 instantiates a new SetKeychainEntryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetKeychainEntryResponseV1(key string) *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + this.Key = key + return &this +} + +// NewSetKeychainEntryResponseV1WithDefaults instantiates a new SetKeychainEntryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetKeychainEntryResponseV1WithDefaults() *SetKeychainEntryResponseV1 { + this := SetKeychainEntryResponseV1{} + return &this +} + +// GetKey returns the Key field value +func (o *SetKeychainEntryResponseV1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetKeychainEntryResponseV1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetKeychainEntryResponseV1) SetKey(v string) { + o.Key = v +} + +func (o SetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetKeychainEntryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + return toSerialize, nil +} + +type NullableSetKeychainEntryResponseV1 struct { + value *SetKeychainEntryResponseV1 + isSet bool +} + +func (v NullableSetKeychainEntryResponseV1) Get() *SetKeychainEntryResponseV1 { + return v.value +} + +func (v *NullableSetKeychainEntryResponseV1) Set(val *SetKeychainEntryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableSetKeychainEntryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableSetKeychainEntryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetKeychainEntryResponseV1(val *SetKeychainEntryResponseV1) *NullableSetKeychainEntryResponseV1 { + return &NullableSetKeychainEntryResponseV1{value: val, isSet: true} +} + +func (v NullableSetKeychainEntryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetKeychainEntryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..8e6f64719e2 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..91588050d74 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,85 @@ +/* +Hyperledger Cactus - Keychain API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-keychain-vault_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeleteKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService HasKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.HasKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SetKeychainEntryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SetKeychainEntryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..ce51d428906 --- /dev/null +++ b/packages/cactus-plugin-keychain-vault/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus - Keychain API + +Contains/describes the Keychain API types/paths for Hyperledger Cactus. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-keychain-vault + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/README.md index 1ef260e1553..3970ee965e7 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus - Keychain API - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata] Contains/describes the Keychain API types/paths for Hyperledger Cactus. diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 18ce72b03e4..90d122e93eb 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 5d0b8ae5754..6bc50fbb975 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index b4114a917eb..6c97d9eab86 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index ce14c576791..82e984b52b6 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index fef348bd6b8..fcda3709b0b 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 562cbfcb068..31e36838175 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 05b75d37df6..b0095ad2d3f 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java index 0a6c2b2ad66..58024ae91ab 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class DeleteKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java index 12e9362c90f..c15c7e9bb24 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeleteKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * DeleteKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class DeleteKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java index b58ea1d4b2b..e8417757553 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class GetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java index ed367bbec81..60a7b12fb3e 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * GetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class GetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java index e3db1e379cb..fac5fca85dc 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class HasKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java index ff96fd99c55..aa4d7e2028c 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/HasKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * HasKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class HasKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java index 0372498ed8f..5542f414ed4 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryRequestV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class SetKeychainEntryRequestV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java index 88e5ec8cd9f..6f5e178df00 100644 --- a/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java +++ b/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetKeychainEntryResponseV1.java @@ -50,7 +50,7 @@ /** * SetKeychainEntryResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:49.973932248+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:45.784709572+05:30[Asia/Kolkata]") public class SetKeychainEntryResponseV1 { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..d6300cee8e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,97 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/BesuPrivateTransactionConfig.md +docs/BesuTransactionConfig.md +docs/BesuTransactionConfigTo.md +docs/ConsistencyStrategy.md +docs/DefaultApi.md +docs/DeployContractSolidityBytecodeV1Request.md +docs/DeployContractSolidityBytecodeV1Response.md +docs/EthContractInvocationType.md +docs/EvmBlock.md +docs/EvmLog.md +docs/EvmTransaction.md +docs/GetBalanceV1Request.md +docs/GetBalanceV1Response.md +docs/GetBesuRecordV1Request.md +docs/GetBesuRecordV1Response.md +docs/GetBlockV1Request.md +docs/GetBlockV1Response.md +docs/GetPastLogsV1Request.md +docs/GetPastLogsV1Response.md +docs/GetTransactionV1Request.md +docs/GetTransactionV1Response.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/ReceiptType.md +docs/RunTransactionRequest.md +docs/RunTransactionResponse.md +docs/SignTransactionRequest.md +docs/SignTransactionResponse.md +docs/SolidityContractJsonArtifact.md +docs/SolidityContractJsonArtifactCompiler.md +docs/SolidityContractJsonArtifactGasEstimates.md +docs/SolidityContractJsonArtifactGasEstimatesCreation.md +docs/WatchBlocksV1.md +docs/WatchBlocksV1Progress.md +docs/Web3BlockHeader.md +docs/Web3BlockHeaderTimestamp.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3TransactionReceipt.md +git_push.sh +go.mod +go.sum +model_besu_private_transaction_config.go +model_besu_transaction_config.go +model_besu_transaction_config_to.go +model_consistency_strategy.go +model_deploy_contract_solidity_bytecode_v1_request.go +model_deploy_contract_solidity_bytecode_v1_response.go +model_eth_contract_invocation_type.go +model_evm_block.go +model_evm_log.go +model_evm_transaction.go +model_get_balance_v1_request.go +model_get_balance_v1_response.go +model_get_besu_record_v1_request.go +model_get_besu_record_v1_response.go +model_get_block_v1_request.go +model_get_block_v1_response.go +model_get_past_logs_v1_request.go +model_get_past_logs_v1_response.go +model_get_transaction_v1_request.go +model_get_transaction_v1_response.go +model_invoke_contract_v1_request.go +model_invoke_contract_v1_response.go +model_receipt_type.go +model_run_transaction_request.go +model_run_transaction_response.go +model_sign_transaction_request.go +model_sign_transaction_response.go +model_solidity_contract_json_artifact.go +model_solidity_contract_json_artifact_compiler.go +model_solidity_contract_json_artifact_gas_estimates.go +model_solidity_contract_json_artifact_gas_estimates_creation.go +model_watch_blocks_v1.go +model_watch_blocks_v1_progress.go +model_web3_block_header.go +model_web3_block_header_timestamp.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction_receipt.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..0e38aad535c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,162 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-besu + +Can perform basic tasks on a Besu ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-besu "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-besu.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-besu.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-besu.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-besu.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeployContractSolBytecodeV1**](docs/DefaultApi.md#deploycontractsolbytecodev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**GetBalanceV1**](docs/DefaultApi.md#getbalancev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-balance | Return balance of an address of a given block +*DefaultApi* | [**GetBesuRecordV1**](docs/DefaultApi.md#getbesurecordv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-besu-record | Retrieves an arbitrary record (any piece of information) from the ledger. Ledger records can be call outputs, transaction input, etc. +*DefaultApi* | [**GetBlockV1**](docs/DefaultApi.md#getblockv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block | Returns a block matching the block +*DefaultApi* | [**GetOpenApiSpecV1**](docs/DefaultApi.md#getopenapispecv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-open-api-spec | Retrieves the .json file that contains the OpenAPI specification for the plugin. +*DefaultApi* | [**GetPastLogsV1**](docs/DefaultApi.md#getpastlogsv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-past-logs | Gets past logs, matching the given options. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**GetTransactionV1**](docs/DefaultApi.md#gettransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-transaction | Executes a transaction on a besu ledger +*DefaultApi* | [**InvokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract | Invokes a contract on a besu ledger +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction | Executes a transaction on a besu ledger +*DefaultApi* | [**SignTransactionV1**](docs/DefaultApi.md#signtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/sign-transaction | Obtain signatures of ledger from the corresponding transaction hash. + + +## Documentation For Models + + - [BesuPrivateTransactionConfig](docs/BesuPrivateTransactionConfig.md) + - [BesuTransactionConfig](docs/BesuTransactionConfig.md) + - [BesuTransactionConfigTo](docs/BesuTransactionConfigTo.md) + - [ConsistencyStrategy](docs/ConsistencyStrategy.md) + - [DeployContractSolidityBytecodeV1Request](docs/DeployContractSolidityBytecodeV1Request.md) + - [DeployContractSolidityBytecodeV1Response](docs/DeployContractSolidityBytecodeV1Response.md) + - [EthContractInvocationType](docs/EthContractInvocationType.md) + - [EvmBlock](docs/EvmBlock.md) + - [EvmLog](docs/EvmLog.md) + - [EvmTransaction](docs/EvmTransaction.md) + - [GetBalanceV1Request](docs/GetBalanceV1Request.md) + - [GetBalanceV1Response](docs/GetBalanceV1Response.md) + - [GetBesuRecordV1Request](docs/GetBesuRecordV1Request.md) + - [GetBesuRecordV1Response](docs/GetBesuRecordV1Response.md) + - [GetBlockV1Request](docs/GetBlockV1Request.md) + - [GetBlockV1Response](docs/GetBlockV1Response.md) + - [GetPastLogsV1Request](docs/GetPastLogsV1Request.md) + - [GetPastLogsV1Response](docs/GetPastLogsV1Response.md) + - [GetTransactionV1Request](docs/GetTransactionV1Request.md) + - [GetTransactionV1Response](docs/GetTransactionV1Response.md) + - [InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [ReceiptType](docs/ReceiptType.md) + - [RunTransactionRequest](docs/RunTransactionRequest.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [SignTransactionRequest](docs/SignTransactionRequest.md) + - [SignTransactionResponse](docs/SignTransactionResponse.md) + - [SolidityContractJsonArtifact](docs/SolidityContractJsonArtifact.md) + - [SolidityContractJsonArtifactCompiler](docs/SolidityContractJsonArtifactCompiler.md) + - [SolidityContractJsonArtifactGasEstimates](docs/SolidityContractJsonArtifactGasEstimates.md) + - [SolidityContractJsonArtifactGasEstimatesCreation](docs/SolidityContractJsonArtifactGasEstimatesCreation.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + - [WatchBlocksV1Progress](docs/WatchBlocksV1Progress.md) + - [Web3BlockHeader](docs/Web3BlockHeader.md) + - [Web3BlockHeaderTimestamp](docs/Web3BlockHeaderTimestamp.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..20896b8199c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1228 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Besu ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Besu + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-open-api-spec: + get: + operationId: getOpenApiSpecV1 + parameters: [] + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: Retrieves the .json file that contains the OpenAPI specification for + the plugin. + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-open-api-spec + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/deploy-contract-solidity-bytecode: + post: + operationId: deployContractSolBytecodeV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/deploy-contract-solidity-bytecode + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-balance: + post: + operationId: getBalanceV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetBalanceV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetBalanceV1Response' + description: OK + summary: Return balance of an address of a given block + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-balance + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block: + post: + operationId: getBlockV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockV1Response' + description: OK + summary: Returns a block matching the block + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction: + post: + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + summary: Executes a transaction on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-transaction: + post: + operationId: getTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetTransactionV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetTransactionV1Response' + description: OK + summary: Executes a transaction on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-past-logs: + post: + operationId: getPastLogsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetPastLogsV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetPastLogsV1Response' + description: OK + summary: "Gets past logs, matching the given options." + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-past-logs + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract: + post: + operationId: invokeContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/sign-transaction: + post: + description: Obtain signatures of ledger from the corresponding transaction + hash. + operationId: signTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SignTransactionRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SignTransactionResponse' + description: OK + "404": + description: Not able to find the corresponding tranaction from the transaction + hash + summary: Obtain signatures of ledger from the corresponding transaction hash. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/sign-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-prometheus-exporter-metrics + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-besu-record: + post: + operationId: getBesuRecordV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetBesuRecordV1Request' + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/GetBesuRecordV1Response' + description: OK + summary: "Retrieves an arbitrary record (any piece of information) from the\ + \ ledger. Ledger records can be call outputs, transaction input, etc." + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-besu-record +components: + schemas: + GetBalanceV1Response: + example: + balance: balance + properties: + balance: + type: string + required: + - balance + type: object + GetBalanceV1Request: + additionalProperties: false + example: + address: address + defaultBlock: "" + properties: + address: + type: string + defaultBlock: {} + required: + - address + type: object + EvmBlock: + example: + logsBloom: logsBloom + totalDifficulty: 1.4658129805029452 + extraData: extraData + transactions: + - "" + - "" + nonce: nonce + miner: miner + difficulty: 6.027456183070403 + number: 0.8008281904610115 + gasLimit: 5.637376656633329 + gasUsed: 2.3021358869347655 + uncles: + - "" + - "" + sha3Uncles: sha3Uncles + size: 5.962133916683182 + transactionsRoot: transactionsRoot + stateRoot: stateRoot + parentHash: parentHash + hash: hash + timestamp: "" + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionsRoot: + type: string + stateRoot: + type: string + miner: + type: string + difficulty: + type: number + totalDifficulty: + type: number + extraData: + type: string + size: + type: number + gasLimit: + type: number + gasUsed: + type: number + timestamp: {} + transactions: + items: {} + type: array + uncles: + items: {} + type: array + type: object + GetBlockV1Response: + example: + block: + logsBloom: logsBloom + totalDifficulty: 1.4658129805029452 + extraData: extraData + transactions: + - "" + - "" + nonce: nonce + miner: miner + difficulty: 6.027456183070403 + number: 0.8008281904610115 + gasLimit: 5.637376656633329 + gasUsed: 2.3021358869347655 + uncles: + - "" + - "" + sha3Uncles: sha3Uncles + size: 5.962133916683182 + transactionsRoot: transactionsRoot + stateRoot: stateRoot + parentHash: parentHash + hash: hash + timestamp: "" + properties: + block: + $ref: '#/components/schemas/EvmBlock' + required: + - block + type: object + EvmTransaction: + example: + blockHash: "" + input: input + blockNumber: "" + gas: 6.027456183070403 + transactionIndex: "" + from: from + to: "" + nonce: 0.8008281904610115 + value: value + hash: hash + gasPrice: gasPrice + properties: + hash: + type: string + nonce: + type: number + blockHash: {} + blockNumber: {} + transactionIndex: {} + from: + type: string + to: {} + value: + type: string + gasPrice: + type: string + gas: + type: number + input: + type: string + type: object + GetTransactionV1Response: + example: + transaction: + blockHash: "" + input: input + blockNumber: "" + gas: 6.027456183070403 + transactionIndex: "" + from: from + to: "" + nonce: 0.8008281904610115 + value: value + hash: hash + gasPrice: gasPrice + properties: + transaction: + $ref: '#/components/schemas/EvmTransaction' + required: + - transaction + type: object + GetTransactionV1Request: + additionalProperties: false + example: + transactionHash: transactionHash + properties: + transactionHash: + type: string + required: + - transactionHash + type: object + GetPastLogsV1Response: + example: + logs: + - blockHash: blockHash + address: address + logIndex: 0.8008281904610115 + data: data + topics: + - topics + - topics + blockNumber: 1.4658129805029452 + transactionIndex: 6.027456183070403 + transactionHash: transactionHash + - blockHash: blockHash + address: address + logIndex: 0.8008281904610115 + data: data + topics: + - topics + - topics + blockNumber: 1.4658129805029452 + transactionIndex: 6.027456183070403 + transactionHash: transactionHash + properties: + logs: + items: + $ref: '#/components/schemas/EvmLog' + type: array + required: + - logs + type: object + GetPastLogsV1Request: + additionalProperties: false + example: + fromBlock: "" + toBlock: "" + address: "" + topics: + - "" + - "" + properties: + toBlock: {} + fromBlock: {} + address: {} + topics: + items: {} + type: array + type: object + EvmLog: + example: + blockHash: blockHash + address: address + logIndex: 0.8008281904610115 + data: data + topics: + - topics + - topics + blockNumber: 1.4658129805029452 + transactionIndex: 6.027456183070403 + transactionHash: transactionHash + properties: + address: + type: string + data: + type: string + blockHash: + type: string + transactionHash: + type: string + topics: + items: + type: string + type: array + logIndex: + type: number + transactionIndex: + type: number + blockNumber: + type: number + required: + - address + - blockHash + - blockNumber + - data + - logIndex + - topics + - transactionHash + - transactionIndex + type: object + GetBlockV1Request: + additionalProperties: false + example: + blockHashOrBlockNumber: "" + properties: + blockHashOrBlockNumber: {} + required: + - blockHashOrBlockNumber + type: object + WatchBlocksV1: + enum: + - org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + Web3BlockHeader: + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionRoot: + type: string + stateRoot: + type: string + receiptRoot: + type: string + miner: + type: string + extraData: + type: string + gasLimit: + type: integer + gasUsed: + type: integer + timestamp: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + required: + - extraData + - gasLimit + - gasUsed + - hash + - logsBloom + - miner + - nonce + - number + - parentHash + - receiptRoot + - sha3Uncles + - stateRoot + - timestamp + - transactionRoot + type: object + WatchBlocksV1Progress: + properties: + blockHeader: + $ref: '#/components/schemas/Web3BlockHeader' + required: + - blockHeader + type: object + ReceiptType: + description: Enumerates the possible types of receipts that can be waited for + by someone or something that has requested the execution of a transaction + on a ledger. + enum: + - NODE_TX_POOL_ACK + - LEDGER_BLOCK_ACK + type: string + ConsistencyStrategy: + example: + blockConfirmations: 2931 + receiptType: null + timeoutMs: 0 + properties: + receiptType: + $ref: '#/components/schemas/ReceiptType' + timeoutMs: + description: "The amount of milliseconds to wait for the receipt to arrive\ + \ to the connector. Defaults to 0 which means to wait for an unlimited\ + \ amount of time. Note that this wait may be interrupted still by other\ + \ parts of the infrastructure such as load balancers cutting of HTTP requests\ + \ after some time even if they are the type that is supposed to be kept\ + \ alive. The question of re-entrance is a broader topic not in scope to\ + \ discuss here, but it is important to mention it." + minimum: 0 + type: integer + blockConfirmations: + description: "The number of blocks to wait to be confirmed in addition to\ + \ the block containing the transaction in question. Note that if the receipt\ + \ type is set to only wait for node transaction pool ACK and this parameter\ + \ is set to anything, but zero then the API will not accept the request\ + \ due to conflicting parameters." + maximum: 20000 + minimum: 0 + type: integer + required: + - blockConfirmations + - receiptType + type: object + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - keychainId + - type + type: object + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + EthContractInvocationType: + enum: + - SEND + - CALL + type: string + SolidityContractJsonArtifact: + properties: + contractName: + nullable: false + type: string + metadata: + nullable: false + type: string + bytecode: + nullable: false + type: string + deployedBytecode: + nullable: false + type: string + sourceMap: + nullable: false + type: string + deployedSourceMap: + nullable: false + type: string + sourcePath: + type: string + compiler: + $ref: '#/components/schemas/SolidityContractJsonArtifact_compiler' + functionHashes: + additionalProperties: true + type: object + gasEstimates: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates' + required: + - contractName + type: object + BesuTransactionConfig: + additionalProperties: true + example: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + rawTransaction: + nullable: false + type: string + from: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + to: + $ref: '#/components/schemas/BesuTransactionConfig_to' + value: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + gas: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + gasPrice: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + nonce: + type: number + data: + $ref: '#/components/schemas/BesuTransactionConfig_to' + type: object + BesuPrivateTransactionConfig: + example: + privateFrom: privateFrom + privateFor: + - "" + - "" + properties: + privateFrom: + nullable: false + type: string + privateFor: + default: [] + items: {} + nullable: false + type: array + required: + - privateFor + - privateFrom + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + RunTransactionRequest: + additionalProperties: false + example: + privateTransactionConfig: + privateFrom: privateFrom + privateFor: + - "" + - "" + transactionConfig: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + consistencyStrategy: + blockConfirmations: 2931 + receiptType: null + timeoutMs: 0 + web3SigningCredential: + type: null + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + transactionConfig: + $ref: '#/components/schemas/BesuTransactionConfig' + consistencyStrategy: + $ref: '#/components/schemas/ConsistencyStrategy' + privateTransactionConfig: + $ref: '#/components/schemas/BesuPrivateTransactionConfig' + required: + - consistencyStrategy + - transactionConfig + - web3SigningCredential + type: object + RunTransactionResponse: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractSolidityBytecodeV1Request: + additionalProperties: false + example: + bytecode: bytecode + privateTransactionConfig: + privateFrom: privateFrom + privateFor: + - "" + - "" + keychainId: keychainId + constructorArgs: + - "" + - "" + timeoutMs: 0.6027456183070403 + contractAbi: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + contractName: contractName + gasPrice: gasPrice + properties: + contractName: + description: The contract name for retrieve the contracts json on the keychain. + maxLength: 100 + minLength: 1 + nullable: false + type: string + contractAbi: + description: The application binary interface of the solidity contract + items: {} + nullable: false + type: array + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + nullable: false + type: string + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: string + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + privateTransactionConfig: + $ref: '#/components/schemas/BesuPrivateTransactionConfig' + required: + - bytecode + - constructorArgs + - contractAbi + - contractName + - keychainId + - web3SigningCredential + type: object + DeployContractSolidityBytecodeV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + InvokeContractV1Request: + additionalProperties: false + example: + privateTransactionConfig: + privateFrom: privateFrom + privateFor: + - "" + - "" + methodName: methodName + contractAddress: contractAddress + params: + - "" + - "" + nonce: 0.8008281904610115 + invocationType: null + keychainId: keychainId + timeoutMs: 0.6027456183070403 + contractAbi: + - "" + - "" + gas: null + contractName: contractName + value: null + signingCredential: + type: null + gasPrice: null + properties: + contractName: + nullable: false + type: string + signingCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + contractAbi: + description: "The application binary interface of the solidity contract,\ + \ optional parameter" + items: {} + nullable: false + type: array + contractAddress: + description: "Address of the solidity contract, optional parameter" + nullable: false + type: string + value: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + gas: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + gasPrice: + $ref: '#/components/schemas/Web3BlockHeader_timestamp' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + type: string + privateTransactionConfig: + $ref: '#/components/schemas/BesuPrivateTransactionConfig' + required: + - contractName + - invocationType + - methodName + - params + - signingCredential + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + SignTransactionRequest: + additionalProperties: false + example: + keychainId: keychainId + keychainRef: keychainRef + transactionHash: transactionHash + properties: + keychainId: + maxLength: 100 + minLength: 1 + nullable: false + type: string + keychainRef: + maxLength: 100 + minLength: 1 + nullable: false + type: string + transactionHash: + description: The transaction hash of ledger will be used to fetch the contain. + maxLength: 2048 + minLength: 0 + nullable: false + type: string + required: + - keychainId + - keychainRef + - transactionHash + type: object + SignTransactionResponse: + example: + signature: signature + properties: + signature: + description: The signatures of ledger from the corresponding transaction + hash. + maxLength: 2048 + minLength: 0 + nullable: false + type: string + required: + - signature + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + GetBesuRecordV1Request: + additionalProperties: false + example: + invokeCall: + privateTransactionConfig: + privateFrom: privateFrom + privateFor: + - "" + - "" + methodName: methodName + contractAddress: contractAddress + params: + - "" + - "" + nonce: 0.8008281904610115 + invocationType: null + keychainId: keychainId + timeoutMs: 0.6027456183070403 + contractAbi: + - "" + - "" + gas: null + contractName: contractName + value: null + signingCredential: + type: null + gasPrice: null + transactionHash: transactionHash + properties: + invokeCall: + $ref: '#/components/schemas/InvokeContractV1Request' + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + type: object + GetBesuRecordV1Response: + properties: + ledgerId: + type: string + stateContract: + type: string + transactionInputData: {} + callOutput: {} + type: object + Web3BlockHeader_timestamp: + oneOf: + - type: string + - type: number + SolidityContractJsonArtifact_compiler: + additionalProperties: true + properties: + name: + type: string + version: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates_creation: + properties: + codeDepositCost: + type: string + executionCost: + type: string + totalCost: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates: + properties: + creation: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates_creation' + external: + additionalProperties: true + type: object + BesuTransactionConfig_to: + oneOf: + - type: string diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..5c57364ecf3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,1167 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeployContractSolBytecodeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractSolidityBytecodeV1Request *DeployContractSolidityBytecodeV1Request +} + +func (r ApiDeployContractSolBytecodeV1Request) DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request DeployContractSolidityBytecodeV1Request) ApiDeployContractSolBytecodeV1Request { + r.deployContractSolidityBytecodeV1Request = &deployContractSolidityBytecodeV1Request + return r +} + +func (r ApiDeployContractSolBytecodeV1Request) Execute() (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + return r.ApiService.DeployContractSolBytecodeV1Execute(r) +} + +/* +DeployContractSolBytecodeV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractSolBytecodeV1Request +*/ +func (a *DefaultApiService) DeployContractSolBytecodeV1(ctx context.Context) ApiDeployContractSolBytecodeV1Request { + return ApiDeployContractSolBytecodeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractSolidityBytecodeV1Response +func (a *DefaultApiService) DeployContractSolBytecodeV1Execute(r ApiDeployContractSolBytecodeV1Request) (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractSolidityBytecodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractSolBytecodeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/deploy-contract-solidity-bytecode" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractSolidityBytecodeV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBalanceV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getBalanceV1Request *GetBalanceV1Request +} + +func (r ApiGetBalanceV1Request) GetBalanceV1Request(getBalanceV1Request GetBalanceV1Request) ApiGetBalanceV1Request { + r.getBalanceV1Request = &getBalanceV1Request + return r +} + +func (r ApiGetBalanceV1Request) Execute() (*GetBalanceV1Response, *http.Response, error) { + return r.ApiService.GetBalanceV1Execute(r) +} + +/* +GetBalanceV1 Return balance of an address of a given block + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBalanceV1Request +*/ +func (a *DefaultApiService) GetBalanceV1(ctx context.Context) ApiGetBalanceV1Request { + return ApiGetBalanceV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetBalanceV1Response +func (a *DefaultApiService) GetBalanceV1Execute(r ApiGetBalanceV1Request) (*GetBalanceV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBalanceV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetBalanceV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-balance" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getBalanceV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBesuRecordV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getBesuRecordV1Request *GetBesuRecordV1Request +} + +func (r ApiGetBesuRecordV1Request) GetBesuRecordV1Request(getBesuRecordV1Request GetBesuRecordV1Request) ApiGetBesuRecordV1Request { + r.getBesuRecordV1Request = &getBesuRecordV1Request + return r +} + +func (r ApiGetBesuRecordV1Request) Execute() (*GetBesuRecordV1Response, *http.Response, error) { + return r.ApiService.GetBesuRecordV1Execute(r) +} + +/* +GetBesuRecordV1 Retrieves an arbitrary record (any piece of information) from the ledger. Ledger records can be call outputs, transaction input, etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBesuRecordV1Request +*/ +func (a *DefaultApiService) GetBesuRecordV1(ctx context.Context) ApiGetBesuRecordV1Request { + return ApiGetBesuRecordV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetBesuRecordV1Response +func (a *DefaultApiService) GetBesuRecordV1Execute(r ApiGetBesuRecordV1Request) (*GetBesuRecordV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBesuRecordV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetBesuRecordV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-besu-record" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getBesuRecordV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBlockV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getBlockV1Request *GetBlockV1Request +} + +func (r ApiGetBlockV1Request) GetBlockV1Request(getBlockV1Request GetBlockV1Request) ApiGetBlockV1Request { + r.getBlockV1Request = &getBlockV1Request + return r +} + +func (r ApiGetBlockV1Request) Execute() (*GetBlockV1Response, *http.Response, error) { + return r.ApiService.GetBlockV1Execute(r) +} + +/* +GetBlockV1 Returns a block matching the block + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBlockV1Request +*/ +func (a *DefaultApiService) GetBlockV1(ctx context.Context) ApiGetBlockV1Request { + return ApiGetBlockV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetBlockV1Response +func (a *DefaultApiService) GetBlockV1Execute(r ApiGetBlockV1Request) (*GetBlockV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBlockV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetBlockV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getBlockV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOpenApiSpecV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetOpenApiSpecV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetOpenApiSpecV1Execute(r) +} + +/* +GetOpenApiSpecV1 Retrieves the .json file that contains the OpenAPI specification for the plugin. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOpenApiSpecV1Request +*/ +func (a *DefaultApiService) GetOpenApiSpecV1(ctx context.Context) ApiGetOpenApiSpecV1Request { + return ApiGetOpenApiSpecV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetOpenApiSpecV1Execute(r ApiGetOpenApiSpecV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOpenApiSpecV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-open-api-spec" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPastLogsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getPastLogsV1Request *GetPastLogsV1Request +} + +func (r ApiGetPastLogsV1Request) GetPastLogsV1Request(getPastLogsV1Request GetPastLogsV1Request) ApiGetPastLogsV1Request { + r.getPastLogsV1Request = &getPastLogsV1Request + return r +} + +func (r ApiGetPastLogsV1Request) Execute() (*GetPastLogsV1Response, *http.Response, error) { + return r.ApiService.GetPastLogsV1Execute(r) +} + +/* +GetPastLogsV1 Gets past logs, matching the given options. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPastLogsV1Request +*/ +func (a *DefaultApiService) GetPastLogsV1(ctx context.Context) ApiGetPastLogsV1Request { + return ApiGetPastLogsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetPastLogsV1Response +func (a *DefaultApiService) GetPastLogsV1Execute(r ApiGetPastLogsV1Request) (*GetPastLogsV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetPastLogsV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPastLogsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-past-logs" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getPastLogsV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getTransactionV1Request *GetTransactionV1Request +} + +func (r ApiGetTransactionV1Request) GetTransactionV1Request(getTransactionV1Request GetTransactionV1Request) ApiGetTransactionV1Request { + r.getTransactionV1Request = &getTransactionV1Request + return r +} + +func (r ApiGetTransactionV1Request) Execute() (*GetTransactionV1Response, *http.Response, error) { + return r.ApiService.GetTransactionV1Execute(r) +} + +/* +GetTransactionV1 Executes a transaction on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTransactionV1Request +*/ +func (a *DefaultApiService) GetTransactionV1(ctx context.Context) ApiGetTransactionV1Request { + return ApiGetTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetTransactionV1Response +func (a *DefaultApiService) GetTransactionV1Execute(r ApiGetTransactionV1Request) (*GetTransactionV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTransactionV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getTransactionV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractV1Request *InvokeContractV1Request +} + +func (r ApiInvokeContractV1Request) InvokeContractV1Request(invokeContractV1Request InvokeContractV1Request) ApiInvokeContractV1Request { + r.invokeContractV1Request = &invokeContractV1Request + return r +} + +func (r ApiInvokeContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1Execute(r) +} + +/* +InvokeContractV1 Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1Request +*/ +func (a *DefaultApiService) InvokeContractV1(ctx context.Context) ApiInvokeContractV1Request { + return ApiInvokeContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1Execute(r ApiInvokeContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequest *RunTransactionRequest +} + +func (r ApiRunTransactionV1Request) RunTransactionRequest(runTransactionRequest RunTransactionRequest) ApiRunTransactionV1Request { + r.runTransactionRequest = &runTransactionRequest + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Executes a transaction on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSignTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + signTransactionRequest *SignTransactionRequest +} + +func (r ApiSignTransactionV1Request) SignTransactionRequest(signTransactionRequest SignTransactionRequest) ApiSignTransactionV1Request { + r.signTransactionRequest = &signTransactionRequest + return r +} + +func (r ApiSignTransactionV1Request) Execute() (*SignTransactionResponse, *http.Response, error) { + return r.ApiService.SignTransactionV1Execute(r) +} + +/* +SignTransactionV1 Obtain signatures of ledger from the corresponding transaction hash. + +Obtain signatures of ledger from the corresponding transaction hash. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSignTransactionV1Request +*/ +func (a *DefaultApiService) SignTransactionV1(ctx context.Context) ApiSignTransactionV1Request { + return ApiSignTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SignTransactionResponse +func (a *DefaultApiService) SignTransactionV1Execute(r ApiSignTransactionV1Request) (*SignTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SignTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SignTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/sign-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.signTransactionRequest == nil { + return localVarReturnValue, nil, reportError("signTransactionRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.signTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..123d982f0e9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Besu API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..3806363d809 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuPrivateTransactionConfig.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuPrivateTransactionConfig.md new file mode 100644 index 00000000000..713e3b52bcc --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuPrivateTransactionConfig.md @@ -0,0 +1,72 @@ +# BesuPrivateTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateFrom** | **string** | | +**PrivateFor** | **[]interface{}** | | [default to []] + +## Methods + +### NewBesuPrivateTransactionConfig + +`func NewBesuPrivateTransactionConfig(privateFrom string, privateFor []interface{}, ) *BesuPrivateTransactionConfig` + +NewBesuPrivateTransactionConfig instantiates a new BesuPrivateTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBesuPrivateTransactionConfigWithDefaults + +`func NewBesuPrivateTransactionConfigWithDefaults() *BesuPrivateTransactionConfig` + +NewBesuPrivateTransactionConfigWithDefaults instantiates a new BesuPrivateTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateFrom + +`func (o *BesuPrivateTransactionConfig) GetPrivateFrom() string` + +GetPrivateFrom returns the PrivateFrom field if non-nil, zero value otherwise. + +### GetPrivateFromOk + +`func (o *BesuPrivateTransactionConfig) GetPrivateFromOk() (*string, bool)` + +GetPrivateFromOk returns a tuple with the PrivateFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateFrom + +`func (o *BesuPrivateTransactionConfig) SetPrivateFrom(v string)` + +SetPrivateFrom sets PrivateFrom field to given value. + + +### GetPrivateFor + +`func (o *BesuPrivateTransactionConfig) GetPrivateFor() []interface{}` + +GetPrivateFor returns the PrivateFor field if non-nil, zero value otherwise. + +### GetPrivateForOk + +`func (o *BesuPrivateTransactionConfig) GetPrivateForOk() (*[]interface{}, bool)` + +GetPrivateForOk returns a tuple with the PrivateFor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateFor + +`func (o *BesuPrivateTransactionConfig) SetPrivateFor(v []interface{})` + +SetPrivateFor sets PrivateFor field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfig.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfig.md new file mode 100644 index 00000000000..0a74b890bd7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfig.md @@ -0,0 +1,238 @@ +# BesuTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawTransaction** | Pointer to **string** | | [optional] +**From** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**To** | Pointer to [**BesuTransactionConfigTo**](BesuTransactionConfigTo.md) | | [optional] +**Value** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**Gas** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**GasPrice** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Data** | Pointer to [**BesuTransactionConfigTo**](BesuTransactionConfigTo.md) | | [optional] + +## Methods + +### NewBesuTransactionConfig + +`func NewBesuTransactionConfig() *BesuTransactionConfig` + +NewBesuTransactionConfig instantiates a new BesuTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBesuTransactionConfigWithDefaults + +`func NewBesuTransactionConfigWithDefaults() *BesuTransactionConfig` + +NewBesuTransactionConfigWithDefaults instantiates a new BesuTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRawTransaction + +`func (o *BesuTransactionConfig) GetRawTransaction() string` + +GetRawTransaction returns the RawTransaction field if non-nil, zero value otherwise. + +### GetRawTransactionOk + +`func (o *BesuTransactionConfig) GetRawTransactionOk() (*string, bool)` + +GetRawTransactionOk returns a tuple with the RawTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawTransaction + +`func (o *BesuTransactionConfig) SetRawTransaction(v string)` + +SetRawTransaction sets RawTransaction field to given value. + +### HasRawTransaction + +`func (o *BesuTransactionConfig) HasRawTransaction() bool` + +HasRawTransaction returns a boolean if a field has been set. + +### GetFrom + +`func (o *BesuTransactionConfig) GetFrom() Web3BlockHeaderTimestamp` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *BesuTransactionConfig) GetFromOk() (*Web3BlockHeaderTimestamp, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *BesuTransactionConfig) SetFrom(v Web3BlockHeaderTimestamp)` + +SetFrom sets From field to given value. + +### HasFrom + +`func (o *BesuTransactionConfig) HasFrom() bool` + +HasFrom returns a boolean if a field has been set. + +### GetTo + +`func (o *BesuTransactionConfig) GetTo() BesuTransactionConfigTo` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *BesuTransactionConfig) GetToOk() (*BesuTransactionConfigTo, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *BesuTransactionConfig) SetTo(v BesuTransactionConfigTo)` + +SetTo sets To field to given value. + +### HasTo + +`func (o *BesuTransactionConfig) HasTo() bool` + +HasTo returns a boolean if a field has been set. + +### GetValue + +`func (o *BesuTransactionConfig) GetValue() Web3BlockHeaderTimestamp` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BesuTransactionConfig) GetValueOk() (*Web3BlockHeaderTimestamp, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BesuTransactionConfig) SetValue(v Web3BlockHeaderTimestamp)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BesuTransactionConfig) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *BesuTransactionConfig) GetGas() Web3BlockHeaderTimestamp` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *BesuTransactionConfig) GetGasOk() (*Web3BlockHeaderTimestamp, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *BesuTransactionConfig) SetGas(v Web3BlockHeaderTimestamp)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *BesuTransactionConfig) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *BesuTransactionConfig) GetGasPrice() Web3BlockHeaderTimestamp` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *BesuTransactionConfig) GetGasPriceOk() (*Web3BlockHeaderTimestamp, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *BesuTransactionConfig) SetGasPrice(v Web3BlockHeaderTimestamp)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *BesuTransactionConfig) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *BesuTransactionConfig) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *BesuTransactionConfig) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *BesuTransactionConfig) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *BesuTransactionConfig) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetData + +`func (o *BesuTransactionConfig) GetData() BesuTransactionConfigTo` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BesuTransactionConfig) GetDataOk() (*BesuTransactionConfigTo, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BesuTransactionConfig) SetData(v BesuTransactionConfigTo)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BesuTransactionConfig) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfigTo.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfigTo.md new file mode 100644 index 00000000000..9d69f9ae399 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/BesuTransactionConfigTo.md @@ -0,0 +1,30 @@ +# BesuTransactionConfigTo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewBesuTransactionConfigTo + +`func NewBesuTransactionConfigTo() *BesuTransactionConfigTo` + +NewBesuTransactionConfigTo instantiates a new BesuTransactionConfigTo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBesuTransactionConfigToWithDefaults + +`func NewBesuTransactionConfigToWithDefaults() *BesuTransactionConfigTo` + +NewBesuTransactionConfigToWithDefaults instantiates a new BesuTransactionConfigTo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md new file mode 100644 index 00000000000..2cfa57f069a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md @@ -0,0 +1,98 @@ +# ConsistencyStrategy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReceiptType** | [**ReceiptType**](ReceiptType.md) | | +**TimeoutMs** | Pointer to **int32** | The amount of milliseconds to wait for the receipt to arrive to the connector. Defaults to 0 which means to wait for an unlimited amount of time. Note that this wait may be interrupted still by other parts of the infrastructure such as load balancers cutting of HTTP requests after some time even if they are the type that is supposed to be kept alive. The question of re-entrance is a broader topic not in scope to discuss here, but it is important to mention it. | [optional] +**BlockConfirmations** | **int32** | The number of blocks to wait to be confirmed in addition to the block containing the transaction in question. Note that if the receipt type is set to only wait for node transaction pool ACK and this parameter is set to anything, but zero then the API will not accept the request due to conflicting parameters. | + +## Methods + +### NewConsistencyStrategy + +`func NewConsistencyStrategy(receiptType ReceiptType, blockConfirmations int32, ) *ConsistencyStrategy` + +NewConsistencyStrategy instantiates a new ConsistencyStrategy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConsistencyStrategyWithDefaults + +`func NewConsistencyStrategyWithDefaults() *ConsistencyStrategy` + +NewConsistencyStrategyWithDefaults instantiates a new ConsistencyStrategy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReceiptType + +`func (o *ConsistencyStrategy) GetReceiptType() ReceiptType` + +GetReceiptType returns the ReceiptType field if non-nil, zero value otherwise. + +### GetReceiptTypeOk + +`func (o *ConsistencyStrategy) GetReceiptTypeOk() (*ReceiptType, bool)` + +GetReceiptTypeOk returns a tuple with the ReceiptType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptType + +`func (o *ConsistencyStrategy) SetReceiptType(v ReceiptType)` + +SetReceiptType sets ReceiptType field to given value. + + +### GetTimeoutMs + +`func (o *ConsistencyStrategy) GetTimeoutMs() int32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *ConsistencyStrategy) GetTimeoutMsOk() (*int32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *ConsistencyStrategy) SetTimeoutMs(v int32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *ConsistencyStrategy) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetBlockConfirmations + +`func (o *ConsistencyStrategy) GetBlockConfirmations() int32` + +GetBlockConfirmations returns the BlockConfirmations field if non-nil, zero value otherwise. + +### GetBlockConfirmationsOk + +`func (o *ConsistencyStrategy) GetBlockConfirmationsOk() (*int32, bool)` + +GetBlockConfirmationsOk returns a tuple with the BlockConfirmations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockConfirmations + +`func (o *ConsistencyStrategy) SetBlockConfirmations(v int32)` + +SetBlockConfirmations sets BlockConfirmations field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..8965680f49b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,715 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeployContractSolBytecodeV1**](DefaultApi.md#DeployContractSolBytecodeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +[**GetBalanceV1**](DefaultApi.md#GetBalanceV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-balance | Return balance of an address of a given block +[**GetBesuRecordV1**](DefaultApi.md#GetBesuRecordV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-besu-record | Retrieves an arbitrary record (any piece of information) from the ledger. Ledger records can be call outputs, transaction input, etc. +[**GetBlockV1**](DefaultApi.md#GetBlockV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block | Returns a block matching the block +[**GetOpenApiSpecV1**](DefaultApi.md#GetOpenApiSpecV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-open-api-spec | Retrieves the .json file that contains the OpenAPI specification for the plugin. +[**GetPastLogsV1**](DefaultApi.md#GetPastLogsV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-past-logs | Gets past logs, matching the given options. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**GetTransactionV1**](DefaultApi.md#GetTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-transaction | Executes a transaction on a besu ledger +[**InvokeContractV1**](DefaultApi.md#InvokeContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract | Invokes a contract on a besu ledger +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction | Executes a transaction on a besu ledger +[**SignTransactionV1**](DefaultApi.md#SignTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/sign-transaction | Obtain signatures of ledger from the corresponding transaction hash. + + + +## DeployContractSolBytecodeV1 + +> DeployContractSolidityBytecodeV1Response DeployContractSolBytecodeV1(ctx).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractSolidityBytecodeV1Request := *openapiclient.NewDeployContractSolidityBytecodeV1Request("ContractName_example", []interface{}{nil}, []interface{}{nil}, openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "Bytecode_example", "KeychainId_example") // DeployContractSolidityBytecodeV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractSolBytecodeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractSolBytecodeV1`: DeployContractSolidityBytecodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractSolBytecodeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractSolBytecodeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractSolidityBytecodeV1Request** | [**DeployContractSolidityBytecodeV1Request**](DeployContractSolidityBytecodeV1Request.md) | | + +### Return type + +[**DeployContractSolidityBytecodeV1Response**](DeployContractSolidityBytecodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBalanceV1 + +> GetBalanceV1Response GetBalanceV1(ctx).GetBalanceV1Request(getBalanceV1Request).Execute() + +Return balance of an address of a given block + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getBalanceV1Request := *openapiclient.NewGetBalanceV1Request("Address_example") // GetBalanceV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetBalanceV1(context.Background()).GetBalanceV1Request(getBalanceV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetBalanceV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBalanceV1`: GetBalanceV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetBalanceV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBalanceV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getBalanceV1Request** | [**GetBalanceV1Request**](GetBalanceV1Request.md) | | + +### Return type + +[**GetBalanceV1Response**](GetBalanceV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBesuRecordV1 + +> GetBesuRecordV1Response GetBesuRecordV1(ctx).GetBesuRecordV1Request(getBesuRecordV1Request).Execute() + +Retrieves an arbitrary record (any piece of information) from the ledger. Ledger records can be call outputs, transaction input, etc. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getBesuRecordV1Request := *openapiclient.NewGetBesuRecordV1Request() // GetBesuRecordV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetBesuRecordV1(context.Background()).GetBesuRecordV1Request(getBesuRecordV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetBesuRecordV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBesuRecordV1`: GetBesuRecordV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetBesuRecordV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBesuRecordV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getBesuRecordV1Request** | [**GetBesuRecordV1Request**](GetBesuRecordV1Request.md) | | + +### Return type + +[**GetBesuRecordV1Response**](GetBesuRecordV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBlockV1 + +> GetBlockV1Response GetBlockV1(ctx).GetBlockV1Request(getBlockV1Request).Execute() + +Returns a block matching the block + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getBlockV1Request := *openapiclient.NewGetBlockV1Request(interface{}(123)) // GetBlockV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetBlockV1(context.Background()).GetBlockV1Request(getBlockV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetBlockV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBlockV1`: GetBlockV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetBlockV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBlockV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getBlockV1Request** | [**GetBlockV1Request**](GetBlockV1Request.md) | | + +### Return type + +[**GetBlockV1Response**](GetBlockV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOpenApiSpecV1 + +> string GetOpenApiSpecV1(ctx).Execute() + +Retrieves the .json file that contains the OpenAPI specification for the plugin. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetOpenApiSpecV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOpenApiSpecV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOpenApiSpecV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetOpenApiSpecV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOpenApiSpecV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPastLogsV1 + +> GetPastLogsV1Response GetPastLogsV1(ctx).GetPastLogsV1Request(getPastLogsV1Request).Execute() + +Gets past logs, matching the given options. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getPastLogsV1Request := *openapiclient.NewGetPastLogsV1Request() // GetPastLogsV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPastLogsV1(context.Background()).GetPastLogsV1Request(getPastLogsV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPastLogsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPastLogsV1`: GetPastLogsV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPastLogsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPastLogsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getPastLogsV1Request** | [**GetPastLogsV1Request**](GetPastLogsV1Request.md) | | + +### Return type + +[**GetPastLogsV1Response**](GetPastLogsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTransactionV1 + +> GetTransactionV1Response GetTransactionV1(ctx).GetTransactionV1Request(getTransactionV1Request).Execute() + +Executes a transaction on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + getTransactionV1Request := *openapiclient.NewGetTransactionV1Request("TransactionHash_example") // GetTransactionV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetTransactionV1(context.Background()).GetTransactionV1Request(getTransactionV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransactionV1`: GetTransactionV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getTransactionV1Request** | [**GetTransactionV1Request**](GetTransactionV1Request.md) | | + +### Return type + +[**GetTransactionV1Response**](GetTransactionV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1 + +> InvokeContractV1Response InvokeContractV1(ctx).InvokeContractV1Request(invokeContractV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractV1Request := *openapiclient.NewInvokeContractV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}) // InvokeContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).InvokeContractV1Request(invokeContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionResponse RunTransactionV1(ctx).RunTransactionRequest(runTransactionRequest).Execute() + +Executes a transaction on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionRequest := *openapiclient.NewRunTransactionRequest(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, *openapiclient.NewBesuTransactionConfig(), *openapiclient.NewConsistencyStrategy(openapiclient.ReceiptType("NODE_TX_POOL_ACK"), int32(123))) // RunTransactionRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionRequest(runTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequest** | [**RunTransactionRequest**](RunTransactionRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SignTransactionV1 + +> SignTransactionResponse SignTransactionV1(ctx).SignTransactionRequest(signTransactionRequest).Execute() + +Obtain signatures of ledger from the corresponding transaction hash. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func main() { + signTransactionRequest := *openapiclient.NewSignTransactionRequest("KeychainId_example", "KeychainRef_example", "TransactionHash_example") // SignTransactionRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.SignTransactionV1(context.Background()).SignTransactionRequest(signTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SignTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SignTransactionV1`: SignTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SignTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSignTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signTransactionRequest** | [**SignTransactionRequest**](SignTransactionRequest.md) | | + +### Return type + +[**SignTransactionResponse**](SignTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md new file mode 100644 index 00000000000..5ae228f39e9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md @@ -0,0 +1,260 @@ +# DeployContractSolidityBytecodeV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name for retrieve the contracts json on the keychain. | +**ContractAbi** | **[]interface{}** | The application binary interface of the solidity contract | +**ConstructorArgs** | **[]interface{}** | | [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Bytecode** | **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**PrivateTransactionConfig** | Pointer to [**BesuPrivateTransactionConfig**](BesuPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewDeployContractSolidityBytecodeV1Request + +`func NewDeployContractSolidityBytecodeV1Request(contractName string, contractAbi []interface{}, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, bytecode string, keychainId string, ) *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1RequestWithDefaults + +`func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{}` + +GetContractAbi returns the ContractAbi field if non-nil, zero value otherwise. + +### GetContractAbiOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() (*[]interface{}, bool)` + +GetContractAbiOk returns a tuple with the ContractAbi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{})` + +SetContractAbi sets ContractAbi field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + + +### GetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + + +### GetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfig() BesuPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md new file mode 100644 index 00000000000..6bbfeb00528 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md @@ -0,0 +1,51 @@ +# DeployContractSolidityBytecodeV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewDeployContractSolidityBytecodeV1Response + +`func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt, ) *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1ResponseWithDefaults + +`func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md new file mode 100644 index 00000000000..6345c6e4cb7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md @@ -0,0 +1,13 @@ +# EthContractInvocationType + +## Enum + + +* `SEND` (value: `"SEND"`) + +* `CALL` (value: `"CALL"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmBlock.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmBlock.md new file mode 100644 index 00000000000..85fe6561881 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmBlock.md @@ -0,0 +1,508 @@ +# EvmBlock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **float32** | | [optional] +**Hash** | Pointer to **string** | | [optional] +**ParentHash** | Pointer to **string** | | [optional] +**Nonce** | Pointer to **string** | | [optional] +**Sha3Uncles** | Pointer to **string** | | [optional] +**LogsBloom** | Pointer to **string** | | [optional] +**TransactionsRoot** | Pointer to **string** | | [optional] +**StateRoot** | Pointer to **string** | | [optional] +**Miner** | Pointer to **string** | | [optional] +**Difficulty** | Pointer to **float32** | | [optional] +**TotalDifficulty** | Pointer to **float32** | | [optional] +**ExtraData** | Pointer to **string** | | [optional] +**Size** | Pointer to **float32** | | [optional] +**GasLimit** | Pointer to **float32** | | [optional] +**GasUsed** | Pointer to **float32** | | [optional] +**Timestamp** | Pointer to **interface{}** | | [optional] +**Transactions** | Pointer to **[]interface{}** | | [optional] +**Uncles** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewEvmBlock + +`func NewEvmBlock() *EvmBlock` + +NewEvmBlock instantiates a new EvmBlock object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEvmBlockWithDefaults + +`func NewEvmBlockWithDefaults() *EvmBlock` + +NewEvmBlockWithDefaults instantiates a new EvmBlock object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *EvmBlock) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *EvmBlock) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *EvmBlock) SetNumber(v float32)` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *EvmBlock) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### GetHash + +`func (o *EvmBlock) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *EvmBlock) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *EvmBlock) SetHash(v string)` + +SetHash sets Hash field to given value. + +### HasHash + +`func (o *EvmBlock) HasHash() bool` + +HasHash returns a boolean if a field has been set. + +### GetParentHash + +`func (o *EvmBlock) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *EvmBlock) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *EvmBlock) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + +### HasParentHash + +`func (o *EvmBlock) HasParentHash() bool` + +HasParentHash returns a boolean if a field has been set. + +### GetNonce + +`func (o *EvmBlock) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *EvmBlock) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *EvmBlock) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *EvmBlock) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetSha3Uncles + +`func (o *EvmBlock) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *EvmBlock) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *EvmBlock) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + +### HasSha3Uncles + +`func (o *EvmBlock) HasSha3Uncles() bool` + +HasSha3Uncles returns a boolean if a field has been set. + +### GetLogsBloom + +`func (o *EvmBlock) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *EvmBlock) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *EvmBlock) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + +### HasLogsBloom + +`func (o *EvmBlock) HasLogsBloom() bool` + +HasLogsBloom returns a boolean if a field has been set. + +### GetTransactionsRoot + +`func (o *EvmBlock) GetTransactionsRoot() string` + +GetTransactionsRoot returns the TransactionsRoot field if non-nil, zero value otherwise. + +### GetTransactionsRootOk + +`func (o *EvmBlock) GetTransactionsRootOk() (*string, bool)` + +GetTransactionsRootOk returns a tuple with the TransactionsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsRoot + +`func (o *EvmBlock) SetTransactionsRoot(v string)` + +SetTransactionsRoot sets TransactionsRoot field to given value. + +### HasTransactionsRoot + +`func (o *EvmBlock) HasTransactionsRoot() bool` + +HasTransactionsRoot returns a boolean if a field has been set. + +### GetStateRoot + +`func (o *EvmBlock) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *EvmBlock) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *EvmBlock) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + +### HasStateRoot + +`func (o *EvmBlock) HasStateRoot() bool` + +HasStateRoot returns a boolean if a field has been set. + +### GetMiner + +`func (o *EvmBlock) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *EvmBlock) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *EvmBlock) SetMiner(v string)` + +SetMiner sets Miner field to given value. + +### HasMiner + +`func (o *EvmBlock) HasMiner() bool` + +HasMiner returns a boolean if a field has been set. + +### GetDifficulty + +`func (o *EvmBlock) GetDifficulty() float32` + +GetDifficulty returns the Difficulty field if non-nil, zero value otherwise. + +### GetDifficultyOk + +`func (o *EvmBlock) GetDifficultyOk() (*float32, bool)` + +GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDifficulty + +`func (o *EvmBlock) SetDifficulty(v float32)` + +SetDifficulty sets Difficulty field to given value. + +### HasDifficulty + +`func (o *EvmBlock) HasDifficulty() bool` + +HasDifficulty returns a boolean if a field has been set. + +### GetTotalDifficulty + +`func (o *EvmBlock) GetTotalDifficulty() float32` + +GetTotalDifficulty returns the TotalDifficulty field if non-nil, zero value otherwise. + +### GetTotalDifficultyOk + +`func (o *EvmBlock) GetTotalDifficultyOk() (*float32, bool)` + +GetTotalDifficultyOk returns a tuple with the TotalDifficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalDifficulty + +`func (o *EvmBlock) SetTotalDifficulty(v float32)` + +SetTotalDifficulty sets TotalDifficulty field to given value. + +### HasTotalDifficulty + +`func (o *EvmBlock) HasTotalDifficulty() bool` + +HasTotalDifficulty returns a boolean if a field has been set. + +### GetExtraData + +`func (o *EvmBlock) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *EvmBlock) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *EvmBlock) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + +### HasExtraData + +`func (o *EvmBlock) HasExtraData() bool` + +HasExtraData returns a boolean if a field has been set. + +### GetSize + +`func (o *EvmBlock) GetSize() float32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *EvmBlock) GetSizeOk() (*float32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *EvmBlock) SetSize(v float32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *EvmBlock) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetGasLimit + +`func (o *EvmBlock) GetGasLimit() float32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *EvmBlock) GetGasLimitOk() (*float32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *EvmBlock) SetGasLimit(v float32)` + +SetGasLimit sets GasLimit field to given value. + +### HasGasLimit + +`func (o *EvmBlock) HasGasLimit() bool` + +HasGasLimit returns a boolean if a field has been set. + +### GetGasUsed + +`func (o *EvmBlock) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *EvmBlock) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *EvmBlock) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + +### HasGasUsed + +`func (o *EvmBlock) HasGasUsed() bool` + +HasGasUsed returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *EvmBlock) GetTimestamp() interface{}` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EvmBlock) GetTimestampOk() (*interface{}, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EvmBlock) SetTimestamp(v interface{})` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EvmBlock) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### SetTimestampNil + +`func (o *EvmBlock) SetTimestampNil(b bool)` + + SetTimestampNil sets the value for Timestamp to be an explicit nil + +### UnsetTimestamp +`func (o *EvmBlock) UnsetTimestamp()` + +UnsetTimestamp ensures that no value is present for Timestamp, not even an explicit nil +### GetTransactions + +`func (o *EvmBlock) GetTransactions() []interface{}` + +GetTransactions returns the Transactions field if non-nil, zero value otherwise. + +### GetTransactionsOk + +`func (o *EvmBlock) GetTransactionsOk() (*[]interface{}, bool)` + +GetTransactionsOk returns a tuple with the Transactions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactions + +`func (o *EvmBlock) SetTransactions(v []interface{})` + +SetTransactions sets Transactions field to given value. + +### HasTransactions + +`func (o *EvmBlock) HasTransactions() bool` + +HasTransactions returns a boolean if a field has been set. + +### GetUncles + +`func (o *EvmBlock) GetUncles() []interface{}` + +GetUncles returns the Uncles field if non-nil, zero value otherwise. + +### GetUnclesOk + +`func (o *EvmBlock) GetUnclesOk() (*[]interface{}, bool)` + +GetUnclesOk returns a tuple with the Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncles + +`func (o *EvmBlock) SetUncles(v []interface{})` + +SetUncles sets Uncles field to given value. + +### HasUncles + +`func (o *EvmBlock) HasUncles() bool` + +HasUncles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmLog.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmLog.md new file mode 100644 index 00000000000..831e6894bf8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmLog.md @@ -0,0 +1,198 @@ +# EvmLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**Data** | **string** | | +**BlockHash** | **string** | | +**TransactionHash** | **string** | | +**Topics** | **[]string** | | +**LogIndex** | **float32** | | +**TransactionIndex** | **float32** | | +**BlockNumber** | **float32** | | + +## Methods + +### NewEvmLog + +`func NewEvmLog(address string, data string, blockHash string, transactionHash string, topics []string, logIndex float32, transactionIndex float32, blockNumber float32, ) *EvmLog` + +NewEvmLog instantiates a new EvmLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEvmLogWithDefaults + +`func NewEvmLogWithDefaults() *EvmLog` + +NewEvmLogWithDefaults instantiates a new EvmLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *EvmLog) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *EvmLog) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *EvmLog) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetData + +`func (o *EvmLog) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EvmLog) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *EvmLog) SetData(v string)` + +SetData sets Data field to given value. + + +### GetBlockHash + +`func (o *EvmLog) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *EvmLog) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *EvmLog) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetTransactionHash + +`func (o *EvmLog) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *EvmLog) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *EvmLog) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTopics + +`func (o *EvmLog) GetTopics() []string` + +GetTopics returns the Topics field if non-nil, zero value otherwise. + +### GetTopicsOk + +`func (o *EvmLog) GetTopicsOk() (*[]string, bool)` + +GetTopicsOk returns a tuple with the Topics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopics + +`func (o *EvmLog) SetTopics(v []string)` + +SetTopics sets Topics field to given value. + + +### GetLogIndex + +`func (o *EvmLog) GetLogIndex() float32` + +GetLogIndex returns the LogIndex field if non-nil, zero value otherwise. + +### GetLogIndexOk + +`func (o *EvmLog) GetLogIndexOk() (*float32, bool)` + +GetLogIndexOk returns a tuple with the LogIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogIndex + +`func (o *EvmLog) SetLogIndex(v float32)` + +SetLogIndex sets LogIndex field to given value. + + +### GetTransactionIndex + +`func (o *EvmLog) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *EvmLog) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *EvmLog) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockNumber + +`func (o *EvmLog) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *EvmLog) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *EvmLog) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmTransaction.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmTransaction.md new file mode 100644 index 00000000000..1de5a313faf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/EvmTransaction.md @@ -0,0 +1,356 @@ +# EvmTransaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hash** | Pointer to **string** | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**BlockHash** | Pointer to **interface{}** | | [optional] +**BlockNumber** | Pointer to **interface{}** | | [optional] +**TransactionIndex** | Pointer to **interface{}** | | [optional] +**From** | Pointer to **string** | | [optional] +**To** | Pointer to **interface{}** | | [optional] +**Value** | Pointer to **string** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**Gas** | Pointer to **float32** | | [optional] +**Input** | Pointer to **string** | | [optional] + +## Methods + +### NewEvmTransaction + +`func NewEvmTransaction() *EvmTransaction` + +NewEvmTransaction instantiates a new EvmTransaction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEvmTransactionWithDefaults + +`func NewEvmTransactionWithDefaults() *EvmTransaction` + +NewEvmTransactionWithDefaults instantiates a new EvmTransaction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHash + +`func (o *EvmTransaction) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *EvmTransaction) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *EvmTransaction) SetHash(v string)` + +SetHash sets Hash field to given value. + +### HasHash + +`func (o *EvmTransaction) HasHash() bool` + +HasHash returns a boolean if a field has been set. + +### GetNonce + +`func (o *EvmTransaction) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *EvmTransaction) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *EvmTransaction) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *EvmTransaction) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetBlockHash + +`func (o *EvmTransaction) GetBlockHash() interface{}` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *EvmTransaction) GetBlockHashOk() (*interface{}, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *EvmTransaction) SetBlockHash(v interface{})` + +SetBlockHash sets BlockHash field to given value. + +### HasBlockHash + +`func (o *EvmTransaction) HasBlockHash() bool` + +HasBlockHash returns a boolean if a field has been set. + +### SetBlockHashNil + +`func (o *EvmTransaction) SetBlockHashNil(b bool)` + + SetBlockHashNil sets the value for BlockHash to be an explicit nil + +### UnsetBlockHash +`func (o *EvmTransaction) UnsetBlockHash()` + +UnsetBlockHash ensures that no value is present for BlockHash, not even an explicit nil +### GetBlockNumber + +`func (o *EvmTransaction) GetBlockNumber() interface{}` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *EvmTransaction) GetBlockNumberOk() (*interface{}, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *EvmTransaction) SetBlockNumber(v interface{})` + +SetBlockNumber sets BlockNumber field to given value. + +### HasBlockNumber + +`func (o *EvmTransaction) HasBlockNumber() bool` + +HasBlockNumber returns a boolean if a field has been set. + +### SetBlockNumberNil + +`func (o *EvmTransaction) SetBlockNumberNil(b bool)` + + SetBlockNumberNil sets the value for BlockNumber to be an explicit nil + +### UnsetBlockNumber +`func (o *EvmTransaction) UnsetBlockNumber()` + +UnsetBlockNumber ensures that no value is present for BlockNumber, not even an explicit nil +### GetTransactionIndex + +`func (o *EvmTransaction) GetTransactionIndex() interface{}` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *EvmTransaction) GetTransactionIndexOk() (*interface{}, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *EvmTransaction) SetTransactionIndex(v interface{})` + +SetTransactionIndex sets TransactionIndex field to given value. + +### HasTransactionIndex + +`func (o *EvmTransaction) HasTransactionIndex() bool` + +HasTransactionIndex returns a boolean if a field has been set. + +### SetTransactionIndexNil + +`func (o *EvmTransaction) SetTransactionIndexNil(b bool)` + + SetTransactionIndexNil sets the value for TransactionIndex to be an explicit nil + +### UnsetTransactionIndex +`func (o *EvmTransaction) UnsetTransactionIndex()` + +UnsetTransactionIndex ensures that no value is present for TransactionIndex, not even an explicit nil +### GetFrom + +`func (o *EvmTransaction) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *EvmTransaction) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *EvmTransaction) SetFrom(v string)` + +SetFrom sets From field to given value. + +### HasFrom + +`func (o *EvmTransaction) HasFrom() bool` + +HasFrom returns a boolean if a field has been set. + +### GetTo + +`func (o *EvmTransaction) GetTo() interface{}` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *EvmTransaction) GetToOk() (*interface{}, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *EvmTransaction) SetTo(v interface{})` + +SetTo sets To field to given value. + +### HasTo + +`func (o *EvmTransaction) HasTo() bool` + +HasTo returns a boolean if a field has been set. + +### SetToNil + +`func (o *EvmTransaction) SetToNil(b bool)` + + SetToNil sets the value for To to be an explicit nil + +### UnsetTo +`func (o *EvmTransaction) UnsetTo()` + +UnsetTo ensures that no value is present for To, not even an explicit nil +### GetValue + +`func (o *EvmTransaction) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *EvmTransaction) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *EvmTransaction) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *EvmTransaction) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *EvmTransaction) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *EvmTransaction) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *EvmTransaction) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *EvmTransaction) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetGas + +`func (o *EvmTransaction) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *EvmTransaction) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *EvmTransaction) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *EvmTransaction) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetInput + +`func (o *EvmTransaction) GetInput() string` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *EvmTransaction) GetInputOk() (*string, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *EvmTransaction) SetInput(v string)` + +SetInput sets Input field to given value. + +### HasInput + +`func (o *EvmTransaction) HasInput() bool` + +HasInput returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Request.md new file mode 100644 index 00000000000..eb994c76642 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Request.md @@ -0,0 +1,87 @@ +# GetBalanceV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**DefaultBlock** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGetBalanceV1Request + +`func NewGetBalanceV1Request(address string, ) *GetBalanceV1Request` + +NewGetBalanceV1Request instantiates a new GetBalanceV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBalanceV1RequestWithDefaults + +`func NewGetBalanceV1RequestWithDefaults() *GetBalanceV1Request` + +NewGetBalanceV1RequestWithDefaults instantiates a new GetBalanceV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *GetBalanceV1Request) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *GetBalanceV1Request) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *GetBalanceV1Request) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetDefaultBlock + +`func (o *GetBalanceV1Request) GetDefaultBlock() interface{}` + +GetDefaultBlock returns the DefaultBlock field if non-nil, zero value otherwise. + +### GetDefaultBlockOk + +`func (o *GetBalanceV1Request) GetDefaultBlockOk() (*interface{}, bool)` + +GetDefaultBlockOk returns a tuple with the DefaultBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBlock + +`func (o *GetBalanceV1Request) SetDefaultBlock(v interface{})` + +SetDefaultBlock sets DefaultBlock field to given value. + +### HasDefaultBlock + +`func (o *GetBalanceV1Request) HasDefaultBlock() bool` + +HasDefaultBlock returns a boolean if a field has been set. + +### SetDefaultBlockNil + +`func (o *GetBalanceV1Request) SetDefaultBlockNil(b bool)` + + SetDefaultBlockNil sets the value for DefaultBlock to be an explicit nil + +### UnsetDefaultBlock +`func (o *GetBalanceV1Request) UnsetDefaultBlock()` + +UnsetDefaultBlock ensures that no value is present for DefaultBlock, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Response.md new file mode 100644 index 00000000000..3b34eb7d842 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBalanceV1Response.md @@ -0,0 +1,51 @@ +# GetBalanceV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Balance** | **string** | | + +## Methods + +### NewGetBalanceV1Response + +`func NewGetBalanceV1Response(balance string, ) *GetBalanceV1Response` + +NewGetBalanceV1Response instantiates a new GetBalanceV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBalanceV1ResponseWithDefaults + +`func NewGetBalanceV1ResponseWithDefaults() *GetBalanceV1Response` + +NewGetBalanceV1ResponseWithDefaults instantiates a new GetBalanceV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBalance + +`func (o *GetBalanceV1Response) GetBalance() string` + +GetBalance returns the Balance field if non-nil, zero value otherwise. + +### GetBalanceOk + +`func (o *GetBalanceV1Response) GetBalanceOk() (*string, bool)` + +GetBalanceOk returns a tuple with the Balance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBalance + +`func (o *GetBalanceV1Response) SetBalance(v string)` + +SetBalance sets Balance field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Request.md new file mode 100644 index 00000000000..eda0e030c8f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Request.md @@ -0,0 +1,82 @@ +# GetBesuRecordV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvokeCall** | Pointer to [**InvokeContractV1Request**](InvokeContractV1Request.md) | | [optional] +**TransactionHash** | Pointer to **string** | | [optional] + +## Methods + +### NewGetBesuRecordV1Request + +`func NewGetBesuRecordV1Request() *GetBesuRecordV1Request` + +NewGetBesuRecordV1Request instantiates a new GetBesuRecordV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBesuRecordV1RequestWithDefaults + +`func NewGetBesuRecordV1RequestWithDefaults() *GetBesuRecordV1Request` + +NewGetBesuRecordV1RequestWithDefaults instantiates a new GetBesuRecordV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInvokeCall + +`func (o *GetBesuRecordV1Request) GetInvokeCall() InvokeContractV1Request` + +GetInvokeCall returns the InvokeCall field if non-nil, zero value otherwise. + +### GetInvokeCallOk + +`func (o *GetBesuRecordV1Request) GetInvokeCallOk() (*InvokeContractV1Request, bool)` + +GetInvokeCallOk returns a tuple with the InvokeCall field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvokeCall + +`func (o *GetBesuRecordV1Request) SetInvokeCall(v InvokeContractV1Request)` + +SetInvokeCall sets InvokeCall field to given value. + +### HasInvokeCall + +`func (o *GetBesuRecordV1Request) HasInvokeCall() bool` + +HasInvokeCall returns a boolean if a field has been set. + +### GetTransactionHash + +`func (o *GetBesuRecordV1Request) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *GetBesuRecordV1Request) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *GetBesuRecordV1Request) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + +### HasTransactionHash + +`func (o *GetBesuRecordV1Request) HasTransactionHash() bool` + +HasTransactionHash returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Response.md new file mode 100644 index 00000000000..512bd2e2345 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBesuRecordV1Response.md @@ -0,0 +1,154 @@ +# GetBesuRecordV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LedgerId** | Pointer to **string** | | [optional] +**StateContract** | Pointer to **string** | | [optional] +**TransactionInputData** | Pointer to **interface{}** | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGetBesuRecordV1Response + +`func NewGetBesuRecordV1Response() *GetBesuRecordV1Response` + +NewGetBesuRecordV1Response instantiates a new GetBesuRecordV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBesuRecordV1ResponseWithDefaults + +`func NewGetBesuRecordV1ResponseWithDefaults() *GetBesuRecordV1Response` + +NewGetBesuRecordV1ResponseWithDefaults instantiates a new GetBesuRecordV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLedgerId + +`func (o *GetBesuRecordV1Response) GetLedgerId() string` + +GetLedgerId returns the LedgerId field if non-nil, zero value otherwise. + +### GetLedgerIdOk + +`func (o *GetBesuRecordV1Response) GetLedgerIdOk() (*string, bool)` + +GetLedgerIdOk returns a tuple with the LedgerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerId + +`func (o *GetBesuRecordV1Response) SetLedgerId(v string)` + +SetLedgerId sets LedgerId field to given value. + +### HasLedgerId + +`func (o *GetBesuRecordV1Response) HasLedgerId() bool` + +HasLedgerId returns a boolean if a field has been set. + +### GetStateContract + +`func (o *GetBesuRecordV1Response) GetStateContract() string` + +GetStateContract returns the StateContract field if non-nil, zero value otherwise. + +### GetStateContractOk + +`func (o *GetBesuRecordV1Response) GetStateContractOk() (*string, bool)` + +GetStateContractOk returns a tuple with the StateContract field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateContract + +`func (o *GetBesuRecordV1Response) SetStateContract(v string)` + +SetStateContract sets StateContract field to given value. + +### HasStateContract + +`func (o *GetBesuRecordV1Response) HasStateContract() bool` + +HasStateContract returns a boolean if a field has been set. + +### GetTransactionInputData + +`func (o *GetBesuRecordV1Response) GetTransactionInputData() interface{}` + +GetTransactionInputData returns the TransactionInputData field if non-nil, zero value otherwise. + +### GetTransactionInputDataOk + +`func (o *GetBesuRecordV1Response) GetTransactionInputDataOk() (*interface{}, bool)` + +GetTransactionInputDataOk returns a tuple with the TransactionInputData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionInputData + +`func (o *GetBesuRecordV1Response) SetTransactionInputData(v interface{})` + +SetTransactionInputData sets TransactionInputData field to given value. + +### HasTransactionInputData + +`func (o *GetBesuRecordV1Response) HasTransactionInputData() bool` + +HasTransactionInputData returns a boolean if a field has been set. + +### SetTransactionInputDataNil + +`func (o *GetBesuRecordV1Response) SetTransactionInputDataNil(b bool)` + + SetTransactionInputDataNil sets the value for TransactionInputData to be an explicit nil + +### UnsetTransactionInputData +`func (o *GetBesuRecordV1Response) UnsetTransactionInputData()` + +UnsetTransactionInputData ensures that no value is present for TransactionInputData, not even an explicit nil +### GetCallOutput + +`func (o *GetBesuRecordV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *GetBesuRecordV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *GetBesuRecordV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *GetBesuRecordV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *GetBesuRecordV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *GetBesuRecordV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Request.md new file mode 100644 index 00000000000..efe6927fcfe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Request.md @@ -0,0 +1,61 @@ +# GetBlockV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockHashOrBlockNumber** | **interface{}** | | + +## Methods + +### NewGetBlockV1Request + +`func NewGetBlockV1Request(blockHashOrBlockNumber interface{}, ) *GetBlockV1Request` + +NewGetBlockV1Request instantiates a new GetBlockV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockV1RequestWithDefaults + +`func NewGetBlockV1RequestWithDefaults() *GetBlockV1Request` + +NewGetBlockV1RequestWithDefaults instantiates a new GetBlockV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockHashOrBlockNumber + +`func (o *GetBlockV1Request) GetBlockHashOrBlockNumber() interface{}` + +GetBlockHashOrBlockNumber returns the BlockHashOrBlockNumber field if non-nil, zero value otherwise. + +### GetBlockHashOrBlockNumberOk + +`func (o *GetBlockV1Request) GetBlockHashOrBlockNumberOk() (*interface{}, bool)` + +GetBlockHashOrBlockNumberOk returns a tuple with the BlockHashOrBlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHashOrBlockNumber + +`func (o *GetBlockV1Request) SetBlockHashOrBlockNumber(v interface{})` + +SetBlockHashOrBlockNumber sets BlockHashOrBlockNumber field to given value. + + +### SetBlockHashOrBlockNumberNil + +`func (o *GetBlockV1Request) SetBlockHashOrBlockNumberNil(b bool)` + + SetBlockHashOrBlockNumberNil sets the value for BlockHashOrBlockNumber to be an explicit nil + +### UnsetBlockHashOrBlockNumber +`func (o *GetBlockV1Request) UnsetBlockHashOrBlockNumber()` + +UnsetBlockHashOrBlockNumber ensures that no value is present for BlockHashOrBlockNumber, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Response.md new file mode 100644 index 00000000000..266296e8d8e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetBlockV1Response.md @@ -0,0 +1,51 @@ +# GetBlockV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Block** | [**EvmBlock**](EvmBlock.md) | | + +## Methods + +### NewGetBlockV1Response + +`func NewGetBlockV1Response(block EvmBlock, ) *GetBlockV1Response` + +NewGetBlockV1Response instantiates a new GetBlockV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockV1ResponseWithDefaults + +`func NewGetBlockV1ResponseWithDefaults() *GetBlockV1Response` + +NewGetBlockV1ResponseWithDefaults instantiates a new GetBlockV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlock + +`func (o *GetBlockV1Response) GetBlock() EvmBlock` + +GetBlock returns the Block field if non-nil, zero value otherwise. + +### GetBlockOk + +`func (o *GetBlockV1Response) GetBlockOk() (*EvmBlock, bool)` + +GetBlockOk returns a tuple with the Block field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlock + +`func (o *GetBlockV1Response) SetBlock(v EvmBlock)` + +SetBlock sets Block field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Request.md new file mode 100644 index 00000000000..117a938dc4c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Request.md @@ -0,0 +1,164 @@ +# GetPastLogsV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ToBlock** | Pointer to **interface{}** | | [optional] +**FromBlock** | Pointer to **interface{}** | | [optional] +**Address** | Pointer to **interface{}** | | [optional] +**Topics** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewGetPastLogsV1Request + +`func NewGetPastLogsV1Request() *GetPastLogsV1Request` + +NewGetPastLogsV1Request instantiates a new GetPastLogsV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetPastLogsV1RequestWithDefaults + +`func NewGetPastLogsV1RequestWithDefaults() *GetPastLogsV1Request` + +NewGetPastLogsV1RequestWithDefaults instantiates a new GetPastLogsV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetToBlock + +`func (o *GetPastLogsV1Request) GetToBlock() interface{}` + +GetToBlock returns the ToBlock field if non-nil, zero value otherwise. + +### GetToBlockOk + +`func (o *GetPastLogsV1Request) GetToBlockOk() (*interface{}, bool)` + +GetToBlockOk returns a tuple with the ToBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToBlock + +`func (o *GetPastLogsV1Request) SetToBlock(v interface{})` + +SetToBlock sets ToBlock field to given value. + +### HasToBlock + +`func (o *GetPastLogsV1Request) HasToBlock() bool` + +HasToBlock returns a boolean if a field has been set. + +### SetToBlockNil + +`func (o *GetPastLogsV1Request) SetToBlockNil(b bool)` + + SetToBlockNil sets the value for ToBlock to be an explicit nil + +### UnsetToBlock +`func (o *GetPastLogsV1Request) UnsetToBlock()` + +UnsetToBlock ensures that no value is present for ToBlock, not even an explicit nil +### GetFromBlock + +`func (o *GetPastLogsV1Request) GetFromBlock() interface{}` + +GetFromBlock returns the FromBlock field if non-nil, zero value otherwise. + +### GetFromBlockOk + +`func (o *GetPastLogsV1Request) GetFromBlockOk() (*interface{}, bool)` + +GetFromBlockOk returns a tuple with the FromBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromBlock + +`func (o *GetPastLogsV1Request) SetFromBlock(v interface{})` + +SetFromBlock sets FromBlock field to given value. + +### HasFromBlock + +`func (o *GetPastLogsV1Request) HasFromBlock() bool` + +HasFromBlock returns a boolean if a field has been set. + +### SetFromBlockNil + +`func (o *GetPastLogsV1Request) SetFromBlockNil(b bool)` + + SetFromBlockNil sets the value for FromBlock to be an explicit nil + +### UnsetFromBlock +`func (o *GetPastLogsV1Request) UnsetFromBlock()` + +UnsetFromBlock ensures that no value is present for FromBlock, not even an explicit nil +### GetAddress + +`func (o *GetPastLogsV1Request) GetAddress() interface{}` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *GetPastLogsV1Request) GetAddressOk() (*interface{}, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *GetPastLogsV1Request) SetAddress(v interface{})` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *GetPastLogsV1Request) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### SetAddressNil + +`func (o *GetPastLogsV1Request) SetAddressNil(b bool)` + + SetAddressNil sets the value for Address to be an explicit nil + +### UnsetAddress +`func (o *GetPastLogsV1Request) UnsetAddress()` + +UnsetAddress ensures that no value is present for Address, not even an explicit nil +### GetTopics + +`func (o *GetPastLogsV1Request) GetTopics() []interface{}` + +GetTopics returns the Topics field if non-nil, zero value otherwise. + +### GetTopicsOk + +`func (o *GetPastLogsV1Request) GetTopicsOk() (*[]interface{}, bool)` + +GetTopicsOk returns a tuple with the Topics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopics + +`func (o *GetPastLogsV1Request) SetTopics(v []interface{})` + +SetTopics sets Topics field to given value. + +### HasTopics + +`func (o *GetPastLogsV1Request) HasTopics() bool` + +HasTopics returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Response.md new file mode 100644 index 00000000000..e93d96d8154 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetPastLogsV1Response.md @@ -0,0 +1,51 @@ +# GetPastLogsV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Logs** | [**[]EvmLog**](EvmLog.md) | | + +## Methods + +### NewGetPastLogsV1Response + +`func NewGetPastLogsV1Response(logs []EvmLog, ) *GetPastLogsV1Response` + +NewGetPastLogsV1Response instantiates a new GetPastLogsV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetPastLogsV1ResponseWithDefaults + +`func NewGetPastLogsV1ResponseWithDefaults() *GetPastLogsV1Response` + +NewGetPastLogsV1ResponseWithDefaults instantiates a new GetPastLogsV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogs + +`func (o *GetPastLogsV1Response) GetLogs() []EvmLog` + +GetLogs returns the Logs field if non-nil, zero value otherwise. + +### GetLogsOk + +`func (o *GetPastLogsV1Response) GetLogsOk() (*[]EvmLog, bool)` + +GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogs + +`func (o *GetPastLogsV1Response) SetLogs(v []EvmLog)` + +SetLogs sets Logs field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Request.md new file mode 100644 index 00000000000..e4475e6fc0c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Request.md @@ -0,0 +1,51 @@ +# GetTransactionV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionHash** | **string** | | + +## Methods + +### NewGetTransactionV1Request + +`func NewGetTransactionV1Request(transactionHash string, ) *GetTransactionV1Request` + +NewGetTransactionV1Request instantiates a new GetTransactionV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTransactionV1RequestWithDefaults + +`func NewGetTransactionV1RequestWithDefaults() *GetTransactionV1Request` + +NewGetTransactionV1RequestWithDefaults instantiates a new GetTransactionV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionHash + +`func (o *GetTransactionV1Request) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *GetTransactionV1Request) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *GetTransactionV1Request) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Response.md new file mode 100644 index 00000000000..f5e172748c4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/GetTransactionV1Response.md @@ -0,0 +1,51 @@ +# GetTransactionV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Transaction** | [**EvmTransaction**](EvmTransaction.md) | | + +## Methods + +### NewGetTransactionV1Response + +`func NewGetTransactionV1Response(transaction EvmTransaction, ) *GetTransactionV1Response` + +NewGetTransactionV1Response instantiates a new GetTransactionV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTransactionV1ResponseWithDefaults + +`func NewGetTransactionV1ResponseWithDefaults() *GetTransactionV1Response` + +NewGetTransactionV1ResponseWithDefaults instantiates a new GetTransactionV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransaction + +`func (o *GetTransactionV1Response) GetTransaction() EvmTransaction` + +GetTransaction returns the Transaction field if non-nil, zero value otherwise. + +### GetTransactionOk + +`func (o *GetTransactionV1Response) GetTransactionOk() (*EvmTransaction, bool)` + +GetTransactionOk returns a tuple with the Transaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransaction + +`func (o *GetTransactionV1Response) SetTransaction(v EvmTransaction)` + +SetTransaction sets Transaction field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md new file mode 100644 index 00000000000..1dfdf29f9b6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md @@ -0,0 +1,369 @@ +# InvokeContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**ContractAbi** | Pointer to **[]interface{}** | The application binary interface of the solidity contract, optional parameter | [optional] +**ContractAddress** | Pointer to **string** | Address of the solidity contract, optional parameter | [optional] +**Value** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**Gas** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**GasPrice** | Pointer to [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**KeychainId** | Pointer to **string** | The keychainId for retrieve the contracts json. | [optional] +**PrivateTransactionConfig** | Pointer to [**BesuPrivateTransactionConfig**](BesuPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewInvokeContractV1Request + +`func NewInvokeContractV1Request(contractName string, signingCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, ) *InvokeContractV1Request` + +NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1RequestWithDefaults + +`func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request` + +NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *InvokeContractV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *InvokeContractV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetSigningCredential + +`func (o *InvokeContractV1Request) GetSigningCredential() Web3SigningCredential` + +GetSigningCredential returns the SigningCredential field if non-nil, zero value otherwise. + +### GetSigningCredentialOk + +`func (o *InvokeContractV1Request) GetSigningCredentialOk() (*Web3SigningCredential, bool)` + +GetSigningCredentialOk returns a tuple with the SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningCredential + +`func (o *InvokeContractV1Request) SetSigningCredential(v Web3SigningCredential)` + +SetSigningCredential sets SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetContractAbi + +`func (o *InvokeContractV1Request) GetContractAbi() []interface{}` + +GetContractAbi returns the ContractAbi field if non-nil, zero value otherwise. + +### GetContractAbiOk + +`func (o *InvokeContractV1Request) GetContractAbiOk() (*[]interface{}, bool)` + +GetContractAbiOk returns a tuple with the ContractAbi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAbi + +`func (o *InvokeContractV1Request) SetContractAbi(v []interface{})` + +SetContractAbi sets ContractAbi field to given value. + +### HasContractAbi + +`func (o *InvokeContractV1Request) HasContractAbi() bool` + +HasContractAbi returns a boolean if a field has been set. + +### GetContractAddress + +`func (o *InvokeContractV1Request) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *InvokeContractV1Request) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *InvokeContractV1Request) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *InvokeContractV1Request) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### GetValue + +`func (o *InvokeContractV1Request) GetValue() Web3BlockHeaderTimestamp` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractV1Request) GetValueOk() (*Web3BlockHeaderTimestamp, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractV1Request) SetValue(v Web3BlockHeaderTimestamp)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractV1Request) GetGas() Web3BlockHeaderTimestamp` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractV1Request) GetGasOk() (*Web3BlockHeaderTimestamp, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractV1Request) SetGas(v Web3BlockHeaderTimestamp)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractV1Request) GetGasPrice() Web3BlockHeaderTimestamp` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractV1Request) GetGasPriceOk() (*Web3BlockHeaderTimestamp, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractV1Request) SetGasPrice(v Web3BlockHeaderTimestamp)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *InvokeContractV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InvokeContractV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + +### HasKeychainId + +`func (o *InvokeContractV1Request) HasKeychainId() bool` + +HasKeychainId returns a boolean if a field has been set. + +### GetPrivateTransactionConfig + +`func (o *InvokeContractV1Request) GetPrivateTransactionConfig() BesuPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *InvokeContractV1Request) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *InvokeContractV1Request) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *InvokeContractV1Request) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ReceiptType.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ReceiptType.md new file mode 100644 index 00000000000..021b052f828 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/ReceiptType.md @@ -0,0 +1,13 @@ +# ReceiptType + +## Enum + + +* `NODE_TX_POOL_ACK` (value: `"NODE_TX_POOL_ACK"`) + +* `LEDGER_BLOCK_ACK` (value: `"LEDGER_BLOCK_ACK"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md new file mode 100644 index 00000000000..aa5b55d9bac --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md @@ -0,0 +1,119 @@ +# RunTransactionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**TransactionConfig** | [**BesuTransactionConfig**](BesuTransactionConfig.md) | | +**ConsistencyStrategy** | [**ConsistencyStrategy**](ConsistencyStrategy.md) | | +**PrivateTransactionConfig** | Pointer to [**BesuPrivateTransactionConfig**](BesuPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewRunTransactionRequest + +`func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig BesuTransactionConfig, consistencyStrategy ConsistencyStrategy, ) *RunTransactionRequest` + +NewRunTransactionRequest instantiates a new RunTransactionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestWithDefaults + +`func NewRunTransactionRequestWithDefaults() *RunTransactionRequest` + +NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetTransactionConfig + +`func (o *RunTransactionRequest) GetTransactionConfig() BesuTransactionConfig` + +GetTransactionConfig returns the TransactionConfig field if non-nil, zero value otherwise. + +### GetTransactionConfigOk + +`func (o *RunTransactionRequest) GetTransactionConfigOk() (*BesuTransactionConfig, bool)` + +GetTransactionConfigOk returns a tuple with the TransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionConfig + +`func (o *RunTransactionRequest) SetTransactionConfig(v BesuTransactionConfig)` + +SetTransactionConfig sets TransactionConfig field to given value. + + +### GetConsistencyStrategy + +`func (o *RunTransactionRequest) GetConsistencyStrategy() ConsistencyStrategy` + +GetConsistencyStrategy returns the ConsistencyStrategy field if non-nil, zero value otherwise. + +### GetConsistencyStrategyOk + +`func (o *RunTransactionRequest) GetConsistencyStrategyOk() (*ConsistencyStrategy, bool)` + +GetConsistencyStrategyOk returns a tuple with the ConsistencyStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsistencyStrategy + +`func (o *RunTransactionRequest) SetConsistencyStrategy(v ConsistencyStrategy)` + +SetConsistencyStrategy sets ConsistencyStrategy field to given value. + + +### GetPrivateTransactionConfig + +`func (o *RunTransactionRequest) GetPrivateTransactionConfig() BesuPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *RunTransactionRequest) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *RunTransactionRequest) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *RunTransactionRequest) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..3d96e8d596a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,51 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionRequest.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionRequest.md new file mode 100644 index 00000000000..c442da72cfa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionRequest.md @@ -0,0 +1,93 @@ +# SignTransactionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeychainId** | **string** | | +**KeychainRef** | **string** | | +**TransactionHash** | **string** | The transaction hash of ledger will be used to fetch the contain. | + +## Methods + +### NewSignTransactionRequest + +`func NewSignTransactionRequest(keychainId string, keychainRef string, transactionHash string, ) *SignTransactionRequest` + +NewSignTransactionRequest instantiates a new SignTransactionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSignTransactionRequestWithDefaults + +`func NewSignTransactionRequestWithDefaults() *SignTransactionRequest` + +NewSignTransactionRequestWithDefaults instantiates a new SignTransactionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeychainId + +`func (o *SignTransactionRequest) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *SignTransactionRequest) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *SignTransactionRequest) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetKeychainRef + +`func (o *SignTransactionRequest) GetKeychainRef() string` + +GetKeychainRef returns the KeychainRef field if non-nil, zero value otherwise. + +### GetKeychainRefOk + +`func (o *SignTransactionRequest) GetKeychainRefOk() (*string, bool)` + +GetKeychainRefOk returns a tuple with the KeychainRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainRef + +`func (o *SignTransactionRequest) SetKeychainRef(v string)` + +SetKeychainRef sets KeychainRef field to given value. + + +### GetTransactionHash + +`func (o *SignTransactionRequest) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *SignTransactionRequest) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *SignTransactionRequest) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionResponse.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionResponse.md new file mode 100644 index 00000000000..03971c83056 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SignTransactionResponse.md @@ -0,0 +1,51 @@ +# SignTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signature** | **string** | The signatures of ledger from the corresponding transaction hash. | + +## Methods + +### NewSignTransactionResponse + +`func NewSignTransactionResponse(signature string, ) *SignTransactionResponse` + +NewSignTransactionResponse instantiates a new SignTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSignTransactionResponseWithDefaults + +`func NewSignTransactionResponseWithDefaults() *SignTransactionResponse` + +NewSignTransactionResponseWithDefaults instantiates a new SignTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignature + +`func (o *SignTransactionResponse) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *SignTransactionResponse) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *SignTransactionResponse) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md new file mode 100644 index 00000000000..602f52bdc3e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md @@ -0,0 +1,285 @@ +# SolidityContractJsonArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Metadata** | Pointer to **string** | | [optional] +**Bytecode** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to [**SolidityContractJsonArtifactCompiler**](SolidityContractJsonArtifactCompiler.md) | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to [**SolidityContractJsonArtifactGasEstimates**](SolidityContractJsonArtifactGasEstimates.md) | | [optional] + +## Methods + +### NewSolidityContractJsonArtifact + +`func NewSolidityContractJsonArtifact(contractName string, ) *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactWithDefaults + +`func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *SolidityContractJsonArtifact) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *SolidityContractJsonArtifact) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetMetadata + +`func (o *SolidityContractJsonArtifact) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *SolidityContractJsonArtifact) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *SolidityContractJsonArtifact) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetBytecode + +`func (o *SolidityContractJsonArtifact) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *SolidityContractJsonArtifact) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *SolidityContractJsonArtifact) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *SolidityContractJsonArtifact) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *SolidityContractJsonArtifact) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *SolidityContractJsonArtifact) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *SolidityContractJsonArtifact) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *SolidityContractJsonArtifact) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *SolidityContractJsonArtifact) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler)` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *SolidityContractJsonArtifact) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates)` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *SolidityContractJsonArtifact) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md new file mode 100644 index 00000000000..28cebed22e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactCompiler + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactCompiler + +`func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactCompilerWithDefaults + +`func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SolidityContractJsonArtifactCompiler) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SolidityContractJsonArtifactCompiler) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SolidityContractJsonArtifactCompiler) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SolidityContractJsonArtifactCompiler) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md new file mode 100644 index 00000000000..f95a4cda04a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactGasEstimates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Creation** | Pointer to [**SolidityContractJsonArtifactGasEstimatesCreation**](SolidityContractJsonArtifactGasEstimatesCreation.md) | | [optional] +**External** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimates + +`func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation` + +GetCreation returns the Creation field if non-nil, zero value otherwise. + +### GetCreationOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool)` + +GetCreationOk returns a tuple with the Creation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation)` + +SetCreation sets Creation field to given value. + +### HasCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool` + +HasCreation returns a boolean if a field has been set. + +### GetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{}` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (*map[string]interface{}, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{})` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md new file mode 100644 index 00000000000..8f123dca41d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md @@ -0,0 +1,108 @@ +# SolidityContractJsonArtifactGasEstimatesCreation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeDepositCost** | Pointer to **string** | | [optional] +**ExecutionCost** | Pointer to **string** | | [optional] +**TotalCost** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimatesCreation + +`func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string` + +GetCodeDepositCost returns the CodeDepositCost field if non-nil, zero value otherwise. + +### GetCodeDepositCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool)` + +GetCodeDepositCostOk returns a tuple with the CodeDepositCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string)` + +SetCodeDepositCost sets CodeDepositCost field to given value. + +### HasCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool` + +HasCodeDepositCost returns a boolean if a field has been set. + +### GetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string` + +GetExecutionCost returns the ExecutionCost field if non-nil, zero value otherwise. + +### GetExecutionCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool)` + +GetExecutionCostOk returns a tuple with the ExecutionCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string)` + +SetExecutionCost sets ExecutionCost field to given value. + +### HasExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool` + +HasExecutionCost returns a boolean if a field has been set. + +### GetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string` + +GetTotalCost returns the TotalCost field if non-nil, zero value otherwise. + +### GetTotalCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool)` + +GetTotalCostOk returns a tuple with the TotalCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string)` + +SetTotalCost sets TotalCost field to given value. + +### HasTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool` + +HasTotalCost returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..b05ae6eda27 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md new file mode 100644 index 00000000000..ec90d8cb401 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md @@ -0,0 +1,51 @@ +# WatchBlocksV1Progress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockHeader** | [**Web3BlockHeader**](Web3BlockHeader.md) | | + +## Methods + +### NewWatchBlocksV1Progress + +`func NewWatchBlocksV1Progress(blockHeader Web3BlockHeader, ) *WatchBlocksV1Progress` + +NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1ProgressWithDefaults + +`func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress` + +NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockHeader + +`func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader` + +GetBlockHeader returns the BlockHeader field if non-nil, zero value otherwise. + +### GetBlockHeaderOk + +`func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool)` + +GetBlockHeaderOk returns a tuple with the BlockHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHeader + +`func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader)` + +SetBlockHeader sets BlockHeader field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md new file mode 100644 index 00000000000..f9c1bf84bc6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md @@ -0,0 +1,324 @@ +# Web3BlockHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **float32** | | +**Hash** | **string** | | +**ParentHash** | **string** | | +**Nonce** | **string** | | +**Sha3Uncles** | **string** | | +**LogsBloom** | **string** | | +**TransactionRoot** | **string** | | +**StateRoot** | **string** | | +**ReceiptRoot** | **string** | | +**Miner** | **string** | | +**ExtraData** | **string** | | +**GasLimit** | **int32** | | +**GasUsed** | **int32** | | +**Timestamp** | [**Web3BlockHeaderTimestamp**](Web3BlockHeaderTimestamp.md) | | + +## Methods + +### NewWeb3BlockHeader + +`func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, transactionRoot string, stateRoot string, receiptRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp Web3BlockHeaderTimestamp, ) *Web3BlockHeader` + +NewWeb3BlockHeader instantiates a new Web3BlockHeader object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3BlockHeaderWithDefaults + +`func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader` + +NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *Web3BlockHeader) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *Web3BlockHeader) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *Web3BlockHeader) SetNumber(v float32)` + +SetNumber sets Number field to given value. + + +### GetHash + +`func (o *Web3BlockHeader) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *Web3BlockHeader) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *Web3BlockHeader) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetParentHash + +`func (o *Web3BlockHeader) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *Web3BlockHeader) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *Web3BlockHeader) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + + +### GetNonce + +`func (o *Web3BlockHeader) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *Web3BlockHeader) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *Web3BlockHeader) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + + +### GetSha3Uncles + +`func (o *Web3BlockHeader) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *Web3BlockHeader) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + + +### GetLogsBloom + +`func (o *Web3BlockHeader) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *Web3BlockHeader) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + + +### GetTransactionRoot + +`func (o *Web3BlockHeader) GetTransactionRoot() string` + +GetTransactionRoot returns the TransactionRoot field if non-nil, zero value otherwise. + +### GetTransactionRootOk + +`func (o *Web3BlockHeader) GetTransactionRootOk() (*string, bool)` + +GetTransactionRootOk returns a tuple with the TransactionRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionRoot + +`func (o *Web3BlockHeader) SetTransactionRoot(v string)` + +SetTransactionRoot sets TransactionRoot field to given value. + + +### GetStateRoot + +`func (o *Web3BlockHeader) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *Web3BlockHeader) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *Web3BlockHeader) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + + +### GetReceiptRoot + +`func (o *Web3BlockHeader) GetReceiptRoot() string` + +GetReceiptRoot returns the ReceiptRoot field if non-nil, zero value otherwise. + +### GetReceiptRootOk + +`func (o *Web3BlockHeader) GetReceiptRootOk() (*string, bool)` + +GetReceiptRootOk returns a tuple with the ReceiptRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptRoot + +`func (o *Web3BlockHeader) SetReceiptRoot(v string)` + +SetReceiptRoot sets ReceiptRoot field to given value. + + +### GetMiner + +`func (o *Web3BlockHeader) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *Web3BlockHeader) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *Web3BlockHeader) SetMiner(v string)` + +SetMiner sets Miner field to given value. + + +### GetExtraData + +`func (o *Web3BlockHeader) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *Web3BlockHeader) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + + +### GetGasLimit + +`func (o *Web3BlockHeader) GetGasLimit() int32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *Web3BlockHeader) SetGasLimit(v int32)` + +SetGasLimit sets GasLimit field to given value. + + +### GetGasUsed + +`func (o *Web3BlockHeader) GetGasUsed() int32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3BlockHeader) SetGasUsed(v int32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetTimestamp + +`func (o *Web3BlockHeader) GetTimestamp() Web3BlockHeaderTimestamp` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *Web3BlockHeader) GetTimestampOk() (*Web3BlockHeaderTimestamp, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *Web3BlockHeader) SetTimestamp(v Web3BlockHeaderTimestamp)` + +SetTimestamp sets Timestamp field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeaderTimestamp.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeaderTimestamp.md new file mode 100644 index 00000000000..9fe42bf9c2f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3BlockHeaderTimestamp.md @@ -0,0 +1,30 @@ +# Web3BlockHeaderTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewWeb3BlockHeaderTimestamp + +`func NewWeb3BlockHeaderTimestamp() *Web3BlockHeaderTimestamp` + +NewWeb3BlockHeaderTimestamp instantiates a new Web3BlockHeaderTimestamp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3BlockHeaderTimestampWithDefaults + +`func NewWeb3BlockHeaderTimestampWithDefaults() *Web3BlockHeaderTimestamp` + +NewWeb3BlockHeaderTimestampWithDefaults instantiates a new Web3BlockHeaderTimestamp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..bcd385ee609 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,135 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, secret string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..8a08034fcaa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,114 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..f44682c74a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,234 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..0a77c9b2598 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..eeff0f8eb26 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_private_transaction_config.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_private_transaction_config.go new file mode 100644 index 00000000000..457dfabf942 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_private_transaction_config.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the BesuPrivateTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BesuPrivateTransactionConfig{} + +// BesuPrivateTransactionConfig struct for BesuPrivateTransactionConfig +type BesuPrivateTransactionConfig struct { + PrivateFrom string `json:"privateFrom"` + PrivateFor []interface{} `json:"privateFor"` +} + +// NewBesuPrivateTransactionConfig instantiates a new BesuPrivateTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBesuPrivateTransactionConfig(privateFrom string, privateFor []interface{}) *BesuPrivateTransactionConfig { + this := BesuPrivateTransactionConfig{} + this.PrivateFrom = privateFrom + this.PrivateFor = privateFor + return &this +} + +// NewBesuPrivateTransactionConfigWithDefaults instantiates a new BesuPrivateTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBesuPrivateTransactionConfigWithDefaults() *BesuPrivateTransactionConfig { + this := BesuPrivateTransactionConfig{} + return &this +} + +// GetPrivateFrom returns the PrivateFrom field value +func (o *BesuPrivateTransactionConfig) GetPrivateFrom() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateFrom +} + +// GetPrivateFromOk returns a tuple with the PrivateFrom field value +// and a boolean to check if the value has been set. +func (o *BesuPrivateTransactionConfig) GetPrivateFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateFrom, true +} + +// SetPrivateFrom sets field value +func (o *BesuPrivateTransactionConfig) SetPrivateFrom(v string) { + o.PrivateFrom = v +} + +// GetPrivateFor returns the PrivateFor field value +func (o *BesuPrivateTransactionConfig) GetPrivateFor() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.PrivateFor +} + +// GetPrivateForOk returns a tuple with the PrivateFor field value +// and a boolean to check if the value has been set. +func (o *BesuPrivateTransactionConfig) GetPrivateForOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.PrivateFor, true +} + +// SetPrivateFor sets field value +func (o *BesuPrivateTransactionConfig) SetPrivateFor(v []interface{}) { + o.PrivateFor = v +} + +func (o BesuPrivateTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BesuPrivateTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["privateFrom"] = o.PrivateFrom + toSerialize["privateFor"] = o.PrivateFor + return toSerialize, nil +} + +type NullableBesuPrivateTransactionConfig struct { + value *BesuPrivateTransactionConfig + isSet bool +} + +func (v NullableBesuPrivateTransactionConfig) Get() *BesuPrivateTransactionConfig { + return v.value +} + +func (v *NullableBesuPrivateTransactionConfig) Set(val *BesuPrivateTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableBesuPrivateTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableBesuPrivateTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBesuPrivateTransactionConfig(val *BesuPrivateTransactionConfig) *NullableBesuPrivateTransactionConfig { + return &NullableBesuPrivateTransactionConfig{value: val, isSet: true} +} + +func (v NullableBesuPrivateTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBesuPrivateTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config.go new file mode 100644 index 00000000000..3a576071918 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config.go @@ -0,0 +1,410 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the BesuTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BesuTransactionConfig{} + +// BesuTransactionConfig struct for BesuTransactionConfig +type BesuTransactionConfig struct { + RawTransaction *string `json:"rawTransaction,omitempty"` + From *Web3BlockHeaderTimestamp `json:"from,omitempty"` + To *BesuTransactionConfigTo `json:"to,omitempty"` + Value *Web3BlockHeaderTimestamp `json:"value,omitempty"` + Gas *Web3BlockHeaderTimestamp `json:"gas,omitempty"` + GasPrice *Web3BlockHeaderTimestamp `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Data *BesuTransactionConfigTo `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BesuTransactionConfig BesuTransactionConfig + +// NewBesuTransactionConfig instantiates a new BesuTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBesuTransactionConfig() *BesuTransactionConfig { + this := BesuTransactionConfig{} + return &this +} + +// NewBesuTransactionConfigWithDefaults instantiates a new BesuTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBesuTransactionConfigWithDefaults() *BesuTransactionConfig { + this := BesuTransactionConfig{} + return &this +} + +// GetRawTransaction returns the RawTransaction field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetRawTransaction() string { + if o == nil || IsNil(o.RawTransaction) { + var ret string + return ret + } + return *o.RawTransaction +} + +// GetRawTransactionOk returns a tuple with the RawTransaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetRawTransactionOk() (*string, bool) { + if o == nil || IsNil(o.RawTransaction) { + return nil, false + } + return o.RawTransaction, true +} + +// HasRawTransaction returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasRawTransaction() bool { + if o != nil && !IsNil(o.RawTransaction) { + return true + } + + return false +} + +// SetRawTransaction gets a reference to the given string and assigns it to the RawTransaction field. +func (o *BesuTransactionConfig) SetRawTransaction(v string) { + o.RawTransaction = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetFrom() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.From) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetFromOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the From field. +func (o *BesuTransactionConfig) SetFrom(v Web3BlockHeaderTimestamp) { + o.From = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetTo() BesuTransactionConfigTo { + if o == nil || IsNil(o.To) { + var ret BesuTransactionConfigTo + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetToOk() (*BesuTransactionConfigTo, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given BesuTransactionConfigTo and assigns it to the To field. +func (o *BesuTransactionConfig) SetTo(v BesuTransactionConfigTo) { + o.To = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetValue() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.Value) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetValueOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the Value field. +func (o *BesuTransactionConfig) SetValue(v Web3BlockHeaderTimestamp) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetGas() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.Gas) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetGasOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the Gas field. +func (o *BesuTransactionConfig) SetGas(v Web3BlockHeaderTimestamp) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetGasPrice() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.GasPrice) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetGasPriceOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the GasPrice field. +func (o *BesuTransactionConfig) SetGasPrice(v Web3BlockHeaderTimestamp) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *BesuTransactionConfig) SetNonce(v float32) { + o.Nonce = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BesuTransactionConfig) GetData() BesuTransactionConfigTo { + if o == nil || IsNil(o.Data) { + var ret BesuTransactionConfigTo + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BesuTransactionConfig) GetDataOk() (*BesuTransactionConfigTo, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BesuTransactionConfig) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BesuTransactionConfigTo and assigns it to the Data field. +func (o *BesuTransactionConfig) SetData(v BesuTransactionConfigTo) { + o.Data = &v +} + +func (o BesuTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BesuTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RawTransaction) { + toSerialize["rawTransaction"] = o.RawTransaction + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BesuTransactionConfig) UnmarshalJSON(bytes []byte) (err error) { + varBesuTransactionConfig := _BesuTransactionConfig{} + + if err = json.Unmarshal(bytes, &varBesuTransactionConfig); err == nil { + *o = BesuTransactionConfig(varBesuTransactionConfig) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "rawTransaction") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "value") + delete(additionalProperties, "gas") + delete(additionalProperties, "gasPrice") + delete(additionalProperties, "nonce") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBesuTransactionConfig struct { + value *BesuTransactionConfig + isSet bool +} + +func (v NullableBesuTransactionConfig) Get() *BesuTransactionConfig { + return v.value +} + +func (v *NullableBesuTransactionConfig) Set(val *BesuTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableBesuTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableBesuTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBesuTransactionConfig(val *BesuTransactionConfig) *NullableBesuTransactionConfig { + return &NullableBesuTransactionConfig{value: val, isSet: true} +} + +func (v NullableBesuTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBesuTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config_to.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config_to.go new file mode 100644 index 00000000000..c14599119ad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_besu_transaction_config_to.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// BesuTransactionConfigTo - struct for BesuTransactionConfigTo +type BesuTransactionConfigTo struct { + String *string +} + +// stringAsBesuTransactionConfigTo is a convenience function that returns string wrapped in BesuTransactionConfigTo +func StringAsBesuTransactionConfigTo(v *string) BesuTransactionConfigTo { + return BesuTransactionConfigTo{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *BesuTransactionConfigTo) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(BesuTransactionConfigTo)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(BesuTransactionConfigTo)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src BesuTransactionConfigTo) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *BesuTransactionConfigTo) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableBesuTransactionConfigTo struct { + value *BesuTransactionConfigTo + isSet bool +} + +func (v NullableBesuTransactionConfigTo) Get() *BesuTransactionConfigTo { + return v.value +} + +func (v *NullableBesuTransactionConfigTo) Set(val *BesuTransactionConfigTo) { + v.value = val + v.isSet = true +} + +func (v NullableBesuTransactionConfigTo) IsSet() bool { + return v.isSet +} + +func (v *NullableBesuTransactionConfigTo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBesuTransactionConfigTo(val *BesuTransactionConfigTo) *NullableBesuTransactionConfigTo { + return &NullableBesuTransactionConfigTo{value: val, isSet: true} +} + +func (v NullableBesuTransactionConfigTo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBesuTransactionConfigTo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_consistency_strategy.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_consistency_strategy.go new file mode 100644 index 00000000000..2369a152115 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_consistency_strategy.go @@ -0,0 +1,182 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the ConsistencyStrategy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConsistencyStrategy{} + +// ConsistencyStrategy struct for ConsistencyStrategy +type ConsistencyStrategy struct { + ReceiptType ReceiptType `json:"receiptType"` + // The amount of milliseconds to wait for the receipt to arrive to the connector. Defaults to 0 which means to wait for an unlimited amount of time. Note that this wait may be interrupted still by other parts of the infrastructure such as load balancers cutting of HTTP requests after some time even if they are the type that is supposed to be kept alive. The question of re-entrance is a broader topic not in scope to discuss here, but it is important to mention it. + TimeoutMs *int32 `json:"timeoutMs,omitempty"` + // The number of blocks to wait to be confirmed in addition to the block containing the transaction in question. Note that if the receipt type is set to only wait for node transaction pool ACK and this parameter is set to anything, but zero then the API will not accept the request due to conflicting parameters. + BlockConfirmations int32 `json:"blockConfirmations"` +} + +// NewConsistencyStrategy instantiates a new ConsistencyStrategy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsistencyStrategy(receiptType ReceiptType, blockConfirmations int32) *ConsistencyStrategy { + this := ConsistencyStrategy{} + this.ReceiptType = receiptType + this.BlockConfirmations = blockConfirmations + return &this +} + +// NewConsistencyStrategyWithDefaults instantiates a new ConsistencyStrategy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsistencyStrategyWithDefaults() *ConsistencyStrategy { + this := ConsistencyStrategy{} + return &this +} + +// GetReceiptType returns the ReceiptType field value +func (o *ConsistencyStrategy) GetReceiptType() ReceiptType { + if o == nil { + var ret ReceiptType + return ret + } + + return o.ReceiptType +} + +// GetReceiptTypeOk returns a tuple with the ReceiptType field value +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetReceiptTypeOk() (*ReceiptType, bool) { + if o == nil { + return nil, false + } + return &o.ReceiptType, true +} + +// SetReceiptType sets field value +func (o *ConsistencyStrategy) SetReceiptType(v ReceiptType) { + o.ReceiptType = v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *ConsistencyStrategy) GetTimeoutMs() int32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret int32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetTimeoutMsOk() (*int32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *ConsistencyStrategy) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given int32 and assigns it to the TimeoutMs field. +func (o *ConsistencyStrategy) SetTimeoutMs(v int32) { + o.TimeoutMs = &v +} + +// GetBlockConfirmations returns the BlockConfirmations field value +func (o *ConsistencyStrategy) GetBlockConfirmations() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.BlockConfirmations +} + +// GetBlockConfirmationsOk returns a tuple with the BlockConfirmations field value +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetBlockConfirmationsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.BlockConfirmations, true +} + +// SetBlockConfirmations sets field value +func (o *ConsistencyStrategy) SetBlockConfirmations(v int32) { + o.BlockConfirmations = v +} + +func (o ConsistencyStrategy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConsistencyStrategy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["receiptType"] = o.ReceiptType + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["blockConfirmations"] = o.BlockConfirmations + return toSerialize, nil +} + +type NullableConsistencyStrategy struct { + value *ConsistencyStrategy + isSet bool +} + +func (v NullableConsistencyStrategy) Get() *ConsistencyStrategy { + return v.value +} + +func (v *NullableConsistencyStrategy) Set(val *ConsistencyStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableConsistencyStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableConsistencyStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsistencyStrategy(val *ConsistencyStrategy) *NullableConsistencyStrategy { + return &NullableConsistencyStrategy{value: val, isSet: true} +} + +func (v NullableConsistencyStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsistencyStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go new file mode 100644 index 00000000000..b6dfae11e7b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go @@ -0,0 +1,405 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Request{} + +// DeployContractSolidityBytecodeV1Request struct for DeployContractSolidityBytecodeV1Request +type DeployContractSolidityBytecodeV1Request struct { + // The contract name for retrieve the contracts json on the keychain. + ContractName string `json:"contractName"` + // The application binary interface of the solidity contract + ContractAbi []interface{} `json:"contractAbi"` + ConstructorArgs []interface{} `json:"constructorArgs"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode string `json:"bytecode"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + PrivateTransactionConfig *BesuPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Request(contractName string, contractAbi []interface{}, constructorArgs []interface{}, web3SigningCredential Web3SigningCredential, bytecode string, keychainId string) *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + this.ContractName = contractName + this.ContractAbi = contractAbi + this.ConstructorArgs = constructorArgs + this.Web3SigningCredential = web3SigningCredential + this.Bytecode = bytecode + this.KeychainId = keychainId + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetContractAbi returns the ContractAbi field value +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ContractAbi +} + +// GetContractAbiOk returns a tuple with the ContractAbi field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ContractAbi, true +} + +// SetContractAbi sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{}) { + o.ContractAbi = v +} + +// GetConstructorArgs returns the ConstructorArgs field value +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ConstructorArgs, true +} + +// SetConstructorArgs sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetBytecode returns the Bytecode field value +func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string { + if o == nil { + var ret string + return ret + } + + return o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Bytecode, true +} + +// SetBytecode sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string) { + o.Bytecode = v +} + +// GetKeychainId returns the KeychainId field value +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() string { + if o == nil || IsNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*string, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfig() BesuPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret BesuPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given BesuPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *DeployContractSolidityBytecodeV1Request) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o DeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["contractAbi"] = o.ContractAbi + toSerialize["constructorArgs"] = o.ConstructorArgs + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["bytecode"] = o.Bytecode + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Request struct { + value *DeployContractSolidityBytecodeV1Request + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Request) Get() *DeployContractSolidityBytecodeV1Request { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Set(val *DeployContractSolidityBytecodeV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Request(val *DeployContractSolidityBytecodeV1Request) *NullableDeployContractSolidityBytecodeV1Request { + return &NullableDeployContractSolidityBytecodeV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go new file mode 100644 index 00000000000..aabb7b7703d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Response{} + +// DeployContractSolidityBytecodeV1Response struct for DeployContractSolidityBytecodeV1Response +type DeployContractSolidityBytecodeV1Response struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt) *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o DeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Response struct { + value *DeployContractSolidityBytecodeV1Response + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Response) Get() *DeployContractSolidityBytecodeV1Response { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Set(val *DeployContractSolidityBytecodeV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Response(val *DeployContractSolidityBytecodeV1Response) *NullableDeployContractSolidityBytecodeV1Response { + return &NullableDeployContractSolidityBytecodeV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go new file mode 100644 index 00000000000..e8a63cc33e5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationType the model 'EthContractInvocationType' +type EthContractInvocationType string + +// List of EthContractInvocationType +const ( + SEND EthContractInvocationType = "SEND" + CALL EthContractInvocationType = "CALL" +) + +// All allowed values of EthContractInvocationType enum +var AllowedEthContractInvocationTypeEnumValues = []EthContractInvocationType{ + "SEND", + "CALL", +} + +func (v *EthContractInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationType(value) + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationType", value) +} + +// NewEthContractInvocationTypeFromValue returns a pointer to a valid EthContractInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationTypeFromValue(v string) (*EthContractInvocationType, error) { + ev := EthContractInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationType: valid values are %v", v, AllowedEthContractInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationType) IsValid() bool { + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationType value +func (v EthContractInvocationType) Ptr() *EthContractInvocationType { + return &v +} + +type NullableEthContractInvocationType struct { + value *EthContractInvocationType + isSet bool +} + +func (v NullableEthContractInvocationType) Get() *EthContractInvocationType { + return v.value +} + +func (v *NullableEthContractInvocationType) Set(val *EthContractInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationType(val *EthContractInvocationType) *NullableEthContractInvocationType { + return &NullableEthContractInvocationType{value: val, isSet: true} +} + +func (v NullableEthContractInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_block.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_block.go new file mode 100644 index 00000000000..15d031be8f0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_block.go @@ -0,0 +1,739 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the EvmBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EvmBlock{} + +// EvmBlock struct for EvmBlock +type EvmBlock struct { + Number *float32 `json:"number,omitempty"` + Hash *string `json:"hash,omitempty"` + ParentHash *string `json:"parentHash,omitempty"` + Nonce *string `json:"nonce,omitempty"` + Sha3Uncles *string `json:"sha3Uncles,omitempty"` + LogsBloom *string `json:"logsBloom,omitempty"` + TransactionsRoot *string `json:"transactionsRoot,omitempty"` + StateRoot *string `json:"stateRoot,omitempty"` + Miner *string `json:"miner,omitempty"` + Difficulty *float32 `json:"difficulty,omitempty"` + TotalDifficulty *float32 `json:"totalDifficulty,omitempty"` + ExtraData *string `json:"extraData,omitempty"` + Size *float32 `json:"size,omitempty"` + GasLimit *float32 `json:"gasLimit,omitempty"` + GasUsed *float32 `json:"gasUsed,omitempty"` + Timestamp interface{} `json:"timestamp,omitempty"` + Transactions []interface{} `json:"transactions,omitempty"` + Uncles []interface{} `json:"uncles,omitempty"` +} + +// NewEvmBlock instantiates a new EvmBlock object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEvmBlock() *EvmBlock { + this := EvmBlock{} + return &this +} + +// NewEvmBlockWithDefaults instantiates a new EvmBlock object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEvmBlockWithDefaults() *EvmBlock { + this := EvmBlock{} + return &this +} + +// GetNumber returns the Number field value if set, zero value otherwise. +func (o *EvmBlock) GetNumber() float32 { + if o == nil || IsNil(o.Number) { + var ret float32 + return ret + } + return *o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetNumberOk() (*float32, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *EvmBlock) HasNumber() bool { + if o != nil && !IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given float32 and assigns it to the Number field. +func (o *EvmBlock) SetNumber(v float32) { + o.Number = &v +} + +// GetHash returns the Hash field value if set, zero value otherwise. +func (o *EvmBlock) GetHash() string { + if o == nil || IsNil(o.Hash) { + var ret string + return ret + } + return *o.Hash +} + +// GetHashOk returns a tuple with the Hash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetHashOk() (*string, bool) { + if o == nil || IsNil(o.Hash) { + return nil, false + } + return o.Hash, true +} + +// HasHash returns a boolean if a field has been set. +func (o *EvmBlock) HasHash() bool { + if o != nil && !IsNil(o.Hash) { + return true + } + + return false +} + +// SetHash gets a reference to the given string and assigns it to the Hash field. +func (o *EvmBlock) SetHash(v string) { + o.Hash = &v +} + +// GetParentHash returns the ParentHash field value if set, zero value otherwise. +func (o *EvmBlock) GetParentHash() string { + if o == nil || IsNil(o.ParentHash) { + var ret string + return ret + } + return *o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetParentHashOk() (*string, bool) { + if o == nil || IsNil(o.ParentHash) { + return nil, false + } + return o.ParentHash, true +} + +// HasParentHash returns a boolean if a field has been set. +func (o *EvmBlock) HasParentHash() bool { + if o != nil && !IsNil(o.ParentHash) { + return true + } + + return false +} + +// SetParentHash gets a reference to the given string and assigns it to the ParentHash field. +func (o *EvmBlock) SetParentHash(v string) { + o.ParentHash = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *EvmBlock) GetNonce() string { + if o == nil || IsNil(o.Nonce) { + var ret string + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetNonceOk() (*string, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *EvmBlock) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given string and assigns it to the Nonce field. +func (o *EvmBlock) SetNonce(v string) { + o.Nonce = &v +} + +// GetSha3Uncles returns the Sha3Uncles field value if set, zero value otherwise. +func (o *EvmBlock) GetSha3Uncles() string { + if o == nil || IsNil(o.Sha3Uncles) { + var ret string + return ret + } + return *o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetSha3UnclesOk() (*string, bool) { + if o == nil || IsNil(o.Sha3Uncles) { + return nil, false + } + return o.Sha3Uncles, true +} + +// HasSha3Uncles returns a boolean if a field has been set. +func (o *EvmBlock) HasSha3Uncles() bool { + if o != nil && !IsNil(o.Sha3Uncles) { + return true + } + + return false +} + +// SetSha3Uncles gets a reference to the given string and assigns it to the Sha3Uncles field. +func (o *EvmBlock) SetSha3Uncles(v string) { + o.Sha3Uncles = &v +} + +// GetLogsBloom returns the LogsBloom field value if set, zero value otherwise. +func (o *EvmBlock) GetLogsBloom() string { + if o == nil || IsNil(o.LogsBloom) { + var ret string + return ret + } + return *o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetLogsBloomOk() (*string, bool) { + if o == nil || IsNil(o.LogsBloom) { + return nil, false + } + return o.LogsBloom, true +} + +// HasLogsBloom returns a boolean if a field has been set. +func (o *EvmBlock) HasLogsBloom() bool { + if o != nil && !IsNil(o.LogsBloom) { + return true + } + + return false +} + +// SetLogsBloom gets a reference to the given string and assigns it to the LogsBloom field. +func (o *EvmBlock) SetLogsBloom(v string) { + o.LogsBloom = &v +} + +// GetTransactionsRoot returns the TransactionsRoot field value if set, zero value otherwise. +func (o *EvmBlock) GetTransactionsRoot() string { + if o == nil || IsNil(o.TransactionsRoot) { + var ret string + return ret + } + return *o.TransactionsRoot +} + +// GetTransactionsRootOk returns a tuple with the TransactionsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetTransactionsRootOk() (*string, bool) { + if o == nil || IsNil(o.TransactionsRoot) { + return nil, false + } + return o.TransactionsRoot, true +} + +// HasTransactionsRoot returns a boolean if a field has been set. +func (o *EvmBlock) HasTransactionsRoot() bool { + if o != nil && !IsNil(o.TransactionsRoot) { + return true + } + + return false +} + +// SetTransactionsRoot gets a reference to the given string and assigns it to the TransactionsRoot field. +func (o *EvmBlock) SetTransactionsRoot(v string) { + o.TransactionsRoot = &v +} + +// GetStateRoot returns the StateRoot field value if set, zero value otherwise. +func (o *EvmBlock) GetStateRoot() string { + if o == nil || IsNil(o.StateRoot) { + var ret string + return ret + } + return *o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetStateRootOk() (*string, bool) { + if o == nil || IsNil(o.StateRoot) { + return nil, false + } + return o.StateRoot, true +} + +// HasStateRoot returns a boolean if a field has been set. +func (o *EvmBlock) HasStateRoot() bool { + if o != nil && !IsNil(o.StateRoot) { + return true + } + + return false +} + +// SetStateRoot gets a reference to the given string and assigns it to the StateRoot field. +func (o *EvmBlock) SetStateRoot(v string) { + o.StateRoot = &v +} + +// GetMiner returns the Miner field value if set, zero value otherwise. +func (o *EvmBlock) GetMiner() string { + if o == nil || IsNil(o.Miner) { + var ret string + return ret + } + return *o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetMinerOk() (*string, bool) { + if o == nil || IsNil(o.Miner) { + return nil, false + } + return o.Miner, true +} + +// HasMiner returns a boolean if a field has been set. +func (o *EvmBlock) HasMiner() bool { + if o != nil && !IsNil(o.Miner) { + return true + } + + return false +} + +// SetMiner gets a reference to the given string and assigns it to the Miner field. +func (o *EvmBlock) SetMiner(v string) { + o.Miner = &v +} + +// GetDifficulty returns the Difficulty field value if set, zero value otherwise. +func (o *EvmBlock) GetDifficulty() float32 { + if o == nil || IsNil(o.Difficulty) { + var ret float32 + return ret + } + return *o.Difficulty +} + +// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetDifficultyOk() (*float32, bool) { + if o == nil || IsNil(o.Difficulty) { + return nil, false + } + return o.Difficulty, true +} + +// HasDifficulty returns a boolean if a field has been set. +func (o *EvmBlock) HasDifficulty() bool { + if o != nil && !IsNil(o.Difficulty) { + return true + } + + return false +} + +// SetDifficulty gets a reference to the given float32 and assigns it to the Difficulty field. +func (o *EvmBlock) SetDifficulty(v float32) { + o.Difficulty = &v +} + +// GetTotalDifficulty returns the TotalDifficulty field value if set, zero value otherwise. +func (o *EvmBlock) GetTotalDifficulty() float32 { + if o == nil || IsNil(o.TotalDifficulty) { + var ret float32 + return ret + } + return *o.TotalDifficulty +} + +// GetTotalDifficultyOk returns a tuple with the TotalDifficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetTotalDifficultyOk() (*float32, bool) { + if o == nil || IsNil(o.TotalDifficulty) { + return nil, false + } + return o.TotalDifficulty, true +} + +// HasTotalDifficulty returns a boolean if a field has been set. +func (o *EvmBlock) HasTotalDifficulty() bool { + if o != nil && !IsNil(o.TotalDifficulty) { + return true + } + + return false +} + +// SetTotalDifficulty gets a reference to the given float32 and assigns it to the TotalDifficulty field. +func (o *EvmBlock) SetTotalDifficulty(v float32) { + o.TotalDifficulty = &v +} + +// GetExtraData returns the ExtraData field value if set, zero value otherwise. +func (o *EvmBlock) GetExtraData() string { + if o == nil || IsNil(o.ExtraData) { + var ret string + return ret + } + return *o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetExtraDataOk() (*string, bool) { + if o == nil || IsNil(o.ExtraData) { + return nil, false + } + return o.ExtraData, true +} + +// HasExtraData returns a boolean if a field has been set. +func (o *EvmBlock) HasExtraData() bool { + if o != nil && !IsNil(o.ExtraData) { + return true + } + + return false +} + +// SetExtraData gets a reference to the given string and assigns it to the ExtraData field. +func (o *EvmBlock) SetExtraData(v string) { + o.ExtraData = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *EvmBlock) GetSize() float32 { + if o == nil || IsNil(o.Size) { + var ret float32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetSizeOk() (*float32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *EvmBlock) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given float32 and assigns it to the Size field. +func (o *EvmBlock) SetSize(v float32) { + o.Size = &v +} + +// GetGasLimit returns the GasLimit field value if set, zero value otherwise. +func (o *EvmBlock) GetGasLimit() float32 { + if o == nil || IsNil(o.GasLimit) { + var ret float32 + return ret + } + return *o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetGasLimitOk() (*float32, bool) { + if o == nil || IsNil(o.GasLimit) { + return nil, false + } + return o.GasLimit, true +} + +// HasGasLimit returns a boolean if a field has been set. +func (o *EvmBlock) HasGasLimit() bool { + if o != nil && !IsNil(o.GasLimit) { + return true + } + + return false +} + +// SetGasLimit gets a reference to the given float32 and assigns it to the GasLimit field. +func (o *EvmBlock) SetGasLimit(v float32) { + o.GasLimit = &v +} + +// GetGasUsed returns the GasUsed field value if set, zero value otherwise. +func (o *EvmBlock) GetGasUsed() float32 { + if o == nil || IsNil(o.GasUsed) { + var ret float32 + return ret + } + return *o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetGasUsedOk() (*float32, bool) { + if o == nil || IsNil(o.GasUsed) { + return nil, false + } + return o.GasUsed, true +} + +// HasGasUsed returns a boolean if a field has been set. +func (o *EvmBlock) HasGasUsed() bool { + if o != nil && !IsNil(o.GasUsed) { + return true + } + + return false +} + +// SetGasUsed gets a reference to the given float32 and assigns it to the GasUsed field. +func (o *EvmBlock) SetGasUsed(v float32) { + o.GasUsed = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EvmBlock) GetTimestamp() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EvmBlock) GetTimestampOk() (*interface{}, bool) { + if o == nil || IsNil(o.Timestamp) { + return nil, false + } + return &o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EvmBlock) HasTimestamp() bool { + if o != nil && IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given interface{} and assigns it to the Timestamp field. +func (o *EvmBlock) SetTimestamp(v interface{}) { + o.Timestamp = v +} + +// GetTransactions returns the Transactions field value if set, zero value otherwise. +func (o *EvmBlock) GetTransactions() []interface{} { + if o == nil || IsNil(o.Transactions) { + var ret []interface{} + return ret + } + return o.Transactions +} + +// GetTransactionsOk returns a tuple with the Transactions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetTransactionsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Transactions) { + return nil, false + } + return o.Transactions, true +} + +// HasTransactions returns a boolean if a field has been set. +func (o *EvmBlock) HasTransactions() bool { + if o != nil && !IsNil(o.Transactions) { + return true + } + + return false +} + +// SetTransactions gets a reference to the given []interface{} and assigns it to the Transactions field. +func (o *EvmBlock) SetTransactions(v []interface{}) { + o.Transactions = v +} + +// GetUncles returns the Uncles field value if set, zero value otherwise. +func (o *EvmBlock) GetUncles() []interface{} { + if o == nil || IsNil(o.Uncles) { + var ret []interface{} + return ret + } + return o.Uncles +} + +// GetUnclesOk returns a tuple with the Uncles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmBlock) GetUnclesOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Uncles) { + return nil, false + } + return o.Uncles, true +} + +// HasUncles returns a boolean if a field has been set. +func (o *EvmBlock) HasUncles() bool { + if o != nil && !IsNil(o.Uncles) { + return true + } + + return false +} + +// SetUncles gets a reference to the given []interface{} and assigns it to the Uncles field. +func (o *EvmBlock) SetUncles(v []interface{}) { + o.Uncles = v +} + +func (o EvmBlock) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EvmBlock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Number) { + toSerialize["number"] = o.Number + } + if !IsNil(o.Hash) { + toSerialize["hash"] = o.Hash + } + if !IsNil(o.ParentHash) { + toSerialize["parentHash"] = o.ParentHash + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.Sha3Uncles) { + toSerialize["sha3Uncles"] = o.Sha3Uncles + } + if !IsNil(o.LogsBloom) { + toSerialize["logsBloom"] = o.LogsBloom + } + if !IsNil(o.TransactionsRoot) { + toSerialize["transactionsRoot"] = o.TransactionsRoot + } + if !IsNil(o.StateRoot) { + toSerialize["stateRoot"] = o.StateRoot + } + if !IsNil(o.Miner) { + toSerialize["miner"] = o.Miner + } + if !IsNil(o.Difficulty) { + toSerialize["difficulty"] = o.Difficulty + } + if !IsNil(o.TotalDifficulty) { + toSerialize["totalDifficulty"] = o.TotalDifficulty + } + if !IsNil(o.ExtraData) { + toSerialize["extraData"] = o.ExtraData + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.GasLimit) { + toSerialize["gasLimit"] = o.GasLimit + } + if !IsNil(o.GasUsed) { + toSerialize["gasUsed"] = o.GasUsed + } + if o.Timestamp != nil { + toSerialize["timestamp"] = o.Timestamp + } + if !IsNil(o.Transactions) { + toSerialize["transactions"] = o.Transactions + } + if !IsNil(o.Uncles) { + toSerialize["uncles"] = o.Uncles + } + return toSerialize, nil +} + +type NullableEvmBlock struct { + value *EvmBlock + isSet bool +} + +func (v NullableEvmBlock) Get() *EvmBlock { + return v.value +} + +func (v *NullableEvmBlock) Set(val *EvmBlock) { + v.value = val + v.isSet = true +} + +func (v NullableEvmBlock) IsSet() bool { + return v.isSet +} + +func (v *NullableEvmBlock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvmBlock(val *EvmBlock) *NullableEvmBlock { + return &NullableEvmBlock{value: val, isSet: true} +} + +func (v NullableEvmBlock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvmBlock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_log.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_log.go new file mode 100644 index 00000000000..e356f8da3d1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_log.go @@ -0,0 +1,306 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the EvmLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EvmLog{} + +// EvmLog struct for EvmLog +type EvmLog struct { + Address string `json:"address"` + Data string `json:"data"` + BlockHash string `json:"blockHash"` + TransactionHash string `json:"transactionHash"` + Topics []string `json:"topics"` + LogIndex float32 `json:"logIndex"` + TransactionIndex float32 `json:"transactionIndex"` + BlockNumber float32 `json:"blockNumber"` +} + +// NewEvmLog instantiates a new EvmLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEvmLog(address string, data string, blockHash string, transactionHash string, topics []string, logIndex float32, transactionIndex float32, blockNumber float32) *EvmLog { + this := EvmLog{} + this.Address = address + this.Data = data + this.BlockHash = blockHash + this.TransactionHash = transactionHash + this.Topics = topics + this.LogIndex = logIndex + this.TransactionIndex = transactionIndex + this.BlockNumber = blockNumber + return &this +} + +// NewEvmLogWithDefaults instantiates a new EvmLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEvmLogWithDefaults() *EvmLog { + this := EvmLog{} + return &this +} + +// GetAddress returns the Address field value +func (o *EvmLog) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *EvmLog) SetAddress(v string) { + o.Address = v +} + +// GetData returns the Data field value +func (o *EvmLog) GetData() string { + if o == nil { + var ret string + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *EvmLog) SetData(v string) { + o.Data = v +} + +// GetBlockHash returns the BlockHash field value +func (o *EvmLog) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *EvmLog) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *EvmLog) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *EvmLog) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTopics returns the Topics field value +func (o *EvmLog) GetTopics() []string { + if o == nil { + var ret []string + return ret + } + + return o.Topics +} + +// GetTopicsOk returns a tuple with the Topics field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetTopicsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Topics, true +} + +// SetTopics sets field value +func (o *EvmLog) SetTopics(v []string) { + o.Topics = v +} + +// GetLogIndex returns the LogIndex field value +func (o *EvmLog) GetLogIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.LogIndex +} + +// GetLogIndexOk returns a tuple with the LogIndex field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetLogIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.LogIndex, true +} + +// SetLogIndex sets field value +func (o *EvmLog) SetLogIndex(v float32) { + o.LogIndex = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *EvmLog) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *EvmLog) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *EvmLog) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *EvmLog) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *EvmLog) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +func (o EvmLog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EvmLog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + toSerialize["data"] = o.Data + toSerialize["blockHash"] = o.BlockHash + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["topics"] = o.Topics + toSerialize["logIndex"] = o.LogIndex + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockNumber"] = o.BlockNumber + return toSerialize, nil +} + +type NullableEvmLog struct { + value *EvmLog + isSet bool +} + +func (v NullableEvmLog) Get() *EvmLog { + return v.value +} + +func (v *NullableEvmLog) Set(val *EvmLog) { + v.value = val + v.isSet = true +} + +func (v NullableEvmLog) IsSet() bool { + return v.isSet +} + +func (v *NullableEvmLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvmLog(val *EvmLog) *NullableEvmLog { + return &NullableEvmLog{value: val, isSet: true} +} + +func (v NullableEvmLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvmLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_transaction.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_transaction.go new file mode 100644 index 00000000000..a34f3cd55da --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_evm_transaction.go @@ -0,0 +1,490 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the EvmTransaction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EvmTransaction{} + +// EvmTransaction struct for EvmTransaction +type EvmTransaction struct { + Hash *string `json:"hash,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + BlockHash interface{} `json:"blockHash,omitempty"` + BlockNumber interface{} `json:"blockNumber,omitempty"` + TransactionIndex interface{} `json:"transactionIndex,omitempty"` + From *string `json:"from,omitempty"` + To interface{} `json:"to,omitempty"` + Value *string `json:"value,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + Gas *float32 `json:"gas,omitempty"` + Input *string `json:"input,omitempty"` +} + +// NewEvmTransaction instantiates a new EvmTransaction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEvmTransaction() *EvmTransaction { + this := EvmTransaction{} + return &this +} + +// NewEvmTransactionWithDefaults instantiates a new EvmTransaction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEvmTransactionWithDefaults() *EvmTransaction { + this := EvmTransaction{} + return &this +} + +// GetHash returns the Hash field value if set, zero value otherwise. +func (o *EvmTransaction) GetHash() string { + if o == nil || IsNil(o.Hash) { + var ret string + return ret + } + return *o.Hash +} + +// GetHashOk returns a tuple with the Hash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetHashOk() (*string, bool) { + if o == nil || IsNil(o.Hash) { + return nil, false + } + return o.Hash, true +} + +// HasHash returns a boolean if a field has been set. +func (o *EvmTransaction) HasHash() bool { + if o != nil && !IsNil(o.Hash) { + return true + } + + return false +} + +// SetHash gets a reference to the given string and assigns it to the Hash field. +func (o *EvmTransaction) SetHash(v string) { + o.Hash = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *EvmTransaction) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *EvmTransaction) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *EvmTransaction) SetNonce(v float32) { + o.Nonce = &v +} + +// GetBlockHash returns the BlockHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EvmTransaction) GetBlockHash() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EvmTransaction) GetBlockHashOk() (*interface{}, bool) { + if o == nil || IsNil(o.BlockHash) { + return nil, false + } + return &o.BlockHash, true +} + +// HasBlockHash returns a boolean if a field has been set. +func (o *EvmTransaction) HasBlockHash() bool { + if o != nil && IsNil(o.BlockHash) { + return true + } + + return false +} + +// SetBlockHash gets a reference to the given interface{} and assigns it to the BlockHash field. +func (o *EvmTransaction) SetBlockHash(v interface{}) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EvmTransaction) GetBlockNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EvmTransaction) GetBlockNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.BlockNumber) { + return nil, false + } + return &o.BlockNumber, true +} + +// HasBlockNumber returns a boolean if a field has been set. +func (o *EvmTransaction) HasBlockNumber() bool { + if o != nil && IsNil(o.BlockNumber) { + return true + } + + return false +} + +// SetBlockNumber gets a reference to the given interface{} and assigns it to the BlockNumber field. +func (o *EvmTransaction) SetBlockNumber(v interface{}) { + o.BlockNumber = v +} + +// GetTransactionIndex returns the TransactionIndex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EvmTransaction) GetTransactionIndex() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EvmTransaction) GetTransactionIndexOk() (*interface{}, bool) { + if o == nil || IsNil(o.TransactionIndex) { + return nil, false + } + return &o.TransactionIndex, true +} + +// HasTransactionIndex returns a boolean if a field has been set. +func (o *EvmTransaction) HasTransactionIndex() bool { + if o != nil && IsNil(o.TransactionIndex) { + return true + } + + return false +} + +// SetTransactionIndex gets a reference to the given interface{} and assigns it to the TransactionIndex field. +func (o *EvmTransaction) SetTransactionIndex(v interface{}) { + o.TransactionIndex = v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *EvmTransaction) GetFrom() string { + if o == nil || IsNil(o.From) { + var ret string + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetFromOk() (*string, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *EvmTransaction) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given string and assigns it to the From field. +func (o *EvmTransaction) SetFrom(v string) { + o.From = &v +} + +// GetTo returns the To field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EvmTransaction) GetTo() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EvmTransaction) GetToOk() (*interface{}, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return &o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *EvmTransaction) HasTo() bool { + if o != nil && IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given interface{} and assigns it to the To field. +func (o *EvmTransaction) SetTo(v interface{}) { + o.To = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *EvmTransaction) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *EvmTransaction) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *EvmTransaction) SetValue(v string) { + o.Value = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *EvmTransaction) GetGasPrice() string { + if o == nil || IsNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetGasPriceOk() (*string, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *EvmTransaction) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *EvmTransaction) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *EvmTransaction) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *EvmTransaction) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *EvmTransaction) SetGas(v float32) { + o.Gas = &v +} + +// GetInput returns the Input field value if set, zero value otherwise. +func (o *EvmTransaction) GetInput() string { + if o == nil || IsNil(o.Input) { + var ret string + return ret + } + return *o.Input +} + +// GetInputOk returns a tuple with the Input field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EvmTransaction) GetInputOk() (*string, bool) { + if o == nil || IsNil(o.Input) { + return nil, false + } + return o.Input, true +} + +// HasInput returns a boolean if a field has been set. +func (o *EvmTransaction) HasInput() bool { + if o != nil && !IsNil(o.Input) { + return true + } + + return false +} + +// SetInput gets a reference to the given string and assigns it to the Input field. +func (o *EvmTransaction) SetInput(v string) { + o.Input = &v +} + +func (o EvmTransaction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EvmTransaction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Hash) { + toSerialize["hash"] = o.Hash + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if o.BlockHash != nil { + toSerialize["blockHash"] = o.BlockHash + } + if o.BlockNumber != nil { + toSerialize["blockNumber"] = o.BlockNumber + } + if o.TransactionIndex != nil { + toSerialize["transactionIndex"] = o.TransactionIndex + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if o.To != nil { + toSerialize["to"] = o.To + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.Input) { + toSerialize["input"] = o.Input + } + return toSerialize, nil +} + +type NullableEvmTransaction struct { + value *EvmTransaction + isSet bool +} + +func (v NullableEvmTransaction) Get() *EvmTransaction { + return v.value +} + +func (v *NullableEvmTransaction) Set(val *EvmTransaction) { + v.value = val + v.isSet = true +} + +func (v NullableEvmTransaction) IsSet() bool { + return v.isSet +} + +func (v *NullableEvmTransaction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvmTransaction(val *EvmTransaction) *NullableEvmTransaction { + return &NullableEvmTransaction{value: val, isSet: true} +} + +func (v NullableEvmTransaction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvmTransaction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_request.go new file mode 100644 index 00000000000..ff240e63d23 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_request.go @@ -0,0 +1,154 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBalanceV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBalanceV1Request{} + +// GetBalanceV1Request struct for GetBalanceV1Request +type GetBalanceV1Request struct { + Address string `json:"address"` + DefaultBlock interface{} `json:"defaultBlock,omitempty"` +} + +// NewGetBalanceV1Request instantiates a new GetBalanceV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBalanceV1Request(address string) *GetBalanceV1Request { + this := GetBalanceV1Request{} + this.Address = address + return &this +} + +// NewGetBalanceV1RequestWithDefaults instantiates a new GetBalanceV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBalanceV1RequestWithDefaults() *GetBalanceV1Request { + this := GetBalanceV1Request{} + return &this +} + +// GetAddress returns the Address field value +func (o *GetBalanceV1Request) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *GetBalanceV1Request) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *GetBalanceV1Request) SetAddress(v string) { + o.Address = v +} + +// GetDefaultBlock returns the DefaultBlock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetBalanceV1Request) GetDefaultBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DefaultBlock +} + +// GetDefaultBlockOk returns a tuple with the DefaultBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetBalanceV1Request) GetDefaultBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.DefaultBlock) { + return nil, false + } + return &o.DefaultBlock, true +} + +// HasDefaultBlock returns a boolean if a field has been set. +func (o *GetBalanceV1Request) HasDefaultBlock() bool { + if o != nil && IsNil(o.DefaultBlock) { + return true + } + + return false +} + +// SetDefaultBlock gets a reference to the given interface{} and assigns it to the DefaultBlock field. +func (o *GetBalanceV1Request) SetDefaultBlock(v interface{}) { + o.DefaultBlock = v +} + +func (o GetBalanceV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBalanceV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if o.DefaultBlock != nil { + toSerialize["defaultBlock"] = o.DefaultBlock + } + return toSerialize, nil +} + +type NullableGetBalanceV1Request struct { + value *GetBalanceV1Request + isSet bool +} + +func (v NullableGetBalanceV1Request) Get() *GetBalanceV1Request { + return v.value +} + +func (v *NullableGetBalanceV1Request) Set(val *GetBalanceV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetBalanceV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBalanceV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBalanceV1Request(val *GetBalanceV1Request) *NullableGetBalanceV1Request { + return &NullableGetBalanceV1Request{value: val, isSet: true} +} + +func (v NullableGetBalanceV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBalanceV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_response.go new file mode 100644 index 00000000000..47b5676eac1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_balance_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBalanceV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBalanceV1Response{} + +// GetBalanceV1Response struct for GetBalanceV1Response +type GetBalanceV1Response struct { + Balance string `json:"balance"` +} + +// NewGetBalanceV1Response instantiates a new GetBalanceV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBalanceV1Response(balance string) *GetBalanceV1Response { + this := GetBalanceV1Response{} + this.Balance = balance + return &this +} + +// NewGetBalanceV1ResponseWithDefaults instantiates a new GetBalanceV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBalanceV1ResponseWithDefaults() *GetBalanceV1Response { + this := GetBalanceV1Response{} + return &this +} + +// GetBalance returns the Balance field value +func (o *GetBalanceV1Response) GetBalance() string { + if o == nil { + var ret string + return ret + } + + return o.Balance +} + +// GetBalanceOk returns a tuple with the Balance field value +// and a boolean to check if the value has been set. +func (o *GetBalanceV1Response) GetBalanceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Balance, true +} + +// SetBalance sets field value +func (o *GetBalanceV1Response) SetBalance(v string) { + o.Balance = v +} + +func (o GetBalanceV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBalanceV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["balance"] = o.Balance + return toSerialize, nil +} + +type NullableGetBalanceV1Response struct { + value *GetBalanceV1Response + isSet bool +} + +func (v NullableGetBalanceV1Response) Get() *GetBalanceV1Response { + return v.value +} + +func (v *NullableGetBalanceV1Response) Set(val *GetBalanceV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetBalanceV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBalanceV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBalanceV1Response(val *GetBalanceV1Response) *NullableGetBalanceV1Response { + return &NullableGetBalanceV1Response{value: val, isSet: true} +} + +func (v NullableGetBalanceV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBalanceV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_request.go new file mode 100644 index 00000000000..cbc6c7138a9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_request.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBesuRecordV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBesuRecordV1Request{} + +// GetBesuRecordV1Request struct for GetBesuRecordV1Request +type GetBesuRecordV1Request struct { + InvokeCall *InvokeContractV1Request `json:"invokeCall,omitempty"` + TransactionHash *string `json:"transactionHash,omitempty"` +} + +// NewGetBesuRecordV1Request instantiates a new GetBesuRecordV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBesuRecordV1Request() *GetBesuRecordV1Request { + this := GetBesuRecordV1Request{} + return &this +} + +// NewGetBesuRecordV1RequestWithDefaults instantiates a new GetBesuRecordV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBesuRecordV1RequestWithDefaults() *GetBesuRecordV1Request { + this := GetBesuRecordV1Request{} + return &this +} + +// GetInvokeCall returns the InvokeCall field value if set, zero value otherwise. +func (o *GetBesuRecordV1Request) GetInvokeCall() InvokeContractV1Request { + if o == nil || IsNil(o.InvokeCall) { + var ret InvokeContractV1Request + return ret + } + return *o.InvokeCall +} + +// GetInvokeCallOk returns a tuple with the InvokeCall field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBesuRecordV1Request) GetInvokeCallOk() (*InvokeContractV1Request, bool) { + if o == nil || IsNil(o.InvokeCall) { + return nil, false + } + return o.InvokeCall, true +} + +// HasInvokeCall returns a boolean if a field has been set. +func (o *GetBesuRecordV1Request) HasInvokeCall() bool { + if o != nil && !IsNil(o.InvokeCall) { + return true + } + + return false +} + +// SetInvokeCall gets a reference to the given InvokeContractV1Request and assigns it to the InvokeCall field. +func (o *GetBesuRecordV1Request) SetInvokeCall(v InvokeContractV1Request) { + o.InvokeCall = &v +} + +// GetTransactionHash returns the TransactionHash field value if set, zero value otherwise. +func (o *GetBesuRecordV1Request) GetTransactionHash() string { + if o == nil || IsNil(o.TransactionHash) { + var ret string + return ret + } + return *o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBesuRecordV1Request) GetTransactionHashOk() (*string, bool) { + if o == nil || IsNil(o.TransactionHash) { + return nil, false + } + return o.TransactionHash, true +} + +// HasTransactionHash returns a boolean if a field has been set. +func (o *GetBesuRecordV1Request) HasTransactionHash() bool { + if o != nil && !IsNil(o.TransactionHash) { + return true + } + + return false +} + +// SetTransactionHash gets a reference to the given string and assigns it to the TransactionHash field. +func (o *GetBesuRecordV1Request) SetTransactionHash(v string) { + o.TransactionHash = &v +} + +func (o GetBesuRecordV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBesuRecordV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InvokeCall) { + toSerialize["invokeCall"] = o.InvokeCall + } + if !IsNil(o.TransactionHash) { + toSerialize["transactionHash"] = o.TransactionHash + } + return toSerialize, nil +} + +type NullableGetBesuRecordV1Request struct { + value *GetBesuRecordV1Request + isSet bool +} + +func (v NullableGetBesuRecordV1Request) Get() *GetBesuRecordV1Request { + return v.value +} + +func (v *NullableGetBesuRecordV1Request) Set(val *GetBesuRecordV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetBesuRecordV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBesuRecordV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBesuRecordV1Request(val *GetBesuRecordV1Request) *NullableGetBesuRecordV1Request { + return &NullableGetBesuRecordV1Request{value: val, isSet: true} +} + +func (v NullableGetBesuRecordV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBesuRecordV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_response.go new file mode 100644 index 00000000000..2b9c3adb4f6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_besu_record_v1_response.go @@ -0,0 +1,236 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBesuRecordV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBesuRecordV1Response{} + +// GetBesuRecordV1Response struct for GetBesuRecordV1Response +type GetBesuRecordV1Response struct { + LedgerId *string `json:"ledgerId,omitempty"` + StateContract *string `json:"stateContract,omitempty"` + TransactionInputData interface{} `json:"transactionInputData,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` +} + +// NewGetBesuRecordV1Response instantiates a new GetBesuRecordV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBesuRecordV1Response() *GetBesuRecordV1Response { + this := GetBesuRecordV1Response{} + return &this +} + +// NewGetBesuRecordV1ResponseWithDefaults instantiates a new GetBesuRecordV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBesuRecordV1ResponseWithDefaults() *GetBesuRecordV1Response { + this := GetBesuRecordV1Response{} + return &this +} + +// GetLedgerId returns the LedgerId field value if set, zero value otherwise. +func (o *GetBesuRecordV1Response) GetLedgerId() string { + if o == nil || IsNil(o.LedgerId) { + var ret string + return ret + } + return *o.LedgerId +} + +// GetLedgerIdOk returns a tuple with the LedgerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBesuRecordV1Response) GetLedgerIdOk() (*string, bool) { + if o == nil || IsNil(o.LedgerId) { + return nil, false + } + return o.LedgerId, true +} + +// HasLedgerId returns a boolean if a field has been set. +func (o *GetBesuRecordV1Response) HasLedgerId() bool { + if o != nil && !IsNil(o.LedgerId) { + return true + } + + return false +} + +// SetLedgerId gets a reference to the given string and assigns it to the LedgerId field. +func (o *GetBesuRecordV1Response) SetLedgerId(v string) { + o.LedgerId = &v +} + +// GetStateContract returns the StateContract field value if set, zero value otherwise. +func (o *GetBesuRecordV1Response) GetStateContract() string { + if o == nil || IsNil(o.StateContract) { + var ret string + return ret + } + return *o.StateContract +} + +// GetStateContractOk returns a tuple with the StateContract field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBesuRecordV1Response) GetStateContractOk() (*string, bool) { + if o == nil || IsNil(o.StateContract) { + return nil, false + } + return o.StateContract, true +} + +// HasStateContract returns a boolean if a field has been set. +func (o *GetBesuRecordV1Response) HasStateContract() bool { + if o != nil && !IsNil(o.StateContract) { + return true + } + + return false +} + +// SetStateContract gets a reference to the given string and assigns it to the StateContract field. +func (o *GetBesuRecordV1Response) SetStateContract(v string) { + o.StateContract = &v +} + +// GetTransactionInputData returns the TransactionInputData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetBesuRecordV1Response) GetTransactionInputData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TransactionInputData +} + +// GetTransactionInputDataOk returns a tuple with the TransactionInputData field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetBesuRecordV1Response) GetTransactionInputDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.TransactionInputData) { + return nil, false + } + return &o.TransactionInputData, true +} + +// HasTransactionInputData returns a boolean if a field has been set. +func (o *GetBesuRecordV1Response) HasTransactionInputData() bool { + if o != nil && IsNil(o.TransactionInputData) { + return true + } + + return false +} + +// SetTransactionInputData gets a reference to the given interface{} and assigns it to the TransactionInputData field. +func (o *GetBesuRecordV1Response) SetTransactionInputData(v interface{}) { + o.TransactionInputData = v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetBesuRecordV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetBesuRecordV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *GetBesuRecordV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *GetBesuRecordV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +func (o GetBesuRecordV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBesuRecordV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LedgerId) { + toSerialize["ledgerId"] = o.LedgerId + } + if !IsNil(o.StateContract) { + toSerialize["stateContract"] = o.StateContract + } + if o.TransactionInputData != nil { + toSerialize["transactionInputData"] = o.TransactionInputData + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + return toSerialize, nil +} + +type NullableGetBesuRecordV1Response struct { + value *GetBesuRecordV1Response + isSet bool +} + +func (v NullableGetBesuRecordV1Response) Get() *GetBesuRecordV1Response { + return v.value +} + +func (v *NullableGetBesuRecordV1Response) Set(val *GetBesuRecordV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetBesuRecordV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBesuRecordV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBesuRecordV1Response(val *GetBesuRecordV1Response) *NullableGetBesuRecordV1Response { + return &NullableGetBesuRecordV1Response{value: val, isSet: true} +} + +func (v NullableGetBesuRecordV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBesuRecordV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_request.go new file mode 100644 index 00000000000..88620c6fc8a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_request.go @@ -0,0 +1,121 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBlockV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockV1Request{} + +// GetBlockV1Request struct for GetBlockV1Request +type GetBlockV1Request struct { + BlockHashOrBlockNumber interface{} `json:"blockHashOrBlockNumber"` +} + +// NewGetBlockV1Request instantiates a new GetBlockV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockV1Request(blockHashOrBlockNumber interface{}) *GetBlockV1Request { + this := GetBlockV1Request{} + this.BlockHashOrBlockNumber = blockHashOrBlockNumber + return &this +} + +// NewGetBlockV1RequestWithDefaults instantiates a new GetBlockV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockV1RequestWithDefaults() *GetBlockV1Request { + this := GetBlockV1Request{} + return &this +} + +// GetBlockHashOrBlockNumber returns the BlockHashOrBlockNumber field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *GetBlockV1Request) GetBlockHashOrBlockNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.BlockHashOrBlockNumber +} + +// GetBlockHashOrBlockNumberOk returns a tuple with the BlockHashOrBlockNumber field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetBlockV1Request) GetBlockHashOrBlockNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.BlockHashOrBlockNumber) { + return nil, false + } + return &o.BlockHashOrBlockNumber, true +} + +// SetBlockHashOrBlockNumber sets field value +func (o *GetBlockV1Request) SetBlockHashOrBlockNumber(v interface{}) { + o.BlockHashOrBlockNumber = v +} + +func (o GetBlockV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BlockHashOrBlockNumber != nil { + toSerialize["blockHashOrBlockNumber"] = o.BlockHashOrBlockNumber + } + return toSerialize, nil +} + +type NullableGetBlockV1Request struct { + value *GetBlockV1Request + isSet bool +} + +func (v NullableGetBlockV1Request) Get() *GetBlockV1Request { + return v.value +} + +func (v *NullableGetBlockV1Request) Set(val *GetBlockV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockV1Request(val *GetBlockV1Request) *NullableGetBlockV1Request { + return &NullableGetBlockV1Request{value: val, isSet: true} +} + +func (v NullableGetBlockV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_response.go new file mode 100644 index 00000000000..fc7fd21913a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_block_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetBlockV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockV1Response{} + +// GetBlockV1Response struct for GetBlockV1Response +type GetBlockV1Response struct { + Block EvmBlock `json:"block"` +} + +// NewGetBlockV1Response instantiates a new GetBlockV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockV1Response(block EvmBlock) *GetBlockV1Response { + this := GetBlockV1Response{} + this.Block = block + return &this +} + +// NewGetBlockV1ResponseWithDefaults instantiates a new GetBlockV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockV1ResponseWithDefaults() *GetBlockV1Response { + this := GetBlockV1Response{} + return &this +} + +// GetBlock returns the Block field value +func (o *GetBlockV1Response) GetBlock() EvmBlock { + if o == nil { + var ret EvmBlock + return ret + } + + return o.Block +} + +// GetBlockOk returns a tuple with the Block field value +// and a boolean to check if the value has been set. +func (o *GetBlockV1Response) GetBlockOk() (*EvmBlock, bool) { + if o == nil { + return nil, false + } + return &o.Block, true +} + +// SetBlock sets field value +func (o *GetBlockV1Response) SetBlock(v EvmBlock) { + o.Block = v +} + +func (o GetBlockV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["block"] = o.Block + return toSerialize, nil +} + +type NullableGetBlockV1Response struct { + value *GetBlockV1Response + isSet bool +} + +func (v NullableGetBlockV1Response) Get() *GetBlockV1Response { + return v.value +} + +func (v *NullableGetBlockV1Response) Set(val *GetBlockV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockV1Response(val *GetBlockV1Response) *NullableGetBlockV1Response { + return &NullableGetBlockV1Response{value: val, isSet: true} +} + +func (v NullableGetBlockV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_request.go new file mode 100644 index 00000000000..c1ec7a9704d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_request.go @@ -0,0 +1,237 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetPastLogsV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetPastLogsV1Request{} + +// GetPastLogsV1Request struct for GetPastLogsV1Request +type GetPastLogsV1Request struct { + ToBlock interface{} `json:"toBlock,omitempty"` + FromBlock interface{} `json:"fromBlock,omitempty"` + Address interface{} `json:"address,omitempty"` + Topics []interface{} `json:"topics,omitempty"` +} + +// NewGetPastLogsV1Request instantiates a new GetPastLogsV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetPastLogsV1Request() *GetPastLogsV1Request { + this := GetPastLogsV1Request{} + return &this +} + +// NewGetPastLogsV1RequestWithDefaults instantiates a new GetPastLogsV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetPastLogsV1RequestWithDefaults() *GetPastLogsV1Request { + this := GetPastLogsV1Request{} + return &this +} + +// GetToBlock returns the ToBlock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetPastLogsV1Request) GetToBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ToBlock +} + +// GetToBlockOk returns a tuple with the ToBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetPastLogsV1Request) GetToBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ToBlock) { + return nil, false + } + return &o.ToBlock, true +} + +// HasToBlock returns a boolean if a field has been set. +func (o *GetPastLogsV1Request) HasToBlock() bool { + if o != nil && IsNil(o.ToBlock) { + return true + } + + return false +} + +// SetToBlock gets a reference to the given interface{} and assigns it to the ToBlock field. +func (o *GetPastLogsV1Request) SetToBlock(v interface{}) { + o.ToBlock = v +} + +// GetFromBlock returns the FromBlock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetPastLogsV1Request) GetFromBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FromBlock +} + +// GetFromBlockOk returns a tuple with the FromBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetPastLogsV1Request) GetFromBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.FromBlock) { + return nil, false + } + return &o.FromBlock, true +} + +// HasFromBlock returns a boolean if a field has been set. +func (o *GetPastLogsV1Request) HasFromBlock() bool { + if o != nil && IsNil(o.FromBlock) { + return true + } + + return false +} + +// SetFromBlock gets a reference to the given interface{} and assigns it to the FromBlock field. +func (o *GetPastLogsV1Request) SetFromBlock(v interface{}) { + o.FromBlock = v +} + +// GetAddress returns the Address field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetPastLogsV1Request) GetAddress() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetPastLogsV1Request) GetAddressOk() (*interface{}, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return &o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *GetPastLogsV1Request) HasAddress() bool { + if o != nil && IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given interface{} and assigns it to the Address field. +func (o *GetPastLogsV1Request) SetAddress(v interface{}) { + o.Address = v +} + +// GetTopics returns the Topics field value if set, zero value otherwise. +func (o *GetPastLogsV1Request) GetTopics() []interface{} { + if o == nil || IsNil(o.Topics) { + var ret []interface{} + return ret + } + return o.Topics +} + +// GetTopicsOk returns a tuple with the Topics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetPastLogsV1Request) GetTopicsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Topics) { + return nil, false + } + return o.Topics, true +} + +// HasTopics returns a boolean if a field has been set. +func (o *GetPastLogsV1Request) HasTopics() bool { + if o != nil && !IsNil(o.Topics) { + return true + } + + return false +} + +// SetTopics gets a reference to the given []interface{} and assigns it to the Topics field. +func (o *GetPastLogsV1Request) SetTopics(v []interface{}) { + o.Topics = v +} + +func (o GetPastLogsV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetPastLogsV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ToBlock != nil { + toSerialize["toBlock"] = o.ToBlock + } + if o.FromBlock != nil { + toSerialize["fromBlock"] = o.FromBlock + } + if o.Address != nil { + toSerialize["address"] = o.Address + } + if !IsNil(o.Topics) { + toSerialize["topics"] = o.Topics + } + return toSerialize, nil +} + +type NullableGetPastLogsV1Request struct { + value *GetPastLogsV1Request + isSet bool +} + +func (v NullableGetPastLogsV1Request) Get() *GetPastLogsV1Request { + return v.value +} + +func (v *NullableGetPastLogsV1Request) Set(val *GetPastLogsV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetPastLogsV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetPastLogsV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetPastLogsV1Request(val *GetPastLogsV1Request) *NullableGetPastLogsV1Request { + return &NullableGetPastLogsV1Request{value: val, isSet: true} +} + +func (v NullableGetPastLogsV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetPastLogsV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_response.go new file mode 100644 index 00000000000..d782089919e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_past_logs_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetPastLogsV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetPastLogsV1Response{} + +// GetPastLogsV1Response struct for GetPastLogsV1Response +type GetPastLogsV1Response struct { + Logs []EvmLog `json:"logs"` +} + +// NewGetPastLogsV1Response instantiates a new GetPastLogsV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetPastLogsV1Response(logs []EvmLog) *GetPastLogsV1Response { + this := GetPastLogsV1Response{} + this.Logs = logs + return &this +} + +// NewGetPastLogsV1ResponseWithDefaults instantiates a new GetPastLogsV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetPastLogsV1ResponseWithDefaults() *GetPastLogsV1Response { + this := GetPastLogsV1Response{} + return &this +} + +// GetLogs returns the Logs field value +func (o *GetPastLogsV1Response) GetLogs() []EvmLog { + if o == nil { + var ret []EvmLog + return ret + } + + return o.Logs +} + +// GetLogsOk returns a tuple with the Logs field value +// and a boolean to check if the value has been set. +func (o *GetPastLogsV1Response) GetLogsOk() ([]EvmLog, bool) { + if o == nil { + return nil, false + } + return o.Logs, true +} + +// SetLogs sets field value +func (o *GetPastLogsV1Response) SetLogs(v []EvmLog) { + o.Logs = v +} + +func (o GetPastLogsV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetPastLogsV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["logs"] = o.Logs + return toSerialize, nil +} + +type NullableGetPastLogsV1Response struct { + value *GetPastLogsV1Response + isSet bool +} + +func (v NullableGetPastLogsV1Response) Get() *GetPastLogsV1Response { + return v.value +} + +func (v *NullableGetPastLogsV1Response) Set(val *GetPastLogsV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetPastLogsV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetPastLogsV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetPastLogsV1Response(val *GetPastLogsV1Response) *NullableGetPastLogsV1Response { + return &NullableGetPastLogsV1Response{value: val, isSet: true} +} + +func (v NullableGetPastLogsV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetPastLogsV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_request.go new file mode 100644 index 00000000000..9d0c10b311a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_request.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetTransactionV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTransactionV1Request{} + +// GetTransactionV1Request struct for GetTransactionV1Request +type GetTransactionV1Request struct { + TransactionHash string `json:"transactionHash"` +} + +// NewGetTransactionV1Request instantiates a new GetTransactionV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTransactionV1Request(transactionHash string) *GetTransactionV1Request { + this := GetTransactionV1Request{} + this.TransactionHash = transactionHash + return &this +} + +// NewGetTransactionV1RequestWithDefaults instantiates a new GetTransactionV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTransactionV1RequestWithDefaults() *GetTransactionV1Request { + this := GetTransactionV1Request{} + return &this +} + +// GetTransactionHash returns the TransactionHash field value +func (o *GetTransactionV1Request) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *GetTransactionV1Request) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *GetTransactionV1Request) SetTransactionHash(v string) { + o.TransactionHash = v +} + +func (o GetTransactionV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTransactionV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionHash"] = o.TransactionHash + return toSerialize, nil +} + +type NullableGetTransactionV1Request struct { + value *GetTransactionV1Request + isSet bool +} + +func (v NullableGetTransactionV1Request) Get() *GetTransactionV1Request { + return v.value +} + +func (v *NullableGetTransactionV1Request) Set(val *GetTransactionV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetTransactionV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTransactionV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTransactionV1Request(val *GetTransactionV1Request) *NullableGetTransactionV1Request { + return &NullableGetTransactionV1Request{value: val, isSet: true} +} + +func (v NullableGetTransactionV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTransactionV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_response.go new file mode 100644 index 00000000000..9de613e1216 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_get_transaction_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the GetTransactionV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTransactionV1Response{} + +// GetTransactionV1Response struct for GetTransactionV1Response +type GetTransactionV1Response struct { + Transaction EvmTransaction `json:"transaction"` +} + +// NewGetTransactionV1Response instantiates a new GetTransactionV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTransactionV1Response(transaction EvmTransaction) *GetTransactionV1Response { + this := GetTransactionV1Response{} + this.Transaction = transaction + return &this +} + +// NewGetTransactionV1ResponseWithDefaults instantiates a new GetTransactionV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTransactionV1ResponseWithDefaults() *GetTransactionV1Response { + this := GetTransactionV1Response{} + return &this +} + +// GetTransaction returns the Transaction field value +func (o *GetTransactionV1Response) GetTransaction() EvmTransaction { + if o == nil { + var ret EvmTransaction + return ret + } + + return o.Transaction +} + +// GetTransactionOk returns a tuple with the Transaction field value +// and a boolean to check if the value has been set. +func (o *GetTransactionV1Response) GetTransactionOk() (*EvmTransaction, bool) { + if o == nil { + return nil, false + } + return &o.Transaction, true +} + +// SetTransaction sets field value +func (o *GetTransactionV1Response) SetTransaction(v EvmTransaction) { + o.Transaction = v +} + +func (o GetTransactionV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTransactionV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transaction"] = o.Transaction + return toSerialize, nil +} + +type NullableGetTransactionV1Response struct { + value *GetTransactionV1Response + isSet bool +} + +func (v NullableGetTransactionV1Response) Get() *GetTransactionV1Response { + return v.value +} + +func (v *NullableGetTransactionV1Response) Set(val *GetTransactionV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetTransactionV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTransactionV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTransactionV1Response(val *GetTransactionV1Response) *NullableGetTransactionV1Response { + return &NullableGetTransactionV1Response{value: val, isSet: true} +} + +func (v NullableGetTransactionV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTransactionV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go new file mode 100644 index 00000000000..613c9b70128 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go @@ -0,0 +1,559 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Request{} + +// InvokeContractV1Request struct for InvokeContractV1Request +type InvokeContractV1Request struct { + ContractName string `json:"contractName"` + SigningCredential Web3SigningCredential `json:"signingCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + // The application binary interface of the solidity contract, optional parameter + ContractAbi []interface{} `json:"contractAbi,omitempty"` + // Address of the solidity contract, optional parameter + ContractAddress *string `json:"contractAddress,omitempty"` + Value *Web3BlockHeaderTimestamp `json:"value,omitempty"` + Gas *Web3BlockHeaderTimestamp `json:"gas,omitempty"` + GasPrice *Web3BlockHeaderTimestamp `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId *string `json:"keychainId,omitempty"` + PrivateTransactionConfig *BesuPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Request(contractName string, signingCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}) *InvokeContractV1Request { + this := InvokeContractV1Request{} + this.ContractName = contractName + this.SigningCredential = signingCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request { + this := InvokeContractV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *InvokeContractV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *InvokeContractV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetSigningCredential returns the SigningCredential field value +func (o *InvokeContractV1Request) GetSigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.SigningCredential +} + +// GetSigningCredentialOk returns a tuple with the SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetSigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.SigningCredential, true +} + +// SetSigningCredential sets field value +func (o *InvokeContractV1Request) SetSigningCredential(v Web3SigningCredential) { + o.SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetContractAbi returns the ContractAbi field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetContractAbi() []interface{} { + if o == nil || IsNil(o.ContractAbi) { + var ret []interface{} + return ret + } + return o.ContractAbi +} + +// GetContractAbiOk returns a tuple with the ContractAbi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractAbiOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ContractAbi) { + return nil, false + } + return o.ContractAbi, true +} + +// HasContractAbi returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasContractAbi() bool { + if o != nil && !IsNil(o.ContractAbi) { + return true + } + + return false +} + +// SetContractAbi gets a reference to the given []interface{} and assigns it to the ContractAbi field. +func (o *InvokeContractV1Request) SetContractAbi(v []interface{}) { + o.ContractAbi = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress) { + var ret string + return ret + } + return *o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractAddressOk() (*string, bool) { + if o == nil || IsNil(o.ContractAddress) { + return nil, false + } + return o.ContractAddress, true +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasContractAddress() bool { + if o != nil && !IsNil(o.ContractAddress) { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given string and assigns it to the ContractAddress field. +func (o *InvokeContractV1Request) SetContractAddress(v string) { + o.ContractAddress = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetValue() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.Value) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetValueOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the Value field. +func (o *InvokeContractV1Request) SetValue(v Web3BlockHeaderTimestamp) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGas() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.Gas) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the Gas field. +func (o *InvokeContractV1Request) SetGas(v Web3BlockHeaderTimestamp) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGasPrice() Web3BlockHeaderTimestamp { + if o == nil || IsNil(o.GasPrice) { + var ret Web3BlockHeaderTimestamp + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasPriceOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given Web3BlockHeaderTimestamp and assigns it to the GasPrice field. +func (o *InvokeContractV1Request) SetGasPrice(v Web3BlockHeaderTimestamp) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetKeychainId returns the KeychainId field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetKeychainId() string { + if o == nil || IsNil(o.KeychainId) { + var ret string + return ret + } + return *o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil || IsNil(o.KeychainId) { + return nil, false + } + return o.KeychainId, true +} + +// HasKeychainId returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasKeychainId() bool { + if o != nil && !IsNil(o.KeychainId) { + return true + } + + return false +} + +// SetKeychainId gets a reference to the given string and assigns it to the KeychainId field. +func (o *InvokeContractV1Request) SetKeychainId(v string) { + o.KeychainId = &v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetPrivateTransactionConfig() BesuPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret BesuPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given BesuPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *InvokeContractV1Request) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o InvokeContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["signingCredential"] = o.SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !IsNil(o.ContractAbi) { + toSerialize["contractAbi"] = o.ContractAbi + } + if !IsNil(o.ContractAddress) { + toSerialize["contractAddress"] = o.ContractAddress + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + if !IsNil(o.KeychainId) { + toSerialize["keychainId"] = o.KeychainId + } + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableInvokeContractV1Request struct { + value *InvokeContractV1Request + isSet bool +} + +func (v NullableInvokeContractV1Request) Get() *InvokeContractV1Request { + return v.value +} + +func (v *NullableInvokeContractV1Request) Set(val *InvokeContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Request(val *InvokeContractV1Request) *NullableInvokeContractV1Request { + return &NullableInvokeContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..779c0afaed6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || IsNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !IsNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_receipt_type.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_receipt_type.go new file mode 100644 index 00000000000..116cd0c11e3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_receipt_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// ReceiptType Enumerates the possible types of receipts that can be waited for by someone or something that has requested the execution of a transaction on a ledger. +type ReceiptType string + +// List of ReceiptType +const ( + NODE_TX_POOL_ACK ReceiptType = "NODE_TX_POOL_ACK" + LEDGER_BLOCK_ACK ReceiptType = "LEDGER_BLOCK_ACK" +) + +// All allowed values of ReceiptType enum +var AllowedReceiptTypeEnumValues = []ReceiptType{ + "NODE_TX_POOL_ACK", + "LEDGER_BLOCK_ACK", +} + +func (v *ReceiptType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ReceiptType(value) + for _, existing := range AllowedReceiptTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ReceiptType", value) +} + +// NewReceiptTypeFromValue returns a pointer to a valid ReceiptType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewReceiptTypeFromValue(v string) (*ReceiptType, error) { + ev := ReceiptType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ReceiptType: valid values are %v", v, AllowedReceiptTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ReceiptType) IsValid() bool { + for _, existing := range AllowedReceiptTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ReceiptType value +func (v ReceiptType) Ptr() *ReceiptType { + return &v +} + +type NullableReceiptType struct { + value *ReceiptType + isSet bool +} + +func (v NullableReceiptType) Get() *ReceiptType { + return v.value +} + +func (v *NullableReceiptType) Set(val *ReceiptType) { + v.value = val + v.isSet = true +} + +func (v NullableReceiptType) IsSet() bool { + return v.isSet +} + +func (v *NullableReceiptType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReceiptType(val *ReceiptType) *NullableReceiptType { + return &NullableReceiptType{value: val, isSet: true} +} + +func (v NullableReceiptType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReceiptType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_request.go new file mode 100644 index 00000000000..b1d676e1fe2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_request.go @@ -0,0 +1,207 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the RunTransactionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionRequest{} + +// RunTransactionRequest struct for RunTransactionRequest +type RunTransactionRequest struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + TransactionConfig BesuTransactionConfig `json:"transactionConfig"` + ConsistencyStrategy ConsistencyStrategy `json:"consistencyStrategy"` + PrivateTransactionConfig *BesuPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewRunTransactionRequest instantiates a new RunTransactionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig BesuTransactionConfig, consistencyStrategy ConsistencyStrategy) *RunTransactionRequest { + this := RunTransactionRequest{} + this.Web3SigningCredential = web3SigningCredential + this.TransactionConfig = transactionConfig + this.ConsistencyStrategy = consistencyStrategy + return &this +} + +// NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionRequestWithDefaults() *RunTransactionRequest { + this := RunTransactionRequest{} + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetTransactionConfig returns the TransactionConfig field value +func (o *RunTransactionRequest) GetTransactionConfig() BesuTransactionConfig { + if o == nil { + var ret BesuTransactionConfig + return ret + } + + return o.TransactionConfig +} + +// GetTransactionConfigOk returns a tuple with the TransactionConfig field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetTransactionConfigOk() (*BesuTransactionConfig, bool) { + if o == nil { + return nil, false + } + return &o.TransactionConfig, true +} + +// SetTransactionConfig sets field value +func (o *RunTransactionRequest) SetTransactionConfig(v BesuTransactionConfig) { + o.TransactionConfig = v +} + +// GetConsistencyStrategy returns the ConsistencyStrategy field value +func (o *RunTransactionRequest) GetConsistencyStrategy() ConsistencyStrategy { + if o == nil { + var ret ConsistencyStrategy + return ret + } + + return o.ConsistencyStrategy +} + +// GetConsistencyStrategyOk returns a tuple with the ConsistencyStrategy field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetConsistencyStrategyOk() (*ConsistencyStrategy, bool) { + if o == nil { + return nil, false + } + return &o.ConsistencyStrategy, true +} + +// SetConsistencyStrategy sets field value +func (o *RunTransactionRequest) SetConsistencyStrategy(v ConsistencyStrategy) { + o.ConsistencyStrategy = v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetPrivateTransactionConfig() BesuPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret BesuPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetPrivateTransactionConfigOk() (*BesuPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given BesuPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *RunTransactionRequest) SetPrivateTransactionConfig(v BesuPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o RunTransactionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["transactionConfig"] = o.TransactionConfig + toSerialize["consistencyStrategy"] = o.ConsistencyStrategy + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableRunTransactionRequest struct { + value *RunTransactionRequest + isSet bool +} + +func (v NullableRunTransactionRequest) Get() *RunTransactionRequest { + return v.value +} + +func (v *NullableRunTransactionRequest) Set(val *RunTransactionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequest(val *RunTransactionRequest) *NullableRunTransactionRequest { + return &NullableRunTransactionRequest{value: val, isSet: true} +} + +func (v NullableRunTransactionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..f6b6f4a0977 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_request.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_request.go new file mode 100644 index 00000000000..6692e82dce1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_request.go @@ -0,0 +1,172 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SignTransactionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SignTransactionRequest{} + +// SignTransactionRequest struct for SignTransactionRequest +type SignTransactionRequest struct { + KeychainId string `json:"keychainId"` + KeychainRef string `json:"keychainRef"` + // The transaction hash of ledger will be used to fetch the contain. + TransactionHash string `json:"transactionHash"` +} + +// NewSignTransactionRequest instantiates a new SignTransactionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSignTransactionRequest(keychainId string, keychainRef string, transactionHash string) *SignTransactionRequest { + this := SignTransactionRequest{} + this.KeychainId = keychainId + this.KeychainRef = keychainRef + this.TransactionHash = transactionHash + return &this +} + +// NewSignTransactionRequestWithDefaults instantiates a new SignTransactionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSignTransactionRequestWithDefaults() *SignTransactionRequest { + this := SignTransactionRequest{} + return &this +} + +// GetKeychainId returns the KeychainId field value +func (o *SignTransactionRequest) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *SignTransactionRequest) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *SignTransactionRequest) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetKeychainRef returns the KeychainRef field value +func (o *SignTransactionRequest) GetKeychainRef() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainRef +} + +// GetKeychainRefOk returns a tuple with the KeychainRef field value +// and a boolean to check if the value has been set. +func (o *SignTransactionRequest) GetKeychainRefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainRef, true +} + +// SetKeychainRef sets field value +func (o *SignTransactionRequest) SetKeychainRef(v string) { + o.KeychainRef = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *SignTransactionRequest) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *SignTransactionRequest) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *SignTransactionRequest) SetTransactionHash(v string) { + o.TransactionHash = v +} + +func (o SignTransactionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SignTransactionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["keychainId"] = o.KeychainId + toSerialize["keychainRef"] = o.KeychainRef + toSerialize["transactionHash"] = o.TransactionHash + return toSerialize, nil +} + +type NullableSignTransactionRequest struct { + value *SignTransactionRequest + isSet bool +} + +func (v NullableSignTransactionRequest) Get() *SignTransactionRequest { + return v.value +} + +func (v *NullableSignTransactionRequest) Set(val *SignTransactionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSignTransactionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSignTransactionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSignTransactionRequest(val *SignTransactionRequest) *NullableSignTransactionRequest { + return &NullableSignTransactionRequest{value: val, isSet: true} +} + +func (v NullableSignTransactionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSignTransactionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_response.go new file mode 100644 index 00000000000..167e760fcd8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_sign_transaction_response.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SignTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SignTransactionResponse{} + +// SignTransactionResponse struct for SignTransactionResponse +type SignTransactionResponse struct { + // The signatures of ledger from the corresponding transaction hash. + Signature string `json:"signature"` +} + +// NewSignTransactionResponse instantiates a new SignTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSignTransactionResponse(signature string) *SignTransactionResponse { + this := SignTransactionResponse{} + this.Signature = signature + return &this +} + +// NewSignTransactionResponseWithDefaults instantiates a new SignTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSignTransactionResponseWithDefaults() *SignTransactionResponse { + this := SignTransactionResponse{} + return &this +} + +// GetSignature returns the Signature field value +func (o *SignTransactionResponse) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *SignTransactionResponse) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *SignTransactionResponse) SetSignature(v string) { + o.Signature = v +} + +func (o SignTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SignTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableSignTransactionResponse struct { + value *SignTransactionResponse + isSet bool +} + +func (v NullableSignTransactionResponse) Get() *SignTransactionResponse { + return v.value +} + +func (v *NullableSignTransactionResponse) Set(val *SignTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSignTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSignTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSignTransactionResponse(val *SignTransactionResponse) *NullableSignTransactionResponse { + return &NullableSignTransactionResponse{value: val, isSet: true} +} + +func (v NullableSignTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSignTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go new file mode 100644 index 00000000000..a0529ceb3fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifact{} + +// SolidityContractJsonArtifact struct for SolidityContractJsonArtifact +type SolidityContractJsonArtifact struct { + ContractName string `json:"contractName"` + Metadata *string `json:"metadata,omitempty"` + Bytecode *string `json:"bytecode,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler *SolidityContractJsonArtifactCompiler `json:"compiler,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates *SolidityContractJsonArtifactGasEstimates `json:"gasEstimates,omitempty"` +} + +// NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifact(contractName string) *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + this.ContractName = contractName + return &this +} + +// NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *SolidityContractJsonArtifact) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *SolidityContractJsonArtifact) SetContractName(v string) { + o.ContractName = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *SolidityContractJsonArtifact) SetMetadata(v string) { + o.Metadata = &v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetBytecode() string { + if o == nil || IsNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasBytecode() bool { + if o != nil && !IsNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *SolidityContractJsonArtifact) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string { + if o == nil || IsNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool { + if o != nil && !IsNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourceMap() string { + if o == nil || IsNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourceMap() bool { + if o != nil && !IsNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *SolidityContractJsonArtifact) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string { + if o == nil || IsNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool { + if o != nil && !IsNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourcePath() string { + if o == nil || IsNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool) { + if o == nil || IsNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourcePath() bool { + if o != nil && !IsNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *SolidityContractJsonArtifact) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler { + if o == nil || IsNil(o.Compiler) { + var ret SolidityContractJsonArtifactCompiler + return ret + } + return *o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool) { + if o == nil || IsNil(o.Compiler) { + return nil, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasCompiler() bool { + if o != nil && !IsNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given SolidityContractJsonArtifactCompiler and assigns it to the Compiler field. +func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler) { + o.Compiler = &v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{} { + if o == nil || IsNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool { + if o != nil && !IsNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates { + if o == nil || IsNil(o.GasEstimates) { + var ret SolidityContractJsonArtifactGasEstimates + return ret + } + return *o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool) { + if o == nil || IsNil(o.GasEstimates) { + return nil, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasGasEstimates() bool { + if o != nil && !IsNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given SolidityContractJsonArtifactGasEstimates and assigns it to the GasEstimates field. +func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates) { + o.GasEstimates = &v +} + +func (o SolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + if !IsNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !IsNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !IsNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !IsNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !IsNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !IsNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !IsNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifact struct { + value *SolidityContractJsonArtifact + isSet bool +} + +func (v NullableSolidityContractJsonArtifact) Get() *SolidityContractJsonArtifact { + return v.value +} + +func (v *NullableSolidityContractJsonArtifact) Set(val *SolidityContractJsonArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifact(val *SolidityContractJsonArtifact) *NullableSolidityContractJsonArtifact { + return &NullableSolidityContractJsonArtifact{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go new file mode 100644 index 00000000000..326e1c3b833 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go @@ -0,0 +1,188 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactCompiler type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactCompiler{} + +// SolidityContractJsonArtifactCompiler struct for SolidityContractJsonArtifactCompiler +type SolidityContractJsonArtifactCompiler struct { + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SolidityContractJsonArtifactCompiler SolidityContractJsonArtifactCompiler + +// NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SolidityContractJsonArtifactCompiler) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string) { + o.Version = &v +} + +func (o SolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactCompiler) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SolidityContractJsonArtifactCompiler) UnmarshalJSON(bytes []byte) (err error) { + varSolidityContractJsonArtifactCompiler := _SolidityContractJsonArtifactCompiler{} + + if err = json.Unmarshal(bytes, &varSolidityContractJsonArtifactCompiler); err == nil { + *o = SolidityContractJsonArtifactCompiler(varSolidityContractJsonArtifactCompiler) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSolidityContractJsonArtifactCompiler struct { + value *SolidityContractJsonArtifactCompiler + isSet bool +} + +func (v NullableSolidityContractJsonArtifactCompiler) Get() *SolidityContractJsonArtifactCompiler { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Set(val *SolidityContractJsonArtifactCompiler) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactCompiler) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactCompiler(val *SolidityContractJsonArtifactCompiler) *NullableSolidityContractJsonArtifactCompiler { + return &NullableSolidityContractJsonArtifactCompiler{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactCompiler) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go new file mode 100644 index 00000000000..56e71655eba --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimates{} + +// SolidityContractJsonArtifactGasEstimates struct for SolidityContractJsonArtifactGasEstimates +type SolidityContractJsonArtifactGasEstimates struct { + Creation *SolidityContractJsonArtifactGasEstimatesCreation `json:"creation,omitempty"` + External map[string]interface{} `json:"external,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// GetCreation returns the Creation field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation { + if o == nil || IsNil(o.Creation) { + var ret SolidityContractJsonArtifactGasEstimatesCreation + return ret + } + return *o.Creation +} + +// GetCreationOk returns a tuple with the Creation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool) { + if o == nil || IsNil(o.Creation) { + return nil, false + } + return o.Creation, true +} + +// HasCreation returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool { + if o != nil && !IsNil(o.Creation) { + return true + } + + return false +} + +// SetCreation gets a reference to the given SolidityContractJsonArtifactGasEstimatesCreation and assigns it to the Creation field. +func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation) { + o.Creation = &v +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{} { + if o == nil || IsNil(o.External) { + var ret map[string]interface{} + return ret + } + return o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.External) { + return map[string]interface{}{}, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool { + if o != nil && !IsNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given map[string]interface{} and assigns it to the External field. +func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{}) { + o.External = v +} + +func (o SolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Creation) { + toSerialize["creation"] = o.Creation + } + if !IsNil(o.External) { + toSerialize["external"] = o.External + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimates struct { + value *SolidityContractJsonArtifactGasEstimates + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) Get() *SolidityContractJsonArtifactGasEstimates { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Set(val *SolidityContractJsonArtifactGasEstimates) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimates(val *SolidityContractJsonArtifactGasEstimates) *NullableSolidityContractJsonArtifactGasEstimates { + return &NullableSolidityContractJsonArtifactGasEstimates{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go new file mode 100644 index 00000000000..c64b12779c7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimatesCreation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimatesCreation{} + +// SolidityContractJsonArtifactGasEstimatesCreation struct for SolidityContractJsonArtifactGasEstimatesCreation +type SolidityContractJsonArtifactGasEstimatesCreation struct { + CodeDepositCost *string `json:"codeDepositCost,omitempty"` + ExecutionCost *string `json:"executionCost,omitempty"` + TotalCost *string `json:"totalCost,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// GetCodeDepositCost returns the CodeDepositCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string { + if o == nil || IsNil(o.CodeDepositCost) { + var ret string + return ret + } + return *o.CodeDepositCost +} + +// GetCodeDepositCostOk returns a tuple with the CodeDepositCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool) { + if o == nil || IsNil(o.CodeDepositCost) { + return nil, false + } + return o.CodeDepositCost, true +} + +// HasCodeDepositCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool { + if o != nil && !IsNil(o.CodeDepositCost) { + return true + } + + return false +} + +// SetCodeDepositCost gets a reference to the given string and assigns it to the CodeDepositCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string) { + o.CodeDepositCost = &v +} + +// GetExecutionCost returns the ExecutionCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string { + if o == nil || IsNil(o.ExecutionCost) { + var ret string + return ret + } + return *o.ExecutionCost +} + +// GetExecutionCostOk returns a tuple with the ExecutionCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionCost) { + return nil, false + } + return o.ExecutionCost, true +} + +// HasExecutionCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool { + if o != nil && !IsNil(o.ExecutionCost) { + return true + } + + return false +} + +// SetExecutionCost gets a reference to the given string and assigns it to the ExecutionCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string) { + o.ExecutionCost = &v +} + +// GetTotalCost returns the TotalCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string { + if o == nil || IsNil(o.TotalCost) { + var ret string + return ret + } + return *o.TotalCost +} + +// GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool) { + if o == nil || IsNil(o.TotalCost) { + return nil, false + } + return o.TotalCost, true +} + +// HasTotalCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool { + if o != nil && !IsNil(o.TotalCost) { + return true + } + + return false +} + +// SetTotalCost gets a reference to the given string and assigns it to the TotalCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string) { + o.TotalCost = &v +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CodeDepositCost) { + toSerialize["codeDepositCost"] = o.CodeDepositCost + } + if !IsNil(o.ExecutionCost) { + toSerialize["executionCost"] = o.ExecutionCost + } + if !IsNil(o.TotalCost) { + toSerialize["totalCost"] = o.TotalCost + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimatesCreation struct { + value *SolidityContractJsonArtifactGasEstimatesCreation + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) Get() *SolidityContractJsonArtifactGasEstimatesCreation { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Set(val *SolidityContractJsonArtifactGasEstimatesCreation) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimatesCreation(val *SolidityContractJsonArtifactGasEstimatesCreation) *NullableSolidityContractJsonArtifactGasEstimatesCreation { + return &NullableSolidityContractJsonArtifactGasEstimatesCreation{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..6b70f449173 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 the model 'WatchBlocksV1' +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.besu.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go new file mode 100644 index 00000000000..3c03f97b305 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1Progress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1Progress{} + +// WatchBlocksV1Progress struct for WatchBlocksV1Progress +type WatchBlocksV1Progress struct { + BlockHeader Web3BlockHeader `json:"blockHeader"` +} + +// NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1Progress(blockHeader Web3BlockHeader) *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + this.BlockHeader = blockHeader + return &this +} + +// NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + return &this +} + +// GetBlockHeader returns the BlockHeader field value +func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader { + if o == nil { + var ret Web3BlockHeader + return ret + } + + return o.BlockHeader +} + +// GetBlockHeaderOk returns a tuple with the BlockHeader field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool) { + if o == nil { + return nil, false + } + return &o.BlockHeader, true +} + +// SetBlockHeader sets field value +func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader) { + o.BlockHeader = v +} + +func (o WatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1Progress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["blockHeader"] = o.BlockHeader + return toSerialize, nil +} + +type NullableWatchBlocksV1Progress struct { + value *WatchBlocksV1Progress + isSet bool +} + +func (v NullableWatchBlocksV1Progress) Get() *WatchBlocksV1Progress { + return v.value +} + +func (v *NullableWatchBlocksV1Progress) Set(val *WatchBlocksV1Progress) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1Progress) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1Progress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1Progress(val *WatchBlocksV1Progress) *NullableWatchBlocksV1Progress { + return &NullableWatchBlocksV1Progress{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1Progress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header.go new file mode 100644 index 00000000000..4da0f9409c5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header.go @@ -0,0 +1,468 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the Web3BlockHeader type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3BlockHeader{} + +// Web3BlockHeader struct for Web3BlockHeader +type Web3BlockHeader struct { + Number float32 `json:"number"` + Hash string `json:"hash"` + ParentHash string `json:"parentHash"` + Nonce string `json:"nonce"` + Sha3Uncles string `json:"sha3Uncles"` + LogsBloom string `json:"logsBloom"` + TransactionRoot string `json:"transactionRoot"` + StateRoot string `json:"stateRoot"` + ReceiptRoot string `json:"receiptRoot"` + Miner string `json:"miner"` + ExtraData string `json:"extraData"` + GasLimit int32 `json:"gasLimit"` + GasUsed int32 `json:"gasUsed"` + Timestamp Web3BlockHeaderTimestamp `json:"timestamp"` +} + +// NewWeb3BlockHeader instantiates a new Web3BlockHeader object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, transactionRoot string, stateRoot string, receiptRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp Web3BlockHeaderTimestamp) *Web3BlockHeader { + this := Web3BlockHeader{} + this.Number = number + this.Hash = hash + this.ParentHash = parentHash + this.Nonce = nonce + this.Sha3Uncles = sha3Uncles + this.LogsBloom = logsBloom + this.TransactionRoot = transactionRoot + this.StateRoot = stateRoot + this.ReceiptRoot = receiptRoot + this.Miner = miner + this.ExtraData = extraData + this.GasLimit = gasLimit + this.GasUsed = gasUsed + this.Timestamp = timestamp + return &this +} + +// NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader { + this := Web3BlockHeader{} + return &this +} + +// GetNumber returns the Number field value +func (o *Web3BlockHeader) GetNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Number, true +} + +// SetNumber sets field value +func (o *Web3BlockHeader) SetNumber(v float32) { + o.Number = v +} + +// GetHash returns the Hash field value +func (o *Web3BlockHeader) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *Web3BlockHeader) SetHash(v string) { + o.Hash = v +} + +// GetParentHash returns the ParentHash field value +func (o *Web3BlockHeader) GetParentHash() string { + if o == nil { + var ret string + return ret + } + + return o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetParentHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParentHash, true +} + +// SetParentHash sets field value +func (o *Web3BlockHeader) SetParentHash(v string) { + o.ParentHash = v +} + +// GetNonce returns the Nonce field value +func (o *Web3BlockHeader) GetNonce() string { + if o == nil { + var ret string + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNonceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *Web3BlockHeader) SetNonce(v string) { + o.Nonce = v +} + +// GetSha3Uncles returns the Sha3Uncles field value +func (o *Web3BlockHeader) GetSha3Uncles() string { + if o == nil { + var ret string + return ret + } + + return o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha3Uncles, true +} + +// SetSha3Uncles sets field value +func (o *Web3BlockHeader) SetSha3Uncles(v string) { + o.Sha3Uncles = v +} + +// GetLogsBloom returns the LogsBloom field value +func (o *Web3BlockHeader) GetLogsBloom() string { + if o == nil { + var ret string + return ret + } + + return o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsBloom, true +} + +// SetLogsBloom sets field value +func (o *Web3BlockHeader) SetLogsBloom(v string) { + o.LogsBloom = v +} + +// GetTransactionRoot returns the TransactionRoot field value +func (o *Web3BlockHeader) GetTransactionRoot() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionRoot +} + +// GetTransactionRootOk returns a tuple with the TransactionRoot field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTransactionRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionRoot, true +} + +// SetTransactionRoot sets field value +func (o *Web3BlockHeader) SetTransactionRoot(v string) { + o.TransactionRoot = v +} + +// GetStateRoot returns the StateRoot field value +func (o *Web3BlockHeader) GetStateRoot() string { + if o == nil { + var ret string + return ret + } + + return o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetStateRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateRoot, true +} + +// SetStateRoot sets field value +func (o *Web3BlockHeader) SetStateRoot(v string) { + o.StateRoot = v +} + +// GetReceiptRoot returns the ReceiptRoot field value +func (o *Web3BlockHeader) GetReceiptRoot() string { + if o == nil { + var ret string + return ret + } + + return o.ReceiptRoot +} + +// GetReceiptRootOk returns a tuple with the ReceiptRoot field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetReceiptRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReceiptRoot, true +} + +// SetReceiptRoot sets field value +func (o *Web3BlockHeader) SetReceiptRoot(v string) { + o.ReceiptRoot = v +} + +// GetMiner returns the Miner field value +func (o *Web3BlockHeader) GetMiner() string { + if o == nil { + var ret string + return ret + } + + return o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetMinerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Miner, true +} + +// SetMiner sets field value +func (o *Web3BlockHeader) SetMiner(v string) { + o.Miner = v +} + +// GetExtraData returns the ExtraData field value +func (o *Web3BlockHeader) GetExtraData() string { + if o == nil { + var ret string + return ret + } + + return o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExtraData, true +} + +// SetExtraData sets field value +func (o *Web3BlockHeader) SetExtraData(v string) { + o.ExtraData = v +} + +// GetGasLimit returns the GasLimit field value +func (o *Web3BlockHeader) GetGasLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasLimit, true +} + +// SetGasLimit sets field value +func (o *Web3BlockHeader) SetGasLimit(v int32) { + o.GasLimit = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3BlockHeader) GetGasUsed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3BlockHeader) SetGasUsed(v int32) { + o.GasUsed = v +} + +// GetTimestamp returns the Timestamp field value +func (o *Web3BlockHeader) GetTimestamp() Web3BlockHeaderTimestamp { + if o == nil { + var ret Web3BlockHeaderTimestamp + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTimestampOk() (*Web3BlockHeaderTimestamp, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *Web3BlockHeader) SetTimestamp(v Web3BlockHeaderTimestamp) { + o.Timestamp = v +} + +func (o Web3BlockHeader) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3BlockHeader) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["number"] = o.Number + toSerialize["hash"] = o.Hash + toSerialize["parentHash"] = o.ParentHash + toSerialize["nonce"] = o.Nonce + toSerialize["sha3Uncles"] = o.Sha3Uncles + toSerialize["logsBloom"] = o.LogsBloom + toSerialize["transactionRoot"] = o.TransactionRoot + toSerialize["stateRoot"] = o.StateRoot + toSerialize["receiptRoot"] = o.ReceiptRoot + toSerialize["miner"] = o.Miner + toSerialize["extraData"] = o.ExtraData + toSerialize["gasLimit"] = o.GasLimit + toSerialize["gasUsed"] = o.GasUsed + toSerialize["timestamp"] = o.Timestamp + return toSerialize, nil +} + +type NullableWeb3BlockHeader struct { + value *Web3BlockHeader + isSet bool +} + +func (v NullableWeb3BlockHeader) Get() *Web3BlockHeader { + return v.value +} + +func (v *NullableWeb3BlockHeader) Set(val *Web3BlockHeader) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3BlockHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3BlockHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3BlockHeader(val *Web3BlockHeader) *NullableWeb3BlockHeader { + return &NullableWeb3BlockHeader{value: val, isSet: true} +} + +func (v NullableWeb3BlockHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3BlockHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header_timestamp.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header_timestamp.go new file mode 100644 index 00000000000..87fca2f2b2b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_block_header_timestamp.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3BlockHeaderTimestamp - struct for Web3BlockHeaderTimestamp +type Web3BlockHeaderTimestamp struct { + Float32 *float32 + String *string +} + +// float32AsWeb3BlockHeaderTimestamp is a convenience function that returns float32 wrapped in Web3BlockHeaderTimestamp +func Float32AsWeb3BlockHeaderTimestamp(v *float32) Web3BlockHeaderTimestamp { + return Web3BlockHeaderTimestamp{ + Float32: v, + } +} + +// stringAsWeb3BlockHeaderTimestamp is a convenience function that returns string wrapped in Web3BlockHeaderTimestamp +func StringAsWeb3BlockHeaderTimestamp(v *string) Web3BlockHeaderTimestamp { + return Web3BlockHeaderTimestamp{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3BlockHeaderTimestamp) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3BlockHeaderTimestamp)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3BlockHeaderTimestamp)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3BlockHeaderTimestamp) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3BlockHeaderTimestamp) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableWeb3BlockHeaderTimestamp struct { + value *Web3BlockHeaderTimestamp + isSet bool +} + +func (v NullableWeb3BlockHeaderTimestamp) Get() *Web3BlockHeaderTimestamp { + return v.value +} + +func (v *NullableWeb3BlockHeaderTimestamp) Set(val *Web3BlockHeaderTimestamp) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3BlockHeaderTimestamp) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3BlockHeaderTimestamp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3BlockHeaderTimestamp(val *Web3BlockHeaderTimestamp) *NullableWeb3BlockHeaderTimestamp { + return &NullableWeb3BlockHeaderTimestamp{value: val, isSet: true} +} + +func (v NullableWeb3BlockHeaderTimestamp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3BlockHeaderTimestamp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..6be7f97f534 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..4972e45f77b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,201 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId string `json:"keychainId"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + this.KeychainId = keychainId + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..f276b5cd947 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..e806af5c2e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..891fcc15888 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..3e5972900fa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,385 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..5c9286c28f9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..443b8dbfa69 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,157 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-besu_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeployContractSolBytecodeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetBalanceV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetBalanceV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetBesuRecordV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetBesuRecordV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetBlockV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetBlockV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOpenApiSpecV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetOpenApiSpecV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPastLogsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPastLogsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService SignTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.SignTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..f25be3163f4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Besu + +Can perform basic tasks on a Besu ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-besu + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/README.md index a78df58340d..7121e86f3b3 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Besu - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata] Can perform basic tasks on a Besu ledger diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 761736ad0a5..58816c7b511 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 8b06000b621..5dc819c5ac7 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index a2e27186654..118cda06d9c 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index b4181668cbd..076a581ba3e 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index a1f4dbc3de0..c15d6409fc5 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 05db1cb82ee..9de0151ce3b 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 8ccb5089630..4b3042c4801 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuPrivateTransactionConfig.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuPrivateTransactionConfig.java index 62aae769f95..82102715b70 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuPrivateTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuPrivateTransactionConfig.java @@ -52,7 +52,7 @@ /** * BesuPrivateTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class BesuPrivateTransactionConfig { public static final String SERIALIZED_NAME_PRIVATE_FROM = "privateFrom"; @SerializedName(SERIALIZED_NAME_PRIVATE_FROM) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfig.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfig.java index c90f1ec9670..6e679d65710 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfig.java @@ -53,7 +53,7 @@ /** * BesuTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class BesuTransactionConfig { public static final String SERIALIZED_NAME_RAW_TRANSACTION = "rawTransaction"; @SerializedName(SERIALIZED_NAME_RAW_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfigTo.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfigTo.java index 1b3a9add14a..1df41d464d3 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfigTo.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/BesuTransactionConfigTo.java @@ -49,7 +49,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class BesuTransactionConfigTo extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(BesuTransactionConfigTo.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java index 26a8d85c695..713d65d84ed 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java @@ -51,7 +51,7 @@ /** * ConsistencyStrategy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class ConsistencyStrategy { public static final String SERIALIZED_NAME_RECEIPT_TYPE = "receiptType"; @SerializedName(SERIALIZED_NAME_RECEIPT_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java index a70a4345c99..e9097bff484 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java @@ -55,7 +55,7 @@ /** * DeployContractSolidityBytecodeV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java index 4103ef5211b..f96c702e8dc 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java @@ -51,7 +51,7 @@ /** * DeployContractSolidityBytecodeV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmBlock.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmBlock.java index 961fa94d7b0..4725513d2f0 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmBlock.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmBlock.java @@ -54,7 +54,7 @@ /** * EvmBlock */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class EvmBlock { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmLog.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmLog.java index d2059b1a812..637eb4854f6 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmLog.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmLog.java @@ -53,7 +53,7 @@ /** * EvmLog */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class EvmLog { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmTransaction.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmTransaction.java index 15b1d15db2d..e0e8fe27c39 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmTransaction.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EvmTransaction.java @@ -52,7 +52,7 @@ /** * EvmTransaction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class EvmTransaction { public static final String SERIALIZED_NAME_HASH = "hash"; @SerializedName(SERIALIZED_NAME_HASH) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Request.java index 4f269612506..3bd03908eff 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Request.java @@ -51,7 +51,7 @@ /** * GetBalanceV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBalanceV1Request { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Response.java index 20249bff2e8..929bdf5b518 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBalanceV1Response.java @@ -50,7 +50,7 @@ /** * GetBalanceV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBalanceV1Response { public static final String SERIALIZED_NAME_BALANCE = "balance"; @SerializedName(SERIALIZED_NAME_BALANCE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Request.java index a5be7ab6483..0aa8150e5b0 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Request.java @@ -51,7 +51,7 @@ /** * GetBesuRecordV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBesuRecordV1Request { public static final String SERIALIZED_NAME_INVOKE_CALL = "invokeCall"; @SerializedName(SERIALIZED_NAME_INVOKE_CALL) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Response.java index 0f62ae9bc92..f3c325bb800 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBesuRecordV1Response.java @@ -51,7 +51,7 @@ /** * GetBesuRecordV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBesuRecordV1Response { public static final String SERIALIZED_NAME_LEDGER_ID = "ledgerId"; @SerializedName(SERIALIZED_NAME_LEDGER_ID) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Request.java index 7a788d5b70d..1b311bc66e8 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Request.java @@ -50,7 +50,7 @@ /** * GetBlockV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBlockV1Request { public static final String SERIALIZED_NAME_BLOCK_HASH_OR_BLOCK_NUMBER = "blockHashOrBlockNumber"; @SerializedName(SERIALIZED_NAME_BLOCK_HASH_OR_BLOCK_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Response.java index 90193b7933c..62c0aa4c314 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockV1Response.java @@ -51,7 +51,7 @@ /** * GetBlockV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetBlockV1Response { public static final String SERIALIZED_NAME_BLOCK = "block"; @SerializedName(SERIALIZED_NAME_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Request.java index 53b6095993e..d44aa9e8762 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Request.java @@ -53,7 +53,7 @@ /** * GetPastLogsV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetPastLogsV1Request { public static final String SERIALIZED_NAME_TO_BLOCK = "toBlock"; @SerializedName(SERIALIZED_NAME_TO_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Response.java index 911512c0638..7caa865adaf 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPastLogsV1Response.java @@ -53,7 +53,7 @@ /** * GetPastLogsV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetPastLogsV1Response { public static final String SERIALIZED_NAME_LOGS = "logs"; @SerializedName(SERIALIZED_NAME_LOGS) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Request.java index 616bb49afa8..0c5e6134464 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Request.java @@ -50,7 +50,7 @@ /** * GetTransactionV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetTransactionV1Request { public static final String SERIALIZED_NAME_TRANSACTION_HASH = "transactionHash"; @SerializedName(SERIALIZED_NAME_TRANSACTION_HASH) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Response.java index 039b235c1c6..91071beba30 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionV1Response.java @@ -51,7 +51,7 @@ /** * GetTransactionV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class GetTransactionV1Response { public static final String SERIALIZED_NAME_TRANSACTION = "transaction"; @SerializedName(SERIALIZED_NAME_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java index 56c5177c2fd..9ce22ba7659 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java @@ -57,7 +57,7 @@ /** * InvokeContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class InvokeContractV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index 742bff8a0f9..88b1db934a2 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java index c67e1c20a83..cbed0a7107a 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java @@ -54,7 +54,7 @@ /** * RunTransactionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class RunTransactionRequest { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 528f5dcfa43..83ddbc8f49a 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -51,7 +51,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionRequest.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionRequest.java index eef4b173d2c..ee8ce083e65 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionRequest.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionRequest.java @@ -50,7 +50,7 @@ /** * SignTransactionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SignTransactionRequest { public static final String SERIALIZED_NAME_KEYCHAIN_ID = "keychainId"; @SerializedName(SERIALIZED_NAME_KEYCHAIN_ID) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionResponse.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionResponse.java index 4be8c203988..a81f0b6d3ba 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SignTransactionResponse.java @@ -50,7 +50,7 @@ /** * SignTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SignTransactionResponse { public static final String SERIALIZED_NAME_SIGNATURE = "signature"; @SerializedName(SERIALIZED_NAME_SIGNATURE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java index 8ce8f00fcef..bd2e17a22fa 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java @@ -54,7 +54,7 @@ /** * SolidityContractJsonArtifact */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifact { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java index 00d54a48c32..6e6a701c416 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactCompiler */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactCompiler { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java index 32ea7c8df17..f298f3c2842 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java @@ -53,7 +53,7 @@ /** * SolidityContractJsonArtifactGasEstimates */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimates { public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java index 43eb75a6be5..7aa336bcedb 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactGasEstimatesCreation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimatesCreation { public static final String SERIALIZED_NAME_CODE_DEPOSIT_COST = "codeDepositCost"; @SerializedName(SERIALIZED_NAME_CODE_DEPOSIT_COST) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java index 6e943ec41af..4a84514d321 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java @@ -51,7 +51,7 @@ /** * WatchBlocksV1Progress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class WatchBlocksV1Progress { public static final String SERIALIZED_NAME_BLOCK_HEADER = "blockHeader"; @SerializedName(SERIALIZED_NAME_BLOCK_HEADER) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java index edf5f0342af..3f0a68087a5 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java @@ -52,7 +52,7 @@ /** * Web3BlockHeader */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3BlockHeader { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeaderTimestamp.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeaderTimestamp.java index 3d473c1669d..ee16eeaa201 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeaderTimestamp.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeaderTimestamp.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3BlockHeaderTimestamp extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3BlockHeaderTimestamp.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index fda9b50587c..57232d89ed7 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index 7c471dcfcba..0bb1ca03f86 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index 2ac9b8c431e..c157b0d4249 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index 6285c0d72a5..51a37022700 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index dd0a57e2e2e..3d5a7706ae4 100644 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -52,7 +52,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:18.448110410+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.065683212+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..2f18cc57980 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,85 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ClearMonitorTransactionsV1Request.md +docs/ClearMonitorTransactionsV1Response.md +docs/CordaNodeSshCredentials.md +docs/CordaRpcCredentials.md +docs/CordaX500Name.md +docs/CordappDeploymentConfig.md +docs/CordappInfo.md +docs/DefaultApi.md +docs/DeployContractJarsBadRequestV1Response.md +docs/DeployContractJarsSuccessV1Response.md +docs/DeployContractJarsV1Request.md +docs/DiagnoseNodeV1Request.md +docs/DiagnoseNodeV1Response.md +docs/FlowInvocationType.md +docs/GetMonitorTransactionsV1Request.md +docs/GetMonitorTransactionsV1Response.md +docs/GetMonitorTransactionsV1ResponseTxInner.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/JarFile.md +docs/JvmObject.md +docs/JvmType.md +docs/JvmTypeKind.md +docs/ListFlowsV1Request.md +docs/ListFlowsV1Response.md +docs/NetworkHostAndPort.md +docs/NodeDiagnosticInfo.md +docs/NodeInfo.md +docs/Party.md +docs/PublicKey.md +docs/SHA256.md +docs/StartMonitorV1Request.md +docs/StartMonitorV1Response.md +docs/StopMonitorV1Request.md +docs/StopMonitorV1Response.md +docs/X500Principal.md +git_push.sh +go.mod +go.sum +model_clear_monitor_transactions_v1_request.go +model_clear_monitor_transactions_v1_response.go +model_corda_node_ssh_credentials.go +model_corda_rpc_credentials.go +model_corda_x500_name.go +model_cordapp_deployment_config.go +model_cordapp_info.go +model_deploy_contract_jars_bad_request_v1_response.go +model_deploy_contract_jars_success_v1_response.go +model_deploy_contract_jars_v1_request.go +model_diagnose_node_v1_request.go +model_diagnose_node_v1_response.go +model_flow_invocation_type.go +model_get_monitor_transactions_v1_request.go +model_get_monitor_transactions_v1_response.go +model_get_monitor_transactions_v1_response_tx_inner.go +model_invoke_contract_v1_request.go +model_invoke_contract_v1_response.go +model_jar_file.go +model_jvm_object.go +model_jvm_type.go +model_jvm_type_kind.go +model_list_flows_v1_request.go +model_list_flows_v1_response.go +model_network_host_and_port.go +model_node_diagnostic_info.go +model_node_info.go +model_party.go +model_public_key.go +model_sha256.go +model_start_monitor_v1_request.go +model_start_monitor_v1_response.go +model_stop_monitor_v1_request.go +model_stop_monitor_v1_response.go +model_x500_principal.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..93d6b3aa273 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,155 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-corda + +Can perform basic tasks on a Corda ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-corda "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-corda.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-corda.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-corda.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-corda.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**ClearMonitorTransactionsV1**](docs/DefaultApi.md#clearmonitortransactionsv1) | **Delete** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions | Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. +*DefaultApi* | [**DeployContractJarsV1**](docs/DefaultApi.md#deploycontractjarsv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars | Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). +*DefaultApi* | [**DiagnoseNodeV1**](docs/DefaultApi.md#diagnosenodev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node | +*DefaultApi* | [**GetMonitorTransactionsV1**](docs/DefaultApi.md#getmonitortransactionsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions | Get transactions for monitored state classes. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**InvokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract | Invokes a contract on a Corda ledger (e.g. a flow) +*DefaultApi* | [**ListFlowsV1**](docs/DefaultApi.md#listflowsv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows | +*DefaultApi* | [**NetworkMapV1**](docs/DefaultApi.md#networkmapv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map | +*DefaultApi* | [**StartMonitorV1**](docs/DefaultApi.md#startmonitorv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor | Start monitoring corda changes (transactions) of given state class +*DefaultApi* | [**StopMonitorV1**](docs/DefaultApi.md#stopmonitorv1) | **Delete** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor | Stop monitoring corda changes (transactions) of given state class + + +## Documentation For Models + + - [ClearMonitorTransactionsV1Request](docs/ClearMonitorTransactionsV1Request.md) + - [ClearMonitorTransactionsV1Response](docs/ClearMonitorTransactionsV1Response.md) + - [CordaNodeSshCredentials](docs/CordaNodeSshCredentials.md) + - [CordaRpcCredentials](docs/CordaRpcCredentials.md) + - [CordaX500Name](docs/CordaX500Name.md) + - [CordappDeploymentConfig](docs/CordappDeploymentConfig.md) + - [CordappInfo](docs/CordappInfo.md) + - [DeployContractJarsBadRequestV1Response](docs/DeployContractJarsBadRequestV1Response.md) + - [DeployContractJarsSuccessV1Response](docs/DeployContractJarsSuccessV1Response.md) + - [DeployContractJarsV1Request](docs/DeployContractJarsV1Request.md) + - [DiagnoseNodeV1Request](docs/DiagnoseNodeV1Request.md) + - [DiagnoseNodeV1Response](docs/DiagnoseNodeV1Response.md) + - [FlowInvocationType](docs/FlowInvocationType.md) + - [GetMonitorTransactionsV1Request](docs/GetMonitorTransactionsV1Request.md) + - [GetMonitorTransactionsV1Response](docs/GetMonitorTransactionsV1Response.md) + - [GetMonitorTransactionsV1ResponseTxInner](docs/GetMonitorTransactionsV1ResponseTxInner.md) + - [InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [JarFile](docs/JarFile.md) + - [JvmObject](docs/JvmObject.md) + - [JvmType](docs/JvmType.md) + - [JvmTypeKind](docs/JvmTypeKind.md) + - [ListFlowsV1Request](docs/ListFlowsV1Request.md) + - [ListFlowsV1Response](docs/ListFlowsV1Response.md) + - [NetworkHostAndPort](docs/NetworkHostAndPort.md) + - [NodeDiagnosticInfo](docs/NodeDiagnosticInfo.md) + - [NodeInfo](docs/NodeInfo.md) + - [Party](docs/Party.md) + - [PublicKey](docs/PublicKey.md) + - [SHA256](docs/SHA256.md) + - [StartMonitorV1Request](docs/StartMonitorV1Request.md) + - [StartMonitorV1Response](docs/StartMonitorV1Response.md) + - [StopMonitorV1Request](docs/StopMonitorV1Request.md) + - [StopMonitorV1Response](docs/StopMonitorV1Response.md) + - [X500Principal](docs/X500Principal.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..af29c7c88c0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1390 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Corda ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Corda + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars: + post: + operationId: deployContractJarsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractJarsV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractJarsSuccessV1Response' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractJarsBadRequestV1Response' + description: Bad Request + summary: "Deploys a set of jar files (Cordapps, e.g. the contracts in Corda\ + \ speak)." + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract: + post: + operationId: invokeContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a Corda ledger (e.g. a flow) + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor: + post: + operationId: startMonitorV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StartMonitorV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StartMonitorV1Response' + description: OK + summary: Start monitoring corda changes (transactions) of given state class + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions: + get: + operationId: GetMonitorTransactionsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetMonitorTransactionsV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetMonitorTransactionsV1Response' + description: OK + summary: Get transactions for monitored state classes. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions + verbLowerCase: get + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions: + delete: + operationId: ClearMonitorTransactionsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClearMonitorTransactionsV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClearMonitorTransactionsV1Response' + description: OK + summary: Clear transactions from internal store so they'll not be available + by GetMonitorTransactionsV1 anymore. + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions + verbLowerCase: delete + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor: + delete: + operationId: stopMonitorV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StopMonitorV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StopMonitorV1Response' + description: OK + summary: Stop monitoring corda changes (transactions) of given state class + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor + verbLowerCase: delete + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map: + post: + description: "Responds with a snapshot of the network map as provided by the\ + \ Corda RPC call: net.corda.core.messaging.CordaRPCOps public abstract fun\ + \ networkMapSnapshot(): List" + operationId: networkMapV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkMapV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkMapV1Response' + description: OK + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows: + post: + description: Responds with a list of the flows on the Corda node. + operationId: listFlowsV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ListFlowsV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListFlowsV1Response' + description: OK + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node: + post: + description: Responds with diagnostic information about the Corda node + operationId: diagnoseNodeV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DiagnoseNodeV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DiagnoseNodeV1Response' + description: OK + x-hyperledger-cactus: + http: + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node + verbLowerCase: post + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics +components: + schemas: + SHA256: + description: "SHA-256 is part of the SHA-2 hash function family. Generated hash\ + \ is fixed size, 256-bits (32-bytes)." + example: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + externalDocs: + description: Official Corda documentation of the SHA256 class. + url: https://api.corda.net/api/corda-os/4.6/html/api/kotlin/corda/net.corda.core.crypto/-secure-hash/-s-h-a256/index.html + properties: + bytes: + example: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + type: string + offset: + example: 0 + type: integer + size: + example: 32 + type: integer + required: + - bytes + - offset + - size + type: object + CordappInfo: + description: A CordappInfo describes a single CorDapp currently installed on + the node + example: + licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + externalDocs: + description: Official Corda Documentation of the class CordappInfo + url: https://api.corda.net/api/corda-os/4.6/html/api/kotlin/corda/net.corda.core.cordapp/-cordapp-info/index.html + properties: + jarHash: + $ref: '#/components/schemas/SHA256' + licence: + description: The name of the licence this CorDapp is released under + type: string + minimumPlatformVersion: + description: The minimum platform version the node must be at for the CorDapp + to run + type: integer + name: + description: The name of the JAR file that defines the CorDapp + type: string + shortName: + description: The name of the CorDapp + type: string + targetPlatformVersion: + description: The target platform version this CorDapp has been tested against + type: integer + type: + description: "A description of what sort of CorDapp this is - either a contract,\ + \ workflow, or a combination." + type: string + vendor: + description: The vendor of this CorDapp + type: string + version: + description: The version of this CorDapp + type: string + required: + - jarHash + - licence + - minimumPlatformVersion + - name + - shortName + - targetPlatformVersion + - type + - vendor + - version + type: object + NodeDiagnosticInfo: + description: A NodeDiagnosticInfo holds information about the current node version. + example: + vendor: vendor + platformVersion: 1 + version: version + cordapps: + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + revision: revision + externalDocs: + description: Official Corda Documentation of the class NodeDiagnosticInfo + url: https://api.corda.net/api/corda-os/4.6/html/api/kotlin/corda/net.corda.core.node/-node-diagnostic-info/index.html + properties: + cordapps: + description: A list of CorDapps currently installed on this node + items: + $ref: '#/components/schemas/CordappInfo' + maxItems: 4096 + minItems: 0 + type: array + platformVersion: + description: "The platform version of this node. This number represents\ + \ a released API version, and should be used to make functionality decisions\ + \ (e.g. enabling an app feature only if an underlying platform feature\ + \ exists)" + type: integer + revision: + description: The git commit hash this node was built from + type: string + vendor: + description: The vendor of this node + type: string + version: + description: "The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note\ + \ that this string is effectively freeform, and so should only be used\ + \ for providing diagnostic information. It should not be used to make\ + \ functionality decisions (the platformVersion is a better fit for this)." + type: string + required: + - cordapps + - platformVersion + - revision + - vendor + - version + type: object + FlowInvocationType: + description: Determines which flow starting method will be used on the back-end + when invoking the flow. Based on the value here the plugin back-end might + invoke the rpc.startFlowDynamic() method or the rpc.startTrackedFlowDynamic() + method. Streamed responses are aggregated and returned in a single response + to HTTP callers who are not equipped to handle streams like WebSocket/gRPC/etc. + do. + enum: + - TRACKED_FLOW_DYNAMIC + - FLOW_DYNAMIC + nullable: false + type: string + JarFile: + additionalProperties: true + example: + filename: filename + contentBase64: contentBase64 + hasDbMigrations: true + properties: + filename: + maxLength: 255 + minLength: 1 + nullable: false + type: string + hasDbMigrations: + description: Indicates whether the cordapp jar in question contains any + embedded migrations that Cactus can/should execute between copying the + jar into the cordapp directory and starting the node back up. + nullable: false + type: boolean + contentBase64: + format: base64 + maxLength: 1073741824 + minLength: 1 + nullable: false + type: string + required: + - contentBase64 + - filename + - hasDbMigrations + type: object + JvmType: + description: Represents a reference to a JVM type (such as a Java class) + example: + constructorName: constructorName + invocationTarget: null + fqClassName: fqClassName + properties: + fqClassName: + maxLength: 65535 + minLength: 1 + nullable: false + type: string + constructorName: + description: This parameter is used to specify that the function used to + construct this JvmType is not a constructor function but instead is a + factory function. Setting this parameter will cause the plugin to look + up methods of the class denoted by fqClassName instead of its constructors. + maxLength: 65535 + minLength: 1 + nullable: false + type: string + invocationTarget: + $ref: '#/components/schemas/JvmObject' + required: + - fqClassName + type: object + JvmTypeKind: + enum: + - PRIMITIVE + - REFERENCE + nullable: false + type: string + JvmObject: + description: "Can represent JVM primitive and reference types as well. The jvmTypeKind\ + \ field indicates which one is being stored. If the jvmTypeKind field is set\ + \ to REFERENCE then the jvmCtorArgs array is expected to be filled, otherwise\ + \ (e.g. PRIMITIVE jvmTypeKind) it is expected that the primitiveValue property\ + \ is filled with a primitive data type supported by the JSON standard such\ + \ as strings, booleans, numbers, etc." + example: + jvmCtorArgs: + - null + - null + jvmType: + constructorName: constructorName + invocationTarget: null + fqClassName: fqClassName + primitiveValue: "{}" + jvmTypeKind: null + properties: + jvmTypeKind: + $ref: '#/components/schemas/JvmTypeKind' + primitiveValue: + type: object + jvmCtorArgs: + default: [] + items: + $ref: '#/components/schemas/JvmObject' + maxLength: 1024 + minLength: 0 + nullable: false + type: array + jvmType: + $ref: '#/components/schemas/JvmType' + required: + - jvmType + - jvmTypeKind + type: object + CordappDeploymentConfig: + example: + cordaJarPath: cordaJarPath + cordaNodeStartCmd: ./build/nodes/runNodes + cordappDir: cordappDir + nodeBaseDirPath: nodeBaseDirPath + rpcCredentials: + hostname: hostname + password: password + port: 39501 + username: username + sshCredentials: + password: password + hostname: hostname + port: 5249 + hostKeyEntry: localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13 + username: username + properties: + sshCredentials: + $ref: '#/components/schemas/CordaNodeSshCredentials' + rpcCredentials: + $ref: '#/components/schemas/CordaRpcCredentials' + cordaNodeStartCmd: + description: The shell command to execute in order to start back up a Corda + node after having placed new jars in the cordapp directory of said node. + example: ./build/nodes/runNodes + maxLength: 65535 + minLength: 1 + nullable: false + type: string + cordappDir: + description: The absolute file system path where the Corda Node is expecting + deployed Cordapp jar files to be placed. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + cordaJarPath: + description: The absolute file system path where the corda.jar file of the + node can be found. This is used to execute database schema migrations + where applicable (H2 database in use in development environments). + maxLength: 2048 + minLength: 1 + nullable: false + type: string + nodeBaseDirPath: + description: The absolute file system path where the base directory of the + Corda node can be found. This is used to pass in to corda.jar when being + invoked for certain tasks such as executing database schema migrations + for a deployed contract. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + required: + - cordaJarPath + - cordaNodeStartCmd + - cordappDir + - nodeBaseDirPath + - rpcCredentials + - sshCredentials + type: object + CordaRpcCredentials: + example: + hostname: hostname + password: password + port: 39501 + username: username + properties: + hostname: + maxLength: 65535 + minLength: 1 + nullable: false + type: string + port: + maximum: 65535 + minimum: 1 + nullable: false + type: integer + username: + maxLength: 1024 + minLength: 1 + nullable: false + type: string + password: + maxLength: 65535 + minLength: 1 + nullable: false + type: string + required: + - hostname + - password + - port + - username + type: object + CordaNodeSshCredentials: + example: + password: password + hostname: hostname + port: 5249 + hostKeyEntry: localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13 + username: username + properties: + hostKeyEntry: + example: localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13 + maxLength: 65535 + minLength: 1 + nullable: false + type: string + username: + maxLength: 32 + minLength: 1 + nullable: false + type: string + password: + maxLength: 4096 + minLength: 1 + nullable: false + type: string + hostname: + maxLength: 4096 + minLength: 1 + nullable: false + type: string + port: + maximum: 65535 + minimum: 1 + nullable: false + type: integer + required: + - hostKeyEntry + - hostname + - password + - port + - username + type: object + DeployContractJarsV1Request: + additionalProperties: false + example: + jarFiles: + - filename: filename + contentBase64: contentBase64 + hasDbMigrations: true + - filename: filename + contentBase64: contentBase64 + hasDbMigrations: true + cordappDeploymentConfigs: + - cordaJarPath: cordaJarPath + cordaNodeStartCmd: ./build/nodes/runNodes + cordappDir: cordappDir + nodeBaseDirPath: nodeBaseDirPath + rpcCredentials: + hostname: hostname + password: password + port: 39501 + username: username + sshCredentials: + password: password + hostname: hostname + port: 5249 + hostKeyEntry: localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13 + username: username + - cordaJarPath: cordaJarPath + cordaNodeStartCmd: ./build/nodes/runNodes + cordappDir: cordappDir + nodeBaseDirPath: nodeBaseDirPath + rpcCredentials: + hostname: hostname + password: password + port: 39501 + username: username + sshCredentials: + password: password + hostname: hostname + port: 5249 + hostKeyEntry: localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13 + username: username + properties: + cordappDeploymentConfigs: + default: [] + description: The list of deployment configurations pointing to the nodes + where the provided cordapp jar files are to be deployed . + items: + $ref: '#/components/schemas/CordappDeploymentConfig' + maxLength: 1024 + minLength: 0 + type: array + jarFiles: + items: + $ref: '#/components/schemas/JarFile' + nullable: false + type: array + required: + - cordappDeploymentConfigs + - jarFiles + type: object + DeployContractJarsSuccessV1Response: + example: + deployedJarFiles: + - deployedJarFiles + - deployedJarFiles + properties: + deployedJarFiles: + items: + minItems: 1 + nullable: false + type: string + type: array + required: + - deployedJarFiles + type: object + DeployContractJarsBadRequestV1Response: + properties: + errors: + items: + maxItems: 2048 + maxLength: 65535 + minItems: 1 + minLength: 1 + type: string + type: array + required: + - errors + type: object + InvokeContractV1Request: + additionalProperties: false + example: + flowInvocationType: null + timeoutMs: 0 + flowFullClassName: net.corda.samples.obligation.flows.IOUIssueFlow + params: + - jvmCtorArgs: + - null + - null + jvmType: + constructorName: constructorName + invocationTarget: null + fqClassName: fqClassName + primitiveValue: "{}" + jvmTypeKind: null + - jvmCtorArgs: + - null + - null + jvmType: + constructorName: constructorName + invocationTarget: null + fqClassName: fqClassName + primitiveValue: "{}" + jvmTypeKind: null + properties: + flowFullClassName: + description: The fully qualified name of the Corda flow to invoke + example: net.corda.samples.obligation.flows.IOUIssueFlow + maxLength: 1024 + minLength: 1 + nullable: false + type: string + flowInvocationType: + $ref: '#/components/schemas/FlowInvocationType' + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: + $ref: '#/components/schemas/JvmObject' + nullable: false + type: array + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. + minimum: 0 + nullable: false + type: integer + required: + - flowFullClassName + - flowInvocationType + - params + - signingCredential + type: object + InvokeContractV1Response: + example: + callOutput: "{}" + success: true + progress: + - progress + - progress + flowId: flowId + transactionId: transactionId + properties: + success: + nullable: false + type: boolean + callOutput: + description: Data returned from the JVM when no transaction is running + type: object + transactionId: + description: The net.corda.core.flows.StateMachineRunId value returned by + the flow execution. + maxLength: 1024 + minLength: 1 + nullable: false + type: string + progress: + default: [] + description: "An array of strings representing the aggregated stream of\ + \ progress updates provided by a *tracked* flow invocation. If the flow\ + \ invocation was not tracked, this array is still returned, but as empty." + items: + maxItems: 10000000 + minItems: 0 + type: string + type: array + flowId: + description: The id for the flow handle + type: string + required: + - callOutput + - flowId + - success + type: object + StartMonitorV1Request: + additionalProperties: false + example: + stateFullClassName: net.corda.samples.example.states.IOUState + clientAppId: frond_v1_x_7Hdg6s + properties: + clientAppId: + description: ID of a client application that wants to monitor the state + changes + example: frond_v1_x_7Hdg6s + maxLength: 1024 + minLength: 1 + nullable: false + type: string + stateFullClassName: + description: The fully qualified name of the Corda state to monitor + example: net.corda.samples.example.states.IOUState + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - clientAppId + - stateFullClassName + type: object + StartMonitorV1Response: + example: + msg: msg + success: true + properties: + success: + description: Flag set to true if monitoring started correctly. + nullable: false + type: boolean + msg: + description: Message describing operation status or any errors that occurred. + nullable: false + type: string + required: + - msg + - success + type: object + GetMonitorTransactionsV1Request: + additionalProperties: false + example: + stateFullClassName: net.corda.samples.example.states.IOUState + clientAppId: frond_v1_x_7Hdg6s + properties: + clientAppId: + description: ID of a client application that wants to monitor the state + changes + example: frond_v1_x_7Hdg6s + maxLength: 1024 + minLength: 1 + nullable: false + type: string + stateFullClassName: + description: The fully qualified name of the Corda state to monitor + example: net.corda.samples.example.states.IOUState + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - clientAppId + - stateFullClassName + type: object + GetMonitorTransactionsV1Response: + example: + msg: msg + tx: + - data: data + index: index + - data: data + index: index + success: true + stateFullClassName: net.corda.samples.example.states.IOUState + properties: + success: + description: Flag set to true if operation completed correctly. + nullable: false + type: boolean + msg: + description: Message describing operation status or any errors that occurred. + nullable: false + type: string + stateFullClassName: + description: The fully qualified name of the Corda state to monitor + example: net.corda.samples.example.states.IOUState + maxLength: 1024 + minLength: 1 + nullable: false + type: string + tx: + default: [] + items: + $ref: '#/components/schemas/GetMonitorTransactionsV1Response_tx_inner' + type: array + required: + - msg + - success + type: object + ClearMonitorTransactionsV1Request: + additionalProperties: false + example: + txIndexes: + - txIndexes + - txIndexes + stateFullClassName: net.corda.samples.example.states.IOUState + clientAppId: frond_v1_x_7Hdg6s + properties: + clientAppId: + description: ID of a client application that wants to monitor the state + changes + example: frond_v1_x_7Hdg6s + maxLength: 1024 + minLength: 1 + nullable: false + type: string + stateFullClassName: + description: The fully qualified name of the Corda state to monitor + example: net.corda.samples.example.states.IOUState + maxLength: 1024 + minLength: 1 + nullable: false + type: string + txIndexes: + default: [] + items: + type: string + type: array + required: + - clientAppId + - stateFullClassName + - txIndexes + type: object + ClearMonitorTransactionsV1Response: + additionalProperties: false + example: + msg: msg + success: true + properties: + success: + description: Flag set to true if operation completed correctly. + nullable: false + type: boolean + msg: + description: Message describing operation status or any errors that occurred. + nullable: false + type: string + required: + - msg + - success + type: object + StopMonitorV1Request: + additionalProperties: false + example: + stateFullClassName: net.corda.samples.example.states.IOUState + clientAppId: frond_v1_x_7Hdg6s + properties: + clientAppId: + description: ID of a client application that wants to monitor the state + changes + example: frond_v1_x_7Hdg6s + maxLength: 1024 + minLength: 1 + nullable: false + type: string + stateFullClassName: + description: The fully qualified name of the Corda state to monitor + example: net.corda.samples.example.states.IOUState + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - clientAppId + - stateFullClassName + type: object + StopMonitorV1Response: + example: + msg: msg + success: true + properties: + success: + description: Flag set to true if operation completed correctly. + nullable: false + type: boolean + msg: + description: Message describing operation status or any errors that occurred. + nullable: false + type: string + required: + - msg + - success + type: object + ListFlowsV1Request: + additionalProperties: false + example: + filter: filter + properties: + filter: + type: string + type: object + ListFlowsV1Response: + example: + flowNames: + - net.corda.core.flows.ContractUpgradeFlow$Authorise + - net.corda.core.flows.ContractUpgradeFlow$Deauthorise + - net.corda.core.flows.ContractUpgradeFlow$Initiate + - net.corda.finance.flows.CashExitFlow + - net.corda.finance.flows.CashIssueAndPaymentFlow + - net.corda.finance.flows.CashIssueFlow + - net.corda.finance.flows.CashPaymentFlow + - net.corda.finance.internal.CashConfigDataFlow + - net.corda.samples.obligation.flows.IOUIssueFlow + - net.corda.samples.obligation.flows.IOUSettleFlow + - net.corda.samples.obligation.flows.IOUTransferFlow + - net.corda.samples.obligation.flows.SelfIssueCashFlow + properties: + flowNames: + default: [] + description: An array of strings storing the names of the flows as returned + by the flowList Corda RPC. + example: + - net.corda.core.flows.ContractUpgradeFlow$Authorise + - net.corda.core.flows.ContractUpgradeFlow$Deauthorise + - net.corda.core.flows.ContractUpgradeFlow$Initiate + - net.corda.finance.flows.CashExitFlow + - net.corda.finance.flows.CashIssueAndPaymentFlow + - net.corda.finance.flows.CashIssueFlow + - net.corda.finance.flows.CashPaymentFlow + - net.corda.finance.internal.CashConfigDataFlow + - net.corda.samples.obligation.flows.IOUIssueFlow + - net.corda.samples.obligation.flows.IOUSettleFlow + - net.corda.samples.obligation.flows.IOUTransferFlow + - net.corda.samples.obligation.flows.SelfIssueCashFlow + items: + maxItems: 10000000 + minItems: 0 + type: string + type: array + required: + - flowNames + type: object + NetworkHostAndPort: + example: + port: 0.8008281904610115 + host: host + properties: + host: + type: string + port: + type: number + required: + - host + - port + type: object + PartyAndCertificate: + type: object + PublicKey: + description: An instance of a java.security.PublicKey (which is an interface) + implementation such as org.hyperledger.cactus.plugin.ledger.connector.corda.server.impl.PublicKeyImpl + example: + format: X.509 + algorithm: EdDSA + encoded: MCowBQYDK2VwAyEAac1p4wLsAh70VJOcudQppu7NnKxyoKxVN0DbfTxF+54= + properties: + algorithm: + example: EdDSA + type: string + format: + example: X.509 + type: string + encoded: + example: MCowBQYDK2VwAyEAac1p4wLsAh70VJOcudQppu7NnKxyoKxVN0DbfTxF+54= + type: string + required: + - algorithm + - encoded + - format + type: object + X500Principal: + example: + name: "O=PartyA,L=London,C=GB" + encoded: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + properties: + name: + example: "O=PartyA,L=London,C=GB" + type: string + encoded: + description: Base64 encoded public key + example: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + type: string + required: + - encoded + - name + type: object + CordaX500Name: + example: + commonName: commonName + country: GB + organisationUnit: organisationUnit + locality: London + x500Principal: + name: "O=PartyA,L=London,C=GB" + encoded: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + organisation: PartyA + state: state + properties: + commonName: + type: string + organisationUnit: + type: string + organisation: + example: PartyA + type: string + locality: + example: London + type: string + state: + type: string + country: + example: GB + type: string + x500Principal: + $ref: '#/components/schemas/X500Principal' + required: + - country + - locality + - organisation + - x500Principal + type: object + Party: + example: + owningKey: + format: X.509 + algorithm: EdDSA + encoded: MCowBQYDK2VwAyEAac1p4wLsAh70VJOcudQppu7NnKxyoKxVN0DbfTxF+54= + name: + commonName: commonName + country: GB + organisationUnit: organisationUnit + locality: London + x500Principal: + name: "O=PartyA,L=London,C=GB" + encoded: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + organisation: PartyA + state: state + properties: + name: + $ref: '#/components/schemas/CordaX500Name' + owningKey: + $ref: '#/components/schemas/PublicKey' + required: + - name + - owningKey + type: object + NodeInfo: + example: + legalIdentities: + - owningKey: + format: X.509 + algorithm: EdDSA + encoded: MCowBQYDK2VwAyEAac1p4wLsAh70VJOcudQppu7NnKxyoKxVN0DbfTxF+54= + name: + commonName: commonName + country: GB + organisationUnit: organisationUnit + locality: London + x500Principal: + name: "O=PartyA,L=London,C=GB" + encoded: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + organisation: PartyA + state: state + - owningKey: + format: X.509 + algorithm: EdDSA + encoded: MCowBQYDK2VwAyEAac1p4wLsAh70VJOcudQppu7NnKxyoKxVN0DbfTxF+54= + name: + commonName: commonName + country: GB + organisationUnit: organisationUnit + locality: London + x500Principal: + name: "O=PartyA,L=London,C=GB" + encoded: MC8xCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xDzANBgNVBAoMBlBhcnR5QQ== + organisation: PartyA + state: state + addresses: + - port: 0.8008281904610115 + host: host + - port: 0.8008281904610115 + host: host + serial: 1.4658129805029452 + platformVersion: 6 + legalIdentitiesAndCerts: + - null + - null + properties: + addresses: + items: + $ref: '#/components/schemas/NetworkHostAndPort' + type: array + platformVersion: + type: integer + serial: + type: number + legalIdentities: + items: + $ref: '#/components/schemas/Party' + type: array + legalIdentitiesAndCerts: + items: + $ref: '#/components/schemas/PartyAndCertificate' + type: array + required: + - addresses + - legalIdentities + - legalIdentitiesAndCerts + - platformVersion + - serial + type: object + NetworkMapV1Request: + type: object + NetworkMapV1Response: + items: + $ref: '#/components/schemas/NodeInfo' + maxItems: 2048 + minItems: 1 + nullable: false + type: array + DiagnoseNodeV1Request: + additionalProperties: false + example: + nodeIds: + - nodeIds + - nodeIds + - nodeIds + - nodeIds + - nodeIds + properties: + nodeIds: + default: [] + description: "Optional property specifying which Corda Node should be the\ + \ one being diagnosed in case the Connector has multiple connections established\ + \ for different nodes (which is not yet a supported feature, but we want\ + \ to keep this possibility open for the future)." + items: + nullable: false + type: string + maxItems: 1024 + minItems: 0 + type: array + type: object + DiagnoseNodeV1Response: + example: + nodeDiagnosticInfo: + vendor: vendor + platformVersion: 1 + version: version + cordapps: + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + - licence: licence + targetPlatformVersion: 6 + vendor: vendor + name: name + jarHash: + offset: 0 + size: 32 + bytes: Vf9MllnrC7vrWxrlDE94OzPMZW7At1HhTETL/XjiAmc= + shortName: shortName + type: type + version: version + minimumPlatformVersion: 0 + revision: revision + properties: + nodeDiagnosticInfo: + $ref: '#/components/schemas/NodeDiagnosticInfo' + required: + - nodeDiagnosticInfo + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + GetMonitorTransactionsV1Response_tx_inner: + example: + data: data + index: index + properties: + index: + type: string + data: + maxItems: 10000000 + minItems: 0 + type: string + type: object diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..b52010258c5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,1081 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiClearMonitorTransactionsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + clearMonitorTransactionsV1Request *ClearMonitorTransactionsV1Request +} + +func (r ApiClearMonitorTransactionsV1Request) ClearMonitorTransactionsV1Request(clearMonitorTransactionsV1Request ClearMonitorTransactionsV1Request) ApiClearMonitorTransactionsV1Request { + r.clearMonitorTransactionsV1Request = &clearMonitorTransactionsV1Request + return r +} + +func (r ApiClearMonitorTransactionsV1Request) Execute() (*ClearMonitorTransactionsV1Response, *http.Response, error) { + return r.ApiService.ClearMonitorTransactionsV1Execute(r) +} + +/* +ClearMonitorTransactionsV1 Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiClearMonitorTransactionsV1Request +*/ +func (a *DefaultApiService) ClearMonitorTransactionsV1(ctx context.Context) ApiClearMonitorTransactionsV1Request { + return ApiClearMonitorTransactionsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ClearMonitorTransactionsV1Response +func (a *DefaultApiService) ClearMonitorTransactionsV1Execute(r ApiClearMonitorTransactionsV1Request) (*ClearMonitorTransactionsV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClearMonitorTransactionsV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ClearMonitorTransactionsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clearMonitorTransactionsV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeployContractJarsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractJarsV1Request *DeployContractJarsV1Request +} + +func (r ApiDeployContractJarsV1Request) DeployContractJarsV1Request(deployContractJarsV1Request DeployContractJarsV1Request) ApiDeployContractJarsV1Request { + r.deployContractJarsV1Request = &deployContractJarsV1Request + return r +} + +func (r ApiDeployContractJarsV1Request) Execute() (*DeployContractJarsSuccessV1Response, *http.Response, error) { + return r.ApiService.DeployContractJarsV1Execute(r) +} + +/* +DeployContractJarsV1 Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractJarsV1Request +*/ +func (a *DefaultApiService) DeployContractJarsV1(ctx context.Context) ApiDeployContractJarsV1Request { + return ApiDeployContractJarsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractJarsSuccessV1Response +func (a *DefaultApiService) DeployContractJarsV1Execute(r ApiDeployContractJarsV1Request) (*DeployContractJarsSuccessV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractJarsSuccessV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractJarsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractJarsV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v DeployContractJarsBadRequestV1Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDiagnoseNodeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + diagnoseNodeV1Request *DiagnoseNodeV1Request +} + +func (r ApiDiagnoseNodeV1Request) DiagnoseNodeV1Request(diagnoseNodeV1Request DiagnoseNodeV1Request) ApiDiagnoseNodeV1Request { + r.diagnoseNodeV1Request = &diagnoseNodeV1Request + return r +} + +func (r ApiDiagnoseNodeV1Request) Execute() (*DiagnoseNodeV1Response, *http.Response, error) { + return r.ApiService.DiagnoseNodeV1Execute(r) +} + +/* +DiagnoseNodeV1 Method for DiagnoseNodeV1 + +Responds with diagnostic information about the Corda node + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDiagnoseNodeV1Request +*/ +func (a *DefaultApiService) DiagnoseNodeV1(ctx context.Context) ApiDiagnoseNodeV1Request { + return ApiDiagnoseNodeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DiagnoseNodeV1Response +func (a *DefaultApiService) DiagnoseNodeV1Execute(r ApiDiagnoseNodeV1Request) (*DiagnoseNodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DiagnoseNodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DiagnoseNodeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.diagnoseNodeV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetMonitorTransactionsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getMonitorTransactionsV1Request *GetMonitorTransactionsV1Request +} + +func (r ApiGetMonitorTransactionsV1Request) GetMonitorTransactionsV1Request(getMonitorTransactionsV1Request GetMonitorTransactionsV1Request) ApiGetMonitorTransactionsV1Request { + r.getMonitorTransactionsV1Request = &getMonitorTransactionsV1Request + return r +} + +func (r ApiGetMonitorTransactionsV1Request) Execute() (*GetMonitorTransactionsV1Response, *http.Response, error) { + return r.ApiService.GetMonitorTransactionsV1Execute(r) +} + +/* +GetMonitorTransactionsV1 Get transactions for monitored state classes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMonitorTransactionsV1Request +*/ +func (a *DefaultApiService) GetMonitorTransactionsV1(ctx context.Context) ApiGetMonitorTransactionsV1Request { + return ApiGetMonitorTransactionsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetMonitorTransactionsV1Response +func (a *DefaultApiService) GetMonitorTransactionsV1Execute(r ApiGetMonitorTransactionsV1Request) (*GetMonitorTransactionsV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetMonitorTransactionsV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetMonitorTransactionsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getMonitorTransactionsV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractV1Request *InvokeContractV1Request +} + +func (r ApiInvokeContractV1Request) InvokeContractV1Request(invokeContractV1Request InvokeContractV1Request) ApiInvokeContractV1Request { + r.invokeContractV1Request = &invokeContractV1Request + return r +} + +func (r ApiInvokeContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1Execute(r) +} + +/* +InvokeContractV1 Invokes a contract on a Corda ledger (e.g. a flow) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1Request +*/ +func (a *DefaultApiService) InvokeContractV1(ctx context.Context) ApiInvokeContractV1Request { + return ApiInvokeContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1Execute(r ApiInvokeContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListFlowsV1Request struct { + ctx context.Context + ApiService *DefaultApiService + listFlowsV1Request *ListFlowsV1Request +} + +func (r ApiListFlowsV1Request) ListFlowsV1Request(listFlowsV1Request ListFlowsV1Request) ApiListFlowsV1Request { + r.listFlowsV1Request = &listFlowsV1Request + return r +} + +func (r ApiListFlowsV1Request) Execute() (*ListFlowsV1Response, *http.Response, error) { + return r.ApiService.ListFlowsV1Execute(r) +} + +/* +ListFlowsV1 Method for ListFlowsV1 + +Responds with a list of the flows on the Corda node. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListFlowsV1Request +*/ +func (a *DefaultApiService) ListFlowsV1(ctx context.Context) ApiListFlowsV1Request { + return ApiListFlowsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ListFlowsV1Response +func (a *DefaultApiService) ListFlowsV1Execute(r ApiListFlowsV1Request) (*ListFlowsV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListFlowsV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListFlowsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.listFlowsV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiNetworkMapV1Request struct { + ctx context.Context + ApiService *DefaultApiService + body *map[string]interface{} +} + +func (r ApiNetworkMapV1Request) Body(body map[string]interface{}) ApiNetworkMapV1Request { + r.body = &body + return r +} + +func (r ApiNetworkMapV1Request) Execute() ([]NodeInfo, *http.Response, error) { + return r.ApiService.NetworkMapV1Execute(r) +} + +/* +NetworkMapV1 Method for NetworkMapV1 + +Responds with a snapshot of the network map as provided by the Corda RPC call: net.corda.core.messaging.CordaRPCOps public abstract fun networkMapSnapshot(): List + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiNetworkMapV1Request +*/ +func (a *DefaultApiService) NetworkMapV1(ctx context.Context) ApiNetworkMapV1Request { + return ApiNetworkMapV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []NodeInfo +func (a *DefaultApiService) NetworkMapV1Execute(r ApiNetworkMapV1Request) ([]NodeInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NodeInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.NetworkMapV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStartMonitorV1Request struct { + ctx context.Context + ApiService *DefaultApiService + startMonitorV1Request *StartMonitorV1Request +} + +func (r ApiStartMonitorV1Request) StartMonitorV1Request(startMonitorV1Request StartMonitorV1Request) ApiStartMonitorV1Request { + r.startMonitorV1Request = &startMonitorV1Request + return r +} + +func (r ApiStartMonitorV1Request) Execute() (*StartMonitorV1Response, *http.Response, error) { + return r.ApiService.StartMonitorV1Execute(r) +} + +/* +StartMonitorV1 Start monitoring corda changes (transactions) of given state class + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStartMonitorV1Request +*/ +func (a *DefaultApiService) StartMonitorV1(ctx context.Context) ApiStartMonitorV1Request { + return ApiStartMonitorV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return StartMonitorV1Response +func (a *DefaultApiService) StartMonitorV1Execute(r ApiStartMonitorV1Request) (*StartMonitorV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StartMonitorV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.StartMonitorV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.startMonitorV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStopMonitorV1Request struct { + ctx context.Context + ApiService *DefaultApiService + stopMonitorV1Request *StopMonitorV1Request +} + +func (r ApiStopMonitorV1Request) StopMonitorV1Request(stopMonitorV1Request StopMonitorV1Request) ApiStopMonitorV1Request { + r.stopMonitorV1Request = &stopMonitorV1Request + return r +} + +func (r ApiStopMonitorV1Request) Execute() (*StopMonitorV1Response, *http.Response, error) { + return r.ApiService.StopMonitorV1Execute(r) +} + +/* +StopMonitorV1 Stop monitoring corda changes (transactions) of given state class + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStopMonitorV1Request +*/ +func (a *DefaultApiService) StopMonitorV1(ctx context.Context) ApiStopMonitorV1Request { + return ApiStopMonitorV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return StopMonitorV1Response +func (a *DefaultApiService) StopMonitorV1Execute(r ApiStopMonitorV1Request) (*StopMonitorV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StopMonitorV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.StopMonitorV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.stopMonitorV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..af30f954d5e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Corda API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..e6875b525f3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Request.md new file mode 100644 index 00000000000..403e89f6587 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Request.md @@ -0,0 +1,93 @@ +# ClearMonitorTransactionsV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientAppId** | **string** | ID of a client application that wants to monitor the state changes | +**StateFullClassName** | **string** | The fully qualified name of the Corda state to monitor | +**TxIndexes** | **[]string** | | [default to []] + +## Methods + +### NewClearMonitorTransactionsV1Request + +`func NewClearMonitorTransactionsV1Request(clientAppId string, stateFullClassName string, txIndexes []string, ) *ClearMonitorTransactionsV1Request` + +NewClearMonitorTransactionsV1Request instantiates a new ClearMonitorTransactionsV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClearMonitorTransactionsV1RequestWithDefaults + +`func NewClearMonitorTransactionsV1RequestWithDefaults() *ClearMonitorTransactionsV1Request` + +NewClearMonitorTransactionsV1RequestWithDefaults instantiates a new ClearMonitorTransactionsV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientAppId + +`func (o *ClearMonitorTransactionsV1Request) GetClientAppId() string` + +GetClientAppId returns the ClientAppId field if non-nil, zero value otherwise. + +### GetClientAppIdOk + +`func (o *ClearMonitorTransactionsV1Request) GetClientAppIdOk() (*string, bool)` + +GetClientAppIdOk returns a tuple with the ClientAppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAppId + +`func (o *ClearMonitorTransactionsV1Request) SetClientAppId(v string)` + +SetClientAppId sets ClientAppId field to given value. + + +### GetStateFullClassName + +`func (o *ClearMonitorTransactionsV1Request) GetStateFullClassName() string` + +GetStateFullClassName returns the StateFullClassName field if non-nil, zero value otherwise. + +### GetStateFullClassNameOk + +`func (o *ClearMonitorTransactionsV1Request) GetStateFullClassNameOk() (*string, bool)` + +GetStateFullClassNameOk returns a tuple with the StateFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateFullClassName + +`func (o *ClearMonitorTransactionsV1Request) SetStateFullClassName(v string)` + +SetStateFullClassName sets StateFullClassName field to given value. + + +### GetTxIndexes + +`func (o *ClearMonitorTransactionsV1Request) GetTxIndexes() []string` + +GetTxIndexes returns the TxIndexes field if non-nil, zero value otherwise. + +### GetTxIndexesOk + +`func (o *ClearMonitorTransactionsV1Request) GetTxIndexesOk() (*[]string, bool)` + +GetTxIndexesOk returns a tuple with the TxIndexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxIndexes + +`func (o *ClearMonitorTransactionsV1Request) SetTxIndexes(v []string)` + +SetTxIndexes sets TxIndexes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Response.md new file mode 100644 index 00000000000..3464065591a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ClearMonitorTransactionsV1Response.md @@ -0,0 +1,72 @@ +# ClearMonitorTransactionsV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Flag set to true if operation completed correctly. | +**Msg** | **string** | Message describing operation status or any errors that occurred. | + +## Methods + +### NewClearMonitorTransactionsV1Response + +`func NewClearMonitorTransactionsV1Response(success bool, msg string, ) *ClearMonitorTransactionsV1Response` + +NewClearMonitorTransactionsV1Response instantiates a new ClearMonitorTransactionsV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClearMonitorTransactionsV1ResponseWithDefaults + +`func NewClearMonitorTransactionsV1ResponseWithDefaults() *ClearMonitorTransactionsV1Response` + +NewClearMonitorTransactionsV1ResponseWithDefaults instantiates a new ClearMonitorTransactionsV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *ClearMonitorTransactionsV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ClearMonitorTransactionsV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ClearMonitorTransactionsV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMsg + +`func (o *ClearMonitorTransactionsV1Response) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *ClearMonitorTransactionsV1Response) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *ClearMonitorTransactionsV1Response) SetMsg(v string)` + +SetMsg sets Msg field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaNodeSshCredentials.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaNodeSshCredentials.md new file mode 100644 index 00000000000..b7f9ff2f282 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaNodeSshCredentials.md @@ -0,0 +1,135 @@ +# CordaNodeSshCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostKeyEntry** | **string** | | +**Username** | **string** | | +**Password** | **string** | | +**Hostname** | **string** | | +**Port** | **int32** | | + +## Methods + +### NewCordaNodeSshCredentials + +`func NewCordaNodeSshCredentials(hostKeyEntry string, username string, password string, hostname string, port int32, ) *CordaNodeSshCredentials` + +NewCordaNodeSshCredentials instantiates a new CordaNodeSshCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCordaNodeSshCredentialsWithDefaults + +`func NewCordaNodeSshCredentialsWithDefaults() *CordaNodeSshCredentials` + +NewCordaNodeSshCredentialsWithDefaults instantiates a new CordaNodeSshCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHostKeyEntry + +`func (o *CordaNodeSshCredentials) GetHostKeyEntry() string` + +GetHostKeyEntry returns the HostKeyEntry field if non-nil, zero value otherwise. + +### GetHostKeyEntryOk + +`func (o *CordaNodeSshCredentials) GetHostKeyEntryOk() (*string, bool)` + +GetHostKeyEntryOk returns a tuple with the HostKeyEntry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostKeyEntry + +`func (o *CordaNodeSshCredentials) SetHostKeyEntry(v string)` + +SetHostKeyEntry sets HostKeyEntry field to given value. + + +### GetUsername + +`func (o *CordaNodeSshCredentials) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CordaNodeSshCredentials) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CordaNodeSshCredentials) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *CordaNodeSshCredentials) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CordaNodeSshCredentials) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CordaNodeSshCredentials) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetHostname + +`func (o *CordaNodeSshCredentials) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *CordaNodeSshCredentials) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *CordaNodeSshCredentials) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + + +### GetPort + +`func (o *CordaNodeSshCredentials) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CordaNodeSshCredentials) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CordaNodeSshCredentials) SetPort(v int32)` + +SetPort sets Port field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaRpcCredentials.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaRpcCredentials.md new file mode 100644 index 00000000000..c63bb5d1da8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaRpcCredentials.md @@ -0,0 +1,114 @@ +# CordaRpcCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | | +**Port** | **int32** | | +**Username** | **string** | | +**Password** | **string** | | + +## Methods + +### NewCordaRpcCredentials + +`func NewCordaRpcCredentials(hostname string, port int32, username string, password string, ) *CordaRpcCredentials` + +NewCordaRpcCredentials instantiates a new CordaRpcCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCordaRpcCredentialsWithDefaults + +`func NewCordaRpcCredentialsWithDefaults() *CordaRpcCredentials` + +NewCordaRpcCredentialsWithDefaults instantiates a new CordaRpcCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHostname + +`func (o *CordaRpcCredentials) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *CordaRpcCredentials) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *CordaRpcCredentials) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + + +### GetPort + +`func (o *CordaRpcCredentials) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CordaRpcCredentials) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CordaRpcCredentials) SetPort(v int32)` + +SetPort sets Port field to given value. + + +### GetUsername + +`func (o *CordaRpcCredentials) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CordaRpcCredentials) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CordaRpcCredentials) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *CordaRpcCredentials) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CordaRpcCredentials) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CordaRpcCredentials) SetPassword(v string)` + +SetPassword sets Password field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaX500Name.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaX500Name.md new file mode 100644 index 00000000000..ed7574d5c42 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordaX500Name.md @@ -0,0 +1,192 @@ +# CordaX500Name + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommonName** | Pointer to **string** | | [optional] +**OrganisationUnit** | Pointer to **string** | | [optional] +**Organisation** | **string** | | +**Locality** | **string** | | +**State** | Pointer to **string** | | [optional] +**Country** | **string** | | +**X500Principal** | [**X500Principal**](X500Principal.md) | | + +## Methods + +### NewCordaX500Name + +`func NewCordaX500Name(organisation string, locality string, country string, x500Principal X500Principal, ) *CordaX500Name` + +NewCordaX500Name instantiates a new CordaX500Name object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCordaX500NameWithDefaults + +`func NewCordaX500NameWithDefaults() *CordaX500Name` + +NewCordaX500NameWithDefaults instantiates a new CordaX500Name object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommonName + +`func (o *CordaX500Name) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *CordaX500Name) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *CordaX500Name) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *CordaX500Name) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetOrganisationUnit + +`func (o *CordaX500Name) GetOrganisationUnit() string` + +GetOrganisationUnit returns the OrganisationUnit field if non-nil, zero value otherwise. + +### GetOrganisationUnitOk + +`func (o *CordaX500Name) GetOrganisationUnitOk() (*string, bool)` + +GetOrganisationUnitOk returns a tuple with the OrganisationUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganisationUnit + +`func (o *CordaX500Name) SetOrganisationUnit(v string)` + +SetOrganisationUnit sets OrganisationUnit field to given value. + +### HasOrganisationUnit + +`func (o *CordaX500Name) HasOrganisationUnit() bool` + +HasOrganisationUnit returns a boolean if a field has been set. + +### GetOrganisation + +`func (o *CordaX500Name) GetOrganisation() string` + +GetOrganisation returns the Organisation field if non-nil, zero value otherwise. + +### GetOrganisationOk + +`func (o *CordaX500Name) GetOrganisationOk() (*string, bool)` + +GetOrganisationOk returns a tuple with the Organisation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganisation + +`func (o *CordaX500Name) SetOrganisation(v string)` + +SetOrganisation sets Organisation field to given value. + + +### GetLocality + +`func (o *CordaX500Name) GetLocality() string` + +GetLocality returns the Locality field if non-nil, zero value otherwise. + +### GetLocalityOk + +`func (o *CordaX500Name) GetLocalityOk() (*string, bool)` + +GetLocalityOk returns a tuple with the Locality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocality + +`func (o *CordaX500Name) SetLocality(v string)` + +SetLocality sets Locality field to given value. + + +### GetState + +`func (o *CordaX500Name) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *CordaX500Name) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *CordaX500Name) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *CordaX500Name) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetCountry + +`func (o *CordaX500Name) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *CordaX500Name) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *CordaX500Name) SetCountry(v string)` + +SetCountry sets Country field to given value. + + +### GetX500Principal + +`func (o *CordaX500Name) GetX500Principal() X500Principal` + +GetX500Principal returns the X500Principal field if non-nil, zero value otherwise. + +### GetX500PrincipalOk + +`func (o *CordaX500Name) GetX500PrincipalOk() (*X500Principal, bool)` + +GetX500PrincipalOk returns a tuple with the X500Principal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX500Principal + +`func (o *CordaX500Name) SetX500Principal(v X500Principal)` + +SetX500Principal sets X500Principal field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappDeploymentConfig.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappDeploymentConfig.md new file mode 100644 index 00000000000..7cab014ab96 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappDeploymentConfig.md @@ -0,0 +1,156 @@ +# CordappDeploymentConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SshCredentials** | [**CordaNodeSshCredentials**](CordaNodeSshCredentials.md) | | +**RpcCredentials** | [**CordaRpcCredentials**](CordaRpcCredentials.md) | | +**CordaNodeStartCmd** | **string** | The shell command to execute in order to start back up a Corda node after having placed new jars in the cordapp directory of said node. | +**CordappDir** | **string** | The absolute file system path where the Corda Node is expecting deployed Cordapp jar files to be placed. | +**CordaJarPath** | **string** | The absolute file system path where the corda.jar file of the node can be found. This is used to execute database schema migrations where applicable (H2 database in use in development environments). | +**NodeBaseDirPath** | **string** | The absolute file system path where the base directory of the Corda node can be found. This is used to pass in to corda.jar when being invoked for certain tasks such as executing database schema migrations for a deployed contract. | + +## Methods + +### NewCordappDeploymentConfig + +`func NewCordappDeploymentConfig(sshCredentials CordaNodeSshCredentials, rpcCredentials CordaRpcCredentials, cordaNodeStartCmd string, cordappDir string, cordaJarPath string, nodeBaseDirPath string, ) *CordappDeploymentConfig` + +NewCordappDeploymentConfig instantiates a new CordappDeploymentConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCordappDeploymentConfigWithDefaults + +`func NewCordappDeploymentConfigWithDefaults() *CordappDeploymentConfig` + +NewCordappDeploymentConfigWithDefaults instantiates a new CordappDeploymentConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSshCredentials + +`func (o *CordappDeploymentConfig) GetSshCredentials() CordaNodeSshCredentials` + +GetSshCredentials returns the SshCredentials field if non-nil, zero value otherwise. + +### GetSshCredentialsOk + +`func (o *CordappDeploymentConfig) GetSshCredentialsOk() (*CordaNodeSshCredentials, bool)` + +GetSshCredentialsOk returns a tuple with the SshCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshCredentials + +`func (o *CordappDeploymentConfig) SetSshCredentials(v CordaNodeSshCredentials)` + +SetSshCredentials sets SshCredentials field to given value. + + +### GetRpcCredentials + +`func (o *CordappDeploymentConfig) GetRpcCredentials() CordaRpcCredentials` + +GetRpcCredentials returns the RpcCredentials field if non-nil, zero value otherwise. + +### GetRpcCredentialsOk + +`func (o *CordappDeploymentConfig) GetRpcCredentialsOk() (*CordaRpcCredentials, bool)` + +GetRpcCredentialsOk returns a tuple with the RpcCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRpcCredentials + +`func (o *CordappDeploymentConfig) SetRpcCredentials(v CordaRpcCredentials)` + +SetRpcCredentials sets RpcCredentials field to given value. + + +### GetCordaNodeStartCmd + +`func (o *CordappDeploymentConfig) GetCordaNodeStartCmd() string` + +GetCordaNodeStartCmd returns the CordaNodeStartCmd field if non-nil, zero value otherwise. + +### GetCordaNodeStartCmdOk + +`func (o *CordappDeploymentConfig) GetCordaNodeStartCmdOk() (*string, bool)` + +GetCordaNodeStartCmdOk returns a tuple with the CordaNodeStartCmd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCordaNodeStartCmd + +`func (o *CordappDeploymentConfig) SetCordaNodeStartCmd(v string)` + +SetCordaNodeStartCmd sets CordaNodeStartCmd field to given value. + + +### GetCordappDir + +`func (o *CordappDeploymentConfig) GetCordappDir() string` + +GetCordappDir returns the CordappDir field if non-nil, zero value otherwise. + +### GetCordappDirOk + +`func (o *CordappDeploymentConfig) GetCordappDirOk() (*string, bool)` + +GetCordappDirOk returns a tuple with the CordappDir field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCordappDir + +`func (o *CordappDeploymentConfig) SetCordappDir(v string)` + +SetCordappDir sets CordappDir field to given value. + + +### GetCordaJarPath + +`func (o *CordappDeploymentConfig) GetCordaJarPath() string` + +GetCordaJarPath returns the CordaJarPath field if non-nil, zero value otherwise. + +### GetCordaJarPathOk + +`func (o *CordappDeploymentConfig) GetCordaJarPathOk() (*string, bool)` + +GetCordaJarPathOk returns a tuple with the CordaJarPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCordaJarPath + +`func (o *CordappDeploymentConfig) SetCordaJarPath(v string)` + +SetCordaJarPath sets CordaJarPath field to given value. + + +### GetNodeBaseDirPath + +`func (o *CordappDeploymentConfig) GetNodeBaseDirPath() string` + +GetNodeBaseDirPath returns the NodeBaseDirPath field if non-nil, zero value otherwise. + +### GetNodeBaseDirPathOk + +`func (o *CordappDeploymentConfig) GetNodeBaseDirPathOk() (*string, bool)` + +GetNodeBaseDirPathOk returns a tuple with the NodeBaseDirPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeBaseDirPath + +`func (o *CordappDeploymentConfig) SetNodeBaseDirPath(v string)` + +SetNodeBaseDirPath sets NodeBaseDirPath field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappInfo.md new file mode 100644 index 00000000000..037ea6aae38 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/CordappInfo.md @@ -0,0 +1,219 @@ +# CordappInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JarHash** | [**SHA256**](SHA256.md) | | +**Licence** | **string** | The name of the licence this CorDapp is released under | +**MinimumPlatformVersion** | **int32** | The minimum platform version the node must be at for the CorDapp to run | +**Name** | **string** | The name of the JAR file that defines the CorDapp | +**ShortName** | **string** | The name of the CorDapp | +**TargetPlatformVersion** | **int32** | The target platform version this CorDapp has been tested against | +**Type** | **string** | A description of what sort of CorDapp this is - either a contract, workflow, or a combination. | +**Vendor** | **string** | The vendor of this CorDapp | +**Version** | **string** | The version of this CorDapp | + +## Methods + +### NewCordappInfo + +`func NewCordappInfo(jarHash SHA256, licence string, minimumPlatformVersion int32, name string, shortName string, targetPlatformVersion int32, type_ string, vendor string, version string, ) *CordappInfo` + +NewCordappInfo instantiates a new CordappInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCordappInfoWithDefaults + +`func NewCordappInfoWithDefaults() *CordappInfo` + +NewCordappInfoWithDefaults instantiates a new CordappInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJarHash + +`func (o *CordappInfo) GetJarHash() SHA256` + +GetJarHash returns the JarHash field if non-nil, zero value otherwise. + +### GetJarHashOk + +`func (o *CordappInfo) GetJarHashOk() (*SHA256, bool)` + +GetJarHashOk returns a tuple with the JarHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJarHash + +`func (o *CordappInfo) SetJarHash(v SHA256)` + +SetJarHash sets JarHash field to given value. + + +### GetLicence + +`func (o *CordappInfo) GetLicence() string` + +GetLicence returns the Licence field if non-nil, zero value otherwise. + +### GetLicenceOk + +`func (o *CordappInfo) GetLicenceOk() (*string, bool)` + +GetLicenceOk returns a tuple with the Licence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicence + +`func (o *CordappInfo) SetLicence(v string)` + +SetLicence sets Licence field to given value. + + +### GetMinimumPlatformVersion + +`func (o *CordappInfo) GetMinimumPlatformVersion() int32` + +GetMinimumPlatformVersion returns the MinimumPlatformVersion field if non-nil, zero value otherwise. + +### GetMinimumPlatformVersionOk + +`func (o *CordappInfo) GetMinimumPlatformVersionOk() (*int32, bool)` + +GetMinimumPlatformVersionOk returns a tuple with the MinimumPlatformVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumPlatformVersion + +`func (o *CordappInfo) SetMinimumPlatformVersion(v int32)` + +SetMinimumPlatformVersion sets MinimumPlatformVersion field to given value. + + +### GetName + +`func (o *CordappInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CordappInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CordappInfo) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortName + +`func (o *CordappInfo) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *CordappInfo) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *CordappInfo) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + + +### GetTargetPlatformVersion + +`func (o *CordappInfo) GetTargetPlatformVersion() int32` + +GetTargetPlatformVersion returns the TargetPlatformVersion field if non-nil, zero value otherwise. + +### GetTargetPlatformVersionOk + +`func (o *CordappInfo) GetTargetPlatformVersionOk() (*int32, bool)` + +GetTargetPlatformVersionOk returns a tuple with the TargetPlatformVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetPlatformVersion + +`func (o *CordappInfo) SetTargetPlatformVersion(v int32)` + +SetTargetPlatformVersion sets TargetPlatformVersion field to given value. + + +### GetType + +`func (o *CordappInfo) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CordappInfo) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CordappInfo) SetType(v string)` + +SetType sets Type field to given value. + + +### GetVendor + +`func (o *CordappInfo) GetVendor() string` + +GetVendor returns the Vendor field if non-nil, zero value otherwise. + +### GetVendorOk + +`func (o *CordappInfo) GetVendorOk() (*string, bool)` + +GetVendorOk returns a tuple with the Vendor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendor + +`func (o *CordappInfo) SetVendor(v string)` + +SetVendor sets Vendor field to given value. + + +### GetVersion + +`func (o *CordappInfo) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *CordappInfo) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *CordappInfo) SetVersion(v string)` + +SetVersion sets Version field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..abf1edcf544 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,659 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClearMonitorTransactionsV1**](DefaultApi.md#ClearMonitorTransactionsV1) | **Delete** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions | Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. +[**DeployContractJarsV1**](DefaultApi.md#DeployContractJarsV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars | Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). +[**DiagnoseNodeV1**](DefaultApi.md#DiagnoseNodeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node | +[**GetMonitorTransactionsV1**](DefaultApi.md#GetMonitorTransactionsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions | Get transactions for monitored state classes. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**InvokeContractV1**](DefaultApi.md#InvokeContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract | Invokes a contract on a Corda ledger (e.g. a flow) +[**ListFlowsV1**](DefaultApi.md#ListFlowsV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows | +[**NetworkMapV1**](DefaultApi.md#NetworkMapV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map | +[**StartMonitorV1**](DefaultApi.md#StartMonitorV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor | Start monitoring corda changes (transactions) of given state class +[**StopMonitorV1**](DefaultApi.md#StopMonitorV1) | **Delete** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor | Stop monitoring corda changes (transactions) of given state class + + + +## ClearMonitorTransactionsV1 + +> ClearMonitorTransactionsV1Response ClearMonitorTransactionsV1(ctx).ClearMonitorTransactionsV1Request(clearMonitorTransactionsV1Request).Execute() + +Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + clearMonitorTransactionsV1Request := *openapiclient.NewClearMonitorTransactionsV1Request("frond_v1_x_7Hdg6s", "net.corda.samples.example.states.IOUState", []string{"TxIndexes_example"}) // ClearMonitorTransactionsV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.ClearMonitorTransactionsV1(context.Background()).ClearMonitorTransactionsV1Request(clearMonitorTransactionsV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ClearMonitorTransactionsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ClearMonitorTransactionsV1`: ClearMonitorTransactionsV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ClearMonitorTransactionsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiClearMonitorTransactionsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clearMonitorTransactionsV1Request** | [**ClearMonitorTransactionsV1Request**](ClearMonitorTransactionsV1Request.md) | | + +### Return type + +[**ClearMonitorTransactionsV1Response**](ClearMonitorTransactionsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeployContractJarsV1 + +> DeployContractJarsSuccessV1Response DeployContractJarsV1(ctx).DeployContractJarsV1Request(deployContractJarsV1Request).Execute() + +Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractJarsV1Request := *openapiclient.NewDeployContractJarsV1Request([]openapiclient.CordappDeploymentConfig{*openapiclient.NewCordappDeploymentConfig(*openapiclient.NewCordaNodeSshCredentials("localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmhSBtMctNa4hsZt8QGlsYSE5/gMkjeand69Vj4ir13", "Username_example", "Password_example", "Hostname_example", int32(123)), *openapiclient.NewCordaRpcCredentials("Hostname_example", int32(123), "Username_example", "Password_example"), "./build/nodes/runNodes", "CordappDir_example", "CordaJarPath_example", "NodeBaseDirPath_example")}, []openapiclient.JarFile{*openapiclient.NewJarFile("Filename_example", false, "ContentBase64_example")}) // DeployContractJarsV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractJarsV1(context.Background()).DeployContractJarsV1Request(deployContractJarsV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractJarsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractJarsV1`: DeployContractJarsSuccessV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractJarsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractJarsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractJarsV1Request** | [**DeployContractJarsV1Request**](DeployContractJarsV1Request.md) | | + +### Return type + +[**DeployContractJarsSuccessV1Response**](DeployContractJarsSuccessV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DiagnoseNodeV1 + +> DiagnoseNodeV1Response DiagnoseNodeV1(ctx).DiagnoseNodeV1Request(diagnoseNodeV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + diagnoseNodeV1Request := *openapiclient.NewDiagnoseNodeV1Request() // DiagnoseNodeV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DiagnoseNodeV1(context.Background()).DiagnoseNodeV1Request(diagnoseNodeV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DiagnoseNodeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DiagnoseNodeV1`: DiagnoseNodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DiagnoseNodeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDiagnoseNodeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **diagnoseNodeV1Request** | [**DiagnoseNodeV1Request**](DiagnoseNodeV1Request.md) | | + +### Return type + +[**DiagnoseNodeV1Response**](DiagnoseNodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMonitorTransactionsV1 + +> GetMonitorTransactionsV1Response GetMonitorTransactionsV1(ctx).GetMonitorTransactionsV1Request(getMonitorTransactionsV1Request).Execute() + +Get transactions for monitored state classes. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + getMonitorTransactionsV1Request := *openapiclient.NewGetMonitorTransactionsV1Request("frond_v1_x_7Hdg6s", "net.corda.samples.example.states.IOUState") // GetMonitorTransactionsV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetMonitorTransactionsV1(context.Background()).GetMonitorTransactionsV1Request(getMonitorTransactionsV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetMonitorTransactionsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMonitorTransactionsV1`: GetMonitorTransactionsV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetMonitorTransactionsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMonitorTransactionsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getMonitorTransactionsV1Request** | [**GetMonitorTransactionsV1Request**](GetMonitorTransactionsV1Request.md) | | + +### Return type + +[**GetMonitorTransactionsV1Response**](GetMonitorTransactionsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1 + +> InvokeContractV1Response InvokeContractV1(ctx).InvokeContractV1Request(invokeContractV1Request).Execute() + +Invokes a contract on a Corda ledger (e.g. a flow) + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractV1Request := *openapiclient.NewInvokeContractV1Request("net.corda.samples.obligation.flows.IOUIssueFlow", openapiclient.FlowInvocationType("TRACKED_FLOW_DYNAMIC"), []openapiclient.JvmObject{*openapiclient.NewJvmObject(openapiclient.JvmTypeKind("PRIMITIVE"), *openapiclient.NewJvmType("FqClassName_example"))}) // InvokeContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).InvokeContractV1Request(invokeContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListFlowsV1 + +> ListFlowsV1Response ListFlowsV1(ctx).ListFlowsV1Request(listFlowsV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + listFlowsV1Request := *openapiclient.NewListFlowsV1Request() // ListFlowsV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.ListFlowsV1(context.Background()).ListFlowsV1Request(listFlowsV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListFlowsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFlowsV1`: ListFlowsV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListFlowsV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListFlowsV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listFlowsV1Request** | [**ListFlowsV1Request**](ListFlowsV1Request.md) | | + +### Return type + +[**ListFlowsV1Response**](ListFlowsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## NetworkMapV1 + +> []NodeInfo NetworkMapV1(ctx).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.NetworkMapV1(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.NetworkMapV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `NetworkMapV1`: []NodeInfo + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.NetworkMapV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiNetworkMapV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + +[**[]NodeInfo**](NodeInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StartMonitorV1 + +> StartMonitorV1Response StartMonitorV1(ctx).StartMonitorV1Request(startMonitorV1Request).Execute() + +Start monitoring corda changes (transactions) of given state class + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + startMonitorV1Request := *openapiclient.NewStartMonitorV1Request("frond_v1_x_7Hdg6s", "net.corda.samples.example.states.IOUState") // StartMonitorV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.StartMonitorV1(context.Background()).StartMonitorV1Request(startMonitorV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.StartMonitorV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartMonitorV1`: StartMonitorV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.StartMonitorV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiStartMonitorV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startMonitorV1Request** | [**StartMonitorV1Request**](StartMonitorV1Request.md) | | + +### Return type + +[**StartMonitorV1Response**](StartMonitorV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StopMonitorV1 + +> StopMonitorV1Response StopMonitorV1(ctx).StopMonitorV1Request(stopMonitorV1Request).Execute() + +Stop monitoring corda changes (transactions) of given state class + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func main() { + stopMonitorV1Request := *openapiclient.NewStopMonitorV1Request("frond_v1_x_7Hdg6s", "net.corda.samples.example.states.IOUState") // StopMonitorV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.StopMonitorV1(context.Background()).StopMonitorV1Request(stopMonitorV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.StopMonitorV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StopMonitorV1`: StopMonitorV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.StopMonitorV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiStopMonitorV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stopMonitorV1Request** | [**StopMonitorV1Request**](StopMonitorV1Request.md) | | + +### Return type + +[**StopMonitorV1Response**](StopMonitorV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsBadRequestV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsBadRequestV1Response.md new file mode 100644 index 00000000000..cd807b39cad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsBadRequestV1Response.md @@ -0,0 +1,51 @@ +# DeployContractJarsBadRequestV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errors** | **[]string** | | + +## Methods + +### NewDeployContractJarsBadRequestV1Response + +`func NewDeployContractJarsBadRequestV1Response(errors []string, ) *DeployContractJarsBadRequestV1Response` + +NewDeployContractJarsBadRequestV1Response instantiates a new DeployContractJarsBadRequestV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractJarsBadRequestV1ResponseWithDefaults + +`func NewDeployContractJarsBadRequestV1ResponseWithDefaults() *DeployContractJarsBadRequestV1Response` + +NewDeployContractJarsBadRequestV1ResponseWithDefaults instantiates a new DeployContractJarsBadRequestV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrors + +`func (o *DeployContractJarsBadRequestV1Response) GetErrors() []string` + +GetErrors returns the Errors field if non-nil, zero value otherwise. + +### GetErrorsOk + +`func (o *DeployContractJarsBadRequestV1Response) GetErrorsOk() (*[]string, bool)` + +GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrors + +`func (o *DeployContractJarsBadRequestV1Response) SetErrors(v []string)` + +SetErrors sets Errors field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsSuccessV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsSuccessV1Response.md new file mode 100644 index 00000000000..093c00208e1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsSuccessV1Response.md @@ -0,0 +1,51 @@ +# DeployContractJarsSuccessV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeployedJarFiles** | **[]string** | | + +## Methods + +### NewDeployContractJarsSuccessV1Response + +`func NewDeployContractJarsSuccessV1Response(deployedJarFiles []string, ) *DeployContractJarsSuccessV1Response` + +NewDeployContractJarsSuccessV1Response instantiates a new DeployContractJarsSuccessV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractJarsSuccessV1ResponseWithDefaults + +`func NewDeployContractJarsSuccessV1ResponseWithDefaults() *DeployContractJarsSuccessV1Response` + +NewDeployContractJarsSuccessV1ResponseWithDefaults instantiates a new DeployContractJarsSuccessV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeployedJarFiles + +`func (o *DeployContractJarsSuccessV1Response) GetDeployedJarFiles() []string` + +GetDeployedJarFiles returns the DeployedJarFiles field if non-nil, zero value otherwise. + +### GetDeployedJarFilesOk + +`func (o *DeployContractJarsSuccessV1Response) GetDeployedJarFilesOk() (*[]string, bool)` + +GetDeployedJarFilesOk returns a tuple with the DeployedJarFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedJarFiles + +`func (o *DeployContractJarsSuccessV1Response) SetDeployedJarFiles(v []string)` + +SetDeployedJarFiles sets DeployedJarFiles field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsV1Request.md new file mode 100644 index 00000000000..5226e8e2aae --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DeployContractJarsV1Request.md @@ -0,0 +1,72 @@ +# DeployContractJarsV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CordappDeploymentConfigs** | [**[]CordappDeploymentConfig**](CordappDeploymentConfig.md) | The list of deployment configurations pointing to the nodes where the provided cordapp jar files are to be deployed . | [default to []] +**JarFiles** | [**[]JarFile**](JarFile.md) | | + +## Methods + +### NewDeployContractJarsV1Request + +`func NewDeployContractJarsV1Request(cordappDeploymentConfigs []CordappDeploymentConfig, jarFiles []JarFile, ) *DeployContractJarsV1Request` + +NewDeployContractJarsV1Request instantiates a new DeployContractJarsV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractJarsV1RequestWithDefaults + +`func NewDeployContractJarsV1RequestWithDefaults() *DeployContractJarsV1Request` + +NewDeployContractJarsV1RequestWithDefaults instantiates a new DeployContractJarsV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCordappDeploymentConfigs + +`func (o *DeployContractJarsV1Request) GetCordappDeploymentConfigs() []CordappDeploymentConfig` + +GetCordappDeploymentConfigs returns the CordappDeploymentConfigs field if non-nil, zero value otherwise. + +### GetCordappDeploymentConfigsOk + +`func (o *DeployContractJarsV1Request) GetCordappDeploymentConfigsOk() (*[]CordappDeploymentConfig, bool)` + +GetCordappDeploymentConfigsOk returns a tuple with the CordappDeploymentConfigs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCordappDeploymentConfigs + +`func (o *DeployContractJarsV1Request) SetCordappDeploymentConfigs(v []CordappDeploymentConfig)` + +SetCordappDeploymentConfigs sets CordappDeploymentConfigs field to given value. + + +### GetJarFiles + +`func (o *DeployContractJarsV1Request) GetJarFiles() []JarFile` + +GetJarFiles returns the JarFiles field if non-nil, zero value otherwise. + +### GetJarFilesOk + +`func (o *DeployContractJarsV1Request) GetJarFilesOk() (*[]JarFile, bool)` + +GetJarFilesOk returns a tuple with the JarFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJarFiles + +`func (o *DeployContractJarsV1Request) SetJarFiles(v []JarFile)` + +SetJarFiles sets JarFiles field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Request.md new file mode 100644 index 00000000000..edd724777ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Request.md @@ -0,0 +1,56 @@ +# DiagnoseNodeV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeIds** | Pointer to **[]string** | Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). | [optional] [default to []] + +## Methods + +### NewDiagnoseNodeV1Request + +`func NewDiagnoseNodeV1Request() *DiagnoseNodeV1Request` + +NewDiagnoseNodeV1Request instantiates a new DiagnoseNodeV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDiagnoseNodeV1RequestWithDefaults + +`func NewDiagnoseNodeV1RequestWithDefaults() *DiagnoseNodeV1Request` + +NewDiagnoseNodeV1RequestWithDefaults instantiates a new DiagnoseNodeV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeIds + +`func (o *DiagnoseNodeV1Request) GetNodeIds() []string` + +GetNodeIds returns the NodeIds field if non-nil, zero value otherwise. + +### GetNodeIdsOk + +`func (o *DiagnoseNodeV1Request) GetNodeIdsOk() (*[]string, bool)` + +GetNodeIdsOk returns a tuple with the NodeIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeIds + +`func (o *DiagnoseNodeV1Request) SetNodeIds(v []string)` + +SetNodeIds sets NodeIds field to given value. + +### HasNodeIds + +`func (o *DiagnoseNodeV1Request) HasNodeIds() bool` + +HasNodeIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Response.md new file mode 100644 index 00000000000..483ba24ef3f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/DiagnoseNodeV1Response.md @@ -0,0 +1,51 @@ +# DiagnoseNodeV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeDiagnosticInfo** | [**NodeDiagnosticInfo**](NodeDiagnosticInfo.md) | | + +## Methods + +### NewDiagnoseNodeV1Response + +`func NewDiagnoseNodeV1Response(nodeDiagnosticInfo NodeDiagnosticInfo, ) *DiagnoseNodeV1Response` + +NewDiagnoseNodeV1Response instantiates a new DiagnoseNodeV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDiagnoseNodeV1ResponseWithDefaults + +`func NewDiagnoseNodeV1ResponseWithDefaults() *DiagnoseNodeV1Response` + +NewDiagnoseNodeV1ResponseWithDefaults instantiates a new DiagnoseNodeV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeDiagnosticInfo + +`func (o *DiagnoseNodeV1Response) GetNodeDiagnosticInfo() NodeDiagnosticInfo` + +GetNodeDiagnosticInfo returns the NodeDiagnosticInfo field if non-nil, zero value otherwise. + +### GetNodeDiagnosticInfoOk + +`func (o *DiagnoseNodeV1Response) GetNodeDiagnosticInfoOk() (*NodeDiagnosticInfo, bool)` + +GetNodeDiagnosticInfoOk returns a tuple with the NodeDiagnosticInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeDiagnosticInfo + +`func (o *DiagnoseNodeV1Response) SetNodeDiagnosticInfo(v NodeDiagnosticInfo)` + +SetNodeDiagnosticInfo sets NodeDiagnosticInfo field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/FlowInvocationType.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/FlowInvocationType.md new file mode 100644 index 00000000000..2f0ceaf592b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/FlowInvocationType.md @@ -0,0 +1,13 @@ +# FlowInvocationType + +## Enum + + +* `TRACKED_FLOW_DYNAMIC` (value: `"TRACKED_FLOW_DYNAMIC"`) + +* `FLOW_DYNAMIC` (value: `"FLOW_DYNAMIC"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Request.md new file mode 100644 index 00000000000..22df94698e9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Request.md @@ -0,0 +1,72 @@ +# GetMonitorTransactionsV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientAppId** | **string** | ID of a client application that wants to monitor the state changes | +**StateFullClassName** | **string** | The fully qualified name of the Corda state to monitor | + +## Methods + +### NewGetMonitorTransactionsV1Request + +`func NewGetMonitorTransactionsV1Request(clientAppId string, stateFullClassName string, ) *GetMonitorTransactionsV1Request` + +NewGetMonitorTransactionsV1Request instantiates a new GetMonitorTransactionsV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetMonitorTransactionsV1RequestWithDefaults + +`func NewGetMonitorTransactionsV1RequestWithDefaults() *GetMonitorTransactionsV1Request` + +NewGetMonitorTransactionsV1RequestWithDefaults instantiates a new GetMonitorTransactionsV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientAppId + +`func (o *GetMonitorTransactionsV1Request) GetClientAppId() string` + +GetClientAppId returns the ClientAppId field if non-nil, zero value otherwise. + +### GetClientAppIdOk + +`func (o *GetMonitorTransactionsV1Request) GetClientAppIdOk() (*string, bool)` + +GetClientAppIdOk returns a tuple with the ClientAppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAppId + +`func (o *GetMonitorTransactionsV1Request) SetClientAppId(v string)` + +SetClientAppId sets ClientAppId field to given value. + + +### GetStateFullClassName + +`func (o *GetMonitorTransactionsV1Request) GetStateFullClassName() string` + +GetStateFullClassName returns the StateFullClassName field if non-nil, zero value otherwise. + +### GetStateFullClassNameOk + +`func (o *GetMonitorTransactionsV1Request) GetStateFullClassNameOk() (*string, bool)` + +GetStateFullClassNameOk returns a tuple with the StateFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateFullClassName + +`func (o *GetMonitorTransactionsV1Request) SetStateFullClassName(v string)` + +SetStateFullClassName sets StateFullClassName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Response.md new file mode 100644 index 00000000000..13eaf00feef --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1Response.md @@ -0,0 +1,124 @@ +# GetMonitorTransactionsV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Flag set to true if operation completed correctly. | +**Msg** | **string** | Message describing operation status or any errors that occurred. | +**StateFullClassName** | Pointer to **string** | The fully qualified name of the Corda state to monitor | [optional] +**Tx** | Pointer to [**[]GetMonitorTransactionsV1ResponseTxInner**](GetMonitorTransactionsV1ResponseTxInner.md) | | [optional] [default to []] + +## Methods + +### NewGetMonitorTransactionsV1Response + +`func NewGetMonitorTransactionsV1Response(success bool, msg string, ) *GetMonitorTransactionsV1Response` + +NewGetMonitorTransactionsV1Response instantiates a new GetMonitorTransactionsV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetMonitorTransactionsV1ResponseWithDefaults + +`func NewGetMonitorTransactionsV1ResponseWithDefaults() *GetMonitorTransactionsV1Response` + +NewGetMonitorTransactionsV1ResponseWithDefaults instantiates a new GetMonitorTransactionsV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *GetMonitorTransactionsV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *GetMonitorTransactionsV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *GetMonitorTransactionsV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMsg + +`func (o *GetMonitorTransactionsV1Response) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *GetMonitorTransactionsV1Response) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *GetMonitorTransactionsV1Response) SetMsg(v string)` + +SetMsg sets Msg field to given value. + + +### GetStateFullClassName + +`func (o *GetMonitorTransactionsV1Response) GetStateFullClassName() string` + +GetStateFullClassName returns the StateFullClassName field if non-nil, zero value otherwise. + +### GetStateFullClassNameOk + +`func (o *GetMonitorTransactionsV1Response) GetStateFullClassNameOk() (*string, bool)` + +GetStateFullClassNameOk returns a tuple with the StateFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateFullClassName + +`func (o *GetMonitorTransactionsV1Response) SetStateFullClassName(v string)` + +SetStateFullClassName sets StateFullClassName field to given value. + +### HasStateFullClassName + +`func (o *GetMonitorTransactionsV1Response) HasStateFullClassName() bool` + +HasStateFullClassName returns a boolean if a field has been set. + +### GetTx + +`func (o *GetMonitorTransactionsV1Response) GetTx() []GetMonitorTransactionsV1ResponseTxInner` + +GetTx returns the Tx field if non-nil, zero value otherwise. + +### GetTxOk + +`func (o *GetMonitorTransactionsV1Response) GetTxOk() (*[]GetMonitorTransactionsV1ResponseTxInner, bool)` + +GetTxOk returns a tuple with the Tx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTx + +`func (o *GetMonitorTransactionsV1Response) SetTx(v []GetMonitorTransactionsV1ResponseTxInner)` + +SetTx sets Tx field to given value. + +### HasTx + +`func (o *GetMonitorTransactionsV1Response) HasTx() bool` + +HasTx returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1ResponseTxInner.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1ResponseTxInner.md new file mode 100644 index 00000000000..c0a88806c9a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/GetMonitorTransactionsV1ResponseTxInner.md @@ -0,0 +1,82 @@ +# GetMonitorTransactionsV1ResponseTxInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Index** | Pointer to **string** | | [optional] +**Data** | Pointer to **string** | | [optional] + +## Methods + +### NewGetMonitorTransactionsV1ResponseTxInner + +`func NewGetMonitorTransactionsV1ResponseTxInner() *GetMonitorTransactionsV1ResponseTxInner` + +NewGetMonitorTransactionsV1ResponseTxInner instantiates a new GetMonitorTransactionsV1ResponseTxInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetMonitorTransactionsV1ResponseTxInnerWithDefaults + +`func NewGetMonitorTransactionsV1ResponseTxInnerWithDefaults() *GetMonitorTransactionsV1ResponseTxInner` + +NewGetMonitorTransactionsV1ResponseTxInnerWithDefaults instantiates a new GetMonitorTransactionsV1ResponseTxInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIndex + +`func (o *GetMonitorTransactionsV1ResponseTxInner) GetIndex() string` + +GetIndex returns the Index field if non-nil, zero value otherwise. + +### GetIndexOk + +`func (o *GetMonitorTransactionsV1ResponseTxInner) GetIndexOk() (*string, bool)` + +GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndex + +`func (o *GetMonitorTransactionsV1ResponseTxInner) SetIndex(v string)` + +SetIndex sets Index field to given value. + +### HasIndex + +`func (o *GetMonitorTransactionsV1ResponseTxInner) HasIndex() bool` + +HasIndex returns a boolean if a field has been set. + +### GetData + +`func (o *GetMonitorTransactionsV1ResponseTxInner) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetMonitorTransactionsV1ResponseTxInner) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GetMonitorTransactionsV1ResponseTxInner) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GetMonitorTransactionsV1ResponseTxInner) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md new file mode 100644 index 00000000000..e64fc91eb52 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md @@ -0,0 +1,119 @@ +# InvokeContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowFullClassName** | **string** | The fully qualified name of the Corda flow to invoke | +**FlowInvocationType** | [**FlowInvocationType**](FlowInvocationType.md) | | +**Params** | [**[]JvmObject**](JvmObject.md) | The list of arguments to pass in to the contract method being invoked. | [default to []] +**TimeoutMs** | Pointer to **int32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. | [optional] [default to 60000] + +## Methods + +### NewInvokeContractV1Request + +`func NewInvokeContractV1Request(flowFullClassName string, flowInvocationType FlowInvocationType, params []JvmObject, ) *InvokeContractV1Request` + +NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1RequestWithDefaults + +`func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request` + +NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFlowFullClassName + +`func (o *InvokeContractV1Request) GetFlowFullClassName() string` + +GetFlowFullClassName returns the FlowFullClassName field if non-nil, zero value otherwise. + +### GetFlowFullClassNameOk + +`func (o *InvokeContractV1Request) GetFlowFullClassNameOk() (*string, bool)` + +GetFlowFullClassNameOk returns a tuple with the FlowFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowFullClassName + +`func (o *InvokeContractV1Request) SetFlowFullClassName(v string)` + +SetFlowFullClassName sets FlowFullClassName field to given value. + + +### GetFlowInvocationType + +`func (o *InvokeContractV1Request) GetFlowInvocationType() FlowInvocationType` + +GetFlowInvocationType returns the FlowInvocationType field if non-nil, zero value otherwise. + +### GetFlowInvocationTypeOk + +`func (o *InvokeContractV1Request) GetFlowInvocationTypeOk() (*FlowInvocationType, bool)` + +GetFlowInvocationTypeOk returns a tuple with the FlowInvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowInvocationType + +`func (o *InvokeContractV1Request) SetFlowInvocationType(v FlowInvocationType)` + +SetFlowInvocationType sets FlowInvocationType field to given value. + + +### GetParams + +`func (o *InvokeContractV1Request) GetParams() []JvmObject` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractV1Request) GetParamsOk() (*[]JvmObject, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractV1Request) SetParams(v []JvmObject)` + +SetParams sets Params field to given value. + + +### GetTimeoutMs + +`func (o *InvokeContractV1Request) GetTimeoutMs() int32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractV1Request) GetTimeoutMsOk() (*int32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractV1Request) SetTimeoutMs(v int32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..08faa5ac928 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,145 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**CallOutput** | **map[string]interface{}** | Data returned from the JVM when no transaction is running | +**TransactionId** | Pointer to **string** | The net.corda.core.flows.StateMachineRunId value returned by the flow execution. | [optional] +**Progress** | Pointer to **[]string** | An array of strings representing the aggregated stream of progress updates provided by a *tracked* flow invocation. If the flow invocation was not tracked, this array is still returned, but as empty. | [optional] [default to []] +**FlowId** | **string** | The id for the flow handle | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, callOutput map[string]interface{}, flowId string, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() map[string]interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*map[string]interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v map[string]interface{})` + +SetCallOutput sets CallOutput field to given value. + + +### GetTransactionId + +`func (o *InvokeContractV1Response) GetTransactionId() string` + +GetTransactionId returns the TransactionId field if non-nil, zero value otherwise. + +### GetTransactionIdOk + +`func (o *InvokeContractV1Response) GetTransactionIdOk() (*string, bool)` + +GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionId + +`func (o *InvokeContractV1Response) SetTransactionId(v string)` + +SetTransactionId sets TransactionId field to given value. + +### HasTransactionId + +`func (o *InvokeContractV1Response) HasTransactionId() bool` + +HasTransactionId returns a boolean if a field has been set. + +### GetProgress + +`func (o *InvokeContractV1Response) GetProgress() []string` + +GetProgress returns the Progress field if non-nil, zero value otherwise. + +### GetProgressOk + +`func (o *InvokeContractV1Response) GetProgressOk() (*[]string, bool)` + +GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgress + +`func (o *InvokeContractV1Response) SetProgress(v []string)` + +SetProgress sets Progress field to given value. + +### HasProgress + +`func (o *InvokeContractV1Response) HasProgress() bool` + +HasProgress returns a boolean if a field has been set. + +### GetFlowId + +`func (o *InvokeContractV1Response) GetFlowId() string` + +GetFlowId returns the FlowId field if non-nil, zero value otherwise. + +### GetFlowIdOk + +`func (o *InvokeContractV1Response) GetFlowIdOk() (*string, bool)` + +GetFlowIdOk returns a tuple with the FlowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowId + +`func (o *InvokeContractV1Response) SetFlowId(v string)` + +SetFlowId sets FlowId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JarFile.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JarFile.md new file mode 100644 index 00000000000..e797b0b7926 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JarFile.md @@ -0,0 +1,93 @@ +# JarFile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filename** | **string** | | +**HasDbMigrations** | **bool** | Indicates whether the cordapp jar in question contains any embedded migrations that Cactus can/should execute between copying the jar into the cordapp directory and starting the node back up. | +**ContentBase64** | **string** | | + +## Methods + +### NewJarFile + +`func NewJarFile(filename string, hasDbMigrations bool, contentBase64 string, ) *JarFile` + +NewJarFile instantiates a new JarFile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJarFileWithDefaults + +`func NewJarFileWithDefaults() *JarFile` + +NewJarFileWithDefaults instantiates a new JarFile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilename + +`func (o *JarFile) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *JarFile) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *JarFile) SetFilename(v string)` + +SetFilename sets Filename field to given value. + + +### GetHasDbMigrations + +`func (o *JarFile) GetHasDbMigrations() bool` + +GetHasDbMigrations returns the HasDbMigrations field if non-nil, zero value otherwise. + +### GetHasDbMigrationsOk + +`func (o *JarFile) GetHasDbMigrationsOk() (*bool, bool)` + +GetHasDbMigrationsOk returns a tuple with the HasDbMigrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasDbMigrations + +`func (o *JarFile) SetHasDbMigrations(v bool)` + +SetHasDbMigrations sets HasDbMigrations field to given value. + + +### GetContentBase64 + +`func (o *JarFile) GetContentBase64() string` + +GetContentBase64 returns the ContentBase64 field if non-nil, zero value otherwise. + +### GetContentBase64Ok + +`func (o *JarFile) GetContentBase64Ok() (*string, bool)` + +GetContentBase64Ok returns a tuple with the ContentBase64 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentBase64 + +`func (o *JarFile) SetContentBase64(v string)` + +SetContentBase64 sets ContentBase64 field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmObject.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmObject.md new file mode 100644 index 00000000000..eb54b468803 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmObject.md @@ -0,0 +1,124 @@ +# JvmObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JvmTypeKind** | [**JvmTypeKind**](JvmTypeKind.md) | | +**PrimitiveValue** | Pointer to **map[string]interface{}** | | [optional] +**JvmCtorArgs** | Pointer to [**[]JvmObject**](JvmObject.md) | | [optional] [default to []] +**JvmType** | [**JvmType**](JvmType.md) | | + +## Methods + +### NewJvmObject + +`func NewJvmObject(jvmTypeKind JvmTypeKind, jvmType JvmType, ) *JvmObject` + +NewJvmObject instantiates a new JvmObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJvmObjectWithDefaults + +`func NewJvmObjectWithDefaults() *JvmObject` + +NewJvmObjectWithDefaults instantiates a new JvmObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJvmTypeKind + +`func (o *JvmObject) GetJvmTypeKind() JvmTypeKind` + +GetJvmTypeKind returns the JvmTypeKind field if non-nil, zero value otherwise. + +### GetJvmTypeKindOk + +`func (o *JvmObject) GetJvmTypeKindOk() (*JvmTypeKind, bool)` + +GetJvmTypeKindOk returns a tuple with the JvmTypeKind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJvmTypeKind + +`func (o *JvmObject) SetJvmTypeKind(v JvmTypeKind)` + +SetJvmTypeKind sets JvmTypeKind field to given value. + + +### GetPrimitiveValue + +`func (o *JvmObject) GetPrimitiveValue() map[string]interface{}` + +GetPrimitiveValue returns the PrimitiveValue field if non-nil, zero value otherwise. + +### GetPrimitiveValueOk + +`func (o *JvmObject) GetPrimitiveValueOk() (*map[string]interface{}, bool)` + +GetPrimitiveValueOk returns a tuple with the PrimitiveValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimitiveValue + +`func (o *JvmObject) SetPrimitiveValue(v map[string]interface{})` + +SetPrimitiveValue sets PrimitiveValue field to given value. + +### HasPrimitiveValue + +`func (o *JvmObject) HasPrimitiveValue() bool` + +HasPrimitiveValue returns a boolean if a field has been set. + +### GetJvmCtorArgs + +`func (o *JvmObject) GetJvmCtorArgs() []JvmObject` + +GetJvmCtorArgs returns the JvmCtorArgs field if non-nil, zero value otherwise. + +### GetJvmCtorArgsOk + +`func (o *JvmObject) GetJvmCtorArgsOk() (*[]JvmObject, bool)` + +GetJvmCtorArgsOk returns a tuple with the JvmCtorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJvmCtorArgs + +`func (o *JvmObject) SetJvmCtorArgs(v []JvmObject)` + +SetJvmCtorArgs sets JvmCtorArgs field to given value. + +### HasJvmCtorArgs + +`func (o *JvmObject) HasJvmCtorArgs() bool` + +HasJvmCtorArgs returns a boolean if a field has been set. + +### GetJvmType + +`func (o *JvmObject) GetJvmType() JvmType` + +GetJvmType returns the JvmType field if non-nil, zero value otherwise. + +### GetJvmTypeOk + +`func (o *JvmObject) GetJvmTypeOk() (*JvmType, bool)` + +GetJvmTypeOk returns a tuple with the JvmType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJvmType + +`func (o *JvmObject) SetJvmType(v JvmType)` + +SetJvmType sets JvmType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmType.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmType.md new file mode 100644 index 00000000000..b2bbc7e6452 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmType.md @@ -0,0 +1,103 @@ +# JvmType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FqClassName** | **string** | | +**ConstructorName** | Pointer to **string** | This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors. | [optional] +**InvocationTarget** | Pointer to [**JvmObject**](JvmObject.md) | | [optional] + +## Methods + +### NewJvmType + +`func NewJvmType(fqClassName string, ) *JvmType` + +NewJvmType instantiates a new JvmType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJvmTypeWithDefaults + +`func NewJvmTypeWithDefaults() *JvmType` + +NewJvmTypeWithDefaults instantiates a new JvmType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFqClassName + +`func (o *JvmType) GetFqClassName() string` + +GetFqClassName returns the FqClassName field if non-nil, zero value otherwise. + +### GetFqClassNameOk + +`func (o *JvmType) GetFqClassNameOk() (*string, bool)` + +GetFqClassNameOk returns a tuple with the FqClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFqClassName + +`func (o *JvmType) SetFqClassName(v string)` + +SetFqClassName sets FqClassName field to given value. + + +### GetConstructorName + +`func (o *JvmType) GetConstructorName() string` + +GetConstructorName returns the ConstructorName field if non-nil, zero value otherwise. + +### GetConstructorNameOk + +`func (o *JvmType) GetConstructorNameOk() (*string, bool)` + +GetConstructorNameOk returns a tuple with the ConstructorName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorName + +`func (o *JvmType) SetConstructorName(v string)` + +SetConstructorName sets ConstructorName field to given value. + +### HasConstructorName + +`func (o *JvmType) HasConstructorName() bool` + +HasConstructorName returns a boolean if a field has been set. + +### GetInvocationTarget + +`func (o *JvmType) GetInvocationTarget() JvmObject` + +GetInvocationTarget returns the InvocationTarget field if non-nil, zero value otherwise. + +### GetInvocationTargetOk + +`func (o *JvmType) GetInvocationTargetOk() (*JvmObject, bool)` + +GetInvocationTargetOk returns a tuple with the InvocationTarget field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationTarget + +`func (o *JvmType) SetInvocationTarget(v JvmObject)` + +SetInvocationTarget sets InvocationTarget field to given value. + +### HasInvocationTarget + +`func (o *JvmType) HasInvocationTarget() bool` + +HasInvocationTarget returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmTypeKind.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmTypeKind.md new file mode 100644 index 00000000000..70de49560be --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/JvmTypeKind.md @@ -0,0 +1,13 @@ +# JvmTypeKind + +## Enum + + +* `PRIMITIVE` (value: `"PRIMITIVE"`) + +* `REFERENCE` (value: `"REFERENCE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Request.md new file mode 100644 index 00000000000..effcff260c7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Request.md @@ -0,0 +1,56 @@ +# ListFlowsV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | Pointer to **string** | | [optional] + +## Methods + +### NewListFlowsV1Request + +`func NewListFlowsV1Request() *ListFlowsV1Request` + +NewListFlowsV1Request instantiates a new ListFlowsV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListFlowsV1RequestWithDefaults + +`func NewListFlowsV1RequestWithDefaults() *ListFlowsV1Request` + +NewListFlowsV1RequestWithDefaults instantiates a new ListFlowsV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilter + +`func (o *ListFlowsV1Request) GetFilter() string` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *ListFlowsV1Request) GetFilterOk() (*string, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *ListFlowsV1Request) SetFilter(v string)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *ListFlowsV1Request) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Response.md new file mode 100644 index 00000000000..dc9356e8c4a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/ListFlowsV1Response.md @@ -0,0 +1,51 @@ +# ListFlowsV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowNames** | **[]string** | An array of strings storing the names of the flows as returned by the flowList Corda RPC. | [default to []] + +## Methods + +### NewListFlowsV1Response + +`func NewListFlowsV1Response(flowNames []string, ) *ListFlowsV1Response` + +NewListFlowsV1Response instantiates a new ListFlowsV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListFlowsV1ResponseWithDefaults + +`func NewListFlowsV1ResponseWithDefaults() *ListFlowsV1Response` + +NewListFlowsV1ResponseWithDefaults instantiates a new ListFlowsV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFlowNames + +`func (o *ListFlowsV1Response) GetFlowNames() []string` + +GetFlowNames returns the FlowNames field if non-nil, zero value otherwise. + +### GetFlowNamesOk + +`func (o *ListFlowsV1Response) GetFlowNamesOk() (*[]string, bool)` + +GetFlowNamesOk returns a tuple with the FlowNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowNames + +`func (o *ListFlowsV1Response) SetFlowNames(v []string)` + +SetFlowNames sets FlowNames field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NetworkHostAndPort.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NetworkHostAndPort.md new file mode 100644 index 00000000000..11508c15236 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NetworkHostAndPort.md @@ -0,0 +1,72 @@ +# NetworkHostAndPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | **string** | | +**Port** | **float32** | | + +## Methods + +### NewNetworkHostAndPort + +`func NewNetworkHostAndPort(host string, port float32, ) *NetworkHostAndPort` + +NewNetworkHostAndPort instantiates a new NetworkHostAndPort object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkHostAndPortWithDefaults + +`func NewNetworkHostAndPortWithDefaults() *NetworkHostAndPort` + +NewNetworkHostAndPortWithDefaults instantiates a new NetworkHostAndPort object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *NetworkHostAndPort) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *NetworkHostAndPort) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *NetworkHostAndPort) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetPort + +`func (o *NetworkHostAndPort) GetPort() float32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *NetworkHostAndPort) GetPortOk() (*float32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *NetworkHostAndPort) SetPort(v float32)` + +SetPort sets Port field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeDiagnosticInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeDiagnosticInfo.md new file mode 100644 index 00000000000..fa37bc4afeb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeDiagnosticInfo.md @@ -0,0 +1,135 @@ +# NodeDiagnosticInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cordapps** | [**[]CordappInfo**](CordappInfo.md) | A list of CorDapps currently installed on this node | +**PlatformVersion** | **int32** | The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists) | +**Revision** | **string** | The git commit hash this node was built from | +**Vendor** | **string** | The vendor of this node | +**Version** | **string** | The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this). | + +## Methods + +### NewNodeDiagnosticInfo + +`func NewNodeDiagnosticInfo(cordapps []CordappInfo, platformVersion int32, revision string, vendor string, version string, ) *NodeDiagnosticInfo` + +NewNodeDiagnosticInfo instantiates a new NodeDiagnosticInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNodeDiagnosticInfoWithDefaults + +`func NewNodeDiagnosticInfoWithDefaults() *NodeDiagnosticInfo` + +NewNodeDiagnosticInfoWithDefaults instantiates a new NodeDiagnosticInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCordapps + +`func (o *NodeDiagnosticInfo) GetCordapps() []CordappInfo` + +GetCordapps returns the Cordapps field if non-nil, zero value otherwise. + +### GetCordappsOk + +`func (o *NodeDiagnosticInfo) GetCordappsOk() (*[]CordappInfo, bool)` + +GetCordappsOk returns a tuple with the Cordapps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCordapps + +`func (o *NodeDiagnosticInfo) SetCordapps(v []CordappInfo)` + +SetCordapps sets Cordapps field to given value. + + +### GetPlatformVersion + +`func (o *NodeDiagnosticInfo) GetPlatformVersion() int32` + +GetPlatformVersion returns the PlatformVersion field if non-nil, zero value otherwise. + +### GetPlatformVersionOk + +`func (o *NodeDiagnosticInfo) GetPlatformVersionOk() (*int32, bool)` + +GetPlatformVersionOk returns a tuple with the PlatformVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformVersion + +`func (o *NodeDiagnosticInfo) SetPlatformVersion(v int32)` + +SetPlatformVersion sets PlatformVersion field to given value. + + +### GetRevision + +`func (o *NodeDiagnosticInfo) GetRevision() string` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *NodeDiagnosticInfo) GetRevisionOk() (*string, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *NodeDiagnosticInfo) SetRevision(v string)` + +SetRevision sets Revision field to given value. + + +### GetVendor + +`func (o *NodeDiagnosticInfo) GetVendor() string` + +GetVendor returns the Vendor field if non-nil, zero value otherwise. + +### GetVendorOk + +`func (o *NodeDiagnosticInfo) GetVendorOk() (*string, bool)` + +GetVendorOk returns a tuple with the Vendor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendor + +`func (o *NodeDiagnosticInfo) SetVendor(v string)` + +SetVendor sets Vendor field to given value. + + +### GetVersion + +`func (o *NodeDiagnosticInfo) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *NodeDiagnosticInfo) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *NodeDiagnosticInfo) SetVersion(v string)` + +SetVersion sets Version field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeInfo.md new file mode 100644 index 00000000000..923ce8ff173 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/NodeInfo.md @@ -0,0 +1,135 @@ +# NodeInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Addresses** | [**[]NetworkHostAndPort**](NetworkHostAndPort.md) | | +**PlatformVersion** | **int32** | | +**Serial** | **float32** | | +**LegalIdentities** | [**[]Party**](Party.md) | | +**LegalIdentitiesAndCerts** | **[]map[string]interface{}** | | + +## Methods + +### NewNodeInfo + +`func NewNodeInfo(addresses []NetworkHostAndPort, platformVersion int32, serial float32, legalIdentities []Party, legalIdentitiesAndCerts []map[string]interface{}, ) *NodeInfo` + +NewNodeInfo instantiates a new NodeInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNodeInfoWithDefaults + +`func NewNodeInfoWithDefaults() *NodeInfo` + +NewNodeInfoWithDefaults instantiates a new NodeInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddresses + +`func (o *NodeInfo) GetAddresses() []NetworkHostAndPort` + +GetAddresses returns the Addresses field if non-nil, zero value otherwise. + +### GetAddressesOk + +`func (o *NodeInfo) GetAddressesOk() (*[]NetworkHostAndPort, bool)` + +GetAddressesOk returns a tuple with the Addresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddresses + +`func (o *NodeInfo) SetAddresses(v []NetworkHostAndPort)` + +SetAddresses sets Addresses field to given value. + + +### GetPlatformVersion + +`func (o *NodeInfo) GetPlatformVersion() int32` + +GetPlatformVersion returns the PlatformVersion field if non-nil, zero value otherwise. + +### GetPlatformVersionOk + +`func (o *NodeInfo) GetPlatformVersionOk() (*int32, bool)` + +GetPlatformVersionOk returns a tuple with the PlatformVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformVersion + +`func (o *NodeInfo) SetPlatformVersion(v int32)` + +SetPlatformVersion sets PlatformVersion field to given value. + + +### GetSerial + +`func (o *NodeInfo) GetSerial() float32` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *NodeInfo) GetSerialOk() (*float32, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *NodeInfo) SetSerial(v float32)` + +SetSerial sets Serial field to given value. + + +### GetLegalIdentities + +`func (o *NodeInfo) GetLegalIdentities() []Party` + +GetLegalIdentities returns the LegalIdentities field if non-nil, zero value otherwise. + +### GetLegalIdentitiesOk + +`func (o *NodeInfo) GetLegalIdentitiesOk() (*[]Party, bool)` + +GetLegalIdentitiesOk returns a tuple with the LegalIdentities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegalIdentities + +`func (o *NodeInfo) SetLegalIdentities(v []Party)` + +SetLegalIdentities sets LegalIdentities field to given value. + + +### GetLegalIdentitiesAndCerts + +`func (o *NodeInfo) GetLegalIdentitiesAndCerts() []map[string]interface{}` + +GetLegalIdentitiesAndCerts returns the LegalIdentitiesAndCerts field if non-nil, zero value otherwise. + +### GetLegalIdentitiesAndCertsOk + +`func (o *NodeInfo) GetLegalIdentitiesAndCertsOk() (*[]map[string]interface{}, bool)` + +GetLegalIdentitiesAndCertsOk returns a tuple with the LegalIdentitiesAndCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegalIdentitiesAndCerts + +`func (o *NodeInfo) SetLegalIdentitiesAndCerts(v []map[string]interface{})` + +SetLegalIdentitiesAndCerts sets LegalIdentitiesAndCerts field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/Party.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/Party.md new file mode 100644 index 00000000000..c470e4ad6f9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/Party.md @@ -0,0 +1,72 @@ +# Party + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | [**CordaX500Name**](CordaX500Name.md) | | +**OwningKey** | [**PublicKey**](PublicKey.md) | | + +## Methods + +### NewParty + +`func NewParty(name CordaX500Name, owningKey PublicKey, ) *Party` + +NewParty instantiates a new Party object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPartyWithDefaults + +`func NewPartyWithDefaults() *Party` + +NewPartyWithDefaults instantiates a new Party object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *Party) GetName() CordaX500Name` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Party) GetNameOk() (*CordaX500Name, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Party) SetName(v CordaX500Name)` + +SetName sets Name field to given value. + + +### GetOwningKey + +`func (o *Party) GetOwningKey() PublicKey` + +GetOwningKey returns the OwningKey field if non-nil, zero value otherwise. + +### GetOwningKeyOk + +`func (o *Party) GetOwningKeyOk() (*PublicKey, bool)` + +GetOwningKeyOk returns a tuple with the OwningKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwningKey + +`func (o *Party) SetOwningKey(v PublicKey)` + +SetOwningKey sets OwningKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/PublicKey.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/PublicKey.md new file mode 100644 index 00000000000..9211c99e0be --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/PublicKey.md @@ -0,0 +1,93 @@ +# PublicKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Algorithm** | **string** | | +**Format** | **string** | | +**Encoded** | **string** | | + +## Methods + +### NewPublicKey + +`func NewPublicKey(algorithm string, format string, encoded string, ) *PublicKey` + +NewPublicKey instantiates a new PublicKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPublicKeyWithDefaults + +`func NewPublicKeyWithDefaults() *PublicKey` + +NewPublicKeyWithDefaults instantiates a new PublicKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlgorithm + +`func (o *PublicKey) GetAlgorithm() string` + +GetAlgorithm returns the Algorithm field if non-nil, zero value otherwise. + +### GetAlgorithmOk + +`func (o *PublicKey) GetAlgorithmOk() (*string, bool)` + +GetAlgorithmOk returns a tuple with the Algorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlgorithm + +`func (o *PublicKey) SetAlgorithm(v string)` + +SetAlgorithm sets Algorithm field to given value. + + +### GetFormat + +`func (o *PublicKey) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *PublicKey) GetFormatOk() (*string, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *PublicKey) SetFormat(v string)` + +SetFormat sets Format field to given value. + + +### GetEncoded + +`func (o *PublicKey) GetEncoded() string` + +GetEncoded returns the Encoded field if non-nil, zero value otherwise. + +### GetEncodedOk + +`func (o *PublicKey) GetEncodedOk() (*string, bool)` + +GetEncodedOk returns a tuple with the Encoded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncoded + +`func (o *PublicKey) SetEncoded(v string)` + +SetEncoded sets Encoded field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/SHA256.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/SHA256.md new file mode 100644 index 00000000000..98be4dd16ea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/SHA256.md @@ -0,0 +1,93 @@ +# SHA256 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bytes** | **string** | | +**Offset** | **int32** | | +**Size** | **int32** | | + +## Methods + +### NewSHA256 + +`func NewSHA256(bytes string, offset int32, size int32, ) *SHA256` + +NewSHA256 instantiates a new SHA256 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSHA256WithDefaults + +`func NewSHA256WithDefaults() *SHA256` + +NewSHA256WithDefaults instantiates a new SHA256 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBytes + +`func (o *SHA256) GetBytes() string` + +GetBytes returns the Bytes field if non-nil, zero value otherwise. + +### GetBytesOk + +`func (o *SHA256) GetBytesOk() (*string, bool)` + +GetBytesOk returns a tuple with the Bytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytes + +`func (o *SHA256) SetBytes(v string)` + +SetBytes sets Bytes field to given value. + + +### GetOffset + +`func (o *SHA256) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *SHA256) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *SHA256) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + + +### GetSize + +`func (o *SHA256) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SHA256) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SHA256) SetSize(v int32)` + +SetSize sets Size field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Request.md new file mode 100644 index 00000000000..9ddd683cfbb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Request.md @@ -0,0 +1,72 @@ +# StartMonitorV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientAppId** | **string** | ID of a client application that wants to monitor the state changes | +**StateFullClassName** | **string** | The fully qualified name of the Corda state to monitor | + +## Methods + +### NewStartMonitorV1Request + +`func NewStartMonitorV1Request(clientAppId string, stateFullClassName string, ) *StartMonitorV1Request` + +NewStartMonitorV1Request instantiates a new StartMonitorV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStartMonitorV1RequestWithDefaults + +`func NewStartMonitorV1RequestWithDefaults() *StartMonitorV1Request` + +NewStartMonitorV1RequestWithDefaults instantiates a new StartMonitorV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientAppId + +`func (o *StartMonitorV1Request) GetClientAppId() string` + +GetClientAppId returns the ClientAppId field if non-nil, zero value otherwise. + +### GetClientAppIdOk + +`func (o *StartMonitorV1Request) GetClientAppIdOk() (*string, bool)` + +GetClientAppIdOk returns a tuple with the ClientAppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAppId + +`func (o *StartMonitorV1Request) SetClientAppId(v string)` + +SetClientAppId sets ClientAppId field to given value. + + +### GetStateFullClassName + +`func (o *StartMonitorV1Request) GetStateFullClassName() string` + +GetStateFullClassName returns the StateFullClassName field if non-nil, zero value otherwise. + +### GetStateFullClassNameOk + +`func (o *StartMonitorV1Request) GetStateFullClassNameOk() (*string, bool)` + +GetStateFullClassNameOk returns a tuple with the StateFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateFullClassName + +`func (o *StartMonitorV1Request) SetStateFullClassName(v string)` + +SetStateFullClassName sets StateFullClassName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Response.md new file mode 100644 index 00000000000..588785ae35e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StartMonitorV1Response.md @@ -0,0 +1,72 @@ +# StartMonitorV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Flag set to true if monitoring started correctly. | +**Msg** | **string** | Message describing operation status or any errors that occurred. | + +## Methods + +### NewStartMonitorV1Response + +`func NewStartMonitorV1Response(success bool, msg string, ) *StartMonitorV1Response` + +NewStartMonitorV1Response instantiates a new StartMonitorV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStartMonitorV1ResponseWithDefaults + +`func NewStartMonitorV1ResponseWithDefaults() *StartMonitorV1Response` + +NewStartMonitorV1ResponseWithDefaults instantiates a new StartMonitorV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *StartMonitorV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *StartMonitorV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *StartMonitorV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMsg + +`func (o *StartMonitorV1Response) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *StartMonitorV1Response) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *StartMonitorV1Response) SetMsg(v string)` + +SetMsg sets Msg field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Request.md new file mode 100644 index 00000000000..1d95618bc58 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Request.md @@ -0,0 +1,72 @@ +# StopMonitorV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientAppId** | **string** | ID of a client application that wants to monitor the state changes | +**StateFullClassName** | **string** | The fully qualified name of the Corda state to monitor | + +## Methods + +### NewStopMonitorV1Request + +`func NewStopMonitorV1Request(clientAppId string, stateFullClassName string, ) *StopMonitorV1Request` + +NewStopMonitorV1Request instantiates a new StopMonitorV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStopMonitorV1RequestWithDefaults + +`func NewStopMonitorV1RequestWithDefaults() *StopMonitorV1Request` + +NewStopMonitorV1RequestWithDefaults instantiates a new StopMonitorV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientAppId + +`func (o *StopMonitorV1Request) GetClientAppId() string` + +GetClientAppId returns the ClientAppId field if non-nil, zero value otherwise. + +### GetClientAppIdOk + +`func (o *StopMonitorV1Request) GetClientAppIdOk() (*string, bool)` + +GetClientAppIdOk returns a tuple with the ClientAppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientAppId + +`func (o *StopMonitorV1Request) SetClientAppId(v string)` + +SetClientAppId sets ClientAppId field to given value. + + +### GetStateFullClassName + +`func (o *StopMonitorV1Request) GetStateFullClassName() string` + +GetStateFullClassName returns the StateFullClassName field if non-nil, zero value otherwise. + +### GetStateFullClassNameOk + +`func (o *StopMonitorV1Request) GetStateFullClassNameOk() (*string, bool)` + +GetStateFullClassNameOk returns a tuple with the StateFullClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateFullClassName + +`func (o *StopMonitorV1Request) SetStateFullClassName(v string)` + +SetStateFullClassName sets StateFullClassName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Response.md new file mode 100644 index 00000000000..0cccf15dab5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/StopMonitorV1Response.md @@ -0,0 +1,72 @@ +# StopMonitorV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Flag set to true if operation completed correctly. | +**Msg** | **string** | Message describing operation status or any errors that occurred. | + +## Methods + +### NewStopMonitorV1Response + +`func NewStopMonitorV1Response(success bool, msg string, ) *StopMonitorV1Response` + +NewStopMonitorV1Response instantiates a new StopMonitorV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStopMonitorV1ResponseWithDefaults + +`func NewStopMonitorV1ResponseWithDefaults() *StopMonitorV1Response` + +NewStopMonitorV1ResponseWithDefaults instantiates a new StopMonitorV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *StopMonitorV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *StopMonitorV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *StopMonitorV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMsg + +`func (o *StopMonitorV1Response) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *StopMonitorV1Response) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *StopMonitorV1Response) SetMsg(v string)` + +SetMsg sets Msg field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/X500Principal.md b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/X500Principal.md new file mode 100644 index 00000000000..3e203fb8318 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/docs/X500Principal.md @@ -0,0 +1,72 @@ +# X500Principal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Encoded** | **string** | Base64 encoded public key | + +## Methods + +### NewX500Principal + +`func NewX500Principal(name string, encoded string, ) *X500Principal` + +NewX500Principal instantiates a new X500Principal object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewX500PrincipalWithDefaults + +`func NewX500PrincipalWithDefaults() *X500Principal` + +NewX500PrincipalWithDefaults instantiates a new X500Principal object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *X500Principal) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *X500Principal) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *X500Principal) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEncoded + +`func (o *X500Principal) GetEncoded() string` + +GetEncoded returns the Encoded field if non-nil, zero value otherwise. + +### GetEncodedOk + +`func (o *X500Principal) GetEncodedOk() (*string, bool)` + +GetEncodedOk returns a tuple with the Encoded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncoded + +`func (o *X500Principal) SetEncoded(v string)` + +SetEncoded sets Encoded field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..b35b4d9516f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..2ce4fd1333f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_request.go new file mode 100644 index 00000000000..9200f29f072 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_request.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the ClearMonitorTransactionsV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClearMonitorTransactionsV1Request{} + +// ClearMonitorTransactionsV1Request struct for ClearMonitorTransactionsV1Request +type ClearMonitorTransactionsV1Request struct { + // ID of a client application that wants to monitor the state changes + ClientAppId string `json:"clientAppId"` + // The fully qualified name of the Corda state to monitor + StateFullClassName string `json:"stateFullClassName"` + TxIndexes []string `json:"txIndexes"` +} + +// NewClearMonitorTransactionsV1Request instantiates a new ClearMonitorTransactionsV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClearMonitorTransactionsV1Request(clientAppId string, stateFullClassName string, txIndexes []string) *ClearMonitorTransactionsV1Request { + this := ClearMonitorTransactionsV1Request{} + this.ClientAppId = clientAppId + this.StateFullClassName = stateFullClassName + this.TxIndexes = txIndexes + return &this +} + +// NewClearMonitorTransactionsV1RequestWithDefaults instantiates a new ClearMonitorTransactionsV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClearMonitorTransactionsV1RequestWithDefaults() *ClearMonitorTransactionsV1Request { + this := ClearMonitorTransactionsV1Request{} + return &this +} + +// GetClientAppId returns the ClientAppId field value +func (o *ClearMonitorTransactionsV1Request) GetClientAppId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientAppId +} + +// GetClientAppIdOk returns a tuple with the ClientAppId field value +// and a boolean to check if the value has been set. +func (o *ClearMonitorTransactionsV1Request) GetClientAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientAppId, true +} + +// SetClientAppId sets field value +func (o *ClearMonitorTransactionsV1Request) SetClientAppId(v string) { + o.ClientAppId = v +} + +// GetStateFullClassName returns the StateFullClassName field value +func (o *ClearMonitorTransactionsV1Request) GetStateFullClassName() string { + if o == nil { + var ret string + return ret + } + + return o.StateFullClassName +} + +// GetStateFullClassNameOk returns a tuple with the StateFullClassName field value +// and a boolean to check if the value has been set. +func (o *ClearMonitorTransactionsV1Request) GetStateFullClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateFullClassName, true +} + +// SetStateFullClassName sets field value +func (o *ClearMonitorTransactionsV1Request) SetStateFullClassName(v string) { + o.StateFullClassName = v +} + +// GetTxIndexes returns the TxIndexes field value +func (o *ClearMonitorTransactionsV1Request) GetTxIndexes() []string { + if o == nil { + var ret []string + return ret + } + + return o.TxIndexes +} + +// GetTxIndexesOk returns a tuple with the TxIndexes field value +// and a boolean to check if the value has been set. +func (o *ClearMonitorTransactionsV1Request) GetTxIndexesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TxIndexes, true +} + +// SetTxIndexes sets field value +func (o *ClearMonitorTransactionsV1Request) SetTxIndexes(v []string) { + o.TxIndexes = v +} + +func (o ClearMonitorTransactionsV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClearMonitorTransactionsV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientAppId"] = o.ClientAppId + toSerialize["stateFullClassName"] = o.StateFullClassName + toSerialize["txIndexes"] = o.TxIndexes + return toSerialize, nil +} + +type NullableClearMonitorTransactionsV1Request struct { + value *ClearMonitorTransactionsV1Request + isSet bool +} + +func (v NullableClearMonitorTransactionsV1Request) Get() *ClearMonitorTransactionsV1Request { + return v.value +} + +func (v *NullableClearMonitorTransactionsV1Request) Set(val *ClearMonitorTransactionsV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableClearMonitorTransactionsV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableClearMonitorTransactionsV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClearMonitorTransactionsV1Request(val *ClearMonitorTransactionsV1Request) *NullableClearMonitorTransactionsV1Request { + return &NullableClearMonitorTransactionsV1Request{value: val, isSet: true} +} + +func (v NullableClearMonitorTransactionsV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClearMonitorTransactionsV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_response.go new file mode 100644 index 00000000000..fa77135dbf9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_clear_monitor_transactions_v1_response.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the ClearMonitorTransactionsV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClearMonitorTransactionsV1Response{} + +// ClearMonitorTransactionsV1Response struct for ClearMonitorTransactionsV1Response +type ClearMonitorTransactionsV1Response struct { + // Flag set to true if operation completed correctly. + Success bool `json:"success"` + // Message describing operation status or any errors that occurred. + Msg string `json:"msg"` +} + +// NewClearMonitorTransactionsV1Response instantiates a new ClearMonitorTransactionsV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClearMonitorTransactionsV1Response(success bool, msg string) *ClearMonitorTransactionsV1Response { + this := ClearMonitorTransactionsV1Response{} + this.Success = success + this.Msg = msg + return &this +} + +// NewClearMonitorTransactionsV1ResponseWithDefaults instantiates a new ClearMonitorTransactionsV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClearMonitorTransactionsV1ResponseWithDefaults() *ClearMonitorTransactionsV1Response { + this := ClearMonitorTransactionsV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ClearMonitorTransactionsV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ClearMonitorTransactionsV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ClearMonitorTransactionsV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetMsg returns the Msg field value +func (o *ClearMonitorTransactionsV1Response) GetMsg() string { + if o == nil { + var ret string + return ret + } + + return o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value +// and a boolean to check if the value has been set. +func (o *ClearMonitorTransactionsV1Response) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Msg, true +} + +// SetMsg sets field value +func (o *ClearMonitorTransactionsV1Response) SetMsg(v string) { + o.Msg = v +} + +func (o ClearMonitorTransactionsV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClearMonitorTransactionsV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["msg"] = o.Msg + return toSerialize, nil +} + +type NullableClearMonitorTransactionsV1Response struct { + value *ClearMonitorTransactionsV1Response + isSet bool +} + +func (v NullableClearMonitorTransactionsV1Response) Get() *ClearMonitorTransactionsV1Response { + return v.value +} + +func (v *NullableClearMonitorTransactionsV1Response) Set(val *ClearMonitorTransactionsV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableClearMonitorTransactionsV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableClearMonitorTransactionsV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClearMonitorTransactionsV1Response(val *ClearMonitorTransactionsV1Response) *NullableClearMonitorTransactionsV1Response { + return &NullableClearMonitorTransactionsV1Response{value: val, isSet: true} +} + +func (v NullableClearMonitorTransactionsV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClearMonitorTransactionsV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_node_ssh_credentials.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_node_ssh_credentials.go new file mode 100644 index 00000000000..30bb99b61b6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_node_ssh_credentials.go @@ -0,0 +1,225 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the CordaNodeSshCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CordaNodeSshCredentials{} + +// CordaNodeSshCredentials struct for CordaNodeSshCredentials +type CordaNodeSshCredentials struct { + HostKeyEntry string `json:"hostKeyEntry"` + Username string `json:"username"` + Password string `json:"password"` + Hostname string `json:"hostname"` + Port int32 `json:"port"` +} + +// NewCordaNodeSshCredentials instantiates a new CordaNodeSshCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCordaNodeSshCredentials(hostKeyEntry string, username string, password string, hostname string, port int32) *CordaNodeSshCredentials { + this := CordaNodeSshCredentials{} + this.HostKeyEntry = hostKeyEntry + this.Username = username + this.Password = password + this.Hostname = hostname + this.Port = port + return &this +} + +// NewCordaNodeSshCredentialsWithDefaults instantiates a new CordaNodeSshCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCordaNodeSshCredentialsWithDefaults() *CordaNodeSshCredentials { + this := CordaNodeSshCredentials{} + return &this +} + +// GetHostKeyEntry returns the HostKeyEntry field value +func (o *CordaNodeSshCredentials) GetHostKeyEntry() string { + if o == nil { + var ret string + return ret + } + + return o.HostKeyEntry +} + +// GetHostKeyEntryOk returns a tuple with the HostKeyEntry field value +// and a boolean to check if the value has been set. +func (o *CordaNodeSshCredentials) GetHostKeyEntryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HostKeyEntry, true +} + +// SetHostKeyEntry sets field value +func (o *CordaNodeSshCredentials) SetHostKeyEntry(v string) { + o.HostKeyEntry = v +} + +// GetUsername returns the Username field value +func (o *CordaNodeSshCredentials) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *CordaNodeSshCredentials) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *CordaNodeSshCredentials) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *CordaNodeSshCredentials) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *CordaNodeSshCredentials) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *CordaNodeSshCredentials) SetPassword(v string) { + o.Password = v +} + +// GetHostname returns the Hostname field value +func (o *CordaNodeSshCredentials) GetHostname() string { + if o == nil { + var ret string + return ret + } + + return o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value +// and a boolean to check if the value has been set. +func (o *CordaNodeSshCredentials) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hostname, true +} + +// SetHostname sets field value +func (o *CordaNodeSshCredentials) SetHostname(v string) { + o.Hostname = v +} + +// GetPort returns the Port field value +func (o *CordaNodeSshCredentials) GetPort() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *CordaNodeSshCredentials) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Port, true +} + +// SetPort sets field value +func (o *CordaNodeSshCredentials) SetPort(v int32) { + o.Port = v +} + +func (o CordaNodeSshCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CordaNodeSshCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hostKeyEntry"] = o.HostKeyEntry + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + toSerialize["hostname"] = o.Hostname + toSerialize["port"] = o.Port + return toSerialize, nil +} + +type NullableCordaNodeSshCredentials struct { + value *CordaNodeSshCredentials + isSet bool +} + +func (v NullableCordaNodeSshCredentials) Get() *CordaNodeSshCredentials { + return v.value +} + +func (v *NullableCordaNodeSshCredentials) Set(val *CordaNodeSshCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableCordaNodeSshCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableCordaNodeSshCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCordaNodeSshCredentials(val *CordaNodeSshCredentials) *NullableCordaNodeSshCredentials { + return &NullableCordaNodeSshCredentials{value: val, isSet: true} +} + +func (v NullableCordaNodeSshCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCordaNodeSshCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_rpc_credentials.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_rpc_credentials.go new file mode 100644 index 00000000000..b40a1411cbe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_rpc_credentials.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the CordaRpcCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CordaRpcCredentials{} + +// CordaRpcCredentials struct for CordaRpcCredentials +type CordaRpcCredentials struct { + Hostname string `json:"hostname"` + Port int32 `json:"port"` + Username string `json:"username"` + Password string `json:"password"` +} + +// NewCordaRpcCredentials instantiates a new CordaRpcCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCordaRpcCredentials(hostname string, port int32, username string, password string) *CordaRpcCredentials { + this := CordaRpcCredentials{} + this.Hostname = hostname + this.Port = port + this.Username = username + this.Password = password + return &this +} + +// NewCordaRpcCredentialsWithDefaults instantiates a new CordaRpcCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCordaRpcCredentialsWithDefaults() *CordaRpcCredentials { + this := CordaRpcCredentials{} + return &this +} + +// GetHostname returns the Hostname field value +func (o *CordaRpcCredentials) GetHostname() string { + if o == nil { + var ret string + return ret + } + + return o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value +// and a boolean to check if the value has been set. +func (o *CordaRpcCredentials) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hostname, true +} + +// SetHostname sets field value +func (o *CordaRpcCredentials) SetHostname(v string) { + o.Hostname = v +} + +// GetPort returns the Port field value +func (o *CordaRpcCredentials) GetPort() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *CordaRpcCredentials) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Port, true +} + +// SetPort sets field value +func (o *CordaRpcCredentials) SetPort(v int32) { + o.Port = v +} + +// GetUsername returns the Username field value +func (o *CordaRpcCredentials) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *CordaRpcCredentials) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *CordaRpcCredentials) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *CordaRpcCredentials) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *CordaRpcCredentials) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *CordaRpcCredentials) SetPassword(v string) { + o.Password = v +} + +func (o CordaRpcCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CordaRpcCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hostname"] = o.Hostname + toSerialize["port"] = o.Port + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + return toSerialize, nil +} + +type NullableCordaRpcCredentials struct { + value *CordaRpcCredentials + isSet bool +} + +func (v NullableCordaRpcCredentials) Get() *CordaRpcCredentials { + return v.value +} + +func (v *NullableCordaRpcCredentials) Set(val *CordaRpcCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableCordaRpcCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableCordaRpcCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCordaRpcCredentials(val *CordaRpcCredentials) *NullableCordaRpcCredentials { + return &NullableCordaRpcCredentials{value: val, isSet: true} +} + +func (v NullableCordaRpcCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCordaRpcCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_x500_name.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_x500_name.go new file mode 100644 index 00000000000..da1c5c8b2f9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_corda_x500_name.go @@ -0,0 +1,306 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the CordaX500Name type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CordaX500Name{} + +// CordaX500Name struct for CordaX500Name +type CordaX500Name struct { + CommonName *string `json:"commonName,omitempty"` + OrganisationUnit *string `json:"organisationUnit,omitempty"` + Organisation string `json:"organisation"` + Locality string `json:"locality"` + State *string `json:"state,omitempty"` + Country string `json:"country"` + X500Principal X500Principal `json:"x500Principal"` +} + +// NewCordaX500Name instantiates a new CordaX500Name object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCordaX500Name(organisation string, locality string, country string, x500Principal X500Principal) *CordaX500Name { + this := CordaX500Name{} + this.Organisation = organisation + this.Locality = locality + this.Country = country + this.X500Principal = x500Principal + return &this +} + +// NewCordaX500NameWithDefaults instantiates a new CordaX500Name object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCordaX500NameWithDefaults() *CordaX500Name { + this := CordaX500Name{} + return &this +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *CordaX500Name) GetCommonName() string { + if o == nil || IsNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetCommonNameOk() (*string, bool) { + if o == nil || IsNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *CordaX500Name) HasCommonName() bool { + if o != nil && !IsNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *CordaX500Name) SetCommonName(v string) { + o.CommonName = &v +} + +// GetOrganisationUnit returns the OrganisationUnit field value if set, zero value otherwise. +func (o *CordaX500Name) GetOrganisationUnit() string { + if o == nil || IsNil(o.OrganisationUnit) { + var ret string + return ret + } + return *o.OrganisationUnit +} + +// GetOrganisationUnitOk returns a tuple with the OrganisationUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetOrganisationUnitOk() (*string, bool) { + if o == nil || IsNil(o.OrganisationUnit) { + return nil, false + } + return o.OrganisationUnit, true +} + +// HasOrganisationUnit returns a boolean if a field has been set. +func (o *CordaX500Name) HasOrganisationUnit() bool { + if o != nil && !IsNil(o.OrganisationUnit) { + return true + } + + return false +} + +// SetOrganisationUnit gets a reference to the given string and assigns it to the OrganisationUnit field. +func (o *CordaX500Name) SetOrganisationUnit(v string) { + o.OrganisationUnit = &v +} + +// GetOrganisation returns the Organisation field value +func (o *CordaX500Name) GetOrganisation() string { + if o == nil { + var ret string + return ret + } + + return o.Organisation +} + +// GetOrganisationOk returns a tuple with the Organisation field value +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetOrganisationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Organisation, true +} + +// SetOrganisation sets field value +func (o *CordaX500Name) SetOrganisation(v string) { + o.Organisation = v +} + +// GetLocality returns the Locality field value +func (o *CordaX500Name) GetLocality() string { + if o == nil { + var ret string + return ret + } + + return o.Locality +} + +// GetLocalityOk returns a tuple with the Locality field value +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetLocalityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locality, true +} + +// SetLocality sets field value +func (o *CordaX500Name) SetLocality(v string) { + o.Locality = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *CordaX500Name) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *CordaX500Name) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *CordaX500Name) SetState(v string) { + o.State = &v +} + +// GetCountry returns the Country field value +func (o *CordaX500Name) GetCountry() string { + if o == nil { + var ret string + return ret + } + + return o.Country +} + +// GetCountryOk returns a tuple with the Country field value +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetCountryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Country, true +} + +// SetCountry sets field value +func (o *CordaX500Name) SetCountry(v string) { + o.Country = v +} + +// GetX500Principal returns the X500Principal field value +func (o *CordaX500Name) GetX500Principal() X500Principal { + if o == nil { + var ret X500Principal + return ret + } + + return o.X500Principal +} + +// GetX500PrincipalOk returns a tuple with the X500Principal field value +// and a boolean to check if the value has been set. +func (o *CordaX500Name) GetX500PrincipalOk() (*X500Principal, bool) { + if o == nil { + return nil, false + } + return &o.X500Principal, true +} + +// SetX500Principal sets field value +func (o *CordaX500Name) SetX500Principal(v X500Principal) { + o.X500Principal = v +} + +func (o CordaX500Name) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CordaX500Name) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CommonName) { + toSerialize["commonName"] = o.CommonName + } + if !IsNil(o.OrganisationUnit) { + toSerialize["organisationUnit"] = o.OrganisationUnit + } + toSerialize["organisation"] = o.Organisation + toSerialize["locality"] = o.Locality + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + toSerialize["country"] = o.Country + toSerialize["x500Principal"] = o.X500Principal + return toSerialize, nil +} + +type NullableCordaX500Name struct { + value *CordaX500Name + isSet bool +} + +func (v NullableCordaX500Name) Get() *CordaX500Name { + return v.value +} + +func (v *NullableCordaX500Name) Set(val *CordaX500Name) { + v.value = val + v.isSet = true +} + +func (v NullableCordaX500Name) IsSet() bool { + return v.isSet +} + +func (v *NullableCordaX500Name) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCordaX500Name(val *CordaX500Name) *NullableCordaX500Name { + return &NullableCordaX500Name{value: val, isSet: true} +} + +func (v NullableCordaX500Name) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCordaX500Name) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_deployment_config.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_deployment_config.go new file mode 100644 index 00000000000..7d8e23ae6b9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_deployment_config.go @@ -0,0 +1,256 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the CordappDeploymentConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CordappDeploymentConfig{} + +// CordappDeploymentConfig struct for CordappDeploymentConfig +type CordappDeploymentConfig struct { + SshCredentials CordaNodeSshCredentials `json:"sshCredentials"` + RpcCredentials CordaRpcCredentials `json:"rpcCredentials"` + // The shell command to execute in order to start back up a Corda node after having placed new jars in the cordapp directory of said node. + CordaNodeStartCmd string `json:"cordaNodeStartCmd"` + // The absolute file system path where the Corda Node is expecting deployed Cordapp jar files to be placed. + CordappDir string `json:"cordappDir"` + // The absolute file system path where the corda.jar file of the node can be found. This is used to execute database schema migrations where applicable (H2 database in use in development environments). + CordaJarPath string `json:"cordaJarPath"` + // The absolute file system path where the base directory of the Corda node can be found. This is used to pass in to corda.jar when being invoked for certain tasks such as executing database schema migrations for a deployed contract. + NodeBaseDirPath string `json:"nodeBaseDirPath"` +} + +// NewCordappDeploymentConfig instantiates a new CordappDeploymentConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCordappDeploymentConfig(sshCredentials CordaNodeSshCredentials, rpcCredentials CordaRpcCredentials, cordaNodeStartCmd string, cordappDir string, cordaJarPath string, nodeBaseDirPath string) *CordappDeploymentConfig { + this := CordappDeploymentConfig{} + this.SshCredentials = sshCredentials + this.RpcCredentials = rpcCredentials + this.CordaNodeStartCmd = cordaNodeStartCmd + this.CordappDir = cordappDir + this.CordaJarPath = cordaJarPath + this.NodeBaseDirPath = nodeBaseDirPath + return &this +} + +// NewCordappDeploymentConfigWithDefaults instantiates a new CordappDeploymentConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCordappDeploymentConfigWithDefaults() *CordappDeploymentConfig { + this := CordappDeploymentConfig{} + return &this +} + +// GetSshCredentials returns the SshCredentials field value +func (o *CordappDeploymentConfig) GetSshCredentials() CordaNodeSshCredentials { + if o == nil { + var ret CordaNodeSshCredentials + return ret + } + + return o.SshCredentials +} + +// GetSshCredentialsOk returns a tuple with the SshCredentials field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetSshCredentialsOk() (*CordaNodeSshCredentials, bool) { + if o == nil { + return nil, false + } + return &o.SshCredentials, true +} + +// SetSshCredentials sets field value +func (o *CordappDeploymentConfig) SetSshCredentials(v CordaNodeSshCredentials) { + o.SshCredentials = v +} + +// GetRpcCredentials returns the RpcCredentials field value +func (o *CordappDeploymentConfig) GetRpcCredentials() CordaRpcCredentials { + if o == nil { + var ret CordaRpcCredentials + return ret + } + + return o.RpcCredentials +} + +// GetRpcCredentialsOk returns a tuple with the RpcCredentials field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetRpcCredentialsOk() (*CordaRpcCredentials, bool) { + if o == nil { + return nil, false + } + return &o.RpcCredentials, true +} + +// SetRpcCredentials sets field value +func (o *CordappDeploymentConfig) SetRpcCredentials(v CordaRpcCredentials) { + o.RpcCredentials = v +} + +// GetCordaNodeStartCmd returns the CordaNodeStartCmd field value +func (o *CordappDeploymentConfig) GetCordaNodeStartCmd() string { + if o == nil { + var ret string + return ret + } + + return o.CordaNodeStartCmd +} + +// GetCordaNodeStartCmdOk returns a tuple with the CordaNodeStartCmd field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetCordaNodeStartCmdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CordaNodeStartCmd, true +} + +// SetCordaNodeStartCmd sets field value +func (o *CordappDeploymentConfig) SetCordaNodeStartCmd(v string) { + o.CordaNodeStartCmd = v +} + +// GetCordappDir returns the CordappDir field value +func (o *CordappDeploymentConfig) GetCordappDir() string { + if o == nil { + var ret string + return ret + } + + return o.CordappDir +} + +// GetCordappDirOk returns a tuple with the CordappDir field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetCordappDirOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CordappDir, true +} + +// SetCordappDir sets field value +func (o *CordappDeploymentConfig) SetCordappDir(v string) { + o.CordappDir = v +} + +// GetCordaJarPath returns the CordaJarPath field value +func (o *CordappDeploymentConfig) GetCordaJarPath() string { + if o == nil { + var ret string + return ret + } + + return o.CordaJarPath +} + +// GetCordaJarPathOk returns a tuple with the CordaJarPath field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetCordaJarPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CordaJarPath, true +} + +// SetCordaJarPath sets field value +func (o *CordappDeploymentConfig) SetCordaJarPath(v string) { + o.CordaJarPath = v +} + +// GetNodeBaseDirPath returns the NodeBaseDirPath field value +func (o *CordappDeploymentConfig) GetNodeBaseDirPath() string { + if o == nil { + var ret string + return ret + } + + return o.NodeBaseDirPath +} + +// GetNodeBaseDirPathOk returns a tuple with the NodeBaseDirPath field value +// and a boolean to check if the value has been set. +func (o *CordappDeploymentConfig) GetNodeBaseDirPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NodeBaseDirPath, true +} + +// SetNodeBaseDirPath sets field value +func (o *CordappDeploymentConfig) SetNodeBaseDirPath(v string) { + o.NodeBaseDirPath = v +} + +func (o CordappDeploymentConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CordappDeploymentConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sshCredentials"] = o.SshCredentials + toSerialize["rpcCredentials"] = o.RpcCredentials + toSerialize["cordaNodeStartCmd"] = o.CordaNodeStartCmd + toSerialize["cordappDir"] = o.CordappDir + toSerialize["cordaJarPath"] = o.CordaJarPath + toSerialize["nodeBaseDirPath"] = o.NodeBaseDirPath + return toSerialize, nil +} + +type NullableCordappDeploymentConfig struct { + value *CordappDeploymentConfig + isSet bool +} + +func (v NullableCordappDeploymentConfig) Get() *CordappDeploymentConfig { + return v.value +} + +func (v *NullableCordappDeploymentConfig) Set(val *CordappDeploymentConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCordappDeploymentConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCordappDeploymentConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCordappDeploymentConfig(val *CordappDeploymentConfig) *NullableCordappDeploymentConfig { + return &NullableCordappDeploymentConfig{value: val, isSet: true} +} + +func (v NullableCordappDeploymentConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCordappDeploymentConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_info.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_info.go new file mode 100644 index 00000000000..5734ba20461 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_cordapp_info.go @@ -0,0 +1,341 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the CordappInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CordappInfo{} + +// CordappInfo A CordappInfo describes a single CorDapp currently installed on the node +type CordappInfo struct { + JarHash SHA256 `json:"jarHash"` + // The name of the licence this CorDapp is released under + Licence string `json:"licence"` + // The minimum platform version the node must be at for the CorDapp to run + MinimumPlatformVersion int32 `json:"minimumPlatformVersion"` + // The name of the JAR file that defines the CorDapp + Name string `json:"name"` + // The name of the CorDapp + ShortName string `json:"shortName"` + // The target platform version this CorDapp has been tested against + TargetPlatformVersion int32 `json:"targetPlatformVersion"` + // A description of what sort of CorDapp this is - either a contract, workflow, or a combination. + Type string `json:"type"` + // The vendor of this CorDapp + Vendor string `json:"vendor"` + // The version of this CorDapp + Version string `json:"version"` +} + +// NewCordappInfo instantiates a new CordappInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCordappInfo(jarHash SHA256, licence string, minimumPlatformVersion int32, name string, shortName string, targetPlatformVersion int32, type_ string, vendor string, version string) *CordappInfo { + this := CordappInfo{} + this.JarHash = jarHash + this.Licence = licence + this.MinimumPlatformVersion = minimumPlatformVersion + this.Name = name + this.ShortName = shortName + this.TargetPlatformVersion = targetPlatformVersion + this.Type = type_ + this.Vendor = vendor + this.Version = version + return &this +} + +// NewCordappInfoWithDefaults instantiates a new CordappInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCordappInfoWithDefaults() *CordappInfo { + this := CordappInfo{} + return &this +} + +// GetJarHash returns the JarHash field value +func (o *CordappInfo) GetJarHash() SHA256 { + if o == nil { + var ret SHA256 + return ret + } + + return o.JarHash +} + +// GetJarHashOk returns a tuple with the JarHash field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetJarHashOk() (SHA256, bool) { + if o == nil { + return SHA256{}, false + } + return o.JarHash, true +} + +// SetJarHash sets field value +func (o *CordappInfo) SetJarHash(v SHA256) { + o.JarHash = v +} + +// GetLicence returns the Licence field value +func (o *CordappInfo) GetLicence() string { + if o == nil { + var ret string + return ret + } + + return o.Licence +} + +// GetLicenceOk returns a tuple with the Licence field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetLicenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Licence, true +} + +// SetLicence sets field value +func (o *CordappInfo) SetLicence(v string) { + o.Licence = v +} + +// GetMinimumPlatformVersion returns the MinimumPlatformVersion field value +func (o *CordappInfo) GetMinimumPlatformVersion() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MinimumPlatformVersion +} + +// GetMinimumPlatformVersionOk returns a tuple with the MinimumPlatformVersion field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetMinimumPlatformVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MinimumPlatformVersion, true +} + +// SetMinimumPlatformVersion sets field value +func (o *CordappInfo) SetMinimumPlatformVersion(v int32) { + o.MinimumPlatformVersion = v +} + +// GetName returns the Name field value +func (o *CordappInfo) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CordappInfo) SetName(v string) { + o.Name = v +} + +// GetShortName returns the ShortName field value +func (o *CordappInfo) GetShortName() string { + if o == nil { + var ret string + return ret + } + + return o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ShortName, true +} + +// SetShortName sets field value +func (o *CordappInfo) SetShortName(v string) { + o.ShortName = v +} + +// GetTargetPlatformVersion returns the TargetPlatformVersion field value +func (o *CordappInfo) GetTargetPlatformVersion() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TargetPlatformVersion +} + +// GetTargetPlatformVersionOk returns a tuple with the TargetPlatformVersion field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetTargetPlatformVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TargetPlatformVersion, true +} + +// SetTargetPlatformVersion sets field value +func (o *CordappInfo) SetTargetPlatformVersion(v int32) { + o.TargetPlatformVersion = v +} + +// GetType returns the Type field value +func (o *CordappInfo) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CordappInfo) SetType(v string) { + o.Type = v +} + +// GetVendor returns the Vendor field value +func (o *CordappInfo) GetVendor() string { + if o == nil { + var ret string + return ret + } + + return o.Vendor +} + +// GetVendorOk returns a tuple with the Vendor field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetVendorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Vendor, true +} + +// SetVendor sets field value +func (o *CordappInfo) SetVendor(v string) { + o.Vendor = v +} + +// GetVersion returns the Version field value +func (o *CordappInfo) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *CordappInfo) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *CordappInfo) SetVersion(v string) { + o.Version = v +} + +func (o CordappInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CordappInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["jarHash"] = o.JarHash + toSerialize["licence"] = o.Licence + toSerialize["minimumPlatformVersion"] = o.MinimumPlatformVersion + toSerialize["name"] = o.Name + toSerialize["shortName"] = o.ShortName + toSerialize["targetPlatformVersion"] = o.TargetPlatformVersion + toSerialize["type"] = o.Type + toSerialize["vendor"] = o.Vendor + toSerialize["version"] = o.Version + return toSerialize, nil +} + +type NullableCordappInfo struct { + value *CordappInfo + isSet bool +} + +func (v NullableCordappInfo) Get() *CordappInfo { + return v.value +} + +func (v *NullableCordappInfo) Set(val *CordappInfo) { + v.value = val + v.isSet = true +} + +func (v NullableCordappInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableCordappInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCordappInfo(val *CordappInfo) *NullableCordappInfo { + return &NullableCordappInfo{value: val, isSet: true} +} + +func (v NullableCordappInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCordappInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_bad_request_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_bad_request_v1_response.go new file mode 100644 index 00000000000..549722d66a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_bad_request_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the DeployContractJarsBadRequestV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractJarsBadRequestV1Response{} + +// DeployContractJarsBadRequestV1Response struct for DeployContractJarsBadRequestV1Response +type DeployContractJarsBadRequestV1Response struct { + Errors []string `json:"errors"` +} + +// NewDeployContractJarsBadRequestV1Response instantiates a new DeployContractJarsBadRequestV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractJarsBadRequestV1Response(errors []string) *DeployContractJarsBadRequestV1Response { + this := DeployContractJarsBadRequestV1Response{} + this.Errors = errors + return &this +} + +// NewDeployContractJarsBadRequestV1ResponseWithDefaults instantiates a new DeployContractJarsBadRequestV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractJarsBadRequestV1ResponseWithDefaults() *DeployContractJarsBadRequestV1Response { + this := DeployContractJarsBadRequestV1Response{} + return &this +} + +// GetErrors returns the Errors field value +func (o *DeployContractJarsBadRequestV1Response) GetErrors() []string { + if o == nil { + var ret []string + return ret + } + + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value +// and a boolean to check if the value has been set. +func (o *DeployContractJarsBadRequestV1Response) GetErrorsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Errors, true +} + +// SetErrors sets field value +func (o *DeployContractJarsBadRequestV1Response) SetErrors(v []string) { + o.Errors = v +} + +func (o DeployContractJarsBadRequestV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractJarsBadRequestV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["errors"] = o.Errors + return toSerialize, nil +} + +type NullableDeployContractJarsBadRequestV1Response struct { + value *DeployContractJarsBadRequestV1Response + isSet bool +} + +func (v NullableDeployContractJarsBadRequestV1Response) Get() *DeployContractJarsBadRequestV1Response { + return v.value +} + +func (v *NullableDeployContractJarsBadRequestV1Response) Set(val *DeployContractJarsBadRequestV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractJarsBadRequestV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractJarsBadRequestV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractJarsBadRequestV1Response(val *DeployContractJarsBadRequestV1Response) *NullableDeployContractJarsBadRequestV1Response { + return &NullableDeployContractJarsBadRequestV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractJarsBadRequestV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractJarsBadRequestV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_success_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_success_v1_response.go new file mode 100644 index 00000000000..bf9966c0394 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_success_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the DeployContractJarsSuccessV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractJarsSuccessV1Response{} + +// DeployContractJarsSuccessV1Response struct for DeployContractJarsSuccessV1Response +type DeployContractJarsSuccessV1Response struct { + DeployedJarFiles []string `json:"deployedJarFiles"` +} + +// NewDeployContractJarsSuccessV1Response instantiates a new DeployContractJarsSuccessV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractJarsSuccessV1Response(deployedJarFiles []string) *DeployContractJarsSuccessV1Response { + this := DeployContractJarsSuccessV1Response{} + this.DeployedJarFiles = deployedJarFiles + return &this +} + +// NewDeployContractJarsSuccessV1ResponseWithDefaults instantiates a new DeployContractJarsSuccessV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractJarsSuccessV1ResponseWithDefaults() *DeployContractJarsSuccessV1Response { + this := DeployContractJarsSuccessV1Response{} + return &this +} + +// GetDeployedJarFiles returns the DeployedJarFiles field value +func (o *DeployContractJarsSuccessV1Response) GetDeployedJarFiles() []string { + if o == nil { + var ret []string + return ret + } + + return o.DeployedJarFiles +} + +// GetDeployedJarFilesOk returns a tuple with the DeployedJarFiles field value +// and a boolean to check if the value has been set. +func (o *DeployContractJarsSuccessV1Response) GetDeployedJarFilesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.DeployedJarFiles, true +} + +// SetDeployedJarFiles sets field value +func (o *DeployContractJarsSuccessV1Response) SetDeployedJarFiles(v []string) { + o.DeployedJarFiles = v +} + +func (o DeployContractJarsSuccessV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractJarsSuccessV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["deployedJarFiles"] = o.DeployedJarFiles + return toSerialize, nil +} + +type NullableDeployContractJarsSuccessV1Response struct { + value *DeployContractJarsSuccessV1Response + isSet bool +} + +func (v NullableDeployContractJarsSuccessV1Response) Get() *DeployContractJarsSuccessV1Response { + return v.value +} + +func (v *NullableDeployContractJarsSuccessV1Response) Set(val *DeployContractJarsSuccessV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractJarsSuccessV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractJarsSuccessV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractJarsSuccessV1Response(val *DeployContractJarsSuccessV1Response) *NullableDeployContractJarsSuccessV1Response { + return &NullableDeployContractJarsSuccessV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractJarsSuccessV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractJarsSuccessV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_v1_request.go new file mode 100644 index 00000000000..30396738e8e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_deploy_contract_jars_v1_request.go @@ -0,0 +1,145 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the DeployContractJarsV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractJarsV1Request{} + +// DeployContractJarsV1Request struct for DeployContractJarsV1Request +type DeployContractJarsV1Request struct { + // The list of deployment configurations pointing to the nodes where the provided cordapp jar files are to be deployed . + CordappDeploymentConfigs []CordappDeploymentConfig `json:"cordappDeploymentConfigs"` + JarFiles []JarFile `json:"jarFiles"` +} + +// NewDeployContractJarsV1Request instantiates a new DeployContractJarsV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractJarsV1Request(cordappDeploymentConfigs []CordappDeploymentConfig, jarFiles []JarFile) *DeployContractJarsV1Request { + this := DeployContractJarsV1Request{} + this.CordappDeploymentConfigs = cordappDeploymentConfigs + this.JarFiles = jarFiles + return &this +} + +// NewDeployContractJarsV1RequestWithDefaults instantiates a new DeployContractJarsV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractJarsV1RequestWithDefaults() *DeployContractJarsV1Request { + this := DeployContractJarsV1Request{} + return &this +} + +// GetCordappDeploymentConfigs returns the CordappDeploymentConfigs field value +func (o *DeployContractJarsV1Request) GetCordappDeploymentConfigs() []CordappDeploymentConfig { + if o == nil { + var ret []CordappDeploymentConfig + return ret + } + + return o.CordappDeploymentConfigs +} + +// GetCordappDeploymentConfigsOk returns a tuple with the CordappDeploymentConfigs field value +// and a boolean to check if the value has been set. +func (o *DeployContractJarsV1Request) GetCordappDeploymentConfigsOk() ([]CordappDeploymentConfig, bool) { + if o == nil { + return nil, false + } + return o.CordappDeploymentConfigs, true +} + +// SetCordappDeploymentConfigs sets field value +func (o *DeployContractJarsV1Request) SetCordappDeploymentConfigs(v []CordappDeploymentConfig) { + o.CordappDeploymentConfigs = v +} + +// GetJarFiles returns the JarFiles field value +func (o *DeployContractJarsV1Request) GetJarFiles() []JarFile { + if o == nil { + var ret []JarFile + return ret + } + + return o.JarFiles +} + +// GetJarFilesOk returns a tuple with the JarFiles field value +// and a boolean to check if the value has been set. +func (o *DeployContractJarsV1Request) GetJarFilesOk() ([]JarFile, bool) { + if o == nil { + return nil, false + } + return o.JarFiles, true +} + +// SetJarFiles sets field value +func (o *DeployContractJarsV1Request) SetJarFiles(v []JarFile) { + o.JarFiles = v +} + +func (o DeployContractJarsV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractJarsV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cordappDeploymentConfigs"] = o.CordappDeploymentConfigs + toSerialize["jarFiles"] = o.JarFiles + return toSerialize, nil +} + +type NullableDeployContractJarsV1Request struct { + value *DeployContractJarsV1Request + isSet bool +} + +func (v NullableDeployContractJarsV1Request) Get() *DeployContractJarsV1Request { + return v.value +} + +func (v *NullableDeployContractJarsV1Request) Set(val *DeployContractJarsV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractJarsV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractJarsV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractJarsV1Request(val *DeployContractJarsV1Request) *NullableDeployContractJarsV1Request { + return &NullableDeployContractJarsV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractJarsV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractJarsV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_request.go new file mode 100644 index 00000000000..0721a502a4c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_request.go @@ -0,0 +1,127 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the DiagnoseNodeV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DiagnoseNodeV1Request{} + +// DiagnoseNodeV1Request struct for DiagnoseNodeV1Request +type DiagnoseNodeV1Request struct { + // Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). + NodeIds []string `json:"nodeIds,omitempty"` +} + +// NewDiagnoseNodeV1Request instantiates a new DiagnoseNodeV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDiagnoseNodeV1Request() *DiagnoseNodeV1Request { + this := DiagnoseNodeV1Request{} + return &this +} + +// NewDiagnoseNodeV1RequestWithDefaults instantiates a new DiagnoseNodeV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDiagnoseNodeV1RequestWithDefaults() *DiagnoseNodeV1Request { + this := DiagnoseNodeV1Request{} + return &this +} + +// GetNodeIds returns the NodeIds field value if set, zero value otherwise. +func (o *DiagnoseNodeV1Request) GetNodeIds() []string { + if o == nil || IsNil(o.NodeIds) { + var ret []string + return ret + } + return o.NodeIds +} + +// GetNodeIdsOk returns a tuple with the NodeIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DiagnoseNodeV1Request) GetNodeIdsOk() ([]string, bool) { + if o == nil || IsNil(o.NodeIds) { + return nil, false + } + return o.NodeIds, true +} + +// HasNodeIds returns a boolean if a field has been set. +func (o *DiagnoseNodeV1Request) HasNodeIds() bool { + if o != nil && !IsNil(o.NodeIds) { + return true + } + + return false +} + +// SetNodeIds gets a reference to the given []string and assigns it to the NodeIds field. +func (o *DiagnoseNodeV1Request) SetNodeIds(v []string) { + o.NodeIds = v +} + +func (o DiagnoseNodeV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DiagnoseNodeV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.NodeIds) { + toSerialize["nodeIds"] = o.NodeIds + } + return toSerialize, nil +} + +type NullableDiagnoseNodeV1Request struct { + value *DiagnoseNodeV1Request + isSet bool +} + +func (v NullableDiagnoseNodeV1Request) Get() *DiagnoseNodeV1Request { + return v.value +} + +func (v *NullableDiagnoseNodeV1Request) Set(val *DiagnoseNodeV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDiagnoseNodeV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDiagnoseNodeV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDiagnoseNodeV1Request(val *DiagnoseNodeV1Request) *NullableDiagnoseNodeV1Request { + return &NullableDiagnoseNodeV1Request{value: val, isSet: true} +} + +func (v NullableDiagnoseNodeV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDiagnoseNodeV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_response.go new file mode 100644 index 00000000000..6c62b03148d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_diagnose_node_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the DiagnoseNodeV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DiagnoseNodeV1Response{} + +// DiagnoseNodeV1Response struct for DiagnoseNodeV1Response +type DiagnoseNodeV1Response struct { + NodeDiagnosticInfo NodeDiagnosticInfo `json:"nodeDiagnosticInfo"` +} + +// NewDiagnoseNodeV1Response instantiates a new DiagnoseNodeV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDiagnoseNodeV1Response(nodeDiagnosticInfo NodeDiagnosticInfo) *DiagnoseNodeV1Response { + this := DiagnoseNodeV1Response{} + this.NodeDiagnosticInfo = nodeDiagnosticInfo + return &this +} + +// NewDiagnoseNodeV1ResponseWithDefaults instantiates a new DiagnoseNodeV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDiagnoseNodeV1ResponseWithDefaults() *DiagnoseNodeV1Response { + this := DiagnoseNodeV1Response{} + return &this +} + +// GetNodeDiagnosticInfo returns the NodeDiagnosticInfo field value +func (o *DiagnoseNodeV1Response) GetNodeDiagnosticInfo() NodeDiagnosticInfo { + if o == nil { + var ret NodeDiagnosticInfo + return ret + } + + return o.NodeDiagnosticInfo +} + +// GetNodeDiagnosticInfoOk returns a tuple with the NodeDiagnosticInfo field value +// and a boolean to check if the value has been set. +func (o *DiagnoseNodeV1Response) GetNodeDiagnosticInfoOk() (*NodeDiagnosticInfo, bool) { + if o == nil { + return nil, false + } + return &o.NodeDiagnosticInfo, true +} + +// SetNodeDiagnosticInfo sets field value +func (o *DiagnoseNodeV1Response) SetNodeDiagnosticInfo(v NodeDiagnosticInfo) { + o.NodeDiagnosticInfo = v +} + +func (o DiagnoseNodeV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DiagnoseNodeV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nodeDiagnosticInfo"] = o.NodeDiagnosticInfo + return toSerialize, nil +} + +type NullableDiagnoseNodeV1Response struct { + value *DiagnoseNodeV1Response + isSet bool +} + +func (v NullableDiagnoseNodeV1Response) Get() *DiagnoseNodeV1Response { + return v.value +} + +func (v *NullableDiagnoseNodeV1Response) Set(val *DiagnoseNodeV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDiagnoseNodeV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDiagnoseNodeV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDiagnoseNodeV1Response(val *DiagnoseNodeV1Response) *NullableDiagnoseNodeV1Response { + return &NullableDiagnoseNodeV1Response{value: val, isSet: true} +} + +func (v NullableDiagnoseNodeV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDiagnoseNodeV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_flow_invocation_type.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_flow_invocation_type.go new file mode 100644 index 00000000000..0ff3e81f0e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_flow_invocation_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" + "fmt" +) + +// FlowInvocationType Determines which flow starting method will be used on the back-end when invoking the flow. Based on the value here the plugin back-end might invoke the rpc.startFlowDynamic() method or the rpc.startTrackedFlowDynamic() method. Streamed responses are aggregated and returned in a single response to HTTP callers who are not equipped to handle streams like WebSocket/gRPC/etc. do. +type FlowInvocationType string + +// List of FlowInvocationType +const ( + TRACKED_FLOW_DYNAMIC FlowInvocationType = "TRACKED_FLOW_DYNAMIC" + FLOW_DYNAMIC FlowInvocationType = "FLOW_DYNAMIC" +) + +// All allowed values of FlowInvocationType enum +var AllowedFlowInvocationTypeEnumValues = []FlowInvocationType{ + "TRACKED_FLOW_DYNAMIC", + "FLOW_DYNAMIC", +} + +func (v *FlowInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := FlowInvocationType(value) + for _, existing := range AllowedFlowInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid FlowInvocationType", value) +} + +// NewFlowInvocationTypeFromValue returns a pointer to a valid FlowInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewFlowInvocationTypeFromValue(v string) (*FlowInvocationType, error) { + ev := FlowInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for FlowInvocationType: valid values are %v", v, AllowedFlowInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v FlowInvocationType) IsValid() bool { + for _, existing := range AllowedFlowInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to FlowInvocationType value +func (v FlowInvocationType) Ptr() *FlowInvocationType { + return &v +} + +type NullableFlowInvocationType struct { + value *FlowInvocationType + isSet bool +} + +func (v NullableFlowInvocationType) Get() *FlowInvocationType { + return v.value +} + +func (v *NullableFlowInvocationType) Set(val *FlowInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableFlowInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableFlowInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlowInvocationType(val *FlowInvocationType) *NullableFlowInvocationType { + return &NullableFlowInvocationType{value: val, isSet: true} +} + +func (v NullableFlowInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlowInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_request.go new file mode 100644 index 00000000000..fe960147056 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_request.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the GetMonitorTransactionsV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMonitorTransactionsV1Request{} + +// GetMonitorTransactionsV1Request struct for GetMonitorTransactionsV1Request +type GetMonitorTransactionsV1Request struct { + // ID of a client application that wants to monitor the state changes + ClientAppId string `json:"clientAppId"` + // The fully qualified name of the Corda state to monitor + StateFullClassName string `json:"stateFullClassName"` +} + +// NewGetMonitorTransactionsV1Request instantiates a new GetMonitorTransactionsV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMonitorTransactionsV1Request(clientAppId string, stateFullClassName string) *GetMonitorTransactionsV1Request { + this := GetMonitorTransactionsV1Request{} + this.ClientAppId = clientAppId + this.StateFullClassName = stateFullClassName + return &this +} + +// NewGetMonitorTransactionsV1RequestWithDefaults instantiates a new GetMonitorTransactionsV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMonitorTransactionsV1RequestWithDefaults() *GetMonitorTransactionsV1Request { + this := GetMonitorTransactionsV1Request{} + return &this +} + +// GetClientAppId returns the ClientAppId field value +func (o *GetMonitorTransactionsV1Request) GetClientAppId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientAppId +} + +// GetClientAppIdOk returns a tuple with the ClientAppId field value +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Request) GetClientAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientAppId, true +} + +// SetClientAppId sets field value +func (o *GetMonitorTransactionsV1Request) SetClientAppId(v string) { + o.ClientAppId = v +} + +// GetStateFullClassName returns the StateFullClassName field value +func (o *GetMonitorTransactionsV1Request) GetStateFullClassName() string { + if o == nil { + var ret string + return ret + } + + return o.StateFullClassName +} + +// GetStateFullClassNameOk returns a tuple with the StateFullClassName field value +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Request) GetStateFullClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateFullClassName, true +} + +// SetStateFullClassName sets field value +func (o *GetMonitorTransactionsV1Request) SetStateFullClassName(v string) { + o.StateFullClassName = v +} + +func (o GetMonitorTransactionsV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMonitorTransactionsV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientAppId"] = o.ClientAppId + toSerialize["stateFullClassName"] = o.StateFullClassName + return toSerialize, nil +} + +type NullableGetMonitorTransactionsV1Request struct { + value *GetMonitorTransactionsV1Request + isSet bool +} + +func (v NullableGetMonitorTransactionsV1Request) Get() *GetMonitorTransactionsV1Request { + return v.value +} + +func (v *NullableGetMonitorTransactionsV1Request) Set(val *GetMonitorTransactionsV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGetMonitorTransactionsV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMonitorTransactionsV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMonitorTransactionsV1Request(val *GetMonitorTransactionsV1Request) *NullableGetMonitorTransactionsV1Request { + return &NullableGetMonitorTransactionsV1Request{value: val, isSet: true} +} + +func (v NullableGetMonitorTransactionsV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMonitorTransactionsV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response.go new file mode 100644 index 00000000000..30e1e9d2e9b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response.go @@ -0,0 +1,219 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the GetMonitorTransactionsV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMonitorTransactionsV1Response{} + +// GetMonitorTransactionsV1Response struct for GetMonitorTransactionsV1Response +type GetMonitorTransactionsV1Response struct { + // Flag set to true if operation completed correctly. + Success bool `json:"success"` + // Message describing operation status or any errors that occurred. + Msg string `json:"msg"` + // The fully qualified name of the Corda state to monitor + StateFullClassName *string `json:"stateFullClassName,omitempty"` + Tx []GetMonitorTransactionsV1ResponseTxInner `json:"tx,omitempty"` +} + +// NewGetMonitorTransactionsV1Response instantiates a new GetMonitorTransactionsV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMonitorTransactionsV1Response(success bool, msg string) *GetMonitorTransactionsV1Response { + this := GetMonitorTransactionsV1Response{} + this.Success = success + this.Msg = msg + return &this +} + +// NewGetMonitorTransactionsV1ResponseWithDefaults instantiates a new GetMonitorTransactionsV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMonitorTransactionsV1ResponseWithDefaults() *GetMonitorTransactionsV1Response { + this := GetMonitorTransactionsV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *GetMonitorTransactionsV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *GetMonitorTransactionsV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetMsg returns the Msg field value +func (o *GetMonitorTransactionsV1Response) GetMsg() string { + if o == nil { + var ret string + return ret + } + + return o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Response) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Msg, true +} + +// SetMsg sets field value +func (o *GetMonitorTransactionsV1Response) SetMsg(v string) { + o.Msg = v +} + +// GetStateFullClassName returns the StateFullClassName field value if set, zero value otherwise. +func (o *GetMonitorTransactionsV1Response) GetStateFullClassName() string { + if o == nil || IsNil(o.StateFullClassName) { + var ret string + return ret + } + return *o.StateFullClassName +} + +// GetStateFullClassNameOk returns a tuple with the StateFullClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Response) GetStateFullClassNameOk() (*string, bool) { + if o == nil || IsNil(o.StateFullClassName) { + return nil, false + } + return o.StateFullClassName, true +} + +// HasStateFullClassName returns a boolean if a field has been set. +func (o *GetMonitorTransactionsV1Response) HasStateFullClassName() bool { + if o != nil && !IsNil(o.StateFullClassName) { + return true + } + + return false +} + +// SetStateFullClassName gets a reference to the given string and assigns it to the StateFullClassName field. +func (o *GetMonitorTransactionsV1Response) SetStateFullClassName(v string) { + o.StateFullClassName = &v +} + +// GetTx returns the Tx field value if set, zero value otherwise. +func (o *GetMonitorTransactionsV1Response) GetTx() []GetMonitorTransactionsV1ResponseTxInner { + if o == nil || IsNil(o.Tx) { + var ret []GetMonitorTransactionsV1ResponseTxInner + return ret + } + return o.Tx +} + +// GetTxOk returns a tuple with the Tx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1Response) GetTxOk() ([]GetMonitorTransactionsV1ResponseTxInner, bool) { + if o == nil || IsNil(o.Tx) { + return nil, false + } + return o.Tx, true +} + +// HasTx returns a boolean if a field has been set. +func (o *GetMonitorTransactionsV1Response) HasTx() bool { + if o != nil && !IsNil(o.Tx) { + return true + } + + return false +} + +// SetTx gets a reference to the given []GetMonitorTransactionsV1ResponseTxInner and assigns it to the Tx field. +func (o *GetMonitorTransactionsV1Response) SetTx(v []GetMonitorTransactionsV1ResponseTxInner) { + o.Tx = v +} + +func (o GetMonitorTransactionsV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMonitorTransactionsV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["msg"] = o.Msg + if !IsNil(o.StateFullClassName) { + toSerialize["stateFullClassName"] = o.StateFullClassName + } + if !IsNil(o.Tx) { + toSerialize["tx"] = o.Tx + } + return toSerialize, nil +} + +type NullableGetMonitorTransactionsV1Response struct { + value *GetMonitorTransactionsV1Response + isSet bool +} + +func (v NullableGetMonitorTransactionsV1Response) Get() *GetMonitorTransactionsV1Response { + return v.value +} + +func (v *NullableGetMonitorTransactionsV1Response) Set(val *GetMonitorTransactionsV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetMonitorTransactionsV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMonitorTransactionsV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMonitorTransactionsV1Response(val *GetMonitorTransactionsV1Response) *NullableGetMonitorTransactionsV1Response { + return &NullableGetMonitorTransactionsV1Response{value: val, isSet: true} +} + +func (v NullableGetMonitorTransactionsV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMonitorTransactionsV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response_tx_inner.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response_tx_inner.go new file mode 100644 index 00000000000..1a8cbeb52ad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_get_monitor_transactions_v1_response_tx_inner.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the GetMonitorTransactionsV1ResponseTxInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMonitorTransactionsV1ResponseTxInner{} + +// GetMonitorTransactionsV1ResponseTxInner struct for GetMonitorTransactionsV1ResponseTxInner +type GetMonitorTransactionsV1ResponseTxInner struct { + Index *string `json:"index,omitempty"` + Data *string `json:"data,omitempty"` +} + +// NewGetMonitorTransactionsV1ResponseTxInner instantiates a new GetMonitorTransactionsV1ResponseTxInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMonitorTransactionsV1ResponseTxInner() *GetMonitorTransactionsV1ResponseTxInner { + this := GetMonitorTransactionsV1ResponseTxInner{} + return &this +} + +// NewGetMonitorTransactionsV1ResponseTxInnerWithDefaults instantiates a new GetMonitorTransactionsV1ResponseTxInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMonitorTransactionsV1ResponseTxInnerWithDefaults() *GetMonitorTransactionsV1ResponseTxInner { + this := GetMonitorTransactionsV1ResponseTxInner{} + return &this +} + +// GetIndex returns the Index field value if set, zero value otherwise. +func (o *GetMonitorTransactionsV1ResponseTxInner) GetIndex() string { + if o == nil || IsNil(o.Index) { + var ret string + return ret + } + return *o.Index +} + +// GetIndexOk returns a tuple with the Index field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1ResponseTxInner) GetIndexOk() (*string, bool) { + if o == nil || IsNil(o.Index) { + return nil, false + } + return o.Index, true +} + +// HasIndex returns a boolean if a field has been set. +func (o *GetMonitorTransactionsV1ResponseTxInner) HasIndex() bool { + if o != nil && !IsNil(o.Index) { + return true + } + + return false +} + +// SetIndex gets a reference to the given string and assigns it to the Index field. +func (o *GetMonitorTransactionsV1ResponseTxInner) SetIndex(v string) { + o.Index = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GetMonitorTransactionsV1ResponseTxInner) GetData() string { + if o == nil || IsNil(o.Data) { + var ret string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMonitorTransactionsV1ResponseTxInner) GetDataOk() (*string, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GetMonitorTransactionsV1ResponseTxInner) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *GetMonitorTransactionsV1ResponseTxInner) SetData(v string) { + o.Data = &v +} + +func (o GetMonitorTransactionsV1ResponseTxInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMonitorTransactionsV1ResponseTxInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Index) { + toSerialize["index"] = o.Index + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGetMonitorTransactionsV1ResponseTxInner struct { + value *GetMonitorTransactionsV1ResponseTxInner + isSet bool +} + +func (v NullableGetMonitorTransactionsV1ResponseTxInner) Get() *GetMonitorTransactionsV1ResponseTxInner { + return v.value +} + +func (v *NullableGetMonitorTransactionsV1ResponseTxInner) Set(val *GetMonitorTransactionsV1ResponseTxInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetMonitorTransactionsV1ResponseTxInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMonitorTransactionsV1ResponseTxInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMonitorTransactionsV1ResponseTxInner(val *GetMonitorTransactionsV1ResponseTxInner) *NullableGetMonitorTransactionsV1ResponseTxInner { + return &NullableGetMonitorTransactionsV1ResponseTxInner{value: val, isSet: true} +} + +func (v NullableGetMonitorTransactionsV1ResponseTxInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMonitorTransactionsV1ResponseTxInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go new file mode 100644 index 00000000000..82a4b0bec1b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go @@ -0,0 +1,214 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Request{} + +// InvokeContractV1Request struct for InvokeContractV1Request +type InvokeContractV1Request struct { + // The fully qualified name of the Corda flow to invoke + FlowFullClassName string `json:"flowFullClassName"` + FlowInvocationType FlowInvocationType `json:"flowInvocationType"` + // The list of arguments to pass in to the contract method being invoked. + Params []JvmObject `json:"params"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. + TimeoutMs *int32 `json:"timeoutMs,omitempty"` +} + +// NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Request(flowFullClassName string, flowInvocationType FlowInvocationType, params []JvmObject) *InvokeContractV1Request { + this := InvokeContractV1Request{} + this.FlowFullClassName = flowFullClassName + this.FlowInvocationType = flowInvocationType + this.Params = params + var timeoutMs int32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request { + this := InvokeContractV1Request{} + var timeoutMs int32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetFlowFullClassName returns the FlowFullClassName field value +func (o *InvokeContractV1Request) GetFlowFullClassName() string { + if o == nil { + var ret string + return ret + } + + return o.FlowFullClassName +} + +// GetFlowFullClassNameOk returns a tuple with the FlowFullClassName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetFlowFullClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FlowFullClassName, true +} + +// SetFlowFullClassName sets field value +func (o *InvokeContractV1Request) SetFlowFullClassName(v string) { + o.FlowFullClassName = v +} + +// GetFlowInvocationType returns the FlowInvocationType field value +func (o *InvokeContractV1Request) GetFlowInvocationType() FlowInvocationType { + if o == nil { + var ret FlowInvocationType + return ret + } + + return o.FlowInvocationType +} + +// GetFlowInvocationTypeOk returns a tuple with the FlowInvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetFlowInvocationTypeOk() (*FlowInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.FlowInvocationType, true +} + +// SetFlowInvocationType sets field value +func (o *InvokeContractV1Request) SetFlowInvocationType(v FlowInvocationType) { + o.FlowInvocationType = v +} + +// GetParams returns the Params field value +func (o *InvokeContractV1Request) GetParams() []JvmObject { + if o == nil { + var ret []JvmObject + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetParamsOk() ([]JvmObject, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractV1Request) SetParams(v []JvmObject) { + o.Params = v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetTimeoutMs() int32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret int32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetTimeoutMsOk() (*int32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given int32 and assigns it to the TimeoutMs field. +func (o *InvokeContractV1Request) SetTimeoutMs(v int32) { + o.TimeoutMs = &v +} + +func (o InvokeContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["flowFullClassName"] = o.FlowFullClassName + toSerialize["flowInvocationType"] = o.FlowInvocationType + toSerialize["params"] = o.Params + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + return toSerialize, nil +} + +type NullableInvokeContractV1Request struct { + value *InvokeContractV1Request + isSet bool +} + +func (v NullableInvokeContractV1Request) Get() *InvokeContractV1Request { + return v.value +} + +func (v *NullableInvokeContractV1Request) Set(val *InvokeContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Request(val *InvokeContractV1Request) *NullableInvokeContractV1Request { + return &NullableInvokeContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..7401e8ce761 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,247 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + Success bool `json:"success"` + // Data returned from the JVM when no transaction is running + CallOutput map[string]interface{} `json:"callOutput"` + // The net.corda.core.flows.StateMachineRunId value returned by the flow execution. + TransactionId *string `json:"transactionId,omitempty"` + // An array of strings representing the aggregated stream of progress updates provided by a *tracked* flow invocation. If the flow invocation was not tracked, this array is still returned, but as empty. + Progress []string `json:"progress,omitempty"` + // The id for the flow handle + FlowId string `json:"flowId"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool, callOutput map[string]interface{}, flowId string) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + this.CallOutput = callOutput + this.FlowId = flowId + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetCallOutput returns the CallOutput field value +func (o *InvokeContractV1Response) GetCallOutput() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetCallOutputOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.CallOutput, true +} + +// SetCallOutput sets field value +func (o *InvokeContractV1Response) SetCallOutput(v map[string]interface{}) { + o.CallOutput = v +} + +// GetTransactionId returns the TransactionId field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionId() string { + if o == nil || IsNil(o.TransactionId) { + var ret string + return ret + } + return *o.TransactionId +} + +// GetTransactionIdOk returns a tuple with the TransactionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionIdOk() (*string, bool) { + if o == nil || IsNil(o.TransactionId) { + return nil, false + } + return o.TransactionId, true +} + +// HasTransactionId returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionId() bool { + if o != nil && !IsNil(o.TransactionId) { + return true + } + + return false +} + +// SetTransactionId gets a reference to the given string and assigns it to the TransactionId field. +func (o *InvokeContractV1Response) SetTransactionId(v string) { + o.TransactionId = &v +} + +// GetProgress returns the Progress field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetProgress() []string { + if o == nil || IsNil(o.Progress) { + var ret []string + return ret + } + return o.Progress +} + +// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetProgressOk() ([]string, bool) { + if o == nil || IsNil(o.Progress) { + return nil, false + } + return o.Progress, true +} + +// HasProgress returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasProgress() bool { + if o != nil && !IsNil(o.Progress) { + return true + } + + return false +} + +// SetProgress gets a reference to the given []string and assigns it to the Progress field. +func (o *InvokeContractV1Response) SetProgress(v []string) { + o.Progress = v +} + +// GetFlowId returns the FlowId field value +func (o *InvokeContractV1Response) GetFlowId() string { + if o == nil { + var ret string + return ret + } + + return o.FlowId +} + +// GetFlowIdOk returns a tuple with the FlowId field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetFlowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FlowId, true +} + +// SetFlowId sets field value +func (o *InvokeContractV1Response) SetFlowId(v string) { + o.FlowId = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["callOutput"] = o.CallOutput + if !IsNil(o.TransactionId) { + toSerialize["transactionId"] = o.TransactionId + } + if !IsNil(o.Progress) { + toSerialize["progress"] = o.Progress + } + toSerialize["flowId"] = o.FlowId + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jar_file.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jar_file.go new file mode 100644 index 00000000000..0d115bf3d2a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jar_file.go @@ -0,0 +1,199 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the JarFile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JarFile{} + +// JarFile struct for JarFile +type JarFile struct { + Filename string `json:"filename"` + // Indicates whether the cordapp jar in question contains any embedded migrations that Cactus can/should execute between copying the jar into the cordapp directory and starting the node back up. + HasDbMigrations bool `json:"hasDbMigrations"` + ContentBase64 string `json:"contentBase64"` + AdditionalProperties map[string]interface{} +} + +type _JarFile JarFile + +// NewJarFile instantiates a new JarFile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJarFile(filename string, hasDbMigrations bool, contentBase64 string) *JarFile { + this := JarFile{} + this.Filename = filename + this.HasDbMigrations = hasDbMigrations + this.ContentBase64 = contentBase64 + return &this +} + +// NewJarFileWithDefaults instantiates a new JarFile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJarFileWithDefaults() *JarFile { + this := JarFile{} + return &this +} + +// GetFilename returns the Filename field value +func (o *JarFile) GetFilename() string { + if o == nil { + var ret string + return ret + } + + return o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value +// and a boolean to check if the value has been set. +func (o *JarFile) GetFilenameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Filename, true +} + +// SetFilename sets field value +func (o *JarFile) SetFilename(v string) { + o.Filename = v +} + +// GetHasDbMigrations returns the HasDbMigrations field value +func (o *JarFile) GetHasDbMigrations() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasDbMigrations +} + +// GetHasDbMigrationsOk returns a tuple with the HasDbMigrations field value +// and a boolean to check if the value has been set. +func (o *JarFile) GetHasDbMigrationsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasDbMigrations, true +} + +// SetHasDbMigrations sets field value +func (o *JarFile) SetHasDbMigrations(v bool) { + o.HasDbMigrations = v +} + +// GetContentBase64 returns the ContentBase64 field value +func (o *JarFile) GetContentBase64() string { + if o == nil { + var ret string + return ret + } + + return o.ContentBase64 +} + +// GetContentBase64Ok returns a tuple with the ContentBase64 field value +// and a boolean to check if the value has been set. +func (o *JarFile) GetContentBase64Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContentBase64, true +} + +// SetContentBase64 sets field value +func (o *JarFile) SetContentBase64(v string) { + o.ContentBase64 = v +} + +func (o JarFile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JarFile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["filename"] = o.Filename + toSerialize["hasDbMigrations"] = o.HasDbMigrations + toSerialize["contentBase64"] = o.ContentBase64 + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *JarFile) UnmarshalJSON(bytes []byte) (err error) { + varJarFile := _JarFile{} + + if err = json.Unmarshal(bytes, &varJarFile); err == nil { + *o = JarFile(varJarFile) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "filename") + delete(additionalProperties, "hasDbMigrations") + delete(additionalProperties, "contentBase64") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableJarFile struct { + value *JarFile + isSet bool +} + +func (v NullableJarFile) Get() *JarFile { + return v.value +} + +func (v *NullableJarFile) Set(val *JarFile) { + v.value = val + v.isSet = true +} + +func (v NullableJarFile) IsSet() bool { + return v.isSet +} + +func (v *NullableJarFile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJarFile(val *JarFile) *NullableJarFile { + return &NullableJarFile{value: val, isSet: true} +} + +func (v NullableJarFile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJarFile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_object.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_object.go new file mode 100644 index 00000000000..290d2819f49 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_object.go @@ -0,0 +1,216 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the JvmObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JvmObject{} + +// JvmObject Can represent JVM primitive and reference types as well. The jvmTypeKind field indicates which one is being stored. If the jvmTypeKind field is set to REFERENCE then the jvmCtorArgs array is expected to be filled, otherwise (e.g. PRIMITIVE jvmTypeKind) it is expected that the primitiveValue property is filled with a primitive data type supported by the JSON standard such as strings, booleans, numbers, etc. +type JvmObject struct { + JvmTypeKind JvmTypeKind `json:"jvmTypeKind"` + PrimitiveValue map[string]interface{} `json:"primitiveValue,omitempty"` + JvmCtorArgs []JvmObject `json:"jvmCtorArgs,omitempty"` + JvmType JvmType `json:"jvmType"` +} + +// NewJvmObject instantiates a new JvmObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJvmObject(jvmTypeKind JvmTypeKind, jvmType JvmType) *JvmObject { + this := JvmObject{} + this.JvmTypeKind = jvmTypeKind + this.JvmType = jvmType + return &this +} + +// NewJvmObjectWithDefaults instantiates a new JvmObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJvmObjectWithDefaults() *JvmObject { + this := JvmObject{} + return &this +} + +// GetJvmTypeKind returns the JvmTypeKind field value +func (o *JvmObject) GetJvmTypeKind() JvmTypeKind { + if o == nil { + var ret JvmTypeKind + return ret + } + + return o.JvmTypeKind +} + +// GetJvmTypeKindOk returns a tuple with the JvmTypeKind field value +// and a boolean to check if the value has been set. +func (o *JvmObject) GetJvmTypeKindOk() (*JvmTypeKind, bool) { + if o == nil { + return nil, false + } + return &o.JvmTypeKind, true +} + +// SetJvmTypeKind sets field value +func (o *JvmObject) SetJvmTypeKind(v JvmTypeKind) { + o.JvmTypeKind = v +} + +// GetPrimitiveValue returns the PrimitiveValue field value if set, zero value otherwise. +func (o *JvmObject) GetPrimitiveValue() map[string]interface{} { + if o == nil || IsNil(o.PrimitiveValue) { + var ret map[string]interface{} + return ret + } + return o.PrimitiveValue +} + +// GetPrimitiveValueOk returns a tuple with the PrimitiveValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JvmObject) GetPrimitiveValueOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PrimitiveValue) { + return map[string]interface{}{}, false + } + return o.PrimitiveValue, true +} + +// HasPrimitiveValue returns a boolean if a field has been set. +func (o *JvmObject) HasPrimitiveValue() bool { + if o != nil && !IsNil(o.PrimitiveValue) { + return true + } + + return false +} + +// SetPrimitiveValue gets a reference to the given map[string]interface{} and assigns it to the PrimitiveValue field. +func (o *JvmObject) SetPrimitiveValue(v map[string]interface{}) { + o.PrimitiveValue = v +} + +// GetJvmCtorArgs returns the JvmCtorArgs field value if set, zero value otherwise. +func (o *JvmObject) GetJvmCtorArgs() []JvmObject { + if o == nil || IsNil(o.JvmCtorArgs) { + var ret []JvmObject + return ret + } + return o.JvmCtorArgs +} + +// GetJvmCtorArgsOk returns a tuple with the JvmCtorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JvmObject) GetJvmCtorArgsOk() ([]JvmObject, bool) { + if o == nil || IsNil(o.JvmCtorArgs) { + return nil, false + } + return o.JvmCtorArgs, true +} + +// HasJvmCtorArgs returns a boolean if a field has been set. +func (o *JvmObject) HasJvmCtorArgs() bool { + if o != nil && !IsNil(o.JvmCtorArgs) { + return true + } + + return false +} + +// SetJvmCtorArgs gets a reference to the given []JvmObject and assigns it to the JvmCtorArgs field. +func (o *JvmObject) SetJvmCtorArgs(v []JvmObject) { + o.JvmCtorArgs = v +} + +// GetJvmType returns the JvmType field value +func (o *JvmObject) GetJvmType() JvmType { + if o == nil { + var ret JvmType + return ret + } + + return o.JvmType +} + +// GetJvmTypeOk returns a tuple with the JvmType field value +// and a boolean to check if the value has been set. +func (o *JvmObject) GetJvmTypeOk() (*JvmType, bool) { + if o == nil { + return nil, false + } + return &o.JvmType, true +} + +// SetJvmType sets field value +func (o *JvmObject) SetJvmType(v JvmType) { + o.JvmType = v +} + +func (o JvmObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JvmObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["jvmTypeKind"] = o.JvmTypeKind + if !IsNil(o.PrimitiveValue) { + toSerialize["primitiveValue"] = o.PrimitiveValue + } + if !IsNil(o.JvmCtorArgs) { + toSerialize["jvmCtorArgs"] = o.JvmCtorArgs + } + toSerialize["jvmType"] = o.JvmType + return toSerialize, nil +} + +type NullableJvmObject struct { + value *JvmObject + isSet bool +} + +func (v NullableJvmObject) Get() *JvmObject { + return v.value +} + +func (v *NullableJvmObject) Set(val *JvmObject) { + v.value = val + v.isSet = true +} + +func (v NullableJvmObject) IsSet() bool { + return v.isSet +} + +func (v *NullableJvmObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJvmObject(val *JvmObject) *NullableJvmObject { + return &NullableJvmObject{value: val, isSet: true} +} + +func (v NullableJvmObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJvmObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type.go new file mode 100644 index 00000000000..55038b5ff75 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the JvmType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JvmType{} + +// JvmType Represents a reference to a JVM type (such as a Java class) +type JvmType struct { + FqClassName string `json:"fqClassName"` + // This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors. + ConstructorName *string `json:"constructorName,omitempty"` + InvocationTarget *JvmObject `json:"invocationTarget,omitempty"` +} + +// NewJvmType instantiates a new JvmType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJvmType(fqClassName string) *JvmType { + this := JvmType{} + this.FqClassName = fqClassName + return &this +} + +// NewJvmTypeWithDefaults instantiates a new JvmType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJvmTypeWithDefaults() *JvmType { + this := JvmType{} + return &this +} + +// GetFqClassName returns the FqClassName field value +func (o *JvmType) GetFqClassName() string { + if o == nil { + var ret string + return ret + } + + return o.FqClassName +} + +// GetFqClassNameOk returns a tuple with the FqClassName field value +// and a boolean to check if the value has been set. +func (o *JvmType) GetFqClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FqClassName, true +} + +// SetFqClassName sets field value +func (o *JvmType) SetFqClassName(v string) { + o.FqClassName = v +} + +// GetConstructorName returns the ConstructorName field value if set, zero value otherwise. +func (o *JvmType) GetConstructorName() string { + if o == nil || IsNil(o.ConstructorName) { + var ret string + return ret + } + return *o.ConstructorName +} + +// GetConstructorNameOk returns a tuple with the ConstructorName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JvmType) GetConstructorNameOk() (*string, bool) { + if o == nil || IsNil(o.ConstructorName) { + return nil, false + } + return o.ConstructorName, true +} + +// HasConstructorName returns a boolean if a field has been set. +func (o *JvmType) HasConstructorName() bool { + if o != nil && !IsNil(o.ConstructorName) { + return true + } + + return false +} + +// SetConstructorName gets a reference to the given string and assigns it to the ConstructorName field. +func (o *JvmType) SetConstructorName(v string) { + o.ConstructorName = &v +} + +// GetInvocationTarget returns the InvocationTarget field value if set, zero value otherwise. +func (o *JvmType) GetInvocationTarget() JvmObject { + if o == nil || IsNil(o.InvocationTarget) { + var ret JvmObject + return ret + } + return *o.InvocationTarget +} + +// GetInvocationTargetOk returns a tuple with the InvocationTarget field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JvmType) GetInvocationTargetOk() (*JvmObject, bool) { + if o == nil || IsNil(o.InvocationTarget) { + return nil, false + } + return o.InvocationTarget, true +} + +// HasInvocationTarget returns a boolean if a field has been set. +func (o *JvmType) HasInvocationTarget() bool { + if o != nil && !IsNil(o.InvocationTarget) { + return true + } + + return false +} + +// SetInvocationTarget gets a reference to the given JvmObject and assigns it to the InvocationTarget field. +func (o *JvmType) SetInvocationTarget(v JvmObject) { + o.InvocationTarget = &v +} + +func (o JvmType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JvmType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fqClassName"] = o.FqClassName + if !IsNil(o.ConstructorName) { + toSerialize["constructorName"] = o.ConstructorName + } + if !IsNil(o.InvocationTarget) { + toSerialize["invocationTarget"] = o.InvocationTarget + } + return toSerialize, nil +} + +type NullableJvmType struct { + value *JvmType + isSet bool +} + +func (v NullableJvmType) Get() *JvmType { + return v.value +} + +func (v *NullableJvmType) Set(val *JvmType) { + v.value = val + v.isSet = true +} + +func (v NullableJvmType) IsSet() bool { + return v.isSet +} + +func (v *NullableJvmType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJvmType(val *JvmType) *NullableJvmType { + return &NullableJvmType{value: val, isSet: true} +} + +func (v NullableJvmType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJvmType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type_kind.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type_kind.go new file mode 100644 index 00000000000..1cd910f6258 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_jvm_type_kind.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" + "fmt" +) + +// JvmTypeKind the model 'JvmTypeKind' +type JvmTypeKind string + +// List of JvmTypeKind +const ( + PRIMITIVE JvmTypeKind = "PRIMITIVE" + REFERENCE JvmTypeKind = "REFERENCE" +) + +// All allowed values of JvmTypeKind enum +var AllowedJvmTypeKindEnumValues = []JvmTypeKind{ + "PRIMITIVE", + "REFERENCE", +} + +func (v *JvmTypeKind) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := JvmTypeKind(value) + for _, existing := range AllowedJvmTypeKindEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid JvmTypeKind", value) +} + +// NewJvmTypeKindFromValue returns a pointer to a valid JvmTypeKind +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewJvmTypeKindFromValue(v string) (*JvmTypeKind, error) { + ev := JvmTypeKind(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for JvmTypeKind: valid values are %v", v, AllowedJvmTypeKindEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v JvmTypeKind) IsValid() bool { + for _, existing := range AllowedJvmTypeKindEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to JvmTypeKind value +func (v JvmTypeKind) Ptr() *JvmTypeKind { + return &v +} + +type NullableJvmTypeKind struct { + value *JvmTypeKind + isSet bool +} + +func (v NullableJvmTypeKind) Get() *JvmTypeKind { + return v.value +} + +func (v *NullableJvmTypeKind) Set(val *JvmTypeKind) { + v.value = val + v.isSet = true +} + +func (v NullableJvmTypeKind) IsSet() bool { + return v.isSet +} + +func (v *NullableJvmTypeKind) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJvmTypeKind(val *JvmTypeKind) *NullableJvmTypeKind { + return &NullableJvmTypeKind{value: val, isSet: true} +} + +func (v NullableJvmTypeKind) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJvmTypeKind) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_request.go new file mode 100644 index 00000000000..a561fa40575 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_request.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the ListFlowsV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFlowsV1Request{} + +// ListFlowsV1Request struct for ListFlowsV1Request +type ListFlowsV1Request struct { + Filter *string `json:"filter,omitempty"` +} + +// NewListFlowsV1Request instantiates a new ListFlowsV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListFlowsV1Request() *ListFlowsV1Request { + this := ListFlowsV1Request{} + return &this +} + +// NewListFlowsV1RequestWithDefaults instantiates a new ListFlowsV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListFlowsV1RequestWithDefaults() *ListFlowsV1Request { + this := ListFlowsV1Request{} + return &this +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *ListFlowsV1Request) GetFilter() string { + if o == nil || IsNil(o.Filter) { + var ret string + return ret + } + return *o.Filter +} + +// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFlowsV1Request) GetFilterOk() (*string, bool) { + if o == nil || IsNil(o.Filter) { + return nil, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *ListFlowsV1Request) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given string and assigns it to the Filter field. +func (o *ListFlowsV1Request) SetFilter(v string) { + o.Filter = &v +} + +func (o ListFlowsV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFlowsV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Filter) { + toSerialize["filter"] = o.Filter + } + return toSerialize, nil +} + +type NullableListFlowsV1Request struct { + value *ListFlowsV1Request + isSet bool +} + +func (v NullableListFlowsV1Request) Get() *ListFlowsV1Request { + return v.value +} + +func (v *NullableListFlowsV1Request) Set(val *ListFlowsV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableListFlowsV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableListFlowsV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFlowsV1Request(val *ListFlowsV1Request) *NullableListFlowsV1Request { + return &NullableListFlowsV1Request{value: val, isSet: true} +} + +func (v NullableListFlowsV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFlowsV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_response.go new file mode 100644 index 00000000000..b4c9231bc5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_list_flows_v1_response.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the ListFlowsV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFlowsV1Response{} + +// ListFlowsV1Response struct for ListFlowsV1Response +type ListFlowsV1Response struct { + // An array of strings storing the names of the flows as returned by the flowList Corda RPC. + FlowNames []string `json:"flowNames"` +} + +// NewListFlowsV1Response instantiates a new ListFlowsV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListFlowsV1Response(flowNames []string) *ListFlowsV1Response { + this := ListFlowsV1Response{} + this.FlowNames = flowNames + return &this +} + +// NewListFlowsV1ResponseWithDefaults instantiates a new ListFlowsV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListFlowsV1ResponseWithDefaults() *ListFlowsV1Response { + this := ListFlowsV1Response{} + return &this +} + +// GetFlowNames returns the FlowNames field value +func (o *ListFlowsV1Response) GetFlowNames() []string { + if o == nil { + var ret []string + return ret + } + + return o.FlowNames +} + +// GetFlowNamesOk returns a tuple with the FlowNames field value +// and a boolean to check if the value has been set. +func (o *ListFlowsV1Response) GetFlowNamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.FlowNames, true +} + +// SetFlowNames sets field value +func (o *ListFlowsV1Response) SetFlowNames(v []string) { + o.FlowNames = v +} + +func (o ListFlowsV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFlowsV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["flowNames"] = o.FlowNames + return toSerialize, nil +} + +type NullableListFlowsV1Response struct { + value *ListFlowsV1Response + isSet bool +} + +func (v NullableListFlowsV1Response) Get() *ListFlowsV1Response { + return v.value +} + +func (v *NullableListFlowsV1Response) Set(val *ListFlowsV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableListFlowsV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListFlowsV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFlowsV1Response(val *ListFlowsV1Response) *NullableListFlowsV1Response { + return &NullableListFlowsV1Response{value: val, isSet: true} +} + +func (v NullableListFlowsV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFlowsV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_network_host_and_port.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_network_host_and_port.go new file mode 100644 index 00000000000..0da4b725539 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_network_host_and_port.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the NetworkHostAndPort type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkHostAndPort{} + +// NetworkHostAndPort struct for NetworkHostAndPort +type NetworkHostAndPort struct { + Host string `json:"host"` + Port float32 `json:"port"` +} + +// NewNetworkHostAndPort instantiates a new NetworkHostAndPort object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkHostAndPort(host string, port float32) *NetworkHostAndPort { + this := NetworkHostAndPort{} + this.Host = host + this.Port = port + return &this +} + +// NewNetworkHostAndPortWithDefaults instantiates a new NetworkHostAndPort object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkHostAndPortWithDefaults() *NetworkHostAndPort { + this := NetworkHostAndPort{} + return &this +} + +// GetHost returns the Host field value +func (o *NetworkHostAndPort) GetHost() string { + if o == nil { + var ret string + return ret + } + + return o.Host +} + +// GetHostOk returns a tuple with the Host field value +// and a boolean to check if the value has been set. +func (o *NetworkHostAndPort) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Host, true +} + +// SetHost sets field value +func (o *NetworkHostAndPort) SetHost(v string) { + o.Host = v +} + +// GetPort returns the Port field value +func (o *NetworkHostAndPort) GetPort() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *NetworkHostAndPort) GetPortOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Port, true +} + +// SetPort sets field value +func (o *NetworkHostAndPort) SetPort(v float32) { + o.Port = v +} + +func (o NetworkHostAndPort) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkHostAndPort) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["host"] = o.Host + toSerialize["port"] = o.Port + return toSerialize, nil +} + +type NullableNetworkHostAndPort struct { + value *NetworkHostAndPort + isSet bool +} + +func (v NullableNetworkHostAndPort) Get() *NetworkHostAndPort { + return v.value +} + +func (v *NullableNetworkHostAndPort) Set(val *NetworkHostAndPort) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkHostAndPort) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkHostAndPort) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkHostAndPort(val *NetworkHostAndPort) *NullableNetworkHostAndPort { + return &NullableNetworkHostAndPort{value: val, isSet: true} +} + +func (v NullableNetworkHostAndPort) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkHostAndPort) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_diagnostic_info.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_diagnostic_info.go new file mode 100644 index 00000000000..4b19c68a4fa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_diagnostic_info.go @@ -0,0 +1,230 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the NodeDiagnosticInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NodeDiagnosticInfo{} + +// NodeDiagnosticInfo A NodeDiagnosticInfo holds information about the current node version. +type NodeDiagnosticInfo struct { + // A list of CorDapps currently installed on this node + Cordapps []CordappInfo `json:"cordapps"` + // The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists) + PlatformVersion int32 `json:"platformVersion"` + // The git commit hash this node was built from + Revision string `json:"revision"` + // The vendor of this node + Vendor string `json:"vendor"` + // The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this). + Version string `json:"version"` +} + +// NewNodeDiagnosticInfo instantiates a new NodeDiagnosticInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNodeDiagnosticInfo(cordapps []CordappInfo, platformVersion int32, revision string, vendor string, version string) *NodeDiagnosticInfo { + this := NodeDiagnosticInfo{} + this.Cordapps = cordapps + this.PlatformVersion = platformVersion + this.Revision = revision + this.Vendor = vendor + this.Version = version + return &this +} + +// NewNodeDiagnosticInfoWithDefaults instantiates a new NodeDiagnosticInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNodeDiagnosticInfoWithDefaults() *NodeDiagnosticInfo { + this := NodeDiagnosticInfo{} + return &this +} + +// GetCordapps returns the Cordapps field value +func (o *NodeDiagnosticInfo) GetCordapps() []CordappInfo { + if o == nil { + var ret []CordappInfo + return ret + } + + return o.Cordapps +} + +// GetCordappsOk returns a tuple with the Cordapps field value +// and a boolean to check if the value has been set. +func (o *NodeDiagnosticInfo) GetCordappsOk() ([]CordappInfo, bool) { + if o == nil { + return nil, false + } + return o.Cordapps, true +} + +// SetCordapps sets field value +func (o *NodeDiagnosticInfo) SetCordapps(v []CordappInfo) { + o.Cordapps = v +} + +// GetPlatformVersion returns the PlatformVersion field value +func (o *NodeDiagnosticInfo) GetPlatformVersion() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PlatformVersion +} + +// GetPlatformVersionOk returns a tuple with the PlatformVersion field value +// and a boolean to check if the value has been set. +func (o *NodeDiagnosticInfo) GetPlatformVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PlatformVersion, true +} + +// SetPlatformVersion sets field value +func (o *NodeDiagnosticInfo) SetPlatformVersion(v int32) { + o.PlatformVersion = v +} + +// GetRevision returns the Revision field value +func (o *NodeDiagnosticInfo) GetRevision() string { + if o == nil { + var ret string + return ret + } + + return o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value +// and a boolean to check if the value has been set. +func (o *NodeDiagnosticInfo) GetRevisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Revision, true +} + +// SetRevision sets field value +func (o *NodeDiagnosticInfo) SetRevision(v string) { + o.Revision = v +} + +// GetVendor returns the Vendor field value +func (o *NodeDiagnosticInfo) GetVendor() string { + if o == nil { + var ret string + return ret + } + + return o.Vendor +} + +// GetVendorOk returns a tuple with the Vendor field value +// and a boolean to check if the value has been set. +func (o *NodeDiagnosticInfo) GetVendorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Vendor, true +} + +// SetVendor sets field value +func (o *NodeDiagnosticInfo) SetVendor(v string) { + o.Vendor = v +} + +// GetVersion returns the Version field value +func (o *NodeDiagnosticInfo) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *NodeDiagnosticInfo) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *NodeDiagnosticInfo) SetVersion(v string) { + o.Version = v +} + +func (o NodeDiagnosticInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NodeDiagnosticInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cordapps"] = o.Cordapps + toSerialize["platformVersion"] = o.PlatformVersion + toSerialize["revision"] = o.Revision + toSerialize["vendor"] = o.Vendor + toSerialize["version"] = o.Version + return toSerialize, nil +} + +type NullableNodeDiagnosticInfo struct { + value *NodeDiagnosticInfo + isSet bool +} + +func (v NullableNodeDiagnosticInfo) Get() *NodeDiagnosticInfo { + return v.value +} + +func (v *NullableNodeDiagnosticInfo) Set(val *NodeDiagnosticInfo) { + v.value = val + v.isSet = true +} + +func (v NullableNodeDiagnosticInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeDiagnosticInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeDiagnosticInfo(val *NodeDiagnosticInfo) *NullableNodeDiagnosticInfo { + return &NullableNodeDiagnosticInfo{value: val, isSet: true} +} + +func (v NullableNodeDiagnosticInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeDiagnosticInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_info.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_info.go new file mode 100644 index 00000000000..26a385db5a7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_node_info.go @@ -0,0 +1,225 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the NodeInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NodeInfo{} + +// NodeInfo struct for NodeInfo +type NodeInfo struct { + Addresses []NetworkHostAndPort `json:"addresses"` + PlatformVersion int32 `json:"platformVersion"` + Serial float32 `json:"serial"` + LegalIdentities []Party `json:"legalIdentities"` + LegalIdentitiesAndCerts []map[string]interface{} `json:"legalIdentitiesAndCerts"` +} + +// NewNodeInfo instantiates a new NodeInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNodeInfo(addresses []NetworkHostAndPort, platformVersion int32, serial float32, legalIdentities []Party, legalIdentitiesAndCerts []map[string]interface{}) *NodeInfo { + this := NodeInfo{} + this.Addresses = addresses + this.PlatformVersion = platformVersion + this.Serial = serial + this.LegalIdentities = legalIdentities + this.LegalIdentitiesAndCerts = legalIdentitiesAndCerts + return &this +} + +// NewNodeInfoWithDefaults instantiates a new NodeInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNodeInfoWithDefaults() *NodeInfo { + this := NodeInfo{} + return &this +} + +// GetAddresses returns the Addresses field value +func (o *NodeInfo) GetAddresses() []NetworkHostAndPort { + if o == nil { + var ret []NetworkHostAndPort + return ret + } + + return o.Addresses +} + +// GetAddressesOk returns a tuple with the Addresses field value +// and a boolean to check if the value has been set. +func (o *NodeInfo) GetAddressesOk() ([]NetworkHostAndPort, bool) { + if o == nil { + return nil, false + } + return o.Addresses, true +} + +// SetAddresses sets field value +func (o *NodeInfo) SetAddresses(v []NetworkHostAndPort) { + o.Addresses = v +} + +// GetPlatformVersion returns the PlatformVersion field value +func (o *NodeInfo) GetPlatformVersion() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PlatformVersion +} + +// GetPlatformVersionOk returns a tuple with the PlatformVersion field value +// and a boolean to check if the value has been set. +func (o *NodeInfo) GetPlatformVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PlatformVersion, true +} + +// SetPlatformVersion sets field value +func (o *NodeInfo) SetPlatformVersion(v int32) { + o.PlatformVersion = v +} + +// GetSerial returns the Serial field value +func (o *NodeInfo) GetSerial() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value +// and a boolean to check if the value has been set. +func (o *NodeInfo) GetSerialOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Serial, true +} + +// SetSerial sets field value +func (o *NodeInfo) SetSerial(v float32) { + o.Serial = v +} + +// GetLegalIdentities returns the LegalIdentities field value +func (o *NodeInfo) GetLegalIdentities() []Party { + if o == nil { + var ret []Party + return ret + } + + return o.LegalIdentities +} + +// GetLegalIdentitiesOk returns a tuple with the LegalIdentities field value +// and a boolean to check if the value has been set. +func (o *NodeInfo) GetLegalIdentitiesOk() ([]Party, bool) { + if o == nil { + return nil, false + } + return o.LegalIdentities, true +} + +// SetLegalIdentities sets field value +func (o *NodeInfo) SetLegalIdentities(v []Party) { + o.LegalIdentities = v +} + +// GetLegalIdentitiesAndCerts returns the LegalIdentitiesAndCerts field value +func (o *NodeInfo) GetLegalIdentitiesAndCerts() []map[string]interface{} { + if o == nil { + var ret []map[string]interface{} + return ret + } + + return o.LegalIdentitiesAndCerts +} + +// GetLegalIdentitiesAndCertsOk returns a tuple with the LegalIdentitiesAndCerts field value +// and a boolean to check if the value has been set. +func (o *NodeInfo) GetLegalIdentitiesAndCertsOk() ([]map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return o.LegalIdentitiesAndCerts, true +} + +// SetLegalIdentitiesAndCerts sets field value +func (o *NodeInfo) SetLegalIdentitiesAndCerts(v []map[string]interface{}) { + o.LegalIdentitiesAndCerts = v +} + +func (o NodeInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NodeInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["addresses"] = o.Addresses + toSerialize["platformVersion"] = o.PlatformVersion + toSerialize["serial"] = o.Serial + toSerialize["legalIdentities"] = o.LegalIdentities + toSerialize["legalIdentitiesAndCerts"] = o.LegalIdentitiesAndCerts + return toSerialize, nil +} + +type NullableNodeInfo struct { + value *NodeInfo + isSet bool +} + +func (v NullableNodeInfo) Get() *NodeInfo { + return v.value +} + +func (v *NullableNodeInfo) Set(val *NodeInfo) { + v.value = val + v.isSet = true +} + +func (v NullableNodeInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeInfo(val *NodeInfo) *NullableNodeInfo { + return &NullableNodeInfo{value: val, isSet: true} +} + +func (v NullableNodeInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_party.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_party.go new file mode 100644 index 00000000000..f0b0a93648b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_party.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the Party type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Party{} + +// Party struct for Party +type Party struct { + Name CordaX500Name `json:"name"` + OwningKey PublicKey `json:"owningKey"` +} + +// NewParty instantiates a new Party object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewParty(name CordaX500Name, owningKey PublicKey) *Party { + this := Party{} + this.Name = name + this.OwningKey = owningKey + return &this +} + +// NewPartyWithDefaults instantiates a new Party object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartyWithDefaults() *Party { + this := Party{} + return &this +} + +// GetName returns the Name field value +func (o *Party) GetName() CordaX500Name { + if o == nil { + var ret CordaX500Name + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Party) GetNameOk() (*CordaX500Name, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Party) SetName(v CordaX500Name) { + o.Name = v +} + +// GetOwningKey returns the OwningKey field value +func (o *Party) GetOwningKey() PublicKey { + if o == nil { + var ret PublicKey + return ret + } + + return o.OwningKey +} + +// GetOwningKeyOk returns a tuple with the OwningKey field value +// and a boolean to check if the value has been set. +func (o *Party) GetOwningKeyOk() (*PublicKey, bool) { + if o == nil { + return nil, false + } + return &o.OwningKey, true +} + +// SetOwningKey sets field value +func (o *Party) SetOwningKey(v PublicKey) { + o.OwningKey = v +} + +func (o Party) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Party) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["owningKey"] = o.OwningKey + return toSerialize, nil +} + +type NullableParty struct { + value *Party + isSet bool +} + +func (v NullableParty) Get() *Party { + return v.value +} + +func (v *NullableParty) Set(val *Party) { + v.value = val + v.isSet = true +} + +func (v NullableParty) IsSet() bool { + return v.isSet +} + +func (v *NullableParty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableParty(val *Party) *NullableParty { + return &NullableParty{value: val, isSet: true} +} + +func (v NullableParty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableParty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_public_key.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_public_key.go new file mode 100644 index 00000000000..9282629530e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_public_key.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the PublicKey type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublicKey{} + +// PublicKey An instance of a java.security.PublicKey (which is an interface) implementation such as org.hyperledger.cactus.plugin.ledger.connector.corda.server.impl.PublicKeyImpl +type PublicKey struct { + Algorithm string `json:"algorithm"` + Format string `json:"format"` + Encoded string `json:"encoded"` +} + +// NewPublicKey instantiates a new PublicKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPublicKey(algorithm string, format string, encoded string) *PublicKey { + this := PublicKey{} + this.Algorithm = algorithm + this.Format = format + this.Encoded = encoded + return &this +} + +// NewPublicKeyWithDefaults instantiates a new PublicKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublicKeyWithDefaults() *PublicKey { + this := PublicKey{} + return &this +} + +// GetAlgorithm returns the Algorithm field value +func (o *PublicKey) GetAlgorithm() string { + if o == nil { + var ret string + return ret + } + + return o.Algorithm +} + +// GetAlgorithmOk returns a tuple with the Algorithm field value +// and a boolean to check if the value has been set. +func (o *PublicKey) GetAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Algorithm, true +} + +// SetAlgorithm sets field value +func (o *PublicKey) SetAlgorithm(v string) { + o.Algorithm = v +} + +// GetFormat returns the Format field value +func (o *PublicKey) GetFormat() string { + if o == nil { + var ret string + return ret + } + + return o.Format +} + +// GetFormatOk returns a tuple with the Format field value +// and a boolean to check if the value has been set. +func (o *PublicKey) GetFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Format, true +} + +// SetFormat sets field value +func (o *PublicKey) SetFormat(v string) { + o.Format = v +} + +// GetEncoded returns the Encoded field value +func (o *PublicKey) GetEncoded() string { + if o == nil { + var ret string + return ret + } + + return o.Encoded +} + +// GetEncodedOk returns a tuple with the Encoded field value +// and a boolean to check if the value has been set. +func (o *PublicKey) GetEncodedOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Encoded, true +} + +// SetEncoded sets field value +func (o *PublicKey) SetEncoded(v string) { + o.Encoded = v +} + +func (o PublicKey) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublicKey) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["algorithm"] = o.Algorithm + toSerialize["format"] = o.Format + toSerialize["encoded"] = o.Encoded + return toSerialize, nil +} + +type NullablePublicKey struct { + value *PublicKey + isSet bool +} + +func (v NullablePublicKey) Get() *PublicKey { + return v.value +} + +func (v *NullablePublicKey) Set(val *PublicKey) { + v.value = val + v.isSet = true +} + +func (v NullablePublicKey) IsSet() bool { + return v.isSet +} + +func (v *NullablePublicKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublicKey(val *PublicKey) *NullablePublicKey { + return &NullablePublicKey{value: val, isSet: true} +} + +func (v NullablePublicKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublicKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_sha256.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_sha256.go new file mode 100644 index 00000000000..8a55ffe2892 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_sha256.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the SHA256 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SHA256{} + +// SHA256 SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes). +type SHA256 struct { + Bytes string `json:"bytes"` + Offset int32 `json:"offset"` + Size int32 `json:"size"` +} + +// NewSHA256 instantiates a new SHA256 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSHA256(bytes string, offset int32, size int32) *SHA256 { + this := SHA256{} + this.Bytes = bytes + this.Offset = offset + this.Size = size + return &this +} + +// NewSHA256WithDefaults instantiates a new SHA256 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSHA256WithDefaults() *SHA256 { + this := SHA256{} + return &this +} + +// GetBytes returns the Bytes field value +func (o *SHA256) GetBytes() string { + if o == nil { + var ret string + return ret + } + + return o.Bytes +} + +// GetBytesOk returns a tuple with the Bytes field value +// and a boolean to check if the value has been set. +func (o *SHA256) GetBytesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Bytes, true +} + +// SetBytes sets field value +func (o *SHA256) SetBytes(v string) { + o.Bytes = v +} + +// GetOffset returns the Offset field value +func (o *SHA256) GetOffset() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *SHA256) GetOffsetOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *SHA256) SetOffset(v int32) { + o.Offset = v +} + +// GetSize returns the Size field value +func (o *SHA256) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SHA256) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SHA256) SetSize(v int32) { + o.Size = v +} + +func (o SHA256) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SHA256) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["bytes"] = o.Bytes + toSerialize["offset"] = o.Offset + toSerialize["size"] = o.Size + return toSerialize, nil +} + +type NullableSHA256 struct { + value *SHA256 + isSet bool +} + +func (v NullableSHA256) Get() *SHA256 { + return v.value +} + +func (v *NullableSHA256) Set(val *SHA256) { + v.value = val + v.isSet = true +} + +func (v NullableSHA256) IsSet() bool { + return v.isSet +} + +func (v *NullableSHA256) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSHA256(val *SHA256) *NullableSHA256 { + return &NullableSHA256{value: val, isSet: true} +} + +func (v NullableSHA256) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSHA256) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_request.go new file mode 100644 index 00000000000..910f45b9fd2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_request.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the StartMonitorV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StartMonitorV1Request{} + +// StartMonitorV1Request struct for StartMonitorV1Request +type StartMonitorV1Request struct { + // ID of a client application that wants to monitor the state changes + ClientAppId string `json:"clientAppId"` + // The fully qualified name of the Corda state to monitor + StateFullClassName string `json:"stateFullClassName"` +} + +// NewStartMonitorV1Request instantiates a new StartMonitorV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStartMonitorV1Request(clientAppId string, stateFullClassName string) *StartMonitorV1Request { + this := StartMonitorV1Request{} + this.ClientAppId = clientAppId + this.StateFullClassName = stateFullClassName + return &this +} + +// NewStartMonitorV1RequestWithDefaults instantiates a new StartMonitorV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStartMonitorV1RequestWithDefaults() *StartMonitorV1Request { + this := StartMonitorV1Request{} + return &this +} + +// GetClientAppId returns the ClientAppId field value +func (o *StartMonitorV1Request) GetClientAppId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientAppId +} + +// GetClientAppIdOk returns a tuple with the ClientAppId field value +// and a boolean to check if the value has been set. +func (o *StartMonitorV1Request) GetClientAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientAppId, true +} + +// SetClientAppId sets field value +func (o *StartMonitorV1Request) SetClientAppId(v string) { + o.ClientAppId = v +} + +// GetStateFullClassName returns the StateFullClassName field value +func (o *StartMonitorV1Request) GetStateFullClassName() string { + if o == nil { + var ret string + return ret + } + + return o.StateFullClassName +} + +// GetStateFullClassNameOk returns a tuple with the StateFullClassName field value +// and a boolean to check if the value has been set. +func (o *StartMonitorV1Request) GetStateFullClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateFullClassName, true +} + +// SetStateFullClassName sets field value +func (o *StartMonitorV1Request) SetStateFullClassName(v string) { + o.StateFullClassName = v +} + +func (o StartMonitorV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StartMonitorV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientAppId"] = o.ClientAppId + toSerialize["stateFullClassName"] = o.StateFullClassName + return toSerialize, nil +} + +type NullableStartMonitorV1Request struct { + value *StartMonitorV1Request + isSet bool +} + +func (v NullableStartMonitorV1Request) Get() *StartMonitorV1Request { + return v.value +} + +func (v *NullableStartMonitorV1Request) Set(val *StartMonitorV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableStartMonitorV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableStartMonitorV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStartMonitorV1Request(val *StartMonitorV1Request) *NullableStartMonitorV1Request { + return &NullableStartMonitorV1Request{value: val, isSet: true} +} + +func (v NullableStartMonitorV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStartMonitorV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_response.go new file mode 100644 index 00000000000..296638aec58 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_start_monitor_v1_response.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the StartMonitorV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StartMonitorV1Response{} + +// StartMonitorV1Response struct for StartMonitorV1Response +type StartMonitorV1Response struct { + // Flag set to true if monitoring started correctly. + Success bool `json:"success"` + // Message describing operation status or any errors that occurred. + Msg string `json:"msg"` +} + +// NewStartMonitorV1Response instantiates a new StartMonitorV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStartMonitorV1Response(success bool, msg string) *StartMonitorV1Response { + this := StartMonitorV1Response{} + this.Success = success + this.Msg = msg + return &this +} + +// NewStartMonitorV1ResponseWithDefaults instantiates a new StartMonitorV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStartMonitorV1ResponseWithDefaults() *StartMonitorV1Response { + this := StartMonitorV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *StartMonitorV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *StartMonitorV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *StartMonitorV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetMsg returns the Msg field value +func (o *StartMonitorV1Response) GetMsg() string { + if o == nil { + var ret string + return ret + } + + return o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value +// and a boolean to check if the value has been set. +func (o *StartMonitorV1Response) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Msg, true +} + +// SetMsg sets field value +func (o *StartMonitorV1Response) SetMsg(v string) { + o.Msg = v +} + +func (o StartMonitorV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StartMonitorV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["msg"] = o.Msg + return toSerialize, nil +} + +type NullableStartMonitorV1Response struct { + value *StartMonitorV1Response + isSet bool +} + +func (v NullableStartMonitorV1Response) Get() *StartMonitorV1Response { + return v.value +} + +func (v *NullableStartMonitorV1Response) Set(val *StartMonitorV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableStartMonitorV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableStartMonitorV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStartMonitorV1Response(val *StartMonitorV1Response) *NullableStartMonitorV1Response { + return &NullableStartMonitorV1Response{value: val, isSet: true} +} + +func (v NullableStartMonitorV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStartMonitorV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_request.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_request.go new file mode 100644 index 00000000000..440debfff85 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_request.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the StopMonitorV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StopMonitorV1Request{} + +// StopMonitorV1Request struct for StopMonitorV1Request +type StopMonitorV1Request struct { + // ID of a client application that wants to monitor the state changes + ClientAppId string `json:"clientAppId"` + // The fully qualified name of the Corda state to monitor + StateFullClassName string `json:"stateFullClassName"` +} + +// NewStopMonitorV1Request instantiates a new StopMonitorV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStopMonitorV1Request(clientAppId string, stateFullClassName string) *StopMonitorV1Request { + this := StopMonitorV1Request{} + this.ClientAppId = clientAppId + this.StateFullClassName = stateFullClassName + return &this +} + +// NewStopMonitorV1RequestWithDefaults instantiates a new StopMonitorV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStopMonitorV1RequestWithDefaults() *StopMonitorV1Request { + this := StopMonitorV1Request{} + return &this +} + +// GetClientAppId returns the ClientAppId field value +func (o *StopMonitorV1Request) GetClientAppId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientAppId +} + +// GetClientAppIdOk returns a tuple with the ClientAppId field value +// and a boolean to check if the value has been set. +func (o *StopMonitorV1Request) GetClientAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientAppId, true +} + +// SetClientAppId sets field value +func (o *StopMonitorV1Request) SetClientAppId(v string) { + o.ClientAppId = v +} + +// GetStateFullClassName returns the StateFullClassName field value +func (o *StopMonitorV1Request) GetStateFullClassName() string { + if o == nil { + var ret string + return ret + } + + return o.StateFullClassName +} + +// GetStateFullClassNameOk returns a tuple with the StateFullClassName field value +// and a boolean to check if the value has been set. +func (o *StopMonitorV1Request) GetStateFullClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateFullClassName, true +} + +// SetStateFullClassName sets field value +func (o *StopMonitorV1Request) SetStateFullClassName(v string) { + o.StateFullClassName = v +} + +func (o StopMonitorV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StopMonitorV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientAppId"] = o.ClientAppId + toSerialize["stateFullClassName"] = o.StateFullClassName + return toSerialize, nil +} + +type NullableStopMonitorV1Request struct { + value *StopMonitorV1Request + isSet bool +} + +func (v NullableStopMonitorV1Request) Get() *StopMonitorV1Request { + return v.value +} + +func (v *NullableStopMonitorV1Request) Set(val *StopMonitorV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableStopMonitorV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableStopMonitorV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStopMonitorV1Request(val *StopMonitorV1Request) *NullableStopMonitorV1Request { + return &NullableStopMonitorV1Request{value: val, isSet: true} +} + +func (v NullableStopMonitorV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStopMonitorV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_response.go new file mode 100644 index 00000000000..81526506538 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_stop_monitor_v1_response.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the StopMonitorV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StopMonitorV1Response{} + +// StopMonitorV1Response struct for StopMonitorV1Response +type StopMonitorV1Response struct { + // Flag set to true if operation completed correctly. + Success bool `json:"success"` + // Message describing operation status or any errors that occurred. + Msg string `json:"msg"` +} + +// NewStopMonitorV1Response instantiates a new StopMonitorV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStopMonitorV1Response(success bool, msg string) *StopMonitorV1Response { + this := StopMonitorV1Response{} + this.Success = success + this.Msg = msg + return &this +} + +// NewStopMonitorV1ResponseWithDefaults instantiates a new StopMonitorV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStopMonitorV1ResponseWithDefaults() *StopMonitorV1Response { + this := StopMonitorV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *StopMonitorV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *StopMonitorV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *StopMonitorV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetMsg returns the Msg field value +func (o *StopMonitorV1Response) GetMsg() string { + if o == nil { + var ret string + return ret + } + + return o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value +// and a boolean to check if the value has been set. +func (o *StopMonitorV1Response) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Msg, true +} + +// SetMsg sets field value +func (o *StopMonitorV1Response) SetMsg(v string) { + o.Msg = v +} + +func (o StopMonitorV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StopMonitorV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["msg"] = o.Msg + return toSerialize, nil +} + +type NullableStopMonitorV1Response struct { + value *StopMonitorV1Response + isSet bool +} + +func (v NullableStopMonitorV1Response) Get() *StopMonitorV1Response { + return v.value +} + +func (v *NullableStopMonitorV1Response) Set(val *StopMonitorV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableStopMonitorV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableStopMonitorV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStopMonitorV1Response(val *StopMonitorV1Response) *NullableStopMonitorV1Response { + return &NullableStopMonitorV1Response{value: val, isSet: true} +} + +func (v NullableStopMonitorV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStopMonitorV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_x500_principal.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_x500_principal.go new file mode 100644 index 00000000000..a0276260384 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/model_x500_principal.go @@ -0,0 +1,145 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" +) + +// checks if the X500Principal type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &X500Principal{} + +// X500Principal struct for X500Principal +type X500Principal struct { + Name string `json:"name"` + // Base64 encoded public key + Encoded string `json:"encoded"` +} + +// NewX500Principal instantiates a new X500Principal object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewX500Principal(name string, encoded string) *X500Principal { + this := X500Principal{} + this.Name = name + this.Encoded = encoded + return &this +} + +// NewX500PrincipalWithDefaults instantiates a new X500Principal object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewX500PrincipalWithDefaults() *X500Principal { + this := X500Principal{} + return &this +} + +// GetName returns the Name field value +func (o *X500Principal) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *X500Principal) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *X500Principal) SetName(v string) { + o.Name = v +} + +// GetEncoded returns the Encoded field value +func (o *X500Principal) GetEncoded() string { + if o == nil { + var ret string + return ret + } + + return o.Encoded +} + +// GetEncodedOk returns a tuple with the Encoded field value +// and a boolean to check if the value has been set. +func (o *X500Principal) GetEncodedOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Encoded, true +} + +// SetEncoded sets field value +func (o *X500Principal) SetEncoded(v string) { + o.Encoded = v +} + +func (o X500Principal) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o X500Principal) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["encoded"] = o.Encoded + return toSerialize, nil +} + +type NullableX500Principal struct { + value *X500Principal + isSet bool +} + +func (v NullableX500Principal) Get() *X500Principal { + return v.value +} + +func (v *NullableX500Principal) Set(val *X500Principal) { + v.value = val + v.isSet = true +} + +func (v NullableX500Principal) IsSet() bool { + return v.isSet +} + +func (v *NullableX500Principal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableX500Principal(val *X500Principal) *NullableX500Principal { + return &NullableX500Principal{value: val, isSet: true} +} + +func (v NullableX500Principal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableX500Principal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..ea038e3e4f8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..5a6232e6d35 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,145 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-corda_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService ClearMonitorTransactionsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.ClearMonitorTransactionsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DeployContractJarsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractJarsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DiagnoseNodeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DiagnoseNodeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetMonitorTransactionsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetMonitorTransactionsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService ListFlowsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.ListFlowsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService NetworkMapV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.NetworkMapV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService StartMonitorV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.StartMonitorV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService StopMonitorV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.StopMonitorV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..ea473d1e06f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Corda + +Can perform basic tasks on a Corda ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-corda + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/README.md index 35110de5238..d9d061e777c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Corda - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata] Can perform basic tasks on a Corda ledger diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index e77092d940f..956782edb3b 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index fd07e46e642..b15a918ff07 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index bed77e31e56..93bac14fa2e 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index d64c147d463..500b0f29650 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index dc8b81c40a3..3581183c94f 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 8d26abb437d..7dd0c877f01 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index c1d3ad1f9cd..66c96bf8575 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Request.java index e10b308f98c..87f21d0b6d7 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Request.java @@ -52,7 +52,7 @@ /** * ClearMonitorTransactionsV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ClearMonitorTransactionsV1Request { public static final String SERIALIZED_NAME_CLIENT_APP_ID = "clientAppId"; @SerializedName(SERIALIZED_NAME_CLIENT_APP_ID) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Response.java index 728336ce943..eb748c93201 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClearMonitorTransactionsV1Response.java @@ -50,7 +50,7 @@ /** * ClearMonitorTransactionsV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ClearMonitorTransactionsV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaNodeSshCredentials.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaNodeSshCredentials.java index 851784f5520..99548315564 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaNodeSshCredentials.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaNodeSshCredentials.java @@ -50,7 +50,7 @@ /** * CordaNodeSshCredentials */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class CordaNodeSshCredentials { public static final String SERIALIZED_NAME_HOST_KEY_ENTRY = "hostKeyEntry"; @SerializedName(SERIALIZED_NAME_HOST_KEY_ENTRY) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaRpcCredentials.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaRpcCredentials.java index 54b97bbf04a..1d5d3db69b3 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaRpcCredentials.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaRpcCredentials.java @@ -50,7 +50,7 @@ /** * CordaRpcCredentials */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class CordaRpcCredentials { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaX500Name.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaX500Name.java index 5e6309ab487..be1bf9df9fa 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaX500Name.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordaX500Name.java @@ -51,7 +51,7 @@ /** * CordaX500Name */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class CordaX500Name { public static final String SERIALIZED_NAME_COMMON_NAME = "commonName"; @SerializedName(SERIALIZED_NAME_COMMON_NAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappDeploymentConfig.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappDeploymentConfig.java index e8ee430e2e3..758d1dac449 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappDeploymentConfig.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappDeploymentConfig.java @@ -52,7 +52,7 @@ /** * CordappDeploymentConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class CordappDeploymentConfig { public static final String SERIALIZED_NAME_SSH_CREDENTIALS = "sshCredentials"; @SerializedName(SERIALIZED_NAME_SSH_CREDENTIALS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappInfo.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappInfo.java index c3bb9a9410c..ff16eecf459 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappInfo.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CordappInfo.java @@ -51,7 +51,7 @@ /** * A CordappInfo describes a single CorDapp currently installed on the node */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class CordappInfo { public static final String SERIALIZED_NAME_JAR_HASH = "jarHash"; @SerializedName(SERIALIZED_NAME_JAR_HASH) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsBadRequestV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsBadRequestV1Response.java index 83ba78eae49..a4d74c005b2 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsBadRequestV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsBadRequestV1Response.java @@ -52,7 +52,7 @@ /** * DeployContractJarsBadRequestV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class DeployContractJarsBadRequestV1Response { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsSuccessV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsSuccessV1Response.java index 1845301f2c8..d8a5e12e3a1 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsSuccessV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsSuccessV1Response.java @@ -52,7 +52,7 @@ /** * DeployContractJarsSuccessV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class DeployContractJarsSuccessV1Response { public static final String SERIALIZED_NAME_DEPLOYED_JAR_FILES = "deployedJarFiles"; @SerializedName(SERIALIZED_NAME_DEPLOYED_JAR_FILES) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsV1Request.java index dc2e5a579d2..81ed87af61c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJarsV1Request.java @@ -54,7 +54,7 @@ /** * DeployContractJarsV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class DeployContractJarsV1Request { public static final String SERIALIZED_NAME_CORDAPP_DEPLOYMENT_CONFIGS = "cordappDeploymentConfigs"; @SerializedName(SERIALIZED_NAME_CORDAPP_DEPLOYMENT_CONFIGS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Request.java index dc7bf64d366..d43c4f3b19f 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Request.java @@ -52,7 +52,7 @@ /** * DiagnoseNodeV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class DiagnoseNodeV1Request { public static final String SERIALIZED_NAME_NODE_IDS = "nodeIds"; @SerializedName(SERIALIZED_NAME_NODE_IDS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Response.java index 89d029ccd26..66299c7f8ec 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DiagnoseNodeV1Response.java @@ -51,7 +51,7 @@ /** * DiagnoseNodeV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class DiagnoseNodeV1Response { public static final String SERIALIZED_NAME_NODE_DIAGNOSTIC_INFO = "nodeDiagnosticInfo"; @SerializedName(SERIALIZED_NAME_NODE_DIAGNOSTIC_INFO) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Request.java index 2da6bcff8cc..79a20cecf74 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Request.java @@ -50,7 +50,7 @@ /** * GetMonitorTransactionsV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class GetMonitorTransactionsV1Request { public static final String SERIALIZED_NAME_CLIENT_APP_ID = "clientAppId"; @SerializedName(SERIALIZED_NAME_CLIENT_APP_ID) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Response.java index 377af91438a..e0b985827fe 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1Response.java @@ -53,7 +53,7 @@ /** * GetMonitorTransactionsV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class GetMonitorTransactionsV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1ResponseTxInner.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1ResponseTxInner.java index 2a81d7c9ba8..4d7b014a4a9 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1ResponseTxInner.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetMonitorTransactionsV1ResponseTxInner.java @@ -50,7 +50,7 @@ /** * GetMonitorTransactionsV1ResponseTxInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class GetMonitorTransactionsV1ResponseTxInner { public static final String SERIALIZED_NAME_INDEX = "index"; @SerializedName(SERIALIZED_NAME_INDEX) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java index 88bb4f0773c..c2f908855d1 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java @@ -54,7 +54,7 @@ /** * InvokeContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class InvokeContractV1Request { public static final String SERIALIZED_NAME_FLOW_FULL_CLASS_NAME = "flowFullClassName"; @SerializedName(SERIALIZED_NAME_FLOW_FULL_CLASS_NAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index 3dcc6a06dcc..4e79956f997 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JarFile.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JarFile.java index f026f85d5f9..1eeadeb77ce 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JarFile.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JarFile.java @@ -50,7 +50,7 @@ /** * JarFile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class JarFile { public static final String SERIALIZED_NAME_FILENAME = "filename"; @SerializedName(SERIALIZED_NAME_FILENAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmObject.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmObject.java index 5f8a5deba97..c498f7279ec 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmObject.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmObject.java @@ -54,7 +54,7 @@ /** * Can represent JVM primitive and reference types as well. The jvmTypeKind field indicates which one is being stored. If the jvmTypeKind field is set to REFERENCE then the jvmCtorArgs array is expected to be filled, otherwise (e.g. PRIMITIVE jvmTypeKind) it is expected that the primitiveValue property is filled with a primitive data type supported by the JSON standard such as strings, booleans, numbers, etc. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class JvmObject { public static final String SERIALIZED_NAME_JVM_TYPE_KIND = "jvmTypeKind"; @SerializedName(SERIALIZED_NAME_JVM_TYPE_KIND) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmType.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmType.java index 17f29784929..0efccfcfdae 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmType.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/JvmType.java @@ -51,7 +51,7 @@ /** * Represents a reference to a JVM type (such as a Java class) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class JvmType { public static final String SERIALIZED_NAME_FQ_CLASS_NAME = "fqClassName"; @SerializedName(SERIALIZED_NAME_FQ_CLASS_NAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Request.java index 1d0211fad44..bd2b396c70c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Request.java @@ -50,7 +50,7 @@ /** * ListFlowsV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ListFlowsV1Request { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Response.java index 0d16184a6df..110921664dd 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ListFlowsV1Response.java @@ -52,7 +52,7 @@ /** * ListFlowsV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class ListFlowsV1Response { public static final String SERIALIZED_NAME_FLOW_NAMES = "flowNames"; @SerializedName(SERIALIZED_NAME_FLOW_NAMES) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NetworkHostAndPort.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NetworkHostAndPort.java index 107f2697813..54baecde622 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NetworkHostAndPort.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NetworkHostAndPort.java @@ -51,7 +51,7 @@ /** * NetworkHostAndPort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class NetworkHostAndPort { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeDiagnosticInfo.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeDiagnosticInfo.java index 2413f832349..f9d053d8b26 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeDiagnosticInfo.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeDiagnosticInfo.java @@ -53,7 +53,7 @@ /** * A NodeDiagnosticInfo holds information about the current node version. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class NodeDiagnosticInfo { public static final String SERIALIZED_NAME_CORDAPPS = "cordapps"; @SerializedName(SERIALIZED_NAME_CORDAPPS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeInfo.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeInfo.java index 157d574d156..97fe55c6a09 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeInfo.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/NodeInfo.java @@ -55,7 +55,7 @@ /** * NodeInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class NodeInfo { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Party.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Party.java index bce32ce0c19..7ff2ab7747b 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Party.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Party.java @@ -52,7 +52,7 @@ /** * Party */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class Party { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PublicKey.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PublicKey.java index 1980dccf7e8..51bc7a8d2fd 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PublicKey.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PublicKey.java @@ -50,7 +50,7 @@ /** * An instance of a java.security.PublicKey (which is an interface) implementation such as org.hyperledger.cactus.plugin.ledger.connector.corda.server.impl.PublicKeyImpl */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class PublicKey { public static final String SERIALIZED_NAME_ALGORITHM = "algorithm"; @SerializedName(SERIALIZED_NAME_ALGORITHM) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SHA256.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SHA256.java index c16feb70a88..9483d4b338c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SHA256.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SHA256.java @@ -50,7 +50,7 @@ /** * SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes). */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class SHA256 { public static final String SERIALIZED_NAME_BYTES = "bytes"; @SerializedName(SERIALIZED_NAME_BYTES) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Request.java index 43334f25f46..d5694874893 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Request.java @@ -50,7 +50,7 @@ /** * StartMonitorV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class StartMonitorV1Request { public static final String SERIALIZED_NAME_CLIENT_APP_ID = "clientAppId"; @SerializedName(SERIALIZED_NAME_CLIENT_APP_ID) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Response.java index edf447538e1..7e19f1f03b3 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StartMonitorV1Response.java @@ -50,7 +50,7 @@ /** * StartMonitorV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class StartMonitorV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Request.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Request.java index cd9bb989a65..62d6661fe1b 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Request.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Request.java @@ -50,7 +50,7 @@ /** * StopMonitorV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class StopMonitorV1Request { public static final String SERIALIZED_NAME_CLIENT_APP_ID = "clientAppId"; @SerializedName(SERIALIZED_NAME_CLIENT_APP_ID) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Response.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Response.java index 5992bb0ad55..52dea192090 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Response.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StopMonitorV1Response.java @@ -50,7 +50,7 @@ /** * StopMonitorV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class StopMonitorV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/X500Principal.java b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/X500Principal.java index ee199ee91b9..08ffae388f7 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/X500Principal.java +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/X500Principal.java @@ -50,7 +50,7 @@ /** * X500Principal */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:01.211238693+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:00.582408573+05:30[Asia/Kolkata]") public class X500Principal { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..9113eba4057 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,85 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ContractJSON.md +docs/DefaultApi.md +docs/DeployContractSolidityBytecodeJsonObjectV1Request.md +docs/DeployContractSolidityBytecodeV1Request.md +docs/DeployContractSolidityBytecodeV1Response.md +docs/EthContractInvocationType.md +docs/EthContractInvocationWeb3Method.md +docs/EthereumTransactionConfig.md +docs/EthereumTransactionConfigFrom.md +docs/EthereumTransactionConfigTo.md +docs/InvokeContractJsonObjectV1Request.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/InvokeRawWeb3EthContractV1Request.md +docs/InvokeRawWeb3EthContractV1Response.md +docs/InvokeRawWeb3EthMethodV1Request.md +docs/InvokeRawWeb3EthMethodV1Response.md +docs/RunTransactionRequest.md +docs/RunTransactionResponse.md +docs/SolidityContractJsonArtifact.md +docs/SolidityContractJsonArtifactCompiler.md +docs/SolidityContractJsonArtifactGasEstimates.md +docs/SolidityContractJsonArtifactGasEstimatesCreation.md +docs/WatchBlocksV1.md +docs/WatchBlocksV1BlockData.md +docs/WatchBlocksV1Options.md +docs/WatchBlocksV1Progress.md +docs/Web3BlockHeader.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialGethKeychainPassword.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3Transaction.md +docs/Web3TransactionReceipt.md +git_push.sh +go.mod +go.sum +model_contract_json.go +model_deploy_contract_solidity_bytecode_json_object_v1_request.go +model_deploy_contract_solidity_bytecode_v1_request.go +model_deploy_contract_solidity_bytecode_v1_response.go +model_eth_contract_invocation_type.go +model_eth_contract_invocation_web3_method.go +model_ethereum_transaction_config.go +model_ethereum_transaction_config_from.go +model_ethereum_transaction_config_to.go +model_invoke_contract_json_object_v1_request.go +model_invoke_contract_v1_request.go +model_invoke_contract_v1_response.go +model_invoke_raw_web3_eth_contract_v1_request.go +model_invoke_raw_web3_eth_contract_v1_response.go +model_invoke_raw_web3_eth_method_v1_request.go +model_invoke_raw_web3_eth_method_v1_response.go +model_run_transaction_request.go +model_run_transaction_response.go +model_solidity_contract_json_artifact.go +model_solidity_contract_json_artifact_compiler.go +model_solidity_contract_json_artifact_gas_estimates.go +model_solidity_contract_json_artifact_gas_estimates_creation.go +model_watch_blocks_v1.go +model_watch_blocks_v1_block_data.go +model_watch_blocks_v1_options.go +model_watch_blocks_v1_progress.go +model_web3_block_header.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_geth_keychain_password.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction.go +model_web3_transaction_receipt.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..e7e42a4b585 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.3.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..8e40b670a4c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,153 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-ethereum + +Can perform basic tasks on a Ethereum ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-ethereum "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ethereum.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ethereum.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ethereum.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ethereum.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeployContractSolBytecodeJsonObjectV1**](docs/DefaultApi.md#deploycontractsolbytecodejsonobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**DeployContractSolBytecodeV1**](docs/DefaultApi.md#deploycontractsolbytecodev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**InvokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract | Invokes a contract on a besu ledger +*DefaultApi* | [**InvokeContractV1NoKeychain**](docs/DefaultApi.md#invokecontractv1nokeychain) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract-json-object | Invokes a contract on a besu ledger +*DefaultApi* | [**InvokeRawWeb3EthContractV1**](docs/DefaultApi.md#invokerawweb3ethcontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-contract | Low-level endpoint to invoke a method on deployed contract. +*DefaultApi* | [**InvokeWeb3EthMethodV1**](docs/DefaultApi.md#invokeweb3ethmethodv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-method | Invoke any method from web3.eth (low-level) +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/run-transaction | Executes a transaction on a ethereum ledger + + +## Documentation For Models + + - [ContractJSON](docs/ContractJSON.md) + - [DeployContractSolidityBytecodeJsonObjectV1Request](docs/DeployContractSolidityBytecodeJsonObjectV1Request.md) + - [DeployContractSolidityBytecodeV1Request](docs/DeployContractSolidityBytecodeV1Request.md) + - [DeployContractSolidityBytecodeV1Response](docs/DeployContractSolidityBytecodeV1Response.md) + - [EthContractInvocationType](docs/EthContractInvocationType.md) + - [EthContractInvocationWeb3Method](docs/EthContractInvocationWeb3Method.md) + - [EthereumTransactionConfig](docs/EthereumTransactionConfig.md) + - [EthereumTransactionConfigFrom](docs/EthereumTransactionConfigFrom.md) + - [EthereumTransactionConfigTo](docs/EthereumTransactionConfigTo.md) + - [InvokeContractJsonObjectV1Request](docs/InvokeContractJsonObjectV1Request.md) + - [InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [InvokeRawWeb3EthContractV1Request](docs/InvokeRawWeb3EthContractV1Request.md) + - [InvokeRawWeb3EthContractV1Response](docs/InvokeRawWeb3EthContractV1Response.md) + - [InvokeRawWeb3EthMethodV1Request](docs/InvokeRawWeb3EthMethodV1Request.md) + - [InvokeRawWeb3EthMethodV1Response](docs/InvokeRawWeb3EthMethodV1Response.md) + - [RunTransactionRequest](docs/RunTransactionRequest.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [SolidityContractJsonArtifact](docs/SolidityContractJsonArtifact.md) + - [SolidityContractJsonArtifactCompiler](docs/SolidityContractJsonArtifactCompiler.md) + - [SolidityContractJsonArtifactGasEstimates](docs/SolidityContractJsonArtifactGasEstimates.md) + - [SolidityContractJsonArtifactGasEstimatesCreation](docs/SolidityContractJsonArtifactGasEstimatesCreation.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + - [WatchBlocksV1BlockData](docs/WatchBlocksV1BlockData.md) + - [WatchBlocksV1Options](docs/WatchBlocksV1Options.md) + - [WatchBlocksV1Progress](docs/WatchBlocksV1Progress.md) + - [Web3BlockHeader](docs/Web3BlockHeader.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialGethKeychainPassword](docs/Web3SigningCredentialGethKeychainPassword.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3Transaction](docs/Web3Transaction.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + + +## Documentation For Authorization + + Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..54c6f045548 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1213 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Ethereum ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Ethereum + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode: + post: + operationId: deployContractSolBytecodeV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode-json-object: + post: + operationId: deployContractSolBytecodeJsonObjectV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/run-transaction: + post: + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + summary: Executes a transaction on a ethereum ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract: + post: + operationId: invokeContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract-json-object: + post: + operationId: invokeContractV1NoKeychain + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/get-prometheus-exporter-metrics + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-method: + post: + operationId: invokeWeb3EthMethodV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthMethodV1Request' + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthMethodV1Response' + description: OK + summary: Invoke any method from web3.eth (low-level) + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-method + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-contract: + post: + operationId: invokeRawWeb3EthContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthContractV1Request' + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthContractV1Response' + description: OK + summary: Low-level endpoint to invoke a method on deployed contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-contract +components: + schemas: + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialGethKeychainPassword' + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialGethKeychainPassword: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + secret: + description: A geth keychain unlock password. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - type + type: object + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + EthContractInvocationType: + enum: + - SEND + - CALL + type: string + EthContractInvocationWeb3Method: + enum: + - send + - call + - encodeABI + - estimateGas + type: string + SolidityContractJsonArtifact: + properties: + contractName: + nullable: false + type: string + metadata: + nullable: false + type: string + bytecode: + nullable: false + type: string + deployedBytecode: + nullable: false + type: string + sourceMap: + nullable: false + type: string + deployedSourceMap: + nullable: false + type: string + sourcePath: + type: string + compiler: + $ref: '#/components/schemas/SolidityContractJsonArtifact_compiler' + functionHashes: + additionalProperties: true + type: object + gasEstimates: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates' + required: + - contractName + type: object + EthereumTransactionConfig: + additionalProperties: true + example: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + rawTransaction: + nullable: false + type: string + from: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + to: + $ref: '#/components/schemas/EthereumTransactionConfig_to' + value: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gas: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + nonce: + type: number + data: + $ref: '#/components/schemas/EthereumTransactionConfig_to' + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + logs: + default: [] + items: {} + nullable: false + type: array + logsBloom: + nullable: false + type: string + revertReason: + nullable: false + type: string + output: + nullable: false + type: string + commitmentHash: + nullable: false + type: string + cumulativeGasUSed: + nullable: false + type: number + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + ContractJSON: + additionalProperties: true + example: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + contractName: + nullable: false + type: string + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + abi: + description: "The application binary interface of the solidity contract,\ + \ optional parameter" + items: {} + nullable: false + type: array + metadata: + type: string + deployedBytecode: + type: string + sourceMap: + type: string + deployedSourceMap: + type: string + sourcePath: + type: string + compiler: + type: object + networks: + type: object + ast: + type: object + functionHashes: + type: object + gasEstimates: + type: object + required: + - bytecode + - contractName + type: object + RunTransactionRequest: + additionalProperties: false + example: + timeoutMs: 0.6027456183070403 + transactionConfig: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + web3SigningCredential: + type: null + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + transactionConfig: + $ref: '#/components/schemas/EthereumTransactionConfig' + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with thehash of the transaction(which indicates successful execution) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + required: + - transactionConfig + - web3SigningCredential + type: object + RunTransactionResponse: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractSolidityBytecodeV1Request: + additionalProperties: false + example: + bytecode: bytecode + keychainId: keychainId + timeoutMs: 0.5637376656633328 + constructorArgs: + - "" + - "" + contractAbi: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + contractName: contractName + nonce: 1.4658129805029452 + value: 5.962133916683182 + gasPrice: 6.027456183070403 + contractJSON: "{}" + properties: + contractName: + description: The contract name for retrieve the contracts json on the keychain. + maxLength: 100 + minLength: 1 + nullable: false + type: string + contractAbi: + description: The application binary interface of the solidity contract + items: {} + nullable: false + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + nullable: false + type: string + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: number + nonce: + nullable: false + type: number + value: + nullable: false + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + contractJSON: + description: "For use when not using keychain, pass the contract in as this\ + \ variable" + nullable: false + type: object + constructorArgs: + default: [] + description: The list of arguments to pass in to the constructor of the + contract being deployed. + items: {} + type: array + required: + - contractName + - keychainId + - web3SigningCredential + type: object + DeployContractSolidityBytecodeV1Response: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractSolidityBytecodeJsonObjectV1Request: + additionalProperties: false + example: + timeoutMs: 0.6027456183070403 + constructorArgs: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + gasPrice: gasPrice + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: string + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + constructorArgs: + default: [] + description: The list of arguments to pass in to the constructor of the + contract being deployed. + items: {} + type: array + required: + - contractJSON + - web3SigningCredential + type: object + InvokeContractV1Request: + additionalProperties: false + example: + invocationType: null + keychainId: keychainId + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractName: contractName + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + contractName: + description: The contract name to find it in the keychain plugin + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + value: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gas: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + type: string + required: + - contractName + - invocationType + - keychainId + - methodName + - params + - web3SigningCredential + type: object + InvokeContractJsonObjectV1Request: + additionalProperties: false + example: + invocationType: null + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractAddress: contractAddress + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + contractAddress: + description: Address of the solidity contract + nullable: false + type: string + value: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gas: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + required: + - contractAddress + - contractJSON + - invocationType + - methodName + - params + - web3SigningCredential + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + InvokeRawWeb3EthMethodV1Request: + additionalProperties: false + example: + methodName: methodName + params: + - "" + - "" + properties: + methodName: + description: The name of the web3.eth method to invoke + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass to web3.eth method specified + in methodName + items: {} + type: array + required: + - methodName + type: object + InvokeRawWeb3EthMethodV1Response: + additionalProperties: false + properties: + status: + description: Status code of the operation + nullable: false + type: number + data: + description: Output of requested web3.eth method + errorDetail: + description: Error details + nullable: false + type: string + required: + - status + type: object + InvokeRawWeb3EthContractV1Request: + additionalProperties: false + example: + invocationType: null + address: address + abi: + - "" + - "" + contractMethodArgs: + - "" + - "" + contractMethod: contractMethod + invocationParams: "{}" + properties: + abi: + description: The application binary interface of the solidity contract + items: {} + type: array + address: + description: Deployed solidity contract address + type: string + invocationType: + $ref: '#/components/schemas/EthContractInvocationWeb3Method' + invocationParams: + default: {} + description: "The list of arguments for contract invocation method (send,\ + \ call, etc...)" + type: object + contractMethod: + description: Method of deployed solidity contract to execute + type: string + contractMethodArgs: + default: [] + description: The list of arguments for deployed solidity contract method + items: {} + type: array + required: + - abi + - address + - contractMethod + - invocationType + type: object + InvokeRawWeb3EthContractV1Response: + additionalProperties: false + properties: + status: + description: Status code of the operation + type: number + data: + description: Output of contract invocation method + errorDetail: + description: Error details + type: string + required: + - status + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + WatchBlocksV1: + enum: + - org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + WatchBlocksV1Options: + properties: + getBlockData: + type: boolean + type: object + Web3BlockHeader: + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionsRoot: + type: string + stateRoot: + type: string + receiptsRoot: + type: string + difficulty: + type: string + mixHash: + type: string + miner: + type: string + extraData: + type: string + gasLimit: + type: integer + gasUsed: + type: integer + timestamp: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + required: + - extraData + - gasLimit + - gasUsed + - hash + - logsBloom + - miner + - nonce + - number + - parentHash + - receiptRoot + - sha3Uncles + - stateRoot + - timestamp + - transactionRoot + type: object + Web3Transaction: + properties: + hash: + type: string + nonce: + type: number + blockHash: + nullable: true + type: string + blockNumber: + nullable: true + type: number + transactionIndex: + nullable: true + type: number + from: + type: string + to: + nullable: true + type: string + value: + type: string + gasPrice: + type: string + gas: + type: number + input: + type: string + v: + type: string + r: + type: string + s: + type: string + required: + - blockHash + - blockNumber + - from + - gas + - gasPrice + - hash + - input + - nonce + - to + - transactionIndex + - value + type: object + WatchBlocksV1BlockData: + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionsRoot: + type: string + stateRoot: + type: string + receiptsRoot: + type: string + difficulty: + type: string + mixHash: + type: string + miner: + type: string + extraData: + type: string + gasLimit: + type: integer + gasUsed: + type: integer + timestamp: + $ref: '#/components/schemas/EthereumTransactionConfig_from' + size: + type: number + totalDifficulty: + type: string + uncles: + items: + type: string + type: array + transactions: + items: + $ref: '#/components/schemas/Web3Transaction' + type: array + required: + - extraData + - gasLimit + - gasUsed + - hash + - logsBloom + - miner + - nonce + - number + - parentHash + - receiptRoot + - sha3Uncles + - size + - stateRoot + - timestamp + - totalDifficulty + - transactionRoot + - transactions + - uncles + type: object + WatchBlocksV1Progress: + properties: + blockHeader: + $ref: '#/components/schemas/Web3BlockHeader' + blockData: + $ref: '#/components/schemas/WatchBlocksV1BlockData' + type: object + SolidityContractJsonArtifact_compiler: + additionalProperties: true + properties: + name: + type: string + version: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates_creation: + properties: + codeDepositCost: + type: string + executionCost: + type: string + totalCost: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates: + properties: + creation: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates_creation' + external: + additionalProperties: true + type: object + EthereumTransactionConfig_from: + oneOf: + - type: string + - type: number + EthereumTransactionConfig_to: + oneOf: + - type: string diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..073036043e9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,855 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeployContractSolBytecodeJsonObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractSolidityBytecodeJsonObjectV1Request *DeployContractSolidityBytecodeJsonObjectV1Request +} + +func (r ApiDeployContractSolBytecodeJsonObjectV1Request) DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request DeployContractSolidityBytecodeJsonObjectV1Request) ApiDeployContractSolBytecodeJsonObjectV1Request { + r.deployContractSolidityBytecodeJsonObjectV1Request = &deployContractSolidityBytecodeJsonObjectV1Request + return r +} + +func (r ApiDeployContractSolBytecodeJsonObjectV1Request) Execute() (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + return r.ApiService.DeployContractSolBytecodeJsonObjectV1Execute(r) +} + +/* +DeployContractSolBytecodeJsonObjectV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractSolBytecodeJsonObjectV1Request +*/ +func (a *DefaultApiService) DeployContractSolBytecodeJsonObjectV1(ctx context.Context) ApiDeployContractSolBytecodeJsonObjectV1Request { + return ApiDeployContractSolBytecodeJsonObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractSolidityBytecodeV1Response +func (a *DefaultApiService) DeployContractSolBytecodeJsonObjectV1Execute(r ApiDeployContractSolBytecodeJsonObjectV1Request) (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractSolidityBytecodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractSolBytecodeJsonObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractSolidityBytecodeJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeployContractSolBytecodeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractSolidityBytecodeV1Request *DeployContractSolidityBytecodeV1Request +} + +func (r ApiDeployContractSolBytecodeV1Request) DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request DeployContractSolidityBytecodeV1Request) ApiDeployContractSolBytecodeV1Request { + r.deployContractSolidityBytecodeV1Request = &deployContractSolidityBytecodeV1Request + return r +} + +func (r ApiDeployContractSolBytecodeV1Request) Execute() (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + return r.ApiService.DeployContractSolBytecodeV1Execute(r) +} + +/* +DeployContractSolBytecodeV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractSolBytecodeV1Request +*/ +func (a *DefaultApiService) DeployContractSolBytecodeV1(ctx context.Context) ApiDeployContractSolBytecodeV1Request { + return ApiDeployContractSolBytecodeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractSolidityBytecodeV1Response +func (a *DefaultApiService) DeployContractSolBytecodeV1Execute(r ApiDeployContractSolBytecodeV1Request) (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractSolidityBytecodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractSolBytecodeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractSolidityBytecodeV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractV1Request *InvokeContractV1Request +} + +func (r ApiInvokeContractV1Request) InvokeContractV1Request(invokeContractV1Request InvokeContractV1Request) ApiInvokeContractV1Request { + r.invokeContractV1Request = &invokeContractV1Request + return r +} + +func (r ApiInvokeContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1Execute(r) +} + +/* +InvokeContractV1 Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1Request +*/ +func (a *DefaultApiService) InvokeContractV1(ctx context.Context) ApiInvokeContractV1Request { + return ApiInvokeContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1Execute(r ApiInvokeContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1NoKeychainRequest struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractJsonObjectV1Request *InvokeContractJsonObjectV1Request +} + +func (r ApiInvokeContractV1NoKeychainRequest) InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request InvokeContractJsonObjectV1Request) ApiInvokeContractV1NoKeychainRequest { + r.invokeContractJsonObjectV1Request = &invokeContractJsonObjectV1Request + return r +} + +func (r ApiInvokeContractV1NoKeychainRequest) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1NoKeychainExecute(r) +} + +/* +InvokeContractV1NoKeychain Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1NoKeychainRequest +*/ +func (a *DefaultApiService) InvokeContractV1NoKeychain(ctx context.Context) ApiInvokeContractV1NoKeychainRequest { + return ApiInvokeContractV1NoKeychainRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1NoKeychainExecute(r ApiInvokeContractV1NoKeychainRequest) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1NoKeychain") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeRawWeb3EthContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeRawWeb3EthContractV1Request *InvokeRawWeb3EthContractV1Request +} + +func (r ApiInvokeRawWeb3EthContractV1Request) InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request InvokeRawWeb3EthContractV1Request) ApiInvokeRawWeb3EthContractV1Request { + r.invokeRawWeb3EthContractV1Request = &invokeRawWeb3EthContractV1Request + return r +} + +func (r ApiInvokeRawWeb3EthContractV1Request) Execute() (*InvokeRawWeb3EthContractV1Response, *http.Response, error) { + return r.ApiService.InvokeRawWeb3EthContractV1Execute(r) +} + +/* +InvokeRawWeb3EthContractV1 Low-level endpoint to invoke a method on deployed contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeRawWeb3EthContractV1Request +*/ +func (a *DefaultApiService) InvokeRawWeb3EthContractV1(ctx context.Context) ApiInvokeRawWeb3EthContractV1Request { + return ApiInvokeRawWeb3EthContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeRawWeb3EthContractV1Response +func (a *DefaultApiService) InvokeRawWeb3EthContractV1Execute(r ApiInvokeRawWeb3EthContractV1Request) (*InvokeRawWeb3EthContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeRawWeb3EthContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeRawWeb3EthContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeRawWeb3EthContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeWeb3EthMethodV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeRawWeb3EthMethodV1Request *InvokeRawWeb3EthMethodV1Request +} + +func (r ApiInvokeWeb3EthMethodV1Request) InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request InvokeRawWeb3EthMethodV1Request) ApiInvokeWeb3EthMethodV1Request { + r.invokeRawWeb3EthMethodV1Request = &invokeRawWeb3EthMethodV1Request + return r +} + +func (r ApiInvokeWeb3EthMethodV1Request) Execute() (*InvokeRawWeb3EthMethodV1Response, *http.Response, error) { + return r.ApiService.InvokeWeb3EthMethodV1Execute(r) +} + +/* +InvokeWeb3EthMethodV1 Invoke any method from web3.eth (low-level) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeWeb3EthMethodV1Request +*/ +func (a *DefaultApiService) InvokeWeb3EthMethodV1(ctx context.Context) ApiInvokeWeb3EthMethodV1Request { + return ApiInvokeWeb3EthMethodV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeRawWeb3EthMethodV1Response +func (a *DefaultApiService) InvokeWeb3EthMethodV1Execute(r ApiInvokeWeb3EthMethodV1Request) (*InvokeRawWeb3EthMethodV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeRawWeb3EthMethodV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeWeb3EthMethodV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-method" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeRawWeb3EthMethodV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequest *RunTransactionRequest +} + +func (r ApiRunTransactionV1Request) RunTransactionRequest(runTransactionRequest RunTransactionRequest) ApiRunTransactionV1Request { + r.runTransactionRequest = &runTransactionRequest + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Executes a transaction on a ethereum ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..65ca4215723 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,655 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Ethereum API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToQuery adds the provided object to the url query supporting deep object syntax +func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + + // status title (detail) + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..a32b5d95272 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md new file mode 100644 index 00000000000..8a8c8542aac --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md @@ -0,0 +1,358 @@ +# ContractJSON + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Bytecode** | **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | +**Abi** | Pointer to **[]interface{}** | The application binary interface of the solidity contract, optional parameter | [optional] +**Metadata** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to **map[string]interface{}** | | [optional] +**Networks** | Pointer to **map[string]interface{}** | | [optional] +**Ast** | Pointer to **map[string]interface{}** | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewContractJSON + +`func NewContractJSON(contractName string, bytecode string, ) *ContractJSON` + +NewContractJSON instantiates a new ContractJSON object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewContractJSONWithDefaults + +`func NewContractJSONWithDefaults() *ContractJSON` + +NewContractJSONWithDefaults instantiates a new ContractJSON object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *ContractJSON) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *ContractJSON) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *ContractJSON) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetBytecode + +`func (o *ContractJSON) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *ContractJSON) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *ContractJSON) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + + +### GetAbi + +`func (o *ContractJSON) GetAbi() []interface{}` + +GetAbi returns the Abi field if non-nil, zero value otherwise. + +### GetAbiOk + +`func (o *ContractJSON) GetAbiOk() (*[]interface{}, bool)` + +GetAbiOk returns a tuple with the Abi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbi + +`func (o *ContractJSON) SetAbi(v []interface{})` + +SetAbi sets Abi field to given value. + +### HasAbi + +`func (o *ContractJSON) HasAbi() bool` + +HasAbi returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ContractJSON) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ContractJSON) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ContractJSON) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ContractJSON) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *ContractJSON) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *ContractJSON) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *ContractJSON) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *ContractJSON) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *ContractJSON) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *ContractJSON) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *ContractJSON) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *ContractJSON) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *ContractJSON) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *ContractJSON) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *ContractJSON) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *ContractJSON) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *ContractJSON) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *ContractJSON) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *ContractJSON) GetCompiler() map[string]interface{}` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *ContractJSON) GetCompilerOk() (*map[string]interface{}, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *ContractJSON) SetCompiler(v map[string]interface{})` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *ContractJSON) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetNetworks + +`func (o *ContractJSON) GetNetworks() map[string]interface{}` + +GetNetworks returns the Networks field if non-nil, zero value otherwise. + +### GetNetworksOk + +`func (o *ContractJSON) GetNetworksOk() (*map[string]interface{}, bool)` + +GetNetworksOk returns a tuple with the Networks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworks + +`func (o *ContractJSON) SetNetworks(v map[string]interface{})` + +SetNetworks sets Networks field to given value. + +### HasNetworks + +`func (o *ContractJSON) HasNetworks() bool` + +HasNetworks returns a boolean if a field has been set. + +### GetAst + +`func (o *ContractJSON) GetAst() map[string]interface{}` + +GetAst returns the Ast field if non-nil, zero value otherwise. + +### GetAstOk + +`func (o *ContractJSON) GetAstOk() (*map[string]interface{}, bool)` + +GetAstOk returns a tuple with the Ast field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAst + +`func (o *ContractJSON) SetAst(v map[string]interface{})` + +SetAst sets Ast field to given value. + +### HasAst + +`func (o *ContractJSON) HasAst() bool` + +HasAst returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *ContractJSON) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *ContractJSON) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *ContractJSON) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *ContractJSON) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *ContractJSON) GetGasEstimates() map[string]interface{}` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *ContractJSON) GetGasEstimatesOk() (*map[string]interface{}, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *ContractJSON) SetGasEstimates(v map[string]interface{})` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *ContractJSON) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..c4668502723 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,523 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeployContractSolBytecodeJsonObjectV1**](DefaultApi.md#DeployContractSolBytecodeJsonObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +[**DeployContractSolBytecodeV1**](DefaultApi.md#DeployContractSolBytecodeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**InvokeContractV1**](DefaultApi.md#InvokeContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract | Invokes a contract on a besu ledger +[**InvokeContractV1NoKeychain**](DefaultApi.md#InvokeContractV1NoKeychain) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-contract-json-object | Invokes a contract on a besu ledger +[**InvokeRawWeb3EthContractV1**](DefaultApi.md#InvokeRawWeb3EthContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-contract | Low-level endpoint to invoke a method on deployed contract. +[**InvokeWeb3EthMethodV1**](DefaultApi.md#InvokeWeb3EthMethodV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/invoke-raw-web3eth-method | Invoke any method from web3.eth (low-level) +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-ethereum/run-transaction | Executes a transaction on a ethereum ledger + + + +## DeployContractSolBytecodeJsonObjectV1 + +> DeployContractSolidityBytecodeV1Response DeployContractSolBytecodeJsonObjectV1(ctx).DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + deployContractSolidityBytecodeJsonObjectV1Request := *openapiclient.NewDeployContractSolidityBytecodeJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example")) // DeployContractSolidityBytecodeJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractSolBytecodeJsonObjectV1(context.Background()).DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractSolBytecodeJsonObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractSolBytecodeJsonObjectV1`: DeployContractSolidityBytecodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractSolBytecodeJsonObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractSolBytecodeJsonObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractSolidityBytecodeJsonObjectV1Request** | [**DeployContractSolidityBytecodeJsonObjectV1Request**](DeployContractSolidityBytecodeJsonObjectV1Request.md) | | + +### Return type + +[**DeployContractSolidityBytecodeV1Response**](DeployContractSolidityBytecodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeployContractSolBytecodeV1 + +> DeployContractSolidityBytecodeV1Response DeployContractSolBytecodeV1(ctx).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + deployContractSolidityBytecodeV1Request := *openapiclient.NewDeployContractSolidityBytecodeV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, "KeychainId_example") // DeployContractSolidityBytecodeV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractSolBytecodeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractSolBytecodeV1`: DeployContractSolidityBytecodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractSolBytecodeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractSolBytecodeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractSolidityBytecodeV1Request** | [**DeployContractSolidityBytecodeV1Request**](DeployContractSolidityBytecodeV1Request.md) | | + +### Return type + +[**DeployContractSolidityBytecodeV1Response**](DeployContractSolidityBytecodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1 + +> InvokeContractV1Response InvokeContractV1(ctx).InvokeContractV1Request(invokeContractV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + invokeContractV1Request := *openapiclient.NewInvokeContractV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "KeychainId_example") // InvokeContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).InvokeContractV1Request(invokeContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1NoKeychain + +> InvokeContractV1Response InvokeContractV1NoKeychain(ctx).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + invokeContractJsonObjectV1Request := *openapiclient.NewInvokeContractJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "ContractAddress_example", *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example")) // InvokeContractJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1NoKeychain(context.Background()).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1NoKeychain``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1NoKeychain`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1NoKeychain`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1NoKeychainRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractJsonObjectV1Request** | [**InvokeContractJsonObjectV1Request**](InvokeContractJsonObjectV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeRawWeb3EthContractV1 + +> InvokeRawWeb3EthContractV1Response InvokeRawWeb3EthContractV1(ctx).InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request).Execute() + +Low-level endpoint to invoke a method on deployed contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + invokeRawWeb3EthContractV1Request := *openapiclient.NewInvokeRawWeb3EthContractV1Request([]interface{}{nil}, "Address_example", openapiclient.EthContractInvocationWeb3Method("send"), "ContractMethod_example") // InvokeRawWeb3EthContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeRawWeb3EthContractV1(context.Background()).InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeRawWeb3EthContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeRawWeb3EthContractV1`: InvokeRawWeb3EthContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeRawWeb3EthContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeRawWeb3EthContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeRawWeb3EthContractV1Request** | [**InvokeRawWeb3EthContractV1Request**](InvokeRawWeb3EthContractV1Request.md) | | + +### Return type + +[**InvokeRawWeb3EthContractV1Response**](InvokeRawWeb3EthContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeWeb3EthMethodV1 + +> InvokeRawWeb3EthMethodV1Response InvokeWeb3EthMethodV1(ctx).InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request).Execute() + +Invoke any method from web3.eth (low-level) + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + invokeRawWeb3EthMethodV1Request := *openapiclient.NewInvokeRawWeb3EthMethodV1Request("MethodName_example") // InvokeRawWeb3EthMethodV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeWeb3EthMethodV1(context.Background()).InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeWeb3EthMethodV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeWeb3EthMethodV1`: InvokeRawWeb3EthMethodV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeWeb3EthMethodV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeWeb3EthMethodV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeRawWeb3EthMethodV1Request** | [**InvokeRawWeb3EthMethodV1Request**](InvokeRawWeb3EthMethodV1Request.md) | | + +### Return type + +[**InvokeRawWeb3EthMethodV1Response**](InvokeRawWeb3EthMethodV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionResponse RunTransactionV1(ctx).RunTransactionRequest(runTransactionRequest).Execute() + +Executes a transaction on a ethereum ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + runTransactionRequest := *openapiclient.NewRunTransactionRequest(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, *openapiclient.NewEthereumTransactionConfig()) // RunTransactionRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionRequest(runTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequest** | [**RunTransactionRequest**](RunTransactionRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md new file mode 100644 index 00000000000..030bfd0756d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md @@ -0,0 +1,176 @@ +# DeployContractSolidityBytecodeJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | +**ConstructorArgs** | Pointer to **[]interface{}** | The list of arguments to pass in to the constructor of the contract being deployed. | [optional] [default to []] + +## Methods + +### NewDeployContractSolidityBytecodeJsonObjectV1Request + +`func NewDeployContractSolidityBytecodeJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON, ) *DeployContractSolidityBytecodeJsonObjectV1Request` + +NewDeployContractSolidityBytecodeJsonObjectV1Request instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults + +`func NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults() *DeployContractSolidityBytecodeJsonObjectV1Request` + +NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md new file mode 100644 index 00000000000..42bea9128d9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md @@ -0,0 +1,327 @@ +# DeployContractSolidityBytecodeV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name for retrieve the contracts json on the keychain. | +**ContractAbi** | Pointer to **[]interface{}** | The application binary interface of the solidity contract | [optional] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Bytecode** | Pointer to **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | [optional] +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **float32** | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Value** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**ContractJSON** | Pointer to **map[string]interface{}** | For use when not using keychain, pass the contract in as this variable | [optional] +**ConstructorArgs** | Pointer to **[]interface{}** | The list of arguments to pass in to the constructor of the contract being deployed. | [optional] [default to []] + +## Methods + +### NewDeployContractSolidityBytecodeV1Request + +`func NewDeployContractSolidityBytecodeV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string, ) *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1RequestWithDefaults + +`func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{}` + +GetContractAbi returns the ContractAbi field if non-nil, zero value otherwise. + +### GetContractAbiOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() (*[]interface{}, bool)` + +GetContractAbiOk returns a tuple with the ContractAbi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{})` + +SetContractAbi sets ContractAbi field to given value. + +### HasContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) HasContractAbi() bool` + +HasContractAbi returns a boolean if a field has been set. + +### GetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() float32` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*float32, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v float32)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *DeployContractSolidityBytecodeV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *DeployContractSolidityBytecodeV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *DeployContractSolidityBytecodeV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetValue + +`func (o *DeployContractSolidityBytecodeV1Request) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeployContractSolidityBytecodeV1Request) SetValue(v float32)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeployContractSolidityBytecodeV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractJSON() map[string]interface{}` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractJSONOk() (*map[string]interface{}, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractJSON(v map[string]interface{})` + +SetContractJSON sets ContractJSON field to given value. + +### HasContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) HasContractJSON() bool` + +HasContractJSON returns a boolean if a field has been set. + +### GetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md new file mode 100644 index 00000000000..6bbfeb00528 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md @@ -0,0 +1,51 @@ +# DeployContractSolidityBytecodeV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewDeployContractSolidityBytecodeV1Response + +`func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt, ) *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1ResponseWithDefaults + +`func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md new file mode 100644 index 00000000000..6345c6e4cb7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md @@ -0,0 +1,13 @@ +# EthContractInvocationType + +## Enum + + +* `SEND` (value: `"SEND"`) + +* `CALL` (value: `"CALL"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md new file mode 100644 index 00000000000..cec3e3ea19c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md @@ -0,0 +1,17 @@ +# EthContractInvocationWeb3Method + +## Enum + + +* `SEND` (value: `"send"`) + +* `CALL` (value: `"call"`) + +* `ENCODE_ABI` (value: `"encodeABI"`) + +* `ESTIMATE_GAS` (value: `"estimateGas"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfig.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfig.md new file mode 100644 index 00000000000..f8a864a2068 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfig.md @@ -0,0 +1,238 @@ +# EthereumTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawTransaction** | Pointer to **string** | | [optional] +**From** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**To** | Pointer to [**EthereumTransactionConfigTo**](EthereumTransactionConfigTo.md) | | [optional] +**Value** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Data** | Pointer to [**EthereumTransactionConfigTo**](EthereumTransactionConfigTo.md) | | [optional] + +## Methods + +### NewEthereumTransactionConfig + +`func NewEthereumTransactionConfig() *EthereumTransactionConfig` + +NewEthereumTransactionConfig instantiates a new EthereumTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEthereumTransactionConfigWithDefaults + +`func NewEthereumTransactionConfigWithDefaults() *EthereumTransactionConfig` + +NewEthereumTransactionConfigWithDefaults instantiates a new EthereumTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRawTransaction + +`func (o *EthereumTransactionConfig) GetRawTransaction() string` + +GetRawTransaction returns the RawTransaction field if non-nil, zero value otherwise. + +### GetRawTransactionOk + +`func (o *EthereumTransactionConfig) GetRawTransactionOk() (*string, bool)` + +GetRawTransactionOk returns a tuple with the RawTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawTransaction + +`func (o *EthereumTransactionConfig) SetRawTransaction(v string)` + +SetRawTransaction sets RawTransaction field to given value. + +### HasRawTransaction + +`func (o *EthereumTransactionConfig) HasRawTransaction() bool` + +HasRawTransaction returns a boolean if a field has been set. + +### GetFrom + +`func (o *EthereumTransactionConfig) GetFrom() EthereumTransactionConfigFrom` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *EthereumTransactionConfig) GetFromOk() (*EthereumTransactionConfigFrom, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *EthereumTransactionConfig) SetFrom(v EthereumTransactionConfigFrom)` + +SetFrom sets From field to given value. + +### HasFrom + +`func (o *EthereumTransactionConfig) HasFrom() bool` + +HasFrom returns a boolean if a field has been set. + +### GetTo + +`func (o *EthereumTransactionConfig) GetTo() EthereumTransactionConfigTo` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *EthereumTransactionConfig) GetToOk() (*EthereumTransactionConfigTo, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *EthereumTransactionConfig) SetTo(v EthereumTransactionConfigTo)` + +SetTo sets To field to given value. + +### HasTo + +`func (o *EthereumTransactionConfig) HasTo() bool` + +HasTo returns a boolean if a field has been set. + +### GetValue + +`func (o *EthereumTransactionConfig) GetValue() EthereumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *EthereumTransactionConfig) GetValueOk() (*EthereumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *EthereumTransactionConfig) SetValue(v EthereumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *EthereumTransactionConfig) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *EthereumTransactionConfig) GetGas() EthereumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *EthereumTransactionConfig) GetGasOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *EthereumTransactionConfig) SetGas(v EthereumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *EthereumTransactionConfig) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *EthereumTransactionConfig) GetGasPrice() EthereumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *EthereumTransactionConfig) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *EthereumTransactionConfig) SetGasPrice(v EthereumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *EthereumTransactionConfig) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *EthereumTransactionConfig) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *EthereumTransactionConfig) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *EthereumTransactionConfig) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *EthereumTransactionConfig) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetData + +`func (o *EthereumTransactionConfig) GetData() EthereumTransactionConfigTo` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EthereumTransactionConfig) GetDataOk() (*EthereumTransactionConfigTo, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *EthereumTransactionConfig) SetData(v EthereumTransactionConfigTo)` + +SetData sets Data field to given value. + +### HasData + +`func (o *EthereumTransactionConfig) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigFrom.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigFrom.md new file mode 100644 index 00000000000..1f453b6b97c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigFrom.md @@ -0,0 +1,30 @@ +# EthereumTransactionConfigFrom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewEthereumTransactionConfigFrom + +`func NewEthereumTransactionConfigFrom() *EthereumTransactionConfigFrom` + +NewEthereumTransactionConfigFrom instantiates a new EthereumTransactionConfigFrom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEthereumTransactionConfigFromWithDefaults + +`func NewEthereumTransactionConfigFromWithDefaults() *EthereumTransactionConfigFrom` + +NewEthereumTransactionConfigFromWithDefaults instantiates a new EthereumTransactionConfigFrom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigTo.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigTo.md new file mode 100644 index 00000000000..a95eb9b9ff3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/EthereumTransactionConfigTo.md @@ -0,0 +1,30 @@ +# EthereumTransactionConfigTo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewEthereumTransactionConfigTo + +`func NewEthereumTransactionConfigTo() *EthereumTransactionConfigTo` + +NewEthereumTransactionConfigTo instantiates a new EthereumTransactionConfigTo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEthereumTransactionConfigToWithDefaults + +`func NewEthereumTransactionConfigToWithDefaults() *EthereumTransactionConfigTo` + +NewEthereumTransactionConfigToWithDefaults instantiates a new EthereumTransactionConfigTo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md new file mode 100644 index 00000000000..c128bfbb62a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md @@ -0,0 +1,286 @@ +# InvokeContractJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**ContractAddress** | **string** | Address of the solidity contract | +**Value** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | + +## Methods + +### NewInvokeContractJsonObjectV1Request + +`func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON, ) *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractJsonObjectV1RequestWithDefaults + +`func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractJsonObjectV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractJsonObjectV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetValue + +`func (o *InvokeContractJsonObjectV1Request) GetValue() EthereumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*EthereumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractJsonObjectV1Request) SetValue(v EthereumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractJsonObjectV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractJsonObjectV1Request) GetGas() EthereumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractJsonObjectV1Request) SetGas(v EthereumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) GetGasPrice() EthereumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v EthereumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractJsonObjectV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractJsonObjectV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md new file mode 100644 index 00000000000..90d19c13bc9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md @@ -0,0 +1,286 @@ +# InvokeContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name to find it in the keychain plugin | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**Value** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | + +## Methods + +### NewInvokeContractV1Request + +`func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string, ) *InvokeContractV1Request` + +NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1RequestWithDefaults + +`func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request` + +NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *InvokeContractV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *InvokeContractV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetWeb3SigningCredential + +`func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetValue + +`func (o *InvokeContractV1Request) GetValue() EthereumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractV1Request) GetValueOk() (*EthereumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractV1Request) SetValue(v EthereumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractV1Request) GetGas() EthereumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractV1Request) GetGasOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractV1Request) SetGas(v EthereumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractV1Request) GetGasPrice() EthereumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractV1Request) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractV1Request) SetGasPrice(v EthereumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *InvokeContractV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InvokeContractV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md new file mode 100644 index 00000000000..4e5a1e6ab2c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md @@ -0,0 +1,166 @@ +# InvokeRawWeb3EthContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Abi** | **[]interface{}** | The application binary interface of the solidity contract | +**Address** | **string** | Deployed solidity contract address | +**InvocationType** | [**EthContractInvocationWeb3Method**](EthContractInvocationWeb3Method.md) | | +**InvocationParams** | Pointer to **map[string]interface{}** | The list of arguments for contract invocation method (send, call, etc...) | [optional] [default to {}] +**ContractMethod** | **string** | Method of deployed solidity contract to execute | +**ContractMethodArgs** | Pointer to **[]interface{}** | The list of arguments for deployed solidity contract method | [optional] [default to []] + +## Methods + +### NewInvokeRawWeb3EthContractV1Request + +`func NewInvokeRawWeb3EthContractV1Request(abi []interface{}, address string, invocationType EthContractInvocationWeb3Method, contractMethod string, ) *InvokeRawWeb3EthContractV1Request` + +NewInvokeRawWeb3EthContractV1Request instantiates a new InvokeRawWeb3EthContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthContractV1RequestWithDefaults + +`func NewInvokeRawWeb3EthContractV1RequestWithDefaults() *InvokeRawWeb3EthContractV1Request` + +NewInvokeRawWeb3EthContractV1RequestWithDefaults instantiates a new InvokeRawWeb3EthContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbi + +`func (o *InvokeRawWeb3EthContractV1Request) GetAbi() []interface{}` + +GetAbi returns the Abi field if non-nil, zero value otherwise. + +### GetAbiOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetAbiOk() (*[]interface{}, bool)` + +GetAbiOk returns a tuple with the Abi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbi + +`func (o *InvokeRawWeb3EthContractV1Request) SetAbi(v []interface{})` + +SetAbi sets Abi field to given value. + + +### GetAddress + +`func (o *InvokeRawWeb3EthContractV1Request) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *InvokeRawWeb3EthContractV1Request) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetInvocationType + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationType() EthContractInvocationWeb3Method` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationTypeOk() (*EthContractInvocationWeb3Method, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeRawWeb3EthContractV1Request) SetInvocationType(v EthContractInvocationWeb3Method)` + +SetInvocationType sets InvocationType field to given value. + + +### GetInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParams() map[string]interface{}` + +GetInvocationParams returns the InvocationParams field if non-nil, zero value otherwise. + +### GetInvocationParamsOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParamsOk() (*map[string]interface{}, bool)` + +GetInvocationParamsOk returns a tuple with the InvocationParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) SetInvocationParams(v map[string]interface{})` + +SetInvocationParams sets InvocationParams field to given value. + +### HasInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) HasInvocationParams() bool` + +HasInvocationParams returns a boolean if a field has been set. + +### GetContractMethod + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethod() string` + +GetContractMethod returns the ContractMethod field if non-nil, zero value otherwise. + +### GetContractMethodOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodOk() (*string, bool)` + +GetContractMethodOk returns a tuple with the ContractMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractMethod + +`func (o *InvokeRawWeb3EthContractV1Request) SetContractMethod(v string)` + +SetContractMethod sets ContractMethod field to given value. + + +### GetContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgs() []interface{}` + +GetContractMethodArgs returns the ContractMethodArgs field if non-nil, zero value otherwise. + +### GetContractMethodArgsOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgsOk() (*[]interface{}, bool)` + +GetContractMethodArgsOk returns a tuple with the ContractMethodArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) SetContractMethodArgs(v []interface{})` + +SetContractMethodArgs sets ContractMethodArgs field to given value. + +### HasContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) HasContractMethodArgs() bool` + +HasContractMethodArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md new file mode 100644 index 00000000000..1cbd8a66d71 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeRawWeb3EthContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **float32** | Status code of the operation | +**Data** | Pointer to **interface{}** | Output of contract invocation method | [optional] +**ErrorDetail** | Pointer to **string** | Error details | [optional] + +## Methods + +### NewInvokeRawWeb3EthContractV1Response + +`func NewInvokeRawWeb3EthContractV1Response(status float32, ) *InvokeRawWeb3EthContractV1Response` + +NewInvokeRawWeb3EthContractV1Response instantiates a new InvokeRawWeb3EthContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthContractV1ResponseWithDefaults + +`func NewInvokeRawWeb3EthContractV1ResponseWithDefaults() *InvokeRawWeb3EthContractV1Response` + +NewInvokeRawWeb3EthContractV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *InvokeRawWeb3EthContractV1Response) GetStatus() float32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetStatusOk() (*float32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InvokeRawWeb3EthContractV1Response) SetStatus(v float32)` + +SetStatus sets Status field to given value. + + +### GetData + +`func (o *InvokeRawWeb3EthContractV1Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InvokeRawWeb3EthContractV1Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *InvokeRawWeb3EthContractV1Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *InvokeRawWeb3EthContractV1Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *InvokeRawWeb3EthContractV1Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetail() string` + +GetErrorDetail returns the ErrorDetail field if non-nil, zero value otherwise. + +### GetErrorDetailOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetailOk() (*string, bool)` + +GetErrorDetailOk returns a tuple with the ErrorDetail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) SetErrorDetail(v string)` + +SetErrorDetail sets ErrorDetail field to given value. + +### HasErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) HasErrorDetail() bool` + +HasErrorDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md new file mode 100644 index 00000000000..7c704a4b479 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md @@ -0,0 +1,77 @@ +# InvokeRawWeb3EthMethodV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MethodName** | **string** | The name of the web3.eth method to invoke | +**Params** | Pointer to **[]interface{}** | The list of arguments to pass to web3.eth method specified in methodName | [optional] [default to []] + +## Methods + +### NewInvokeRawWeb3EthMethodV1Request + +`func NewInvokeRawWeb3EthMethodV1Request(methodName string, ) *InvokeRawWeb3EthMethodV1Request` + +NewInvokeRawWeb3EthMethodV1Request instantiates a new InvokeRawWeb3EthMethodV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthMethodV1RequestWithDefaults + +`func NewInvokeRawWeb3EthMethodV1RequestWithDefaults() *InvokeRawWeb3EthMethodV1Request` + +NewInvokeRawWeb3EthMethodV1RequestWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMethodName + +`func (o *InvokeRawWeb3EthMethodV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeRawWeb3EthMethodV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeRawWeb3EthMethodV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeRawWeb3EthMethodV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeRawWeb3EthMethodV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeRawWeb3EthMethodV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *InvokeRawWeb3EthMethodV1Request) HasParams() bool` + +HasParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md new file mode 100644 index 00000000000..65d229cdea7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md @@ -0,0 +1,113 @@ +# InvokeRawWeb3EthMethodV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **float32** | Status code of the operation | +**Data** | Pointer to **interface{}** | Output of requested web3.eth method | [optional] +**ErrorDetail** | Pointer to **string** | Error details | [optional] + +## Methods + +### NewInvokeRawWeb3EthMethodV1Response + +`func NewInvokeRawWeb3EthMethodV1Response(status float32, ) *InvokeRawWeb3EthMethodV1Response` + +NewInvokeRawWeb3EthMethodV1Response instantiates a new InvokeRawWeb3EthMethodV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthMethodV1ResponseWithDefaults + +`func NewInvokeRawWeb3EthMethodV1ResponseWithDefaults() *InvokeRawWeb3EthMethodV1Response` + +NewInvokeRawWeb3EthMethodV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *InvokeRawWeb3EthMethodV1Response) GetStatus() float32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetStatusOk() (*float32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InvokeRawWeb3EthMethodV1Response) SetStatus(v float32)` + +SetStatus sets Status field to given value. + + +### GetData + +`func (o *InvokeRawWeb3EthMethodV1Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InvokeRawWeb3EthMethodV1Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *InvokeRawWeb3EthMethodV1Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *InvokeRawWeb3EthMethodV1Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *InvokeRawWeb3EthMethodV1Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetail() string` + +GetErrorDetail returns the ErrorDetail field if non-nil, zero value otherwise. + +### GetErrorDetailOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetailOk() (*string, bool)` + +GetErrorDetailOk returns a tuple with the ErrorDetail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) SetErrorDetail(v string)` + +SetErrorDetail sets ErrorDetail field to given value. + +### HasErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) HasErrorDetail() bool` + +HasErrorDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md new file mode 100644 index 00000000000..d4bb459d479 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md @@ -0,0 +1,98 @@ +# RunTransactionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**TransactionConfig** | [**EthereumTransactionConfig**](EthereumTransactionConfig.md) | | +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with thehash of the transaction(which indicates successful execution) beforegiving up and crashing. | [optional] [default to 60000] + +## Methods + +### NewRunTransactionRequest + +`func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig EthereumTransactionConfig, ) *RunTransactionRequest` + +NewRunTransactionRequest instantiates a new RunTransactionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestWithDefaults + +`func NewRunTransactionRequestWithDefaults() *RunTransactionRequest` + +NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetTransactionConfig + +`func (o *RunTransactionRequest) GetTransactionConfig() EthereumTransactionConfig` + +GetTransactionConfig returns the TransactionConfig field if non-nil, zero value otherwise. + +### GetTransactionConfigOk + +`func (o *RunTransactionRequest) GetTransactionConfigOk() (*EthereumTransactionConfig, bool)` + +GetTransactionConfigOk returns a tuple with the TransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionConfig + +`func (o *RunTransactionRequest) SetTransactionConfig(v EthereumTransactionConfig)` + +SetTransactionConfig sets TransactionConfig field to given value. + + +### GetTimeoutMs + +`func (o *RunTransactionRequest) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *RunTransactionRequest) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *RunTransactionRequest) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *RunTransactionRequest) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..3d96e8d596a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,51 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md new file mode 100644 index 00000000000..602f52bdc3e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md @@ -0,0 +1,285 @@ +# SolidityContractJsonArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Metadata** | Pointer to **string** | | [optional] +**Bytecode** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to [**SolidityContractJsonArtifactCompiler**](SolidityContractJsonArtifactCompiler.md) | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to [**SolidityContractJsonArtifactGasEstimates**](SolidityContractJsonArtifactGasEstimates.md) | | [optional] + +## Methods + +### NewSolidityContractJsonArtifact + +`func NewSolidityContractJsonArtifact(contractName string, ) *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactWithDefaults + +`func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *SolidityContractJsonArtifact) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *SolidityContractJsonArtifact) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetMetadata + +`func (o *SolidityContractJsonArtifact) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *SolidityContractJsonArtifact) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *SolidityContractJsonArtifact) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetBytecode + +`func (o *SolidityContractJsonArtifact) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *SolidityContractJsonArtifact) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *SolidityContractJsonArtifact) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *SolidityContractJsonArtifact) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *SolidityContractJsonArtifact) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *SolidityContractJsonArtifact) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *SolidityContractJsonArtifact) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *SolidityContractJsonArtifact) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *SolidityContractJsonArtifact) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler)` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *SolidityContractJsonArtifact) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates)` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *SolidityContractJsonArtifact) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md new file mode 100644 index 00000000000..28cebed22e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactCompiler + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactCompiler + +`func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactCompilerWithDefaults + +`func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SolidityContractJsonArtifactCompiler) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SolidityContractJsonArtifactCompiler) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SolidityContractJsonArtifactCompiler) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SolidityContractJsonArtifactCompiler) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md new file mode 100644 index 00000000000..f95a4cda04a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactGasEstimates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Creation** | Pointer to [**SolidityContractJsonArtifactGasEstimatesCreation**](SolidityContractJsonArtifactGasEstimatesCreation.md) | | [optional] +**External** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimates + +`func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation` + +GetCreation returns the Creation field if non-nil, zero value otherwise. + +### GetCreationOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool)` + +GetCreationOk returns a tuple with the Creation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation)` + +SetCreation sets Creation field to given value. + +### HasCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool` + +HasCreation returns a boolean if a field has been set. + +### GetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{}` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (*map[string]interface{}, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{})` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md new file mode 100644 index 00000000000..8f123dca41d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md @@ -0,0 +1,108 @@ +# SolidityContractJsonArtifactGasEstimatesCreation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeDepositCost** | Pointer to **string** | | [optional] +**ExecutionCost** | Pointer to **string** | | [optional] +**TotalCost** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimatesCreation + +`func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string` + +GetCodeDepositCost returns the CodeDepositCost field if non-nil, zero value otherwise. + +### GetCodeDepositCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool)` + +GetCodeDepositCostOk returns a tuple with the CodeDepositCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string)` + +SetCodeDepositCost sets CodeDepositCost field to given value. + +### HasCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool` + +HasCodeDepositCost returns a boolean if a field has been set. + +### GetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string` + +GetExecutionCost returns the ExecutionCost field if non-nil, zero value otherwise. + +### GetExecutionCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool)` + +GetExecutionCostOk returns a tuple with the ExecutionCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string)` + +SetExecutionCost sets ExecutionCost field to given value. + +### HasExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool` + +HasExecutionCost returns a boolean if a field has been set. + +### GetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string` + +GetTotalCost returns the TotalCost field if non-nil, zero value otherwise. + +### GetTotalCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool)` + +GetTotalCostOk returns a tuple with the TotalCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string)` + +SetTotalCost sets TotalCost field to given value. + +### HasTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool` + +HasTotalCost returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..b5a8fcad94d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md new file mode 100644 index 00000000000..520b56970c6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md @@ -0,0 +1,470 @@ +# WatchBlocksV1BlockData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **float32** | | +**Hash** | **string** | | +**ParentHash** | **string** | | +**Nonce** | **string** | | +**Sha3Uncles** | **string** | | +**LogsBloom** | **string** | | +**TransactionsRoot** | Pointer to **string** | | [optional] +**StateRoot** | **string** | | +**ReceiptsRoot** | Pointer to **string** | | [optional] +**Difficulty** | Pointer to **string** | | [optional] +**MixHash** | Pointer to **string** | | [optional] +**Miner** | **string** | | +**ExtraData** | **string** | | +**GasLimit** | **int32** | | +**GasUsed** | **int32** | | +**Timestamp** | [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | +**Size** | **float32** | | +**TotalDifficulty** | **string** | | +**Uncles** | **[]string** | | +**Transactions** | [**[]Web3Transaction**](Web3Transaction.md) | | + +## Methods + +### NewWatchBlocksV1BlockData + +`func NewWatchBlocksV1BlockData(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp EthereumTransactionConfigFrom, size float32, totalDifficulty string, uncles []string, transactions []Web3Transaction, ) *WatchBlocksV1BlockData` + +NewWatchBlocksV1BlockData instantiates a new WatchBlocksV1BlockData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1BlockDataWithDefaults + +`func NewWatchBlocksV1BlockDataWithDefaults() *WatchBlocksV1BlockData` + +NewWatchBlocksV1BlockDataWithDefaults instantiates a new WatchBlocksV1BlockData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *WatchBlocksV1BlockData) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *WatchBlocksV1BlockData) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *WatchBlocksV1BlockData) SetNumber(v float32)` + +SetNumber sets Number field to given value. + + +### GetHash + +`func (o *WatchBlocksV1BlockData) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *WatchBlocksV1BlockData) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *WatchBlocksV1BlockData) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetParentHash + +`func (o *WatchBlocksV1BlockData) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *WatchBlocksV1BlockData) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *WatchBlocksV1BlockData) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + + +### GetNonce + +`func (o *WatchBlocksV1BlockData) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *WatchBlocksV1BlockData) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *WatchBlocksV1BlockData) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + + +### GetSha3Uncles + +`func (o *WatchBlocksV1BlockData) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *WatchBlocksV1BlockData) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *WatchBlocksV1BlockData) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + + +### GetLogsBloom + +`func (o *WatchBlocksV1BlockData) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *WatchBlocksV1BlockData) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *WatchBlocksV1BlockData) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + + +### GetTransactionsRoot + +`func (o *WatchBlocksV1BlockData) GetTransactionsRoot() string` + +GetTransactionsRoot returns the TransactionsRoot field if non-nil, zero value otherwise. + +### GetTransactionsRootOk + +`func (o *WatchBlocksV1BlockData) GetTransactionsRootOk() (*string, bool)` + +GetTransactionsRootOk returns a tuple with the TransactionsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsRoot + +`func (o *WatchBlocksV1BlockData) SetTransactionsRoot(v string)` + +SetTransactionsRoot sets TransactionsRoot field to given value. + +### HasTransactionsRoot + +`func (o *WatchBlocksV1BlockData) HasTransactionsRoot() bool` + +HasTransactionsRoot returns a boolean if a field has been set. + +### GetStateRoot + +`func (o *WatchBlocksV1BlockData) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *WatchBlocksV1BlockData) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *WatchBlocksV1BlockData) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + + +### GetReceiptsRoot + +`func (o *WatchBlocksV1BlockData) GetReceiptsRoot() string` + +GetReceiptsRoot returns the ReceiptsRoot field if non-nil, zero value otherwise. + +### GetReceiptsRootOk + +`func (o *WatchBlocksV1BlockData) GetReceiptsRootOk() (*string, bool)` + +GetReceiptsRootOk returns a tuple with the ReceiptsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptsRoot + +`func (o *WatchBlocksV1BlockData) SetReceiptsRoot(v string)` + +SetReceiptsRoot sets ReceiptsRoot field to given value. + +### HasReceiptsRoot + +`func (o *WatchBlocksV1BlockData) HasReceiptsRoot() bool` + +HasReceiptsRoot returns a boolean if a field has been set. + +### GetDifficulty + +`func (o *WatchBlocksV1BlockData) GetDifficulty() string` + +GetDifficulty returns the Difficulty field if non-nil, zero value otherwise. + +### GetDifficultyOk + +`func (o *WatchBlocksV1BlockData) GetDifficultyOk() (*string, bool)` + +GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDifficulty + +`func (o *WatchBlocksV1BlockData) SetDifficulty(v string)` + +SetDifficulty sets Difficulty field to given value. + +### HasDifficulty + +`func (o *WatchBlocksV1BlockData) HasDifficulty() bool` + +HasDifficulty returns a boolean if a field has been set. + +### GetMixHash + +`func (o *WatchBlocksV1BlockData) GetMixHash() string` + +GetMixHash returns the MixHash field if non-nil, zero value otherwise. + +### GetMixHashOk + +`func (o *WatchBlocksV1BlockData) GetMixHashOk() (*string, bool)` + +GetMixHashOk returns a tuple with the MixHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMixHash + +`func (o *WatchBlocksV1BlockData) SetMixHash(v string)` + +SetMixHash sets MixHash field to given value. + +### HasMixHash + +`func (o *WatchBlocksV1BlockData) HasMixHash() bool` + +HasMixHash returns a boolean if a field has been set. + +### GetMiner + +`func (o *WatchBlocksV1BlockData) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *WatchBlocksV1BlockData) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *WatchBlocksV1BlockData) SetMiner(v string)` + +SetMiner sets Miner field to given value. + + +### GetExtraData + +`func (o *WatchBlocksV1BlockData) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *WatchBlocksV1BlockData) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *WatchBlocksV1BlockData) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + + +### GetGasLimit + +`func (o *WatchBlocksV1BlockData) GetGasLimit() int32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *WatchBlocksV1BlockData) GetGasLimitOk() (*int32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *WatchBlocksV1BlockData) SetGasLimit(v int32)` + +SetGasLimit sets GasLimit field to given value. + + +### GetGasUsed + +`func (o *WatchBlocksV1BlockData) GetGasUsed() int32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *WatchBlocksV1BlockData) GetGasUsedOk() (*int32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *WatchBlocksV1BlockData) SetGasUsed(v int32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetTimestamp + +`func (o *WatchBlocksV1BlockData) GetTimestamp() EthereumTransactionConfigFrom` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *WatchBlocksV1BlockData) GetTimestampOk() (*EthereumTransactionConfigFrom, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *WatchBlocksV1BlockData) SetTimestamp(v EthereumTransactionConfigFrom)` + +SetTimestamp sets Timestamp field to given value. + + +### GetSize + +`func (o *WatchBlocksV1BlockData) GetSize() float32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *WatchBlocksV1BlockData) GetSizeOk() (*float32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *WatchBlocksV1BlockData) SetSize(v float32)` + +SetSize sets Size field to given value. + + +### GetTotalDifficulty + +`func (o *WatchBlocksV1BlockData) GetTotalDifficulty() string` + +GetTotalDifficulty returns the TotalDifficulty field if non-nil, zero value otherwise. + +### GetTotalDifficultyOk + +`func (o *WatchBlocksV1BlockData) GetTotalDifficultyOk() (*string, bool)` + +GetTotalDifficultyOk returns a tuple with the TotalDifficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalDifficulty + +`func (o *WatchBlocksV1BlockData) SetTotalDifficulty(v string)` + +SetTotalDifficulty sets TotalDifficulty field to given value. + + +### GetUncles + +`func (o *WatchBlocksV1BlockData) GetUncles() []string` + +GetUncles returns the Uncles field if non-nil, zero value otherwise. + +### GetUnclesOk + +`func (o *WatchBlocksV1BlockData) GetUnclesOk() (*[]string, bool)` + +GetUnclesOk returns a tuple with the Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncles + +`func (o *WatchBlocksV1BlockData) SetUncles(v []string)` + +SetUncles sets Uncles field to given value. + + +### GetTransactions + +`func (o *WatchBlocksV1BlockData) GetTransactions() []Web3Transaction` + +GetTransactions returns the Transactions field if non-nil, zero value otherwise. + +### GetTransactionsOk + +`func (o *WatchBlocksV1BlockData) GetTransactionsOk() (*[]Web3Transaction, bool)` + +GetTransactionsOk returns a tuple with the Transactions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactions + +`func (o *WatchBlocksV1BlockData) SetTransactions(v []Web3Transaction)` + +SetTransactions sets Transactions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md new file mode 100644 index 00000000000..16db9cd547c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md @@ -0,0 +1,56 @@ +# WatchBlocksV1Options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GetBlockData** | Pointer to **bool** | | [optional] + +## Methods + +### NewWatchBlocksV1Options + +`func NewWatchBlocksV1Options() *WatchBlocksV1Options` + +NewWatchBlocksV1Options instantiates a new WatchBlocksV1Options object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1OptionsWithDefaults + +`func NewWatchBlocksV1OptionsWithDefaults() *WatchBlocksV1Options` + +NewWatchBlocksV1OptionsWithDefaults instantiates a new WatchBlocksV1Options object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGetBlockData + +`func (o *WatchBlocksV1Options) GetGetBlockData() bool` + +GetGetBlockData returns the GetBlockData field if non-nil, zero value otherwise. + +### GetGetBlockDataOk + +`func (o *WatchBlocksV1Options) GetGetBlockDataOk() (*bool, bool)` + +GetGetBlockDataOk returns a tuple with the GetBlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetBlockData + +`func (o *WatchBlocksV1Options) SetGetBlockData(v bool)` + +SetGetBlockData sets GetBlockData field to given value. + +### HasGetBlockData + +`func (o *WatchBlocksV1Options) HasGetBlockData() bool` + +HasGetBlockData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md new file mode 100644 index 00000000000..4f66d456e78 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md @@ -0,0 +1,82 @@ +# WatchBlocksV1Progress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockHeader** | Pointer to [**Web3BlockHeader**](Web3BlockHeader.md) | | [optional] +**BlockData** | Pointer to [**WatchBlocksV1BlockData**](WatchBlocksV1BlockData.md) | | [optional] + +## Methods + +### NewWatchBlocksV1Progress + +`func NewWatchBlocksV1Progress() *WatchBlocksV1Progress` + +NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1ProgressWithDefaults + +`func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress` + +NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockHeader + +`func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader` + +GetBlockHeader returns the BlockHeader field if non-nil, zero value otherwise. + +### GetBlockHeaderOk + +`func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool)` + +GetBlockHeaderOk returns a tuple with the BlockHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHeader + +`func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader)` + +SetBlockHeader sets BlockHeader field to given value. + +### HasBlockHeader + +`func (o *WatchBlocksV1Progress) HasBlockHeader() bool` + +HasBlockHeader returns a boolean if a field has been set. + +### GetBlockData + +`func (o *WatchBlocksV1Progress) GetBlockData() WatchBlocksV1BlockData` + +GetBlockData returns the BlockData field if non-nil, zero value otherwise. + +### GetBlockDataOk + +`func (o *WatchBlocksV1Progress) GetBlockDataOk() (*WatchBlocksV1BlockData, bool)` + +GetBlockDataOk returns a tuple with the BlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockData + +`func (o *WatchBlocksV1Progress) SetBlockData(v WatchBlocksV1BlockData)` + +SetBlockData sets BlockData field to given value. + +### HasBlockData + +`func (o *WatchBlocksV1Progress) HasBlockData() bool` + +HasBlockData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md new file mode 100644 index 00000000000..9e3b23214a5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md @@ -0,0 +1,386 @@ +# Web3BlockHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **float32** | | +**Hash** | **string** | | +**ParentHash** | **string** | | +**Nonce** | **string** | | +**Sha3Uncles** | **string** | | +**LogsBloom** | **string** | | +**TransactionsRoot** | Pointer to **string** | | [optional] +**StateRoot** | **string** | | +**ReceiptsRoot** | Pointer to **string** | | [optional] +**Difficulty** | Pointer to **string** | | [optional] +**MixHash** | Pointer to **string** | | [optional] +**Miner** | **string** | | +**ExtraData** | **string** | | +**GasLimit** | **int32** | | +**GasUsed** | **int32** | | +**Timestamp** | [**EthereumTransactionConfigFrom**](EthereumTransactionConfigFrom.md) | | + +## Methods + +### NewWeb3BlockHeader + +`func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp EthereumTransactionConfigFrom, ) *Web3BlockHeader` + +NewWeb3BlockHeader instantiates a new Web3BlockHeader object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3BlockHeaderWithDefaults + +`func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader` + +NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *Web3BlockHeader) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *Web3BlockHeader) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *Web3BlockHeader) SetNumber(v float32)` + +SetNumber sets Number field to given value. + + +### GetHash + +`func (o *Web3BlockHeader) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *Web3BlockHeader) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *Web3BlockHeader) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetParentHash + +`func (o *Web3BlockHeader) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *Web3BlockHeader) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *Web3BlockHeader) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + + +### GetNonce + +`func (o *Web3BlockHeader) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *Web3BlockHeader) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *Web3BlockHeader) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + + +### GetSha3Uncles + +`func (o *Web3BlockHeader) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *Web3BlockHeader) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + + +### GetLogsBloom + +`func (o *Web3BlockHeader) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *Web3BlockHeader) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + + +### GetTransactionsRoot + +`func (o *Web3BlockHeader) GetTransactionsRoot() string` + +GetTransactionsRoot returns the TransactionsRoot field if non-nil, zero value otherwise. + +### GetTransactionsRootOk + +`func (o *Web3BlockHeader) GetTransactionsRootOk() (*string, bool)` + +GetTransactionsRootOk returns a tuple with the TransactionsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsRoot + +`func (o *Web3BlockHeader) SetTransactionsRoot(v string)` + +SetTransactionsRoot sets TransactionsRoot field to given value. + +### HasTransactionsRoot + +`func (o *Web3BlockHeader) HasTransactionsRoot() bool` + +HasTransactionsRoot returns a boolean if a field has been set. + +### GetStateRoot + +`func (o *Web3BlockHeader) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *Web3BlockHeader) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *Web3BlockHeader) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + + +### GetReceiptsRoot + +`func (o *Web3BlockHeader) GetReceiptsRoot() string` + +GetReceiptsRoot returns the ReceiptsRoot field if non-nil, zero value otherwise. + +### GetReceiptsRootOk + +`func (o *Web3BlockHeader) GetReceiptsRootOk() (*string, bool)` + +GetReceiptsRootOk returns a tuple with the ReceiptsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptsRoot + +`func (o *Web3BlockHeader) SetReceiptsRoot(v string)` + +SetReceiptsRoot sets ReceiptsRoot field to given value. + +### HasReceiptsRoot + +`func (o *Web3BlockHeader) HasReceiptsRoot() bool` + +HasReceiptsRoot returns a boolean if a field has been set. + +### GetDifficulty + +`func (o *Web3BlockHeader) GetDifficulty() string` + +GetDifficulty returns the Difficulty field if non-nil, zero value otherwise. + +### GetDifficultyOk + +`func (o *Web3BlockHeader) GetDifficultyOk() (*string, bool)` + +GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDifficulty + +`func (o *Web3BlockHeader) SetDifficulty(v string)` + +SetDifficulty sets Difficulty field to given value. + +### HasDifficulty + +`func (o *Web3BlockHeader) HasDifficulty() bool` + +HasDifficulty returns a boolean if a field has been set. + +### GetMixHash + +`func (o *Web3BlockHeader) GetMixHash() string` + +GetMixHash returns the MixHash field if non-nil, zero value otherwise. + +### GetMixHashOk + +`func (o *Web3BlockHeader) GetMixHashOk() (*string, bool)` + +GetMixHashOk returns a tuple with the MixHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMixHash + +`func (o *Web3BlockHeader) SetMixHash(v string)` + +SetMixHash sets MixHash field to given value. + +### HasMixHash + +`func (o *Web3BlockHeader) HasMixHash() bool` + +HasMixHash returns a boolean if a field has been set. + +### GetMiner + +`func (o *Web3BlockHeader) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *Web3BlockHeader) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *Web3BlockHeader) SetMiner(v string)` + +SetMiner sets Miner field to given value. + + +### GetExtraData + +`func (o *Web3BlockHeader) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *Web3BlockHeader) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + + +### GetGasLimit + +`func (o *Web3BlockHeader) GetGasLimit() int32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *Web3BlockHeader) SetGasLimit(v int32)` + +SetGasLimit sets GasLimit field to given value. + + +### GetGasUsed + +`func (o *Web3BlockHeader) GetGasUsed() int32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3BlockHeader) SetGasUsed(v int32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetTimestamp + +`func (o *Web3BlockHeader) GetTimestamp() EthereumTransactionConfigFrom` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *Web3BlockHeader) GetTimestampOk() (*EthereumTransactionConfigFrom, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *Web3BlockHeader) SetTimestamp(v EthereumTransactionConfigFrom)` + +SetTimestamp sets Timestamp field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..4f29ea99500 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,140 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | Pointer to **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | [optional] + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, secret string, keychainEntryKey string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + +### HasKeychainId + +`func (o *Web3SigningCredential) HasKeychainId() bool` + +HasKeychainId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..f6cc97d8174 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,119 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | Pointer to **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | [optional] + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + +### HasKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) HasKeychainId() bool` + +HasKeychainId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md new file mode 100644 index 00000000000..2d30a8949d5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialGethKeychainPassword + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | A geth keychain unlock password. | + +## Methods + +### NewWeb3SigningCredentialGethKeychainPassword + +`func NewWeb3SigningCredentialGethKeychainPassword(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialGethKeychainPassword` + +NewWeb3SigningCredentialGethKeychainPassword instantiates a new Web3SigningCredentialGethKeychainPassword object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialGethKeychainPasswordWithDefaults + +`func NewWeb3SigningCredentialGethKeychainPasswordWithDefaults() *Web3SigningCredentialGethKeychainPassword` + +NewWeb3SigningCredentialGethKeychainPasswordWithDefaults instantiates a new Web3SigningCredentialGethKeychainPassword object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialGethKeychainPassword) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialGethKeychainPassword) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialGethKeychainPassword) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialGethKeychainPassword) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialGethKeychainPassword) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md new file mode 100644 index 00000000000..3a7a3f4b3ce --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md @@ -0,0 +1,379 @@ +# Web3Transaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hash** | **string** | | +**Nonce** | **float32** | | +**BlockHash** | **NullableString** | | +**BlockNumber** | **NullableFloat32** | | +**TransactionIndex** | **NullableFloat32** | | +**From** | **string** | | +**To** | **NullableString** | | +**Value** | **string** | | +**GasPrice** | **string** | | +**Gas** | **float32** | | +**Input** | **string** | | +**V** | Pointer to **string** | | [optional] +**R** | Pointer to **string** | | [optional] +**S** | Pointer to **string** | | [optional] + +## Methods + +### NewWeb3Transaction + +`func NewWeb3Transaction(hash string, nonce float32, blockHash NullableString, blockNumber NullableFloat32, transactionIndex NullableFloat32, from string, to NullableString, value string, gasPrice string, gas float32, input string, ) *Web3Transaction` + +NewWeb3Transaction instantiates a new Web3Transaction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionWithDefaults + +`func NewWeb3TransactionWithDefaults() *Web3Transaction` + +NewWeb3TransactionWithDefaults instantiates a new Web3Transaction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHash + +`func (o *Web3Transaction) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *Web3Transaction) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *Web3Transaction) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetNonce + +`func (o *Web3Transaction) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *Web3Transaction) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *Web3Transaction) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + + +### GetBlockHash + +`func (o *Web3Transaction) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3Transaction) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3Transaction) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### SetBlockHashNil + +`func (o *Web3Transaction) SetBlockHashNil(b bool)` + + SetBlockHashNil sets the value for BlockHash to be an explicit nil + +### UnsetBlockHash +`func (o *Web3Transaction) UnsetBlockHash()` + +UnsetBlockHash ensures that no value is present for BlockHash, not even an explicit nil +### GetBlockNumber + +`func (o *Web3Transaction) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3Transaction) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3Transaction) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### SetBlockNumberNil + +`func (o *Web3Transaction) SetBlockNumberNil(b bool)` + + SetBlockNumberNil sets the value for BlockNumber to be an explicit nil + +### UnsetBlockNumber +`func (o *Web3Transaction) UnsetBlockNumber()` + +UnsetBlockNumber ensures that no value is present for BlockNumber, not even an explicit nil +### GetTransactionIndex + +`func (o *Web3Transaction) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3Transaction) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3Transaction) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### SetTransactionIndexNil + +`func (o *Web3Transaction) SetTransactionIndexNil(b bool)` + + SetTransactionIndexNil sets the value for TransactionIndex to be an explicit nil + +### UnsetTransactionIndex +`func (o *Web3Transaction) UnsetTransactionIndex()` + +UnsetTransactionIndex ensures that no value is present for TransactionIndex, not even an explicit nil +### GetFrom + +`func (o *Web3Transaction) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3Transaction) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3Transaction) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3Transaction) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3Transaction) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3Transaction) SetTo(v string)` + +SetTo sets To field to given value. + + +### SetToNil + +`func (o *Web3Transaction) SetToNil(b bool)` + + SetToNil sets the value for To to be an explicit nil + +### UnsetTo +`func (o *Web3Transaction) UnsetTo()` + +UnsetTo ensures that no value is present for To, not even an explicit nil +### GetValue + +`func (o *Web3Transaction) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Web3Transaction) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Web3Transaction) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetGasPrice + +`func (o *Web3Transaction) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *Web3Transaction) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *Web3Transaction) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + + +### GetGas + +`func (o *Web3Transaction) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *Web3Transaction) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *Web3Transaction) SetGas(v float32)` + +SetGas sets Gas field to given value. + + +### GetInput + +`func (o *Web3Transaction) GetInput() string` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *Web3Transaction) GetInputOk() (*string, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *Web3Transaction) SetInput(v string)` + +SetInput sets Input field to given value. + + +### GetV + +`func (o *Web3Transaction) GetV() string` + +GetV returns the V field if non-nil, zero value otherwise. + +### GetVOk + +`func (o *Web3Transaction) GetVOk() (*string, bool)` + +GetVOk returns a tuple with the V field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetV + +`func (o *Web3Transaction) SetV(v string)` + +SetV sets V field to given value. + +### HasV + +`func (o *Web3Transaction) HasV() bool` + +HasV returns a boolean if a field has been set. + +### GetR + +`func (o *Web3Transaction) GetR() string` + +GetR returns the R field if non-nil, zero value otherwise. + +### GetROk + +`func (o *Web3Transaction) GetROk() (*string, bool)` + +GetROk returns a tuple with the R field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetR + +`func (o *Web3Transaction) SetR(v string)` + +SetR sets R field to given value. + +### HasR + +`func (o *Web3Transaction) HasR() bool` + +HasR returns a boolean if a field has been set. + +### GetS + +`func (o *Web3Transaction) GetS() string` + +GetS returns the S field if non-nil, zero value otherwise. + +### GetSOk + +`func (o *Web3Transaction) GetSOk() (*string, bool)` + +GetSOk returns a tuple with the S field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS + +`func (o *Web3Transaction) SetS(v string)` + +SetS sets S field to given value. + +### HasS + +`func (o *Web3Transaction) HasS() bool` + +HasS returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..bb631c46a96 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,390 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | +**Logs** | Pointer to **[]interface{}** | | [optional] [default to []] +**LogsBloom** | Pointer to **string** | | [optional] +**RevertReason** | Pointer to **string** | | [optional] +**Output** | Pointer to **string** | | [optional] +**CommitmentHash** | Pointer to **string** | | [optional] +**CumulativeGasUSed** | Pointer to **float32** | | [optional] + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + +### GetLogs + +`func (o *Web3TransactionReceipt) GetLogs() []interface{}` + +GetLogs returns the Logs field if non-nil, zero value otherwise. + +### GetLogsOk + +`func (o *Web3TransactionReceipt) GetLogsOk() (*[]interface{}, bool)` + +GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogs + +`func (o *Web3TransactionReceipt) SetLogs(v []interface{})` + +SetLogs sets Logs field to given value. + +### HasLogs + +`func (o *Web3TransactionReceipt) HasLogs() bool` + +HasLogs returns a boolean if a field has been set. + +### GetLogsBloom + +`func (o *Web3TransactionReceipt) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *Web3TransactionReceipt) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *Web3TransactionReceipt) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + +### HasLogsBloom + +`func (o *Web3TransactionReceipt) HasLogsBloom() bool` + +HasLogsBloom returns a boolean if a field has been set. + +### GetRevertReason + +`func (o *Web3TransactionReceipt) GetRevertReason() string` + +GetRevertReason returns the RevertReason field if non-nil, zero value otherwise. + +### GetRevertReasonOk + +`func (o *Web3TransactionReceipt) GetRevertReasonOk() (*string, bool)` + +GetRevertReasonOk returns a tuple with the RevertReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevertReason + +`func (o *Web3TransactionReceipt) SetRevertReason(v string)` + +SetRevertReason sets RevertReason field to given value. + +### HasRevertReason + +`func (o *Web3TransactionReceipt) HasRevertReason() bool` + +HasRevertReason returns a boolean if a field has been set. + +### GetOutput + +`func (o *Web3TransactionReceipt) GetOutput() string` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *Web3TransactionReceipt) GetOutputOk() (*string, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *Web3TransactionReceipt) SetOutput(v string)` + +SetOutput sets Output field to given value. + +### HasOutput + +`func (o *Web3TransactionReceipt) HasOutput() bool` + +HasOutput returns a boolean if a field has been set. + +### GetCommitmentHash + +`func (o *Web3TransactionReceipt) GetCommitmentHash() string` + +GetCommitmentHash returns the CommitmentHash field if non-nil, zero value otherwise. + +### GetCommitmentHashOk + +`func (o *Web3TransactionReceipt) GetCommitmentHashOk() (*string, bool)` + +GetCommitmentHashOk returns a tuple with the CommitmentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitmentHash + +`func (o *Web3TransactionReceipt) SetCommitmentHash(v string)` + +SetCommitmentHash sets CommitmentHash field to given value. + +### HasCommitmentHash + +`func (o *Web3TransactionReceipt) HasCommitmentHash() bool` + +HasCommitmentHash returns a boolean if a field has been set. + +### GetCumulativeGasUSed + +`func (o *Web3TransactionReceipt) GetCumulativeGasUSed() float32` + +GetCumulativeGasUSed returns the CumulativeGasUSed field if non-nil, zero value otherwise. + +### GetCumulativeGasUSedOk + +`func (o *Web3TransactionReceipt) GetCumulativeGasUSedOk() (*float32, bool)` + +GetCumulativeGasUSedOk returns a tuple with the CumulativeGasUSed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCumulativeGasUSed + +`func (o *Web3TransactionReceipt) SetCumulativeGasUSed(v float32)` + +SetCumulativeGasUSed sets CumulativeGasUSed field to given value. + +### HasCumulativeGasUSed + +`func (o *Web3TransactionReceipt) HasCumulativeGasUSed() bool` + +HasCumulativeGasUSed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..7929a5224c3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..1100b5af2cd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client + +go 1.13 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_contract_json.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_contract_json.go new file mode 100644 index 00000000000..5916d44a3ce --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_contract_json.go @@ -0,0 +1,579 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the ContractJSON type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ContractJSON{} + +// ContractJSON struct for ContractJSON +type ContractJSON struct { + ContractName string `json:"contractName"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode string `json:"bytecode"` + // The application binary interface of the solidity contract, optional parameter + Abi []interface{} `json:"abi,omitempty"` + Metadata *string `json:"metadata,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler map[string]interface{} `json:"compiler,omitempty"` + Networks map[string]interface{} `json:"networks,omitempty"` + Ast map[string]interface{} `json:"ast,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates map[string]interface{} `json:"gasEstimates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ContractJSON ContractJSON + +// NewContractJSON instantiates a new ContractJSON object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewContractJSON(contractName string, bytecode string) *ContractJSON { + this := ContractJSON{} + this.ContractName = contractName + this.Bytecode = bytecode + return &this +} + +// NewContractJSONWithDefaults instantiates a new ContractJSON object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewContractJSONWithDefaults() *ContractJSON { + this := ContractJSON{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *ContractJSON) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *ContractJSON) SetContractName(v string) { + o.ContractName = v +} + +// GetBytecode returns the Bytecode field value +func (o *ContractJSON) GetBytecode() string { + if o == nil { + var ret string + return ret + } + + return o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetBytecodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Bytecode, true +} + +// SetBytecode sets field value +func (o *ContractJSON) SetBytecode(v string) { + o.Bytecode = v +} + +// GetAbi returns the Abi field value if set, zero value otherwise. +func (o *ContractJSON) GetAbi() []interface{} { + if o == nil || isNil(o.Abi) { + var ret []interface{} + return ret + } + return o.Abi +} + +// GetAbiOk returns a tuple with the Abi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAbiOk() ([]interface{}, bool) { + if o == nil || isNil(o.Abi) { + return nil, false + } + return o.Abi, true +} + +// HasAbi returns a boolean if a field has been set. +func (o *ContractJSON) HasAbi() bool { + if o != nil && !isNil(o.Abi) { + return true + } + + return false +} + +// SetAbi gets a reference to the given []interface{} and assigns it to the Abi field. +func (o *ContractJSON) SetAbi(v []interface{}) { + o.Abi = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ContractJSON) GetMetadata() string { + if o == nil || isNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetMetadataOk() (*string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ContractJSON) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *ContractJSON) SetMetadata(v string) { + o.Metadata = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedBytecode() string { + if o == nil || isNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || isNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedBytecode() bool { + if o != nil && !isNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *ContractJSON) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetSourceMap() string { + if o == nil || isNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourceMapOk() (*string, bool) { + if o == nil || isNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasSourceMap() bool { + if o != nil && !isNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *ContractJSON) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedSourceMap() string { + if o == nil || isNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || isNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedSourceMap() bool { + if o != nil && !isNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *ContractJSON) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *ContractJSON) GetSourcePath() string { + if o == nil || isNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourcePathOk() (*string, bool) { + if o == nil || isNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *ContractJSON) HasSourcePath() bool { + if o != nil && !isNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *ContractJSON) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *ContractJSON) GetCompiler() map[string]interface{} { + if o == nil || isNil(o.Compiler) { + var ret map[string]interface{} + return ret + } + return o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetCompilerOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Compiler) { + return map[string]interface{}{}, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *ContractJSON) HasCompiler() bool { + if o != nil && !isNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given map[string]interface{} and assigns it to the Compiler field. +func (o *ContractJSON) SetCompiler(v map[string]interface{}) { + o.Compiler = v +} + +// GetNetworks returns the Networks field value if set, zero value otherwise. +func (o *ContractJSON) GetNetworks() map[string]interface{} { + if o == nil || isNil(o.Networks) { + var ret map[string]interface{} + return ret + } + return o.Networks +} + +// GetNetworksOk returns a tuple with the Networks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetNetworksOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Networks) { + return map[string]interface{}{}, false + } + return o.Networks, true +} + +// HasNetworks returns a boolean if a field has been set. +func (o *ContractJSON) HasNetworks() bool { + if o != nil && !isNil(o.Networks) { + return true + } + + return false +} + +// SetNetworks gets a reference to the given map[string]interface{} and assigns it to the Networks field. +func (o *ContractJSON) SetNetworks(v map[string]interface{}) { + o.Networks = v +} + +// GetAst returns the Ast field value if set, zero value otherwise. +func (o *ContractJSON) GetAst() map[string]interface{} { + if o == nil || isNil(o.Ast) { + var ret map[string]interface{} + return ret + } + return o.Ast +} + +// GetAstOk returns a tuple with the Ast field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAstOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Ast) { + return map[string]interface{}{}, false + } + return o.Ast, true +} + +// HasAst returns a boolean if a field has been set. +func (o *ContractJSON) HasAst() bool { + if o != nil && !isNil(o.Ast) { + return true + } + + return false +} + +// SetAst gets a reference to the given map[string]interface{} and assigns it to the Ast field. +func (o *ContractJSON) SetAst(v map[string]interface{}) { + o.Ast = v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *ContractJSON) GetFunctionHashes() map[string]interface{} { + if o == nil || isNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *ContractJSON) HasFunctionHashes() bool { + if o != nil && !isNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *ContractJSON) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *ContractJSON) GetGasEstimates() map[string]interface{} { + if o == nil || isNil(o.GasEstimates) { + var ret map[string]interface{} + return ret + } + return o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetGasEstimatesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.GasEstimates) { + return map[string]interface{}{}, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *ContractJSON) HasGasEstimates() bool { + if o != nil && !isNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given map[string]interface{} and assigns it to the GasEstimates field. +func (o *ContractJSON) SetGasEstimates(v map[string]interface{}) { + o.GasEstimates = v +} + +func (o ContractJSON) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ContractJSON) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["bytecode"] = o.Bytecode + if !isNil(o.Abi) { + toSerialize["abi"] = o.Abi + } + if !isNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !isNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !isNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !isNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !isNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !isNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !isNil(o.Networks) { + toSerialize["networks"] = o.Networks + } + if !isNil(o.Ast) { + toSerialize["ast"] = o.Ast + } + if !isNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !isNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ContractJSON) UnmarshalJSON(bytes []byte) (err error) { + varContractJSON := _ContractJSON{} + + if err = json.Unmarshal(bytes, &varContractJSON); err == nil { + *o = ContractJSON(varContractJSON) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "contractName") + delete(additionalProperties, "bytecode") + delete(additionalProperties, "abi") + delete(additionalProperties, "metadata") + delete(additionalProperties, "deployedBytecode") + delete(additionalProperties, "sourceMap") + delete(additionalProperties, "deployedSourceMap") + delete(additionalProperties, "sourcePath") + delete(additionalProperties, "compiler") + delete(additionalProperties, "networks") + delete(additionalProperties, "ast") + delete(additionalProperties, "functionHashes") + delete(additionalProperties, "gasEstimates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableContractJSON struct { + value *ContractJSON + isSet bool +} + +func (v NullableContractJSON) Get() *ContractJSON { + return v.value +} + +func (v *NullableContractJSON) Set(val *ContractJSON) { + v.value = val + v.isSet = true +} + +func (v NullableContractJSON) IsSet() bool { + return v.isSet +} + +func (v *NullableContractJSON) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableContractJSON(val *ContractJSON) *NullableContractJSON { + return &NullableContractJSON{value: val, isSet: true} +} + +func (v NullableContractJSON) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableContractJSON) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go new file mode 100644 index 00000000000..e9076b1d80b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go @@ -0,0 +1,294 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeJsonObjectV1Request{} + +// DeployContractSolidityBytecodeJsonObjectV1Request struct for DeployContractSolidityBytecodeJsonObjectV1Request +type DeployContractSolidityBytecodeJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` + // The list of arguments to pass in to the constructor of the contract being deployed. + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` +} + +// NewDeployContractSolidityBytecodeJsonObjectV1Request instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON) *DeployContractSolidityBytecodeJsonObjectV1Request { + this := DeployContractSolidityBytecodeJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults() *DeployContractSolidityBytecodeJsonObjectV1Request { + this := DeployContractSolidityBytecodeJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGas() float32 { + if o == nil || isNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasOk() (*float32, bool) { + if o == nil || isNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGas() bool { + if o != nil && !isNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPrice() string { + if o == nil || isNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPriceOk() (*string, bool) { + if o == nil || isNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !isNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || isNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || isNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !isNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgs() []interface{} { + if o == nil || isNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || isNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasConstructorArgs() bool { + if o != nil && !isNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +func (o DeployContractSolidityBytecodeJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !isNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !isNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !isNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + if !isNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeJsonObjectV1Request struct { + value *DeployContractSolidityBytecodeJsonObjectV1Request + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) Get() *DeployContractSolidityBytecodeJsonObjectV1Request { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) Set(val *DeployContractSolidityBytecodeJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeJsonObjectV1Request(val *DeployContractSolidityBytecodeJsonObjectV1Request) *NullableDeployContractSolidityBytecodeJsonObjectV1Request { + return &NullableDeployContractSolidityBytecodeJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go new file mode 100644 index 00000000000..98ab7bc233c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go @@ -0,0 +1,506 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Request{} + +// DeployContractSolidityBytecodeV1Request struct for DeployContractSolidityBytecodeV1Request +type DeployContractSolidityBytecodeV1Request struct { + // The contract name for retrieve the contracts json on the keychain. + ContractName string `json:"contractName"` + // The application binary interface of the solidity contract + ContractAbi []interface{} `json:"contractAbi,omitempty"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode *string `json:"bytecode,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *float32 `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Value *float32 `json:"value,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // For use when not using keychain, pass the contract in as this variable + ContractJSON map[string]interface{} `json:"contractJSON,omitempty"` + // The list of arguments to pass in to the constructor of the contract being deployed. + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` +} + +// NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string) *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.KeychainId = keychainId + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetContractAbi returns the ContractAbi field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{} { + if o == nil || isNil(o.ContractAbi) { + var ret []interface{} + return ret + } + return o.ContractAbi +} + +// GetContractAbiOk returns a tuple with the ContractAbi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() ([]interface{}, bool) { + if o == nil || isNil(o.ContractAbi) { + return nil, false + } + return o.ContractAbi, true +} + +// HasContractAbi returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasContractAbi() bool { + if o != nil && !isNil(o.ContractAbi) { + return true + } + + return false +} + +// SetContractAbi gets a reference to the given []interface{} and assigns it to the ContractAbi field. +func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{}) { + o.ContractAbi = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string { + if o == nil || isNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool) { + if o == nil || isNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasBytecode() bool { + if o != nil && !isNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetKeychainId returns the KeychainId field value +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32 { + if o == nil || isNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool) { + if o == nil || isNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool { + if o != nil && !isNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() float32 { + if o == nil || isNil(o.GasPrice) { + var ret float32 + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*float32, bool) { + if o == nil || isNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool { + if o != nil && !isNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given float32 and assigns it to the GasPrice field. +func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v float32) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetNonce() float32 { + if o == nil || isNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetNonceOk() (*float32, bool) { + if o == nil || isNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasNonce() bool { + if o != nil && !isNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *DeployContractSolidityBytecodeV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetValue() float32 { + if o == nil || isNil(o.Value) { + var ret float32 + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetValueOk() (*float32, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given float32 and assigns it to the Value field. +func (o *DeployContractSolidityBytecodeV1Request) SetValue(v float32) { + o.Value = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32 { + if o == nil || isNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || isNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool { + if o != nil && !isNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetContractJSON() map[string]interface{} { + if o == nil || isNil(o.ContractJSON) { + var ret map[string]interface{} + return ret + } + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractJSONOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.ContractJSON) { + return map[string]interface{}{}, false + } + return o.ContractJSON, true +} + +// HasContractJSON returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasContractJSON() bool { + if o != nil && !isNil(o.ContractJSON) { + return true + } + + return false +} + +// SetContractJSON gets a reference to the given map[string]interface{} and assigns it to the ContractJSON field. +func (o *DeployContractSolidityBytecodeV1Request) SetContractJSON(v map[string]interface{}) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{} { + if o == nil || isNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || isNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasConstructorArgs() bool { + if o != nil && !isNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +func (o DeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !isNil(o.ContractAbi) { + toSerialize["contractAbi"] = o.ContractAbi + } + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !isNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + toSerialize["keychainId"] = o.KeychainId + if !isNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !isNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !isNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + if !isNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + if !isNil(o.ContractJSON) { + toSerialize["contractJSON"] = o.ContractJSON + } + if !isNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Request struct { + value *DeployContractSolidityBytecodeV1Request + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Request) Get() *DeployContractSolidityBytecodeV1Request { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Set(val *DeployContractSolidityBytecodeV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Request(val *DeployContractSolidityBytecodeV1Request) *NullableDeployContractSolidityBytecodeV1Request { + return &NullableDeployContractSolidityBytecodeV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go new file mode 100644 index 00000000000..046c00cac4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Response{} + +// DeployContractSolidityBytecodeV1Response struct for DeployContractSolidityBytecodeV1Response +type DeployContractSolidityBytecodeV1Response struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt) *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o DeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Response struct { + value *DeployContractSolidityBytecodeV1Response + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Response) Get() *DeployContractSolidityBytecodeV1Response { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Set(val *DeployContractSolidityBytecodeV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Response(val *DeployContractSolidityBytecodeV1Response) *NullableDeployContractSolidityBytecodeV1Response { + return &NullableDeployContractSolidityBytecodeV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go new file mode 100644 index 00000000000..88ee240d3ea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationType the model 'EthContractInvocationType' +type EthContractInvocationType string + +// List of EthContractInvocationType +const ( + SEND EthContractInvocationType = "SEND" + CALL EthContractInvocationType = "CALL" +) + +// All allowed values of EthContractInvocationType enum +var AllowedEthContractInvocationTypeEnumValues = []EthContractInvocationType{ + "SEND", + "CALL", +} + +func (v *EthContractInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationType(value) + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationType", value) +} + +// NewEthContractInvocationTypeFromValue returns a pointer to a valid EthContractInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationTypeFromValue(v string) (*EthContractInvocationType, error) { + ev := EthContractInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationType: valid values are %v", v, AllowedEthContractInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationType) IsValid() bool { + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationType value +func (v EthContractInvocationType) Ptr() *EthContractInvocationType { + return &v +} + +type NullableEthContractInvocationType struct { + value *EthContractInvocationType + isSet bool +} + +func (v NullableEthContractInvocationType) Get() *EthContractInvocationType { + return v.value +} + +func (v *NullableEthContractInvocationType) Set(val *EthContractInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationType(val *EthContractInvocationType) *NullableEthContractInvocationType { + return &NullableEthContractInvocationType{value: val, isSet: true} +} + +func (v NullableEthContractInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go new file mode 100644 index 00000000000..3b1dce6a5fb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationWeb3Method the model 'EthContractInvocationWeb3Method' +type EthContractInvocationWeb3Method string + +// List of EthContractInvocationWeb3Method +const ( + SEND EthContractInvocationWeb3Method = "send" + CALL EthContractInvocationWeb3Method = "call" + ENCODE_ABI EthContractInvocationWeb3Method = "encodeABI" + ESTIMATE_GAS EthContractInvocationWeb3Method = "estimateGas" +) + +// All allowed values of EthContractInvocationWeb3Method enum +var AllowedEthContractInvocationWeb3MethodEnumValues = []EthContractInvocationWeb3Method{ + "send", + "call", + "encodeABI", + "estimateGas", +} + +func (v *EthContractInvocationWeb3Method) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationWeb3Method(value) + for _, existing := range AllowedEthContractInvocationWeb3MethodEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationWeb3Method", value) +} + +// NewEthContractInvocationWeb3MethodFromValue returns a pointer to a valid EthContractInvocationWeb3Method +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationWeb3MethodFromValue(v string) (*EthContractInvocationWeb3Method, error) { + ev := EthContractInvocationWeb3Method(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationWeb3Method: valid values are %v", v, AllowedEthContractInvocationWeb3MethodEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationWeb3Method) IsValid() bool { + for _, existing := range AllowedEthContractInvocationWeb3MethodEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationWeb3Method value +func (v EthContractInvocationWeb3Method) Ptr() *EthContractInvocationWeb3Method { + return &v +} + +type NullableEthContractInvocationWeb3Method struct { + value *EthContractInvocationWeb3Method + isSet bool +} + +func (v NullableEthContractInvocationWeb3Method) Get() *EthContractInvocationWeb3Method { + return v.value +} + +func (v *NullableEthContractInvocationWeb3Method) Set(val *EthContractInvocationWeb3Method) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationWeb3Method) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationWeb3Method) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationWeb3Method(val *EthContractInvocationWeb3Method) *NullableEthContractInvocationWeb3Method { + return &NullableEthContractInvocationWeb3Method{value: val, isSet: true} +} + +func (v NullableEthContractInvocationWeb3Method) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationWeb3Method) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config.go new file mode 100644 index 00000000000..09639880712 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config.go @@ -0,0 +1,410 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the EthereumTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EthereumTransactionConfig{} + +// EthereumTransactionConfig struct for EthereumTransactionConfig +type EthereumTransactionConfig struct { + RawTransaction *string `json:"rawTransaction,omitempty"` + From *EthereumTransactionConfigFrom `json:"from,omitempty"` + To *EthereumTransactionConfigTo `json:"to,omitempty"` + Value *EthereumTransactionConfigFrom `json:"value,omitempty"` + Gas *EthereumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *EthereumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Data *EthereumTransactionConfigTo `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EthereumTransactionConfig EthereumTransactionConfig + +// NewEthereumTransactionConfig instantiates a new EthereumTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEthereumTransactionConfig() *EthereumTransactionConfig { + this := EthereumTransactionConfig{} + return &this +} + +// NewEthereumTransactionConfigWithDefaults instantiates a new EthereumTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEthereumTransactionConfigWithDefaults() *EthereumTransactionConfig { + this := EthereumTransactionConfig{} + return &this +} + +// GetRawTransaction returns the RawTransaction field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetRawTransaction() string { + if o == nil || isNil(o.RawTransaction) { + var ret string + return ret + } + return *o.RawTransaction +} + +// GetRawTransactionOk returns a tuple with the RawTransaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetRawTransactionOk() (*string, bool) { + if o == nil || isNil(o.RawTransaction) { + return nil, false + } + return o.RawTransaction, true +} + +// HasRawTransaction returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasRawTransaction() bool { + if o != nil && !isNil(o.RawTransaction) { + return true + } + + return false +} + +// SetRawTransaction gets a reference to the given string and assigns it to the RawTransaction field. +func (o *EthereumTransactionConfig) SetRawTransaction(v string) { + o.RawTransaction = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetFrom() EthereumTransactionConfigFrom { + if o == nil || isNil(o.From) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetFromOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasFrom() bool { + if o != nil && !isNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given EthereumTransactionConfigFrom and assigns it to the From field. +func (o *EthereumTransactionConfig) SetFrom(v EthereumTransactionConfigFrom) { + o.From = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetTo() EthereumTransactionConfigTo { + if o == nil || isNil(o.To) { + var ret EthereumTransactionConfigTo + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetToOk() (*EthereumTransactionConfigTo, bool) { + if o == nil || isNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasTo() bool { + if o != nil && !isNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given EthereumTransactionConfigTo and assigns it to the To field. +func (o *EthereumTransactionConfig) SetTo(v EthereumTransactionConfigTo) { + o.To = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetValue() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Value) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetValueOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Value field. +func (o *EthereumTransactionConfig) SetValue(v EthereumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetGas() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Gas) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetGasOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasGas() bool { + if o != nil && !isNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Gas field. +func (o *EthereumTransactionConfig) SetGas(v EthereumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetGasPrice() EthereumTransactionConfigFrom { + if o == nil || isNil(o.GasPrice) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasGasPrice() bool { + if o != nil && !isNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given EthereumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *EthereumTransactionConfig) SetGasPrice(v EthereumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetNonce() float32 { + if o == nil || isNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetNonceOk() (*float32, bool) { + if o == nil || isNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasNonce() bool { + if o != nil && !isNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *EthereumTransactionConfig) SetNonce(v float32) { + o.Nonce = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *EthereumTransactionConfig) GetData() EthereumTransactionConfigTo { + if o == nil || isNil(o.Data) { + var ret EthereumTransactionConfigTo + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EthereumTransactionConfig) GetDataOk() (*EthereumTransactionConfigTo, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *EthereumTransactionConfig) HasData() bool { + if o != nil && !isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given EthereumTransactionConfigTo and assigns it to the Data field. +func (o *EthereumTransactionConfig) SetData(v EthereumTransactionConfigTo) { + o.Data = &v +} + +func (o EthereumTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EthereumTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RawTransaction) { + toSerialize["rawTransaction"] = o.RawTransaction + } + if !isNil(o.From) { + toSerialize["from"] = o.From + } + if !isNil(o.To) { + toSerialize["to"] = o.To + } + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + if !isNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !isNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !isNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !isNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EthereumTransactionConfig) UnmarshalJSON(bytes []byte) (err error) { + varEthereumTransactionConfig := _EthereumTransactionConfig{} + + if err = json.Unmarshal(bytes, &varEthereumTransactionConfig); err == nil { + *o = EthereumTransactionConfig(varEthereumTransactionConfig) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "rawTransaction") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "value") + delete(additionalProperties, "gas") + delete(additionalProperties, "gasPrice") + delete(additionalProperties, "nonce") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEthereumTransactionConfig struct { + value *EthereumTransactionConfig + isSet bool +} + +func (v NullableEthereumTransactionConfig) Get() *EthereumTransactionConfig { + return v.value +} + +func (v *NullableEthereumTransactionConfig) Set(val *EthereumTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableEthereumTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableEthereumTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthereumTransactionConfig(val *EthereumTransactionConfig) *NullableEthereumTransactionConfig { + return &NullableEthereumTransactionConfig{value: val, isSet: true} +} + +func (v NullableEthereumTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthereumTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_from.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_from.go new file mode 100644 index 00000000000..8592c5dd970 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_from.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// EthereumTransactionConfigFrom - struct for EthereumTransactionConfigFrom +type EthereumTransactionConfigFrom struct { + Float32 *float32 + String *string +} + +// float32AsEthereumTransactionConfigFrom is a convenience function that returns float32 wrapped in EthereumTransactionConfigFrom +func Float32AsEthereumTransactionConfigFrom(v *float32) EthereumTransactionConfigFrom { + return EthereumTransactionConfigFrom{ + Float32: v, + } +} + +// stringAsEthereumTransactionConfigFrom is a convenience function that returns string wrapped in EthereumTransactionConfigFrom +func StringAsEthereumTransactionConfigFrom(v *string) EthereumTransactionConfigFrom { + return EthereumTransactionConfigFrom{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *EthereumTransactionConfigFrom) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(EthereumTransactionConfigFrom)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(EthereumTransactionConfigFrom)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src EthereumTransactionConfigFrom) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *EthereumTransactionConfigFrom) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableEthereumTransactionConfigFrom struct { + value *EthereumTransactionConfigFrom + isSet bool +} + +func (v NullableEthereumTransactionConfigFrom) Get() *EthereumTransactionConfigFrom { + return v.value +} + +func (v *NullableEthereumTransactionConfigFrom) Set(val *EthereumTransactionConfigFrom) { + v.value = val + v.isSet = true +} + +func (v NullableEthereumTransactionConfigFrom) IsSet() bool { + return v.isSet +} + +func (v *NullableEthereumTransactionConfigFrom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthereumTransactionConfigFrom(val *EthereumTransactionConfigFrom) *NullableEthereumTransactionConfigFrom { + return &NullableEthereumTransactionConfigFrom{value: val, isSet: true} +} + +func (v NullableEthereumTransactionConfigFrom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthereumTransactionConfigFrom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_to.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_to.go new file mode 100644 index 00000000000..91744fbb1e1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_ethereum_transaction_config_to.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// EthereumTransactionConfigTo - struct for EthereumTransactionConfigTo +type EthereumTransactionConfigTo struct { + String *string +} + +// stringAsEthereumTransactionConfigTo is a convenience function that returns string wrapped in EthereumTransactionConfigTo +func StringAsEthereumTransactionConfigTo(v *string) EthereumTransactionConfigTo { + return EthereumTransactionConfigTo{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *EthereumTransactionConfigTo) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(EthereumTransactionConfigTo)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(EthereumTransactionConfigTo)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src EthereumTransactionConfigTo) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *EthereumTransactionConfigTo) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableEthereumTransactionConfigTo struct { + value *EthereumTransactionConfigTo + isSet bool +} + +func (v NullableEthereumTransactionConfigTo) Get() *EthereumTransactionConfigTo { + return v.value +} + +func (v *NullableEthereumTransactionConfigTo) Set(val *EthereumTransactionConfigTo) { + v.value = val + v.isSet = true +} + +func (v NullableEthereumTransactionConfigTo) IsSet() bool { + return v.isSet +} + +func (v *NullableEthereumTransactionConfigTo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthereumTransactionConfigTo(val *EthereumTransactionConfigTo) *NullableEthereumTransactionConfigTo { + return &NullableEthereumTransactionConfigTo{value: val, isSet: true} +} + +func (v NullableEthereumTransactionConfigTo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthereumTransactionConfigTo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go new file mode 100644 index 00000000000..bdea8ab91f8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go @@ -0,0 +1,440 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeContractJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractJsonObjectV1Request{} + +// InvokeContractJsonObjectV1Request struct for InvokeContractJsonObjectV1Request +type InvokeContractJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + // Address of the solidity contract + ContractAddress string `json:"contractAddress"` + Value *EthereumTransactionConfigFrom `json:"value,omitempty"` + Gas *EthereumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *EthereumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` +} + +// NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON) *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + this.ContractAddress = contractAddress + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractJsonObjectV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetContractAddress returns the ContractAddress field value +func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetValue() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Value) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractJsonObjectV1Request) SetValue(v EthereumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGas() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Gas) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGas() bool { + if o != nil && !isNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractJsonObjectV1Request) SetGas(v EthereumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGasPrice() EthereumTransactionConfigFrom { + if o == nil || isNil(o.GasPrice) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !isNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given EthereumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v EthereumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetNonce() float32 { + if o == nil || isNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool) { + if o == nil || isNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasNonce() bool { + if o != nil && !isNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || isNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || isNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !isNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +func (o InvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + toSerialize["contractAddress"] = o.ContractAddress + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + if !isNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !isNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !isNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !isNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + return toSerialize, nil +} + +type NullableInvokeContractJsonObjectV1Request struct { + value *InvokeContractJsonObjectV1Request + isSet bool +} + +func (v NullableInvokeContractJsonObjectV1Request) Get() *InvokeContractJsonObjectV1Request { + return v.value +} + +func (v *NullableInvokeContractJsonObjectV1Request) Set(val *InvokeContractJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractJsonObjectV1Request(val *InvokeContractJsonObjectV1Request) *NullableInvokeContractJsonObjectV1Request { + return &NullableInvokeContractJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go new file mode 100644 index 00000000000..0a7011e6454 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Request{} + +// InvokeContractV1Request struct for InvokeContractV1Request +type InvokeContractV1Request struct { + // The contract name to find it in the keychain plugin + ContractName string `json:"contractName"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + Value *EthereumTransactionConfigFrom `json:"value,omitempty"` + Gas *EthereumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *EthereumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` +} + +// NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string) *InvokeContractV1Request { + this := InvokeContractV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.KeychainId = keychainId + return &this +} + +// NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request { + this := InvokeContractV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *InvokeContractV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *InvokeContractV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetValue() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Value) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetValueOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractV1Request) SetValue(v EthereumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGas() EthereumTransactionConfigFrom { + if o == nil || isNil(o.Gas) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGas() bool { + if o != nil && !isNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given EthereumTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractV1Request) SetGas(v EthereumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGasPrice() EthereumTransactionConfigFrom { + if o == nil || isNil(o.GasPrice) { + var ret EthereumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasPriceOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil || isNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGasPrice() bool { + if o != nil && !isNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given EthereumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractV1Request) SetGasPrice(v EthereumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetNonce() float32 { + if o == nil || isNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool) { + if o == nil || isNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasNonce() bool { + if o != nil && !isNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetTimeoutMs() float32 { + if o == nil || isNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || isNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasTimeoutMs() bool { + if o != nil && !isNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetKeychainId returns the KeychainId field value +func (o *InvokeContractV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *InvokeContractV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o InvokeContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + if !isNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !isNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !isNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !isNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableInvokeContractV1Request struct { + value *InvokeContractV1Request + isSet bool +} + +func (v NullableInvokeContractV1Request) Get() *InvokeContractV1Request { + return v.value +} + +func (v *NullableInvokeContractV1Request) Set(val *InvokeContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Request(val *InvokeContractV1Request) *NullableInvokeContractV1Request { + return &NullableInvokeContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..97d159b8a4d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || isNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || isNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !isNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || isNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && isNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go new file mode 100644 index 00000000000..20fcd9d64ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go @@ -0,0 +1,275 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthContractV1Request{} + +// InvokeRawWeb3EthContractV1Request struct for InvokeRawWeb3EthContractV1Request +type InvokeRawWeb3EthContractV1Request struct { + // The application binary interface of the solidity contract + Abi []interface{} `json:"abi"` + // Deployed solidity contract address + Address string `json:"address"` + InvocationType EthContractInvocationWeb3Method `json:"invocationType"` + // The list of arguments for contract invocation method (send, call, etc...) + InvocationParams map[string]interface{} `json:"invocationParams,omitempty"` + // Method of deployed solidity contract to execute + ContractMethod string `json:"contractMethod"` + // The list of arguments for deployed solidity contract method + ContractMethodArgs []interface{} `json:"contractMethodArgs,omitempty"` +} + +// NewInvokeRawWeb3EthContractV1Request instantiates a new InvokeRawWeb3EthContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthContractV1Request(abi []interface{}, address string, invocationType EthContractInvocationWeb3Method, contractMethod string) *InvokeRawWeb3EthContractV1Request { + this := InvokeRawWeb3EthContractV1Request{} + this.Abi = abi + this.Address = address + this.InvocationType = invocationType + this.ContractMethod = contractMethod + return &this +} + +// NewInvokeRawWeb3EthContractV1RequestWithDefaults instantiates a new InvokeRawWeb3EthContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthContractV1RequestWithDefaults() *InvokeRawWeb3EthContractV1Request { + this := InvokeRawWeb3EthContractV1Request{} + return &this +} + +// GetAbi returns the Abi field value +func (o *InvokeRawWeb3EthContractV1Request) GetAbi() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Abi +} + +// GetAbiOk returns a tuple with the Abi field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetAbiOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Abi, true +} + +// SetAbi sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetAbi(v []interface{}) { + o.Abi = v +} + +// GetAddress returns the Address field value +func (o *InvokeRawWeb3EthContractV1Request) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetAddress(v string) { + o.Address = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationType() EthContractInvocationWeb3Method { + if o == nil { + var ret EthContractInvocationWeb3Method + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationTypeOk() (*EthContractInvocationWeb3Method, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetInvocationType(v EthContractInvocationWeb3Method) { + o.InvocationType = v +} + +// GetInvocationParams returns the InvocationParams field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParams() map[string]interface{} { + if o == nil || isNil(o.InvocationParams) { + var ret map[string]interface{} + return ret + } + return o.InvocationParams +} + +// GetInvocationParamsOk returns a tuple with the InvocationParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParamsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.InvocationParams) { + return map[string]interface{}{}, false + } + return o.InvocationParams, true +} + +// HasInvocationParams returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Request) HasInvocationParams() bool { + if o != nil && !isNil(o.InvocationParams) { + return true + } + + return false +} + +// SetInvocationParams gets a reference to the given map[string]interface{} and assigns it to the InvocationParams field. +func (o *InvokeRawWeb3EthContractV1Request) SetInvocationParams(v map[string]interface{}) { + o.InvocationParams = v +} + +// GetContractMethod returns the ContractMethod field value +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethod() string { + if o == nil { + var ret string + return ret + } + + return o.ContractMethod +} + +// GetContractMethodOk returns a tuple with the ContractMethod field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractMethod, true +} + +// SetContractMethod sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetContractMethod(v string) { + o.ContractMethod = v +} + +// GetContractMethodArgs returns the ContractMethodArgs field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgs() []interface{} { + if o == nil || isNil(o.ContractMethodArgs) { + var ret []interface{} + return ret + } + return o.ContractMethodArgs +} + +// GetContractMethodArgsOk returns a tuple with the ContractMethodArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgsOk() ([]interface{}, bool) { + if o == nil || isNil(o.ContractMethodArgs) { + return nil, false + } + return o.ContractMethodArgs, true +} + +// HasContractMethodArgs returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Request) HasContractMethodArgs() bool { + if o != nil && !isNil(o.ContractMethodArgs) { + return true + } + + return false +} + +// SetContractMethodArgs gets a reference to the given []interface{} and assigns it to the ContractMethodArgs field. +func (o *InvokeRawWeb3EthContractV1Request) SetContractMethodArgs(v []interface{}) { + o.ContractMethodArgs = v +} + +func (o InvokeRawWeb3EthContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["abi"] = o.Abi + toSerialize["address"] = o.Address + toSerialize["invocationType"] = o.InvocationType + if !isNil(o.InvocationParams) { + toSerialize["invocationParams"] = o.InvocationParams + } + toSerialize["contractMethod"] = o.ContractMethod + if !isNil(o.ContractMethodArgs) { + toSerialize["contractMethodArgs"] = o.ContractMethodArgs + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthContractV1Request struct { + value *InvokeRawWeb3EthContractV1Request + isSet bool +} + +func (v NullableInvokeRawWeb3EthContractV1Request) Get() *InvokeRawWeb3EthContractV1Request { + return v.value +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) Set(val *InvokeRawWeb3EthContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthContractV1Request(val *InvokeRawWeb3EthContractV1Request) *NullableInvokeRawWeb3EthContractV1Request { + return &NullableInvokeRawWeb3EthContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go new file mode 100644 index 00000000000..cc3ba2144b5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go @@ -0,0 +1,193 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthContractV1Response{} + +// InvokeRawWeb3EthContractV1Response struct for InvokeRawWeb3EthContractV1Response +type InvokeRawWeb3EthContractV1Response struct { + // Status code of the operation + Status float32 `json:"status"` + // Output of contract invocation method + Data interface{} `json:"data,omitempty"` + // Error details + ErrorDetail *string `json:"errorDetail,omitempty"` +} + +// NewInvokeRawWeb3EthContractV1Response instantiates a new InvokeRawWeb3EthContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthContractV1Response(status float32) *InvokeRawWeb3EthContractV1Response { + this := InvokeRawWeb3EthContractV1Response{} + this.Status = status + return &this +} + +// NewInvokeRawWeb3EthContractV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthContractV1ResponseWithDefaults() *InvokeRawWeb3EthContractV1Response { + this := InvokeRawWeb3EthContractV1Response{} + return &this +} + +// GetStatus returns the Status field value +func (o *InvokeRawWeb3EthContractV1Response) GetStatus() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Response) GetStatusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *InvokeRawWeb3EthContractV1Response) SetStatus(v float32) { + o.Status = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeRawWeb3EthContractV1Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeRawWeb3EthContractV1Response) GetDataOk() (*interface{}, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Response) HasData() bool { + if o != nil && isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *InvokeRawWeb3EthContractV1Response) SetData(v interface{}) { + o.Data = v +} + +// GetErrorDetail returns the ErrorDetail field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetail() string { + if o == nil || isNil(o.ErrorDetail) { + var ret string + return ret + } + return *o.ErrorDetail +} + +// GetErrorDetailOk returns a tuple with the ErrorDetail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetailOk() (*string, bool) { + if o == nil || isNil(o.ErrorDetail) { + return nil, false + } + return o.ErrorDetail, true +} + +// HasErrorDetail returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Response) HasErrorDetail() bool { + if o != nil && !isNil(o.ErrorDetail) { + return true + } + + return false +} + +// SetErrorDetail gets a reference to the given string and assigns it to the ErrorDetail field. +func (o *InvokeRawWeb3EthContractV1Response) SetErrorDetail(v string) { + o.ErrorDetail = &v +} + +func (o InvokeRawWeb3EthContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !isNil(o.ErrorDetail) { + toSerialize["errorDetail"] = o.ErrorDetail + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthContractV1Response struct { + value *InvokeRawWeb3EthContractV1Response + isSet bool +} + +func (v NullableInvokeRawWeb3EthContractV1Response) Get() *InvokeRawWeb3EthContractV1Response { + return v.value +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) Set(val *InvokeRawWeb3EthContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthContractV1Response(val *InvokeRawWeb3EthContractV1Response) *NullableInvokeRawWeb3EthContractV1Response { + return &NullableInvokeRawWeb3EthContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go new file mode 100644 index 00000000000..95761a17738 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go @@ -0,0 +1,155 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthMethodV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthMethodV1Request{} + +// InvokeRawWeb3EthMethodV1Request struct for InvokeRawWeb3EthMethodV1Request +type InvokeRawWeb3EthMethodV1Request struct { + // The name of the web3.eth method to invoke + MethodName string `json:"methodName"` + // The list of arguments to pass to web3.eth method specified in methodName + Params []interface{} `json:"params,omitempty"` +} + +// NewInvokeRawWeb3EthMethodV1Request instantiates a new InvokeRawWeb3EthMethodV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthMethodV1Request(methodName string) *InvokeRawWeb3EthMethodV1Request { + this := InvokeRawWeb3EthMethodV1Request{} + this.MethodName = methodName + return &this +} + +// NewInvokeRawWeb3EthMethodV1RequestWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthMethodV1RequestWithDefaults() *InvokeRawWeb3EthMethodV1Request { + this := InvokeRawWeb3EthMethodV1Request{} + return &this +} + +// GetMethodName returns the MethodName field value +func (o *InvokeRawWeb3EthMethodV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeRawWeb3EthMethodV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthMethodV1Request) GetParams() []interface{} { + if o == nil || isNil(o.Params) { + var ret []interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil || isNil(o.Params) { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Request) HasParams() bool { + if o != nil && !isNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given []interface{} and assigns it to the Params field. +func (o *InvokeRawWeb3EthMethodV1Request) SetParams(v []interface{}) { + o.Params = v +} + +func (o InvokeRawWeb3EthMethodV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthMethodV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["methodName"] = o.MethodName + if !isNil(o.Params) { + toSerialize["params"] = o.Params + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthMethodV1Request struct { + value *InvokeRawWeb3EthMethodV1Request + isSet bool +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) Get() *InvokeRawWeb3EthMethodV1Request { + return v.value +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) Set(val *InvokeRawWeb3EthMethodV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthMethodV1Request(val *InvokeRawWeb3EthMethodV1Request) *NullableInvokeRawWeb3EthMethodV1Request { + return &NullableInvokeRawWeb3EthMethodV1Request{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go new file mode 100644 index 00000000000..4f450f3ec0b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go @@ -0,0 +1,193 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthMethodV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthMethodV1Response{} + +// InvokeRawWeb3EthMethodV1Response struct for InvokeRawWeb3EthMethodV1Response +type InvokeRawWeb3EthMethodV1Response struct { + // Status code of the operation + Status float32 `json:"status"` + // Output of requested web3.eth method + Data interface{} `json:"data,omitempty"` + // Error details + ErrorDetail *string `json:"errorDetail,omitempty"` +} + +// NewInvokeRawWeb3EthMethodV1Response instantiates a new InvokeRawWeb3EthMethodV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthMethodV1Response(status float32) *InvokeRawWeb3EthMethodV1Response { + this := InvokeRawWeb3EthMethodV1Response{} + this.Status = status + return &this +} + +// NewInvokeRawWeb3EthMethodV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthMethodV1ResponseWithDefaults() *InvokeRawWeb3EthMethodV1Response { + this := InvokeRawWeb3EthMethodV1Response{} + return &this +} + +// GetStatus returns the Status field value +func (o *InvokeRawWeb3EthMethodV1Response) GetStatus() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Response) GetStatusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *InvokeRawWeb3EthMethodV1Response) SetStatus(v float32) { + o.Status = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeRawWeb3EthMethodV1Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeRawWeb3EthMethodV1Response) GetDataOk() (*interface{}, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Response) HasData() bool { + if o != nil && isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *InvokeRawWeb3EthMethodV1Response) SetData(v interface{}) { + o.Data = v +} + +// GetErrorDetail returns the ErrorDetail field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetail() string { + if o == nil || isNil(o.ErrorDetail) { + var ret string + return ret + } + return *o.ErrorDetail +} + +// GetErrorDetailOk returns a tuple with the ErrorDetail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetailOk() (*string, bool) { + if o == nil || isNil(o.ErrorDetail) { + return nil, false + } + return o.ErrorDetail, true +} + +// HasErrorDetail returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Response) HasErrorDetail() bool { + if o != nil && !isNil(o.ErrorDetail) { + return true + } + + return false +} + +// SetErrorDetail gets a reference to the given string and assigns it to the ErrorDetail field. +func (o *InvokeRawWeb3EthMethodV1Response) SetErrorDetail(v string) { + o.ErrorDetail = &v +} + +func (o InvokeRawWeb3EthMethodV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthMethodV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !isNil(o.ErrorDetail) { + toSerialize["errorDetail"] = o.ErrorDetail + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthMethodV1Response struct { + value *InvokeRawWeb3EthMethodV1Response + isSet bool +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) Get() *InvokeRawWeb3EthMethodV1Response { + return v.value +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) Set(val *InvokeRawWeb3EthMethodV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthMethodV1Response(val *InvokeRawWeb3EthMethodV1Response) *NullableInvokeRawWeb3EthMethodV1Response { + return &NullableInvokeRawWeb3EthMethodV1Response{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go new file mode 100644 index 00000000000..52393c691f0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go @@ -0,0 +1,185 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the RunTransactionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionRequest{} + +// RunTransactionRequest struct for RunTransactionRequest +type RunTransactionRequest struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + TransactionConfig EthereumTransactionConfig `json:"transactionConfig"` + // The amount of milliseconds to wait for a transaction receipt with thehash of the transaction(which indicates successful execution) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` +} + +// NewRunTransactionRequest instantiates a new RunTransactionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig EthereumTransactionConfig) *RunTransactionRequest { + this := RunTransactionRequest{} + this.Web3SigningCredential = web3SigningCredential + this.TransactionConfig = transactionConfig + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionRequestWithDefaults() *RunTransactionRequest { + this := RunTransactionRequest{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetTransactionConfig returns the TransactionConfig field value +func (o *RunTransactionRequest) GetTransactionConfig() EthereumTransactionConfig { + if o == nil { + var ret EthereumTransactionConfig + return ret + } + + return o.TransactionConfig +} + +// GetTransactionConfigOk returns a tuple with the TransactionConfig field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetTransactionConfigOk() (*EthereumTransactionConfig, bool) { + if o == nil { + return nil, false + } + return &o.TransactionConfig, true +} + +// SetTransactionConfig sets field value +func (o *RunTransactionRequest) SetTransactionConfig(v EthereumTransactionConfig) { + o.TransactionConfig = v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetTimeoutMs() float32 { + if o == nil || isNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetTimeoutMsOk() (*float32, bool) { + if o == nil || isNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasTimeoutMs() bool { + if o != nil && !isNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *RunTransactionRequest) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +func (o RunTransactionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["transactionConfig"] = o.TransactionConfig + if !isNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + return toSerialize, nil +} + +type NullableRunTransactionRequest struct { + value *RunTransactionRequest + isSet bool +} + +func (v NullableRunTransactionRequest) Get() *RunTransactionRequest { + return v.value +} + +func (v *NullableRunTransactionRequest) Set(val *RunTransactionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequest(val *RunTransactionRequest) *NullableRunTransactionRequest { + return &NullableRunTransactionRequest{value: val, isSet: true} +} + +func (v NullableRunTransactionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..e8a3b2cacef --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go new file mode 100644 index 00000000000..ed43acf7aea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifact{} + +// SolidityContractJsonArtifact struct for SolidityContractJsonArtifact +type SolidityContractJsonArtifact struct { + ContractName string `json:"contractName"` + Metadata *string `json:"metadata,omitempty"` + Bytecode *string `json:"bytecode,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler *SolidityContractJsonArtifactCompiler `json:"compiler,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates *SolidityContractJsonArtifactGasEstimates `json:"gasEstimates,omitempty"` +} + +// NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifact(contractName string) *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + this.ContractName = contractName + return &this +} + +// NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *SolidityContractJsonArtifact) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *SolidityContractJsonArtifact) SetContractName(v string) { + o.ContractName = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetMetadata() string { + if o == nil || isNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *SolidityContractJsonArtifact) SetMetadata(v string) { + o.Metadata = &v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetBytecode() string { + if o == nil || isNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool) { + if o == nil || isNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasBytecode() bool { + if o != nil && !isNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *SolidityContractJsonArtifact) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string { + if o == nil || isNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || isNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool { + if o != nil && !isNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourceMap() string { + if o == nil || isNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool) { + if o == nil || isNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourceMap() bool { + if o != nil && !isNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *SolidityContractJsonArtifact) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string { + if o == nil || isNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || isNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool { + if o != nil && !isNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourcePath() string { + if o == nil || isNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool) { + if o == nil || isNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourcePath() bool { + if o != nil && !isNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *SolidityContractJsonArtifact) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler { + if o == nil || isNil(o.Compiler) { + var ret SolidityContractJsonArtifactCompiler + return ret + } + return *o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool) { + if o == nil || isNil(o.Compiler) { + return nil, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasCompiler() bool { + if o != nil && !isNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given SolidityContractJsonArtifactCompiler and assigns it to the Compiler field. +func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler) { + o.Compiler = &v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{} { + if o == nil || isNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool { + if o != nil && !isNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates { + if o == nil || isNil(o.GasEstimates) { + var ret SolidityContractJsonArtifactGasEstimates + return ret + } + return *o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool) { + if o == nil || isNil(o.GasEstimates) { + return nil, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasGasEstimates() bool { + if o != nil && !isNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given SolidityContractJsonArtifactGasEstimates and assigns it to the GasEstimates field. +func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates) { + o.GasEstimates = &v +} + +func (o SolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !isNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !isNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + if !isNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !isNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !isNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !isNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !isNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !isNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !isNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifact struct { + value *SolidityContractJsonArtifact + isSet bool +} + +func (v NullableSolidityContractJsonArtifact) Get() *SolidityContractJsonArtifact { + return v.value +} + +func (v *NullableSolidityContractJsonArtifact) Set(val *SolidityContractJsonArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifact(val *SolidityContractJsonArtifact) *NullableSolidityContractJsonArtifact { + return &NullableSolidityContractJsonArtifact{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go new file mode 100644 index 00000000000..9e26967f79d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go @@ -0,0 +1,188 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactCompiler type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactCompiler{} + +// SolidityContractJsonArtifactCompiler struct for SolidityContractJsonArtifactCompiler +type SolidityContractJsonArtifactCompiler struct { + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SolidityContractJsonArtifactCompiler SolidityContractJsonArtifactCompiler + +// NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SolidityContractJsonArtifactCompiler) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetVersion() string { + if o == nil || isNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string) { + o.Version = &v +} + +func (o SolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactCompiler) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["name"] = o.Name + } + if !isNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SolidityContractJsonArtifactCompiler) UnmarshalJSON(bytes []byte) (err error) { + varSolidityContractJsonArtifactCompiler := _SolidityContractJsonArtifactCompiler{} + + if err = json.Unmarshal(bytes, &varSolidityContractJsonArtifactCompiler); err == nil { + *o = SolidityContractJsonArtifactCompiler(varSolidityContractJsonArtifactCompiler) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSolidityContractJsonArtifactCompiler struct { + value *SolidityContractJsonArtifactCompiler + isSet bool +} + +func (v NullableSolidityContractJsonArtifactCompiler) Get() *SolidityContractJsonArtifactCompiler { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Set(val *SolidityContractJsonArtifactCompiler) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactCompiler) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactCompiler(val *SolidityContractJsonArtifactCompiler) *NullableSolidityContractJsonArtifactCompiler { + return &NullableSolidityContractJsonArtifactCompiler{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactCompiler) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go new file mode 100644 index 00000000000..20f3af41c27 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimates{} + +// SolidityContractJsonArtifactGasEstimates struct for SolidityContractJsonArtifactGasEstimates +type SolidityContractJsonArtifactGasEstimates struct { + Creation *SolidityContractJsonArtifactGasEstimatesCreation `json:"creation,omitempty"` + External map[string]interface{} `json:"external,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// GetCreation returns the Creation field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation { + if o == nil || isNil(o.Creation) { + var ret SolidityContractJsonArtifactGasEstimatesCreation + return ret + } + return *o.Creation +} + +// GetCreationOk returns a tuple with the Creation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool) { + if o == nil || isNil(o.Creation) { + return nil, false + } + return o.Creation, true +} + +// HasCreation returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool { + if o != nil && !isNil(o.Creation) { + return true + } + + return false +} + +// SetCreation gets a reference to the given SolidityContractJsonArtifactGasEstimatesCreation and assigns it to the Creation field. +func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation) { + o.Creation = &v +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{} { + if o == nil || isNil(o.External) { + var ret map[string]interface{} + return ret + } + return o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.External) { + return map[string]interface{}{}, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool { + if o != nil && !isNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given map[string]interface{} and assigns it to the External field. +func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{}) { + o.External = v +} + +func (o SolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Creation) { + toSerialize["creation"] = o.Creation + } + if !isNil(o.External) { + toSerialize["external"] = o.External + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimates struct { + value *SolidityContractJsonArtifactGasEstimates + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) Get() *SolidityContractJsonArtifactGasEstimates { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Set(val *SolidityContractJsonArtifactGasEstimates) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimates(val *SolidityContractJsonArtifactGasEstimates) *NullableSolidityContractJsonArtifactGasEstimates { + return &NullableSolidityContractJsonArtifactGasEstimates{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go new file mode 100644 index 00000000000..74921536f47 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimatesCreation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimatesCreation{} + +// SolidityContractJsonArtifactGasEstimatesCreation struct for SolidityContractJsonArtifactGasEstimatesCreation +type SolidityContractJsonArtifactGasEstimatesCreation struct { + CodeDepositCost *string `json:"codeDepositCost,omitempty"` + ExecutionCost *string `json:"executionCost,omitempty"` + TotalCost *string `json:"totalCost,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// GetCodeDepositCost returns the CodeDepositCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string { + if o == nil || isNil(o.CodeDepositCost) { + var ret string + return ret + } + return *o.CodeDepositCost +} + +// GetCodeDepositCostOk returns a tuple with the CodeDepositCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool) { + if o == nil || isNil(o.CodeDepositCost) { + return nil, false + } + return o.CodeDepositCost, true +} + +// HasCodeDepositCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool { + if o != nil && !isNil(o.CodeDepositCost) { + return true + } + + return false +} + +// SetCodeDepositCost gets a reference to the given string and assigns it to the CodeDepositCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string) { + o.CodeDepositCost = &v +} + +// GetExecutionCost returns the ExecutionCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string { + if o == nil || isNil(o.ExecutionCost) { + var ret string + return ret + } + return *o.ExecutionCost +} + +// GetExecutionCostOk returns a tuple with the ExecutionCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool) { + if o == nil || isNil(o.ExecutionCost) { + return nil, false + } + return o.ExecutionCost, true +} + +// HasExecutionCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool { + if o != nil && !isNil(o.ExecutionCost) { + return true + } + + return false +} + +// SetExecutionCost gets a reference to the given string and assigns it to the ExecutionCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string) { + o.ExecutionCost = &v +} + +// GetTotalCost returns the TotalCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string { + if o == nil || isNil(o.TotalCost) { + var ret string + return ret + } + return *o.TotalCost +} + +// GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool) { + if o == nil || isNil(o.TotalCost) { + return nil, false + } + return o.TotalCost, true +} + +// HasTotalCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool { + if o != nil && !isNil(o.TotalCost) { + return true + } + + return false +} + +// SetTotalCost gets a reference to the given string and assigns it to the TotalCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string) { + o.TotalCost = &v +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CodeDepositCost) { + toSerialize["codeDepositCost"] = o.CodeDepositCost + } + if !isNil(o.ExecutionCost) { + toSerialize["executionCost"] = o.ExecutionCost + } + if !isNil(o.TotalCost) { + toSerialize["totalCost"] = o.TotalCost + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimatesCreation struct { + value *SolidityContractJsonArtifactGasEstimatesCreation + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) Get() *SolidityContractJsonArtifactGasEstimatesCreation { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Set(val *SolidityContractJsonArtifactGasEstimatesCreation) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimatesCreation(val *SolidityContractJsonArtifactGasEstimatesCreation) *NullableSolidityContractJsonArtifactGasEstimatesCreation { + return &NullableSolidityContractJsonArtifactGasEstimatesCreation{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..5392106bd94 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 the model 'WatchBlocksV1' +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.ethereum.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go new file mode 100644 index 00000000000..d0a9462aa33 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go @@ -0,0 +1,666 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1BlockData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1BlockData{} + +// WatchBlocksV1BlockData struct for WatchBlocksV1BlockData +type WatchBlocksV1BlockData struct { + Number float32 `json:"number"` + Hash string `json:"hash"` + ParentHash string `json:"parentHash"` + Nonce string `json:"nonce"` + Sha3Uncles string `json:"sha3Uncles"` + LogsBloom string `json:"logsBloom"` + TransactionsRoot *string `json:"transactionsRoot,omitempty"` + StateRoot string `json:"stateRoot"` + ReceiptsRoot *string `json:"receiptsRoot,omitempty"` + Difficulty *string `json:"difficulty,omitempty"` + MixHash *string `json:"mixHash,omitempty"` + Miner string `json:"miner"` + ExtraData string `json:"extraData"` + GasLimit int32 `json:"gasLimit"` + GasUsed int32 `json:"gasUsed"` + Timestamp EthereumTransactionConfigFrom `json:"timestamp"` + Size float32 `json:"size"` + TotalDifficulty string `json:"totalDifficulty"` + Uncles []string `json:"uncles"` + Transactions []Web3Transaction `json:"transactions"` +} + +// NewWatchBlocksV1BlockData instantiates a new WatchBlocksV1BlockData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1BlockData(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp EthereumTransactionConfigFrom, size float32, totalDifficulty string, uncles []string, transactions []Web3Transaction) *WatchBlocksV1BlockData { + this := WatchBlocksV1BlockData{} + this.Number = number + this.Hash = hash + this.ParentHash = parentHash + this.Nonce = nonce + this.Sha3Uncles = sha3Uncles + this.LogsBloom = logsBloom + this.StateRoot = stateRoot + this.Miner = miner + this.ExtraData = extraData + this.GasLimit = gasLimit + this.GasUsed = gasUsed + this.Timestamp = timestamp + this.Size = size + this.TotalDifficulty = totalDifficulty + this.Uncles = uncles + this.Transactions = transactions + return &this +} + +// NewWatchBlocksV1BlockDataWithDefaults instantiates a new WatchBlocksV1BlockData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1BlockDataWithDefaults() *WatchBlocksV1BlockData { + this := WatchBlocksV1BlockData{} + return &this +} + +// GetNumber returns the Number field value +func (o *WatchBlocksV1BlockData) GetNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Number, true +} + +// SetNumber sets field value +func (o *WatchBlocksV1BlockData) SetNumber(v float32) { + o.Number = v +} + +// GetHash returns the Hash field value +func (o *WatchBlocksV1BlockData) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *WatchBlocksV1BlockData) SetHash(v string) { + o.Hash = v +} + +// GetParentHash returns the ParentHash field value +func (o *WatchBlocksV1BlockData) GetParentHash() string { + if o == nil { + var ret string + return ret + } + + return o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetParentHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParentHash, true +} + +// SetParentHash sets field value +func (o *WatchBlocksV1BlockData) SetParentHash(v string) { + o.ParentHash = v +} + +// GetNonce returns the Nonce field value +func (o *WatchBlocksV1BlockData) GetNonce() string { + if o == nil { + var ret string + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetNonceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *WatchBlocksV1BlockData) SetNonce(v string) { + o.Nonce = v +} + +// GetSha3Uncles returns the Sha3Uncles field value +func (o *WatchBlocksV1BlockData) GetSha3Uncles() string { + if o == nil { + var ret string + return ret + } + + return o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetSha3UnclesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha3Uncles, true +} + +// SetSha3Uncles sets field value +func (o *WatchBlocksV1BlockData) SetSha3Uncles(v string) { + o.Sha3Uncles = v +} + +// GetLogsBloom returns the LogsBloom field value +func (o *WatchBlocksV1BlockData) GetLogsBloom() string { + if o == nil { + var ret string + return ret + } + + return o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetLogsBloomOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsBloom, true +} + +// SetLogsBloom sets field value +func (o *WatchBlocksV1BlockData) SetLogsBloom(v string) { + o.LogsBloom = v +} + +// GetTransactionsRoot returns the TransactionsRoot field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetTransactionsRoot() string { + if o == nil || isNil(o.TransactionsRoot) { + var ret string + return ret + } + return *o.TransactionsRoot +} + +// GetTransactionsRootOk returns a tuple with the TransactionsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTransactionsRootOk() (*string, bool) { + if o == nil || isNil(o.TransactionsRoot) { + return nil, false + } + return o.TransactionsRoot, true +} + +// HasTransactionsRoot returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasTransactionsRoot() bool { + if o != nil && !isNil(o.TransactionsRoot) { + return true + } + + return false +} + +// SetTransactionsRoot gets a reference to the given string and assigns it to the TransactionsRoot field. +func (o *WatchBlocksV1BlockData) SetTransactionsRoot(v string) { + o.TransactionsRoot = &v +} + +// GetStateRoot returns the StateRoot field value +func (o *WatchBlocksV1BlockData) GetStateRoot() string { + if o == nil { + var ret string + return ret + } + + return o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetStateRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateRoot, true +} + +// SetStateRoot sets field value +func (o *WatchBlocksV1BlockData) SetStateRoot(v string) { + o.StateRoot = v +} + +// GetReceiptsRoot returns the ReceiptsRoot field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetReceiptsRoot() string { + if o == nil || isNil(o.ReceiptsRoot) { + var ret string + return ret + } + return *o.ReceiptsRoot +} + +// GetReceiptsRootOk returns a tuple with the ReceiptsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetReceiptsRootOk() (*string, bool) { + if o == nil || isNil(o.ReceiptsRoot) { + return nil, false + } + return o.ReceiptsRoot, true +} + +// HasReceiptsRoot returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasReceiptsRoot() bool { + if o != nil && !isNil(o.ReceiptsRoot) { + return true + } + + return false +} + +// SetReceiptsRoot gets a reference to the given string and assigns it to the ReceiptsRoot field. +func (o *WatchBlocksV1BlockData) SetReceiptsRoot(v string) { + o.ReceiptsRoot = &v +} + +// GetDifficulty returns the Difficulty field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetDifficulty() string { + if o == nil || isNil(o.Difficulty) { + var ret string + return ret + } + return *o.Difficulty +} + +// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetDifficultyOk() (*string, bool) { + if o == nil || isNil(o.Difficulty) { + return nil, false + } + return o.Difficulty, true +} + +// HasDifficulty returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasDifficulty() bool { + if o != nil && !isNil(o.Difficulty) { + return true + } + + return false +} + +// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field. +func (o *WatchBlocksV1BlockData) SetDifficulty(v string) { + o.Difficulty = &v +} + +// GetMixHash returns the MixHash field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetMixHash() string { + if o == nil || isNil(o.MixHash) { + var ret string + return ret + } + return *o.MixHash +} + +// GetMixHashOk returns a tuple with the MixHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetMixHashOk() (*string, bool) { + if o == nil || isNil(o.MixHash) { + return nil, false + } + return o.MixHash, true +} + +// HasMixHash returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasMixHash() bool { + if o != nil && !isNil(o.MixHash) { + return true + } + + return false +} + +// SetMixHash gets a reference to the given string and assigns it to the MixHash field. +func (o *WatchBlocksV1BlockData) SetMixHash(v string) { + o.MixHash = &v +} + +// GetMiner returns the Miner field value +func (o *WatchBlocksV1BlockData) GetMiner() string { + if o == nil { + var ret string + return ret + } + + return o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetMinerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Miner, true +} + +// SetMiner sets field value +func (o *WatchBlocksV1BlockData) SetMiner(v string) { + o.Miner = v +} + +// GetExtraData returns the ExtraData field value +func (o *WatchBlocksV1BlockData) GetExtraData() string { + if o == nil { + var ret string + return ret + } + + return o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetExtraDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExtraData, true +} + +// SetExtraData sets field value +func (o *WatchBlocksV1BlockData) SetExtraData(v string) { + o.ExtraData = v +} + +// GetGasLimit returns the GasLimit field value +func (o *WatchBlocksV1BlockData) GetGasLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetGasLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasLimit, true +} + +// SetGasLimit sets field value +func (o *WatchBlocksV1BlockData) SetGasLimit(v int32) { + o.GasLimit = v +} + +// GetGasUsed returns the GasUsed field value +func (o *WatchBlocksV1BlockData) GetGasUsed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetGasUsedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *WatchBlocksV1BlockData) SetGasUsed(v int32) { + o.GasUsed = v +} + +// GetTimestamp returns the Timestamp field value +func (o *WatchBlocksV1BlockData) GetTimestamp() EthereumTransactionConfigFrom { + if o == nil { + var ret EthereumTransactionConfigFrom + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTimestampOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *WatchBlocksV1BlockData) SetTimestamp(v EthereumTransactionConfigFrom) { + o.Timestamp = v +} + +// GetSize returns the Size field value +func (o *WatchBlocksV1BlockData) GetSize() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetSizeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *WatchBlocksV1BlockData) SetSize(v float32) { + o.Size = v +} + +// GetTotalDifficulty returns the TotalDifficulty field value +func (o *WatchBlocksV1BlockData) GetTotalDifficulty() string { + if o == nil { + var ret string + return ret + } + + return o.TotalDifficulty +} + +// GetTotalDifficultyOk returns a tuple with the TotalDifficulty field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTotalDifficultyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TotalDifficulty, true +} + +// SetTotalDifficulty sets field value +func (o *WatchBlocksV1BlockData) SetTotalDifficulty(v string) { + o.TotalDifficulty = v +} + +// GetUncles returns the Uncles field value +func (o *WatchBlocksV1BlockData) GetUncles() []string { + if o == nil { + var ret []string + return ret + } + + return o.Uncles +} + +// GetUnclesOk returns a tuple with the Uncles field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetUnclesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Uncles, true +} + +// SetUncles sets field value +func (o *WatchBlocksV1BlockData) SetUncles(v []string) { + o.Uncles = v +} + +// GetTransactions returns the Transactions field value +func (o *WatchBlocksV1BlockData) GetTransactions() []Web3Transaction { + if o == nil { + var ret []Web3Transaction + return ret + } + + return o.Transactions +} + +// GetTransactionsOk returns a tuple with the Transactions field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTransactionsOk() ([]Web3Transaction, bool) { + if o == nil { + return nil, false + } + return o.Transactions, true +} + +// SetTransactions sets field value +func (o *WatchBlocksV1BlockData) SetTransactions(v []Web3Transaction) { + o.Transactions = v +} + +func (o WatchBlocksV1BlockData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1BlockData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["number"] = o.Number + toSerialize["hash"] = o.Hash + toSerialize["parentHash"] = o.ParentHash + toSerialize["nonce"] = o.Nonce + toSerialize["sha3Uncles"] = o.Sha3Uncles + toSerialize["logsBloom"] = o.LogsBloom + if !isNil(o.TransactionsRoot) { + toSerialize["transactionsRoot"] = o.TransactionsRoot + } + toSerialize["stateRoot"] = o.StateRoot + if !isNil(o.ReceiptsRoot) { + toSerialize["receiptsRoot"] = o.ReceiptsRoot + } + if !isNil(o.Difficulty) { + toSerialize["difficulty"] = o.Difficulty + } + if !isNil(o.MixHash) { + toSerialize["mixHash"] = o.MixHash + } + toSerialize["miner"] = o.Miner + toSerialize["extraData"] = o.ExtraData + toSerialize["gasLimit"] = o.GasLimit + toSerialize["gasUsed"] = o.GasUsed + toSerialize["timestamp"] = o.Timestamp + toSerialize["size"] = o.Size + toSerialize["totalDifficulty"] = o.TotalDifficulty + toSerialize["uncles"] = o.Uncles + toSerialize["transactions"] = o.Transactions + return toSerialize, nil +} + +type NullableWatchBlocksV1BlockData struct { + value *WatchBlocksV1BlockData + isSet bool +} + +func (v NullableWatchBlocksV1BlockData) Get() *WatchBlocksV1BlockData { + return v.value +} + +func (v *NullableWatchBlocksV1BlockData) Set(val *WatchBlocksV1BlockData) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1BlockData) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1BlockData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1BlockData(val *WatchBlocksV1BlockData) *NullableWatchBlocksV1BlockData { + return &NullableWatchBlocksV1BlockData{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1BlockData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1BlockData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go new file mode 100644 index 00000000000..b9536fd1708 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1Options type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1Options{} + +// WatchBlocksV1Options struct for WatchBlocksV1Options +type WatchBlocksV1Options struct { + GetBlockData *bool `json:"getBlockData,omitempty"` +} + +// NewWatchBlocksV1Options instantiates a new WatchBlocksV1Options object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1Options() *WatchBlocksV1Options { + this := WatchBlocksV1Options{} + return &this +} + +// NewWatchBlocksV1OptionsWithDefaults instantiates a new WatchBlocksV1Options object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1OptionsWithDefaults() *WatchBlocksV1Options { + this := WatchBlocksV1Options{} + return &this +} + +// GetGetBlockData returns the GetBlockData field value if set, zero value otherwise. +func (o *WatchBlocksV1Options) GetGetBlockData() bool { + if o == nil || isNil(o.GetBlockData) { + var ret bool + return ret + } + return *o.GetBlockData +} + +// GetGetBlockDataOk returns a tuple with the GetBlockData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Options) GetGetBlockDataOk() (*bool, bool) { + if o == nil || isNil(o.GetBlockData) { + return nil, false + } + return o.GetBlockData, true +} + +// HasGetBlockData returns a boolean if a field has been set. +func (o *WatchBlocksV1Options) HasGetBlockData() bool { + if o != nil && !isNil(o.GetBlockData) { + return true + } + + return false +} + +// SetGetBlockData gets a reference to the given bool and assigns it to the GetBlockData field. +func (o *WatchBlocksV1Options) SetGetBlockData(v bool) { + o.GetBlockData = &v +} + +func (o WatchBlocksV1Options) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1Options) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.GetBlockData) { + toSerialize["getBlockData"] = o.GetBlockData + } + return toSerialize, nil +} + +type NullableWatchBlocksV1Options struct { + value *WatchBlocksV1Options + isSet bool +} + +func (v NullableWatchBlocksV1Options) Get() *WatchBlocksV1Options { + return v.value +} + +func (v *NullableWatchBlocksV1Options) Set(val *WatchBlocksV1Options) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1Options) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1Options) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1Options(val *WatchBlocksV1Options) *NullableWatchBlocksV1Options { + return &NullableWatchBlocksV1Options{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1Options) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1Options) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go new file mode 100644 index 00000000000..b999cc29030 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1Progress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1Progress{} + +// WatchBlocksV1Progress struct for WatchBlocksV1Progress +type WatchBlocksV1Progress struct { + BlockHeader *Web3BlockHeader `json:"blockHeader,omitempty"` + BlockData *WatchBlocksV1BlockData `json:"blockData,omitempty"` +} + +// NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1Progress() *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + return &this +} + +// NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + return &this +} + +// GetBlockHeader returns the BlockHeader field value if set, zero value otherwise. +func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader { + if o == nil || isNil(o.BlockHeader) { + var ret Web3BlockHeader + return ret + } + return *o.BlockHeader +} + +// GetBlockHeaderOk returns a tuple with the BlockHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool) { + if o == nil || isNil(o.BlockHeader) { + return nil, false + } + return o.BlockHeader, true +} + +// HasBlockHeader returns a boolean if a field has been set. +func (o *WatchBlocksV1Progress) HasBlockHeader() bool { + if o != nil && !isNil(o.BlockHeader) { + return true + } + + return false +} + +// SetBlockHeader gets a reference to the given Web3BlockHeader and assigns it to the BlockHeader field. +func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader) { + o.BlockHeader = &v +} + +// GetBlockData returns the BlockData field value if set, zero value otherwise. +func (o *WatchBlocksV1Progress) GetBlockData() WatchBlocksV1BlockData { + if o == nil || isNil(o.BlockData) { + var ret WatchBlocksV1BlockData + return ret + } + return *o.BlockData +} + +// GetBlockDataOk returns a tuple with the BlockData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Progress) GetBlockDataOk() (*WatchBlocksV1BlockData, bool) { + if o == nil || isNil(o.BlockData) { + return nil, false + } + return o.BlockData, true +} + +// HasBlockData returns a boolean if a field has been set. +func (o *WatchBlocksV1Progress) HasBlockData() bool { + if o != nil && !isNil(o.BlockData) { + return true + } + + return false +} + +// SetBlockData gets a reference to the given WatchBlocksV1BlockData and assigns it to the BlockData field. +func (o *WatchBlocksV1Progress) SetBlockData(v WatchBlocksV1BlockData) { + o.BlockData = &v +} + +func (o WatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1Progress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.BlockHeader) { + toSerialize["blockHeader"] = o.BlockHeader + } + if !isNil(o.BlockData) { + toSerialize["blockData"] = o.BlockData + } + return toSerialize, nil +} + +type NullableWatchBlocksV1Progress struct { + value *WatchBlocksV1Progress + isSet bool +} + +func (v NullableWatchBlocksV1Progress) Get() *WatchBlocksV1Progress { + return v.value +} + +func (v *NullableWatchBlocksV1Progress) Set(val *WatchBlocksV1Progress) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1Progress) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1Progress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1Progress(val *WatchBlocksV1Progress) *NullableWatchBlocksV1Progress { + return &NullableWatchBlocksV1Progress{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1Progress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_block_header.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_block_header.go new file mode 100644 index 00000000000..a6d25440262 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_block_header.go @@ -0,0 +1,558 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3BlockHeader type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3BlockHeader{} + +// Web3BlockHeader struct for Web3BlockHeader +type Web3BlockHeader struct { + Number float32 `json:"number"` + Hash string `json:"hash"` + ParentHash string `json:"parentHash"` + Nonce string `json:"nonce"` + Sha3Uncles string `json:"sha3Uncles"` + LogsBloom string `json:"logsBloom"` + TransactionsRoot *string `json:"transactionsRoot,omitempty"` + StateRoot string `json:"stateRoot"` + ReceiptsRoot *string `json:"receiptsRoot,omitempty"` + Difficulty *string `json:"difficulty,omitempty"` + MixHash *string `json:"mixHash,omitempty"` + Miner string `json:"miner"` + ExtraData string `json:"extraData"` + GasLimit int32 `json:"gasLimit"` + GasUsed int32 `json:"gasUsed"` + Timestamp EthereumTransactionConfigFrom `json:"timestamp"` +} + +// NewWeb3BlockHeader instantiates a new Web3BlockHeader object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp EthereumTransactionConfigFrom) *Web3BlockHeader { + this := Web3BlockHeader{} + this.Number = number + this.Hash = hash + this.ParentHash = parentHash + this.Nonce = nonce + this.Sha3Uncles = sha3Uncles + this.LogsBloom = logsBloom + this.StateRoot = stateRoot + this.Miner = miner + this.ExtraData = extraData + this.GasLimit = gasLimit + this.GasUsed = gasUsed + this.Timestamp = timestamp + return &this +} + +// NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader { + this := Web3BlockHeader{} + return &this +} + +// GetNumber returns the Number field value +func (o *Web3BlockHeader) GetNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Number, true +} + +// SetNumber sets field value +func (o *Web3BlockHeader) SetNumber(v float32) { + o.Number = v +} + +// GetHash returns the Hash field value +func (o *Web3BlockHeader) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *Web3BlockHeader) SetHash(v string) { + o.Hash = v +} + +// GetParentHash returns the ParentHash field value +func (o *Web3BlockHeader) GetParentHash() string { + if o == nil { + var ret string + return ret + } + + return o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetParentHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParentHash, true +} + +// SetParentHash sets field value +func (o *Web3BlockHeader) SetParentHash(v string) { + o.ParentHash = v +} + +// GetNonce returns the Nonce field value +func (o *Web3BlockHeader) GetNonce() string { + if o == nil { + var ret string + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNonceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *Web3BlockHeader) SetNonce(v string) { + o.Nonce = v +} + +// GetSha3Uncles returns the Sha3Uncles field value +func (o *Web3BlockHeader) GetSha3Uncles() string { + if o == nil { + var ret string + return ret + } + + return o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha3Uncles, true +} + +// SetSha3Uncles sets field value +func (o *Web3BlockHeader) SetSha3Uncles(v string) { + o.Sha3Uncles = v +} + +// GetLogsBloom returns the LogsBloom field value +func (o *Web3BlockHeader) GetLogsBloom() string { + if o == nil { + var ret string + return ret + } + + return o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsBloom, true +} + +// SetLogsBloom sets field value +func (o *Web3BlockHeader) SetLogsBloom(v string) { + o.LogsBloom = v +} + +// GetTransactionsRoot returns the TransactionsRoot field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetTransactionsRoot() string { + if o == nil || isNil(o.TransactionsRoot) { + var ret string + return ret + } + return *o.TransactionsRoot +} + +// GetTransactionsRootOk returns a tuple with the TransactionsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTransactionsRootOk() (*string, bool) { + if o == nil || isNil(o.TransactionsRoot) { + return nil, false + } + return o.TransactionsRoot, true +} + +// HasTransactionsRoot returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasTransactionsRoot() bool { + if o != nil && !isNil(o.TransactionsRoot) { + return true + } + + return false +} + +// SetTransactionsRoot gets a reference to the given string and assigns it to the TransactionsRoot field. +func (o *Web3BlockHeader) SetTransactionsRoot(v string) { + o.TransactionsRoot = &v +} + +// GetStateRoot returns the StateRoot field value +func (o *Web3BlockHeader) GetStateRoot() string { + if o == nil { + var ret string + return ret + } + + return o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetStateRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateRoot, true +} + +// SetStateRoot sets field value +func (o *Web3BlockHeader) SetStateRoot(v string) { + o.StateRoot = v +} + +// GetReceiptsRoot returns the ReceiptsRoot field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetReceiptsRoot() string { + if o == nil || isNil(o.ReceiptsRoot) { + var ret string + return ret + } + return *o.ReceiptsRoot +} + +// GetReceiptsRootOk returns a tuple with the ReceiptsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetReceiptsRootOk() (*string, bool) { + if o == nil || isNil(o.ReceiptsRoot) { + return nil, false + } + return o.ReceiptsRoot, true +} + +// HasReceiptsRoot returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasReceiptsRoot() bool { + if o != nil && !isNil(o.ReceiptsRoot) { + return true + } + + return false +} + +// SetReceiptsRoot gets a reference to the given string and assigns it to the ReceiptsRoot field. +func (o *Web3BlockHeader) SetReceiptsRoot(v string) { + o.ReceiptsRoot = &v +} + +// GetDifficulty returns the Difficulty field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetDifficulty() string { + if o == nil || isNil(o.Difficulty) { + var ret string + return ret + } + return *o.Difficulty +} + +// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetDifficultyOk() (*string, bool) { + if o == nil || isNil(o.Difficulty) { + return nil, false + } + return o.Difficulty, true +} + +// HasDifficulty returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasDifficulty() bool { + if o != nil && !isNil(o.Difficulty) { + return true + } + + return false +} + +// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field. +func (o *Web3BlockHeader) SetDifficulty(v string) { + o.Difficulty = &v +} + +// GetMixHash returns the MixHash field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetMixHash() string { + if o == nil || isNil(o.MixHash) { + var ret string + return ret + } + return *o.MixHash +} + +// GetMixHashOk returns a tuple with the MixHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetMixHashOk() (*string, bool) { + if o == nil || isNil(o.MixHash) { + return nil, false + } + return o.MixHash, true +} + +// HasMixHash returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasMixHash() bool { + if o != nil && !isNil(o.MixHash) { + return true + } + + return false +} + +// SetMixHash gets a reference to the given string and assigns it to the MixHash field. +func (o *Web3BlockHeader) SetMixHash(v string) { + o.MixHash = &v +} + +// GetMiner returns the Miner field value +func (o *Web3BlockHeader) GetMiner() string { + if o == nil { + var ret string + return ret + } + + return o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetMinerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Miner, true +} + +// SetMiner sets field value +func (o *Web3BlockHeader) SetMiner(v string) { + o.Miner = v +} + +// GetExtraData returns the ExtraData field value +func (o *Web3BlockHeader) GetExtraData() string { + if o == nil { + var ret string + return ret + } + + return o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExtraData, true +} + +// SetExtraData sets field value +func (o *Web3BlockHeader) SetExtraData(v string) { + o.ExtraData = v +} + +// GetGasLimit returns the GasLimit field value +func (o *Web3BlockHeader) GetGasLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasLimit, true +} + +// SetGasLimit sets field value +func (o *Web3BlockHeader) SetGasLimit(v int32) { + o.GasLimit = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3BlockHeader) GetGasUsed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3BlockHeader) SetGasUsed(v int32) { + o.GasUsed = v +} + +// GetTimestamp returns the Timestamp field value +func (o *Web3BlockHeader) GetTimestamp() EthereumTransactionConfigFrom { + if o == nil { + var ret EthereumTransactionConfigFrom + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTimestampOk() (*EthereumTransactionConfigFrom, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *Web3BlockHeader) SetTimestamp(v EthereumTransactionConfigFrom) { + o.Timestamp = v +} + +func (o Web3BlockHeader) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3BlockHeader) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["number"] = o.Number + toSerialize["hash"] = o.Hash + toSerialize["parentHash"] = o.ParentHash + toSerialize["nonce"] = o.Nonce + toSerialize["sha3Uncles"] = o.Sha3Uncles + toSerialize["logsBloom"] = o.LogsBloom + if !isNil(o.TransactionsRoot) { + toSerialize["transactionsRoot"] = o.TransactionsRoot + } + toSerialize["stateRoot"] = o.StateRoot + if !isNil(o.ReceiptsRoot) { + toSerialize["receiptsRoot"] = o.ReceiptsRoot + } + if !isNil(o.Difficulty) { + toSerialize["difficulty"] = o.Difficulty + } + if !isNil(o.MixHash) { + toSerialize["mixHash"] = o.MixHash + } + toSerialize["miner"] = o.Miner + toSerialize["extraData"] = o.ExtraData + toSerialize["gasLimit"] = o.GasLimit + toSerialize["gasUsed"] = o.GasUsed + toSerialize["timestamp"] = o.Timestamp + return toSerialize, nil +} + +type NullableWeb3BlockHeader struct { + value *Web3BlockHeader + isSet bool +} + +func (v NullableWeb3BlockHeader) Get() *Web3BlockHeader { + return v.value +} + +func (v *NullableWeb3BlockHeader) Set(val *Web3BlockHeader) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3BlockHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3BlockHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3BlockHeader(val *Web3BlockHeader) *NullableWeb3BlockHeader { + return &NullableWeb3BlockHeader{value: val, isSet: true} +} + +func (v NullableWeb3BlockHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3BlockHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..bf24ac6fc86 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,208 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialGethKeychainPassword *Web3SigningCredentialGethKeychainPassword + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialGethKeychainPasswordAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialGethKeychainPassword wrapped in Web3SigningCredential +func Web3SigningCredentialGethKeychainPasswordAsWeb3SigningCredential(v *Web3SigningCredentialGethKeychainPassword) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialGethKeychainPassword: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialGethKeychainPassword + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialGethKeychainPassword) + if err == nil { + jsonWeb3SigningCredentialGethKeychainPassword, _ := json.Marshal(dst.Web3SigningCredentialGethKeychainPassword) + if string(jsonWeb3SigningCredentialGethKeychainPassword) == "{}" { // empty struct + dst.Web3SigningCredentialGethKeychainPassword = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialGethKeychainPassword = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialGethKeychainPassword = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialGethKeychainPassword != nil { + return json.Marshal(&src.Web3SigningCredentialGethKeychainPassword) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialGethKeychainPassword != nil { + return obj.Web3SigningCredentialGethKeychainPassword + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..b51c507bcdb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,210 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId *string `json:"keychainId,omitempty"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value if set, zero value otherwise. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil || isNil(o.KeychainId) { + var ret string + return ret + } + return *o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil || isNil(o.KeychainId) { + return nil, false + } + return o.KeychainId, true +} + +// HasKeychainId returns a boolean if a field has been set. +func (o *Web3SigningCredentialCactusKeychainRef) HasKeychainId() bool { + if o != nil && !isNil(o.KeychainId) { + return true + } + + return false +} + +// SetKeychainId gets a reference to the given string and assigns it to the KeychainId field. +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = &v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + if !isNil(o.KeychainId) { + toSerialize["keychainId"] = o.KeychainId + } + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go new file mode 100644 index 00000000000..de0450a8a86 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialGethKeychainPassword type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialGethKeychainPassword{} + +// Web3SigningCredentialGethKeychainPassword struct for Web3SigningCredentialGethKeychainPassword +type Web3SigningCredentialGethKeychainPassword struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // A geth keychain unlock password. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialGethKeychainPassword instantiates a new Web3SigningCredentialGethKeychainPassword object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialGethKeychainPassword(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialGethKeychainPassword { + this := Web3SigningCredentialGethKeychainPassword{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialGethKeychainPasswordWithDefaults instantiates a new Web3SigningCredentialGethKeychainPassword object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialGethKeychainPasswordWithDefaults() *Web3SigningCredentialGethKeychainPassword { + this := Web3SigningCredentialGethKeychainPassword{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialGethKeychainPassword) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialGethKeychainPassword) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialGethKeychainPassword) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialGethKeychainPassword) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialGethKeychainPassword struct { + value *Web3SigningCredentialGethKeychainPassword + isSet bool +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) Get() *Web3SigningCredentialGethKeychainPassword { + return v.value +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) Set(val *Web3SigningCredentialGethKeychainPassword) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialGethKeychainPassword(val *Web3SigningCredentialGethKeychainPassword) *NullableWeb3SigningCredentialGethKeychainPassword { + return &NullableWeb3SigningCredentialGethKeychainPassword{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..ac3b451568c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..e1ecc30a17d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..8f9842c3070 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction.go new file mode 100644 index 00000000000..64895865995 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction.go @@ -0,0 +1,503 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3Transaction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3Transaction{} + +// Web3Transaction struct for Web3Transaction +type Web3Transaction struct { + Hash string `json:"hash"` + Nonce float32 `json:"nonce"` + BlockHash NullableString `json:"blockHash"` + BlockNumber NullableFloat32 `json:"blockNumber"` + TransactionIndex NullableFloat32 `json:"transactionIndex"` + From string `json:"from"` + To NullableString `json:"to"` + Value string `json:"value"` + GasPrice string `json:"gasPrice"` + Gas float32 `json:"gas"` + Input string `json:"input"` + V *string `json:"v,omitempty"` + R *string `json:"r,omitempty"` + S *string `json:"s,omitempty"` +} + +// NewWeb3Transaction instantiates a new Web3Transaction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3Transaction(hash string, nonce float32, blockHash NullableString, blockNumber NullableFloat32, transactionIndex NullableFloat32, from string, to NullableString, value string, gasPrice string, gas float32, input string) *Web3Transaction { + this := Web3Transaction{} + this.Hash = hash + this.Nonce = nonce + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.TransactionIndex = transactionIndex + this.From = from + this.To = to + this.Value = value + this.GasPrice = gasPrice + this.Gas = gas + this.Input = input + return &this +} + +// NewWeb3TransactionWithDefaults instantiates a new Web3Transaction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionWithDefaults() *Web3Transaction { + this := Web3Transaction{} + return &this +} + +// GetHash returns the Hash field value +func (o *Web3Transaction) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *Web3Transaction) SetHash(v string) { + o.Hash = v +} + +// GetNonce returns the Nonce field value +func (o *Web3Transaction) GetNonce() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetNonceOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *Web3Transaction) SetNonce(v float32) { + o.Nonce = v +} + +// GetBlockHash returns the BlockHash field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Web3Transaction) GetBlockHash() string { + if o == nil || o.BlockHash.Get() == nil { + var ret string + return ret + } + + return *o.BlockHash.Get() +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BlockHash.Get(), o.BlockHash.IsSet() +} + +// SetBlockHash sets field value +func (o *Web3Transaction) SetBlockHash(v string) { + o.BlockHash.Set(&v) +} + +// GetBlockNumber returns the BlockNumber field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Web3Transaction) GetBlockNumber() float32 { + if o == nil || o.BlockNumber.Get() == nil { + var ret float32 + return ret + } + + return *o.BlockNumber.Get() +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BlockNumber.Get(), o.BlockNumber.IsSet() +} + +// SetBlockNumber sets field value +func (o *Web3Transaction) SetBlockNumber(v float32) { + o.BlockNumber.Set(&v) +} + +// GetTransactionIndex returns the TransactionIndex field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Web3Transaction) GetTransactionIndex() float32 { + if o == nil || o.TransactionIndex.Get() == nil { + var ret float32 + return ret + } + + return *o.TransactionIndex.Get() +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.TransactionIndex.Get(), o.TransactionIndex.IsSet() +} + +// SetTransactionIndex sets field value +func (o *Web3Transaction) SetTransactionIndex(v float32) { + o.TransactionIndex.Set(&v) +} + +// GetFrom returns the From field value +func (o *Web3Transaction) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3Transaction) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Web3Transaction) GetTo() string { + if o == nil || o.To.Get() == nil { + var ret string + return ret + } + + return *o.To.Get() +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.To.Get(), o.To.IsSet() +} + +// SetTo sets field value +func (o *Web3Transaction) SetTo(v string) { + o.To.Set(&v) +} + +// GetValue returns the Value field value +func (o *Web3Transaction) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Web3Transaction) SetValue(v string) { + o.Value = v +} + +// GetGasPrice returns the GasPrice field value +func (o *Web3Transaction) GetGasPrice() string { + if o == nil { + var ret string + return ret + } + + return o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetGasPriceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GasPrice, true +} + +// SetGasPrice sets field value +func (o *Web3Transaction) SetGasPrice(v string) { + o.GasPrice = v +} + +// GetGas returns the Gas field value +func (o *Web3Transaction) GetGas() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Gas +} + +// GetGasOk returns a tuple with the Gas field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetGasOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Gas, true +} + +// SetGas sets field value +func (o *Web3Transaction) SetGas(v float32) { + o.Gas = v +} + +// GetInput returns the Input field value +func (o *Web3Transaction) GetInput() string { + if o == nil { + var ret string + return ret + } + + return o.Input +} + +// GetInputOk returns a tuple with the Input field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetInputOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Input, true +} + +// SetInput sets field value +func (o *Web3Transaction) SetInput(v string) { + o.Input = v +} + +// GetV returns the V field value if set, zero value otherwise. +func (o *Web3Transaction) GetV() string { + if o == nil || isNil(o.V) { + var ret string + return ret + } + return *o.V +} + +// GetVOk returns a tuple with the V field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetVOk() (*string, bool) { + if o == nil || isNil(o.V) { + return nil, false + } + return o.V, true +} + +// HasV returns a boolean if a field has been set. +func (o *Web3Transaction) HasV() bool { + if o != nil && !isNil(o.V) { + return true + } + + return false +} + +// SetV gets a reference to the given string and assigns it to the V field. +func (o *Web3Transaction) SetV(v string) { + o.V = &v +} + +// GetR returns the R field value if set, zero value otherwise. +func (o *Web3Transaction) GetR() string { + if o == nil || isNil(o.R) { + var ret string + return ret + } + return *o.R +} + +// GetROk returns a tuple with the R field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetROk() (*string, bool) { + if o == nil || isNil(o.R) { + return nil, false + } + return o.R, true +} + +// HasR returns a boolean if a field has been set. +func (o *Web3Transaction) HasR() bool { + if o != nil && !isNil(o.R) { + return true + } + + return false +} + +// SetR gets a reference to the given string and assigns it to the R field. +func (o *Web3Transaction) SetR(v string) { + o.R = &v +} + +// GetS returns the S field value if set, zero value otherwise. +func (o *Web3Transaction) GetS() string { + if o == nil || isNil(o.S) { + var ret string + return ret + } + return *o.S +} + +// GetSOk returns a tuple with the S field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetSOk() (*string, bool) { + if o == nil || isNil(o.S) { + return nil, false + } + return o.S, true +} + +// HasS returns a boolean if a field has been set. +func (o *Web3Transaction) HasS() bool { + if o != nil && !isNil(o.S) { + return true + } + + return false +} + +// SetS gets a reference to the given string and assigns it to the S field. +func (o *Web3Transaction) SetS(v string) { + o.S = &v +} + +func (o Web3Transaction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3Transaction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hash"] = o.Hash + toSerialize["nonce"] = o.Nonce + toSerialize["blockHash"] = o.BlockHash.Get() + toSerialize["blockNumber"] = o.BlockNumber.Get() + toSerialize["transactionIndex"] = o.TransactionIndex.Get() + toSerialize["from"] = o.From + toSerialize["to"] = o.To.Get() + toSerialize["value"] = o.Value + toSerialize["gasPrice"] = o.GasPrice + toSerialize["gas"] = o.Gas + toSerialize["input"] = o.Input + if !isNil(o.V) { + toSerialize["v"] = o.V + } + if !isNil(o.R) { + toSerialize["r"] = o.R + } + if !isNil(o.S) { + toSerialize["s"] = o.S + } + return toSerialize, nil +} + +type NullableWeb3Transaction struct { + value *Web3Transaction + isSet bool +} + +func (v NullableWeb3Transaction) Get() *Web3Transaction { + return v.value +} + +func (v *NullableWeb3Transaction) Set(val *Web3Transaction) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3Transaction) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3Transaction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3Transaction(val *Web3Transaction) *NullableWeb3Transaction { + return &NullableWeb3Transaction{value: val, isSet: true} +} + +func (v NullableWeb3Transaction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3Transaction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..b316a7e17f5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,607 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + Logs []interface{} `json:"logs,omitempty"` + LogsBloom *string `json:"logsBloom,omitempty"` + RevertReason *string `json:"revertReason,omitempty"` + Output *string `json:"output,omitempty"` + CommitmentHash *string `json:"commitmentHash,omitempty"` + CumulativeGasUSed *float32 `json:"cumulativeGasUSed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || isNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +// GetLogs returns the Logs field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetLogs() []interface{} { + if o == nil || isNil(o.Logs) { + var ret []interface{} + return ret + } + return o.Logs +} + +// GetLogsOk returns a tuple with the Logs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetLogsOk() ([]interface{}, bool) { + if o == nil || isNil(o.Logs) { + return nil, false + } + return o.Logs, true +} + +// HasLogs returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasLogs() bool { + if o != nil && !isNil(o.Logs) { + return true + } + + return false +} + +// SetLogs gets a reference to the given []interface{} and assigns it to the Logs field. +func (o *Web3TransactionReceipt) SetLogs(v []interface{}) { + o.Logs = v +} + +// GetLogsBloom returns the LogsBloom field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetLogsBloom() string { + if o == nil || isNil(o.LogsBloom) { + var ret string + return ret + } + return *o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetLogsBloomOk() (*string, bool) { + if o == nil || isNil(o.LogsBloom) { + return nil, false + } + return o.LogsBloom, true +} + +// HasLogsBloom returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasLogsBloom() bool { + if o != nil && !isNil(o.LogsBloom) { + return true + } + + return false +} + +// SetLogsBloom gets a reference to the given string and assigns it to the LogsBloom field. +func (o *Web3TransactionReceipt) SetLogsBloom(v string) { + o.LogsBloom = &v +} + +// GetRevertReason returns the RevertReason field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetRevertReason() string { + if o == nil || isNil(o.RevertReason) { + var ret string + return ret + } + return *o.RevertReason +} + +// GetRevertReasonOk returns a tuple with the RevertReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetRevertReasonOk() (*string, bool) { + if o == nil || isNil(o.RevertReason) { + return nil, false + } + return o.RevertReason, true +} + +// HasRevertReason returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasRevertReason() bool { + if o != nil && !isNil(o.RevertReason) { + return true + } + + return false +} + +// SetRevertReason gets a reference to the given string and assigns it to the RevertReason field. +func (o *Web3TransactionReceipt) SetRevertReason(v string) { + o.RevertReason = &v +} + +// GetOutput returns the Output field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetOutput() string { + if o == nil || isNil(o.Output) { + var ret string + return ret + } + return *o.Output +} + +// GetOutputOk returns a tuple with the Output field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetOutputOk() (*string, bool) { + if o == nil || isNil(o.Output) { + return nil, false + } + return o.Output, true +} + +// HasOutput returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasOutput() bool { + if o != nil && !isNil(o.Output) { + return true + } + + return false +} + +// SetOutput gets a reference to the given string and assigns it to the Output field. +func (o *Web3TransactionReceipt) SetOutput(v string) { + o.Output = &v +} + +// GetCommitmentHash returns the CommitmentHash field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetCommitmentHash() string { + if o == nil || isNil(o.CommitmentHash) { + var ret string + return ret + } + return *o.CommitmentHash +} + +// GetCommitmentHashOk returns a tuple with the CommitmentHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetCommitmentHashOk() (*string, bool) { + if o == nil || isNil(o.CommitmentHash) { + return nil, false + } + return o.CommitmentHash, true +} + +// HasCommitmentHash returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasCommitmentHash() bool { + if o != nil && !isNil(o.CommitmentHash) { + return true + } + + return false +} + +// SetCommitmentHash gets a reference to the given string and assigns it to the CommitmentHash field. +func (o *Web3TransactionReceipt) SetCommitmentHash(v string) { + o.CommitmentHash = &v +} + +// GetCumulativeGasUSed returns the CumulativeGasUSed field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetCumulativeGasUSed() float32 { + if o == nil || isNil(o.CumulativeGasUSed) { + var ret float32 + return ret + } + return *o.CumulativeGasUSed +} + +// GetCumulativeGasUSedOk returns a tuple with the CumulativeGasUSed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetCumulativeGasUSedOk() (*float32, bool) { + if o == nil || isNil(o.CumulativeGasUSed) { + return nil, false + } + return o.CumulativeGasUSed, true +} + +// HasCumulativeGasUSed returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasCumulativeGasUSed() bool { + if o != nil && !isNil(o.CumulativeGasUSed) { + return true + } + + return false +} + +// SetCumulativeGasUSed gets a reference to the given float32 and assigns it to the CumulativeGasUSed field. +func (o *Web3TransactionReceipt) SetCumulativeGasUSed(v float32) { + o.CumulativeGasUSed = &v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + if !isNil(o.Logs) { + toSerialize["logs"] = o.Logs + } + if !isNil(o.LogsBloom) { + toSerialize["logsBloom"] = o.LogsBloom + } + if !isNil(o.RevertReason) { + toSerialize["revertReason"] = o.RevertReason + } + if !isNil(o.Output) { + toSerialize["output"] = o.Output + } + if !isNil(o.CommitmentHash) { + toSerialize["commitmentHash"] = o.CommitmentHash + } + if !isNil(o.CumulativeGasUSed) { + toSerialize["cumulativeGasUSed"] = o.CumulativeGasUSed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "logs") + delete(additionalProperties, "logsBloom") + delete(additionalProperties, "revertReason") + delete(additionalProperties, "output") + delete(additionalProperties, "commitmentHash") + delete(additionalProperties, "cumulativeGasUSed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..e6773461bcd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..e48e723d536 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,121 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-ethereum_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeployContractSolBytecodeJsonObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractSolBytecodeJsonObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DeployContractSolBytecodeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1NoKeychain", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1NoKeychain(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeRawWeb3EthContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeRawWeb3EthContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeWeb3EthMethodV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeWeb3EthMethodV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..7be36ea7d71 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Ethereum + +Can perform basic tasks on a Ethereum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ethereum + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// isNil checks if an input is nil +func isNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/README.md index 177b5db4cae..36fe96eb9bb 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Ethereum - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata] Can perform basic tasks on a Ethereum ledger diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 320f7831cfc..4521dcc2382 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 9ba3bbc90f6..5d67fd2da1a 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index dcf122891ca..88e0b5a2147 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index eba33b58d31..4fa5f6160b6 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 65a34bae59e..f73f8d525f9 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index c3ae2737331..2bea95bd348 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 8166aa7abd0..8721ee87b38 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java index 4686fce4a3a..b495b9f236c 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java @@ -48,7 +48,7 @@ /** * ContractJSON */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class ContractJSON { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java index 702f9274346..e00c297a8c1 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java @@ -51,7 +51,7 @@ /** * DeployContractSolidityBytecodeJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java index 009dc666759..d697d967dd9 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java @@ -50,7 +50,7 @@ /** * DeployContractSolidityBytecodeV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java index 63c552562dc..8f32a69f5c5 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java @@ -47,7 +47,7 @@ /** * DeployContractSolidityBytecodeV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfig.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfig.java index 087521fda23..cec1e14b220 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfig.java @@ -49,7 +49,7 @@ /** * EthereumTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class EthereumTransactionConfig { public static final String SERIALIZED_NAME_RAW_TRANSACTION = "rawTransaction"; @SerializedName(SERIALIZED_NAME_RAW_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigFrom.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigFrom.java index a10d2b71484..bbeb517c382 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigFrom.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigFrom.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class EthereumTransactionConfigFrom extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(EthereumTransactionConfigFrom.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigTo.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigTo.java index bebf77b5640..1d914978699 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigTo.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/EthereumTransactionConfigTo.java @@ -49,7 +49,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class EthereumTransactionConfigTo extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(EthereumTransactionConfigTo.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java index 50f64f0e886..9d9f65a72be 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java @@ -53,7 +53,7 @@ /** * InvokeContractJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeContractJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java index 43c2788586c..38fdef15179 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeContractV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index 055ad147f17..2574842068a 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -48,7 +48,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java index d1c0405a92a..419dd567a7c 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java @@ -49,7 +49,7 @@ /** * InvokeRawWeb3EthContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthContractV1Request { public static final String SERIALIZED_NAME_ABI = "abi"; @SerializedName(SERIALIZED_NAME_ABI) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java index 36bf2744304..d3492f46ca8 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java @@ -48,7 +48,7 @@ /** * InvokeRawWeb3EthContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthContractV1Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java index 5ac600282bd..2e328252c04 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java @@ -48,7 +48,7 @@ /** * InvokeRawWeb3EthMethodV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthMethodV1Request { public static final String SERIALIZED_NAME_METHOD_NAME = "methodName"; @SerializedName(SERIALIZED_NAME_METHOD_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java index 9e4f07154ed..d9d91bb634b 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java @@ -48,7 +48,7 @@ /** * InvokeRawWeb3EthMethodV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthMethodV1Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java index acb6d37a4f0..a97a4635fc9 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java @@ -49,7 +49,7 @@ /** * RunTransactionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class RunTransactionRequest { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 5204ac16579..7979998dd1e 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -47,7 +47,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java index f257a58e20e..7c4a3b02889 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifact */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifact { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java index 1573f12b7dd..b45a4ca5717 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java @@ -46,7 +46,7 @@ /** * SolidityContractJsonArtifactCompiler */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactCompiler { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java index a5bd0691366..6486bb61194 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java @@ -49,7 +49,7 @@ /** * SolidityContractJsonArtifactGasEstimates */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimates { public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java index 2e71bb4fd0a..2e20bc3f549 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java @@ -46,7 +46,7 @@ /** * SolidityContractJsonArtifactGasEstimatesCreation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimatesCreation { public static final String SERIALIZED_NAME_CODE_DEPOSIT_COST = "codeDepositCost"; @SerializedName(SERIALIZED_NAME_CODE_DEPOSIT_COST) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java index 1cadad562de..d6c8b416bd3 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java @@ -51,7 +51,7 @@ /** * WatchBlocksV1BlockData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class WatchBlocksV1BlockData { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java index bfcd16a0891..f1cf1f5f2da 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java @@ -46,7 +46,7 @@ /** * WatchBlocksV1Options */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class WatchBlocksV1Options { public static final String SERIALIZED_NAME_GET_BLOCK_DATA = "getBlockData"; @SerializedName(SERIALIZED_NAME_GET_BLOCK_DATA) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java index f4c7ccb1178..f5b28a18341 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java @@ -48,7 +48,7 @@ /** * WatchBlocksV1Progress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class WatchBlocksV1Progress { public static final String SERIALIZED_NAME_BLOCK_HEADER = "blockHeader"; @SerializedName(SERIALIZED_NAME_BLOCK_HEADER) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java index 91e6bb0661a..46fb9c75b8f 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java @@ -48,7 +48,7 @@ /** * Web3BlockHeader */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3BlockHeader { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index 8de60e10f0e..b2820010e47 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -60,7 +60,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index 0c7f7bd7d55..8477560d20b 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -47,7 +47,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java index 66cfda676dc..eb531d9a06e 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java @@ -47,7 +47,7 @@ /** * Web3SigningCredentialGethKeychainPassword */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3SigningCredentialGethKeychainPassword { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index 3dce21d116f..05a3615e7fb 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -47,7 +47,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index 5326aacc173..6360172b599 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -47,7 +47,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java index 524db9460ac..d8b55502aaa 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java @@ -47,7 +47,7 @@ /** * Web3Transaction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3Transaction { public static final String SERIALIZED_NAME_HASH = "hash"; @SerializedName(SERIALIZED_NAME_HASH) diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index 3a3379cd24b..39db0c106f7 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -50,7 +50,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:17.535635551+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:20.409045212+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..a1ed272decd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,111 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ChainCodeLanguageRuntime.md +docs/ChainCodeLifeCycleCommandResponses.md +docs/ChainCodeProgrammingLanguage.md +docs/ConnectionProfile.md +docs/ConnectionProfileClient.md +docs/DefaultApi.md +docs/DefaultEventHandlerStrategy.md +docs/DeployContractGoSourceV1501Response.md +docs/DeployContractGoSourceV1Request.md +docs/DeployContractGoSourceV1RequestConstructorArgs.md +docs/DeployContractGoSourceV1Response.md +docs/DeployContractV1Request.md +docs/DeployContractV1Response.md +docs/DeploymentTargetOrgFabric2x.md +docs/DeploymentTargetOrganization.md +docs/ErrorExceptionResponseV1.md +docs/FabricContractInvocationType.md +docs/FabricSigningCredential.md +docs/FabricSigningCredentialType.md +docs/FileBase64.md +docs/GatewayDiscoveryOptions.md +docs/GatewayEventHandlerOptions.md +docs/GatewayOptions.md +docs/GatewayOptionsWallet.md +docs/GetBlockRequestV1.md +docs/GetBlockRequestV1Query.md +docs/GetBlockRequestV1QueryBlockHash.md +docs/GetBlockResponseDecodedV1.md +docs/GetBlockResponseEncodedV1.md +docs/GetBlockResponseV1.md +docs/GetTransactionReceiptResponse.md +docs/RunTransactionRequest.md +docs/RunTransactionResponse.md +docs/SSHExecCommandResponse.md +docs/TransactReceiptBlockMetaData.md +docs/TransactReceiptTransactionCreator.md +docs/TransactReceiptTransactionEndorsement.md +docs/VaultTransitKey.md +docs/WatchBlocksCactusErrorResponseV1.md +docs/WatchBlocksCactusTransactionsEventV1.md +docs/WatchBlocksCactusTransactionsResponseV1.md +docs/WatchBlocksFilteredResponseV1.md +docs/WatchBlocksFullResponseV1.md +docs/WatchBlocksListenerTypeV1.md +docs/WatchBlocksOptionsV1.md +docs/WatchBlocksPrivateResponseV1.md +docs/WatchBlocksResponseV1.md +docs/WatchBlocksV1.md +docs/WebSocketKey.md +git_push.sh +go.mod +go.sum +model_chain_code_language_runtime.go +model_chain_code_life_cycle_command_responses.go +model_chain_code_programming_language.go +model_connection_profile.go +model_connection_profile_client.go +model_default_event_handler_strategy.go +model_deploy_contract_go_source_v1_501_response.go +model_deploy_contract_go_source_v1_request.go +model_deploy_contract_go_source_v1_request_constructor_args.go +model_deploy_contract_go_source_v1_response.go +model_deploy_contract_v1_request.go +model_deploy_contract_v1_response.go +model_deployment_target_org_fabric2x.go +model_deployment_target_organization.go +model_error_exception_response_v1.go +model_fabric_contract_invocation_type.go +model_fabric_signing_credential.go +model_fabric_signing_credential_type.go +model_file_base64.go +model_gateway_discovery_options.go +model_gateway_event_handler_options.go +model_gateway_options.go +model_gateway_options_wallet.go +model_get_block_request_v1.go +model_get_block_request_v1_query.go +model_get_block_request_v1_query_block_hash.go +model_get_block_response_decoded_v1.go +model_get_block_response_encoded_v1.go +model_get_block_response_v1.go +model_get_transaction_receipt_response.go +model_run_transaction_request.go +model_run_transaction_response.go +model_ssh_exec_command_response.go +model_transact_receipt_block_meta_data.go +model_transact_receipt_transaction_creator.go +model_transact_receipt_transaction_endorsement.go +model_vault_transit_key.go +model_watch_blocks_cactus_error_response_v1.go +model_watch_blocks_cactus_transactions_event_v1.go +model_watch_blocks_cactus_transactions_response_v1.go +model_watch_blocks_filtered_response_v1.go +model_watch_blocks_full_response_v1.go +model_watch_blocks_listener_type_v1.go +model_watch_blocks_options_v1.go +model_watch_blocks_private_response_v1.go +model_watch_blocks_response_v1.go +model_watch_blocks_v1.go +model_web_socket_key.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..96e96c7cdfe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,164 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-fabric + +Can perform basic tasks on a fabric ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-fabric "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-fabric.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-fabric.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-fabric.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-fabric.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeployContractGoSourceV1**](docs/DefaultApi.md#deploycontractgosourcev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract-go-source | Deploys a chaincode contract in the form of a go sources. +*DefaultApi* | [**DeployContractV1**](docs/DefaultApi.md#deploycontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract | Deploys a chaincode contract from a set of source files. Note: This endpoint only supports Fabric 2.x. The 'v1' suffix in the method name refers to the Cactus API version, not the supported Fabric ledger version. +*DefaultApi* | [**GetBlockV1**](docs/DefaultApi.md#getblockv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-block | Get block from the channel using one of selectors from the input. Works only on Fabric 2.x. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**GetTransactionReceiptByTxIDV1**](docs/DefaultApi.md#gettransactionreceiptbytxidv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-transaction-receipt-by-txid | get a transaction receipt by tx id on a Fabric ledger. +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction | Runs a transaction on a Fabric ledger. + + +## Documentation For Models + + - [ChainCodeLanguageRuntime](docs/ChainCodeLanguageRuntime.md) + - [ChainCodeLifeCycleCommandResponses](docs/ChainCodeLifeCycleCommandResponses.md) + - [ChainCodeProgrammingLanguage](docs/ChainCodeProgrammingLanguage.md) + - [ConnectionProfile](docs/ConnectionProfile.md) + - [ConnectionProfileClient](docs/ConnectionProfileClient.md) + - [DefaultEventHandlerStrategy](docs/DefaultEventHandlerStrategy.md) + - [DeployContractGoSourceV1501Response](docs/DeployContractGoSourceV1501Response.md) + - [DeployContractGoSourceV1Request](docs/DeployContractGoSourceV1Request.md) + - [DeployContractGoSourceV1RequestConstructorArgs](docs/DeployContractGoSourceV1RequestConstructorArgs.md) + - [DeployContractGoSourceV1Response](docs/DeployContractGoSourceV1Response.md) + - [DeployContractV1Request](docs/DeployContractV1Request.md) + - [DeployContractV1Response](docs/DeployContractV1Response.md) + - [DeploymentTargetOrgFabric2x](docs/DeploymentTargetOrgFabric2x.md) + - [DeploymentTargetOrganization](docs/DeploymentTargetOrganization.md) + - [ErrorExceptionResponseV1](docs/ErrorExceptionResponseV1.md) + - [FabricContractInvocationType](docs/FabricContractInvocationType.md) + - [FabricSigningCredential](docs/FabricSigningCredential.md) + - [FabricSigningCredentialType](docs/FabricSigningCredentialType.md) + - [FileBase64](docs/FileBase64.md) + - [GatewayDiscoveryOptions](docs/GatewayDiscoveryOptions.md) + - [GatewayEventHandlerOptions](docs/GatewayEventHandlerOptions.md) + - [GatewayOptions](docs/GatewayOptions.md) + - [GatewayOptionsWallet](docs/GatewayOptionsWallet.md) + - [GetBlockRequestV1](docs/GetBlockRequestV1.md) + - [GetBlockRequestV1Query](docs/GetBlockRequestV1Query.md) + - [GetBlockRequestV1QueryBlockHash](docs/GetBlockRequestV1QueryBlockHash.md) + - [GetBlockResponseDecodedV1](docs/GetBlockResponseDecodedV1.md) + - [GetBlockResponseEncodedV1](docs/GetBlockResponseEncodedV1.md) + - [GetBlockResponseV1](docs/GetBlockResponseV1.md) + - [GetTransactionReceiptResponse](docs/GetTransactionReceiptResponse.md) + - [RunTransactionRequest](docs/RunTransactionRequest.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [SSHExecCommandResponse](docs/SSHExecCommandResponse.md) + - [TransactReceiptBlockMetaData](docs/TransactReceiptBlockMetaData.md) + - [TransactReceiptTransactionCreator](docs/TransactReceiptTransactionCreator.md) + - [TransactReceiptTransactionEndorsement](docs/TransactReceiptTransactionEndorsement.md) + - [VaultTransitKey](docs/VaultTransitKey.md) + - [WatchBlocksCactusErrorResponseV1](docs/WatchBlocksCactusErrorResponseV1.md) + - [WatchBlocksCactusTransactionsEventV1](docs/WatchBlocksCactusTransactionsEventV1.md) + - [WatchBlocksCactusTransactionsResponseV1](docs/WatchBlocksCactusTransactionsResponseV1.md) + - [WatchBlocksFilteredResponseV1](docs/WatchBlocksFilteredResponseV1.md) + - [WatchBlocksFullResponseV1](docs/WatchBlocksFullResponseV1.md) + - [WatchBlocksListenerTypeV1](docs/WatchBlocksListenerTypeV1.md) + - [WatchBlocksOptionsV1](docs/WatchBlocksOptionsV1.md) + - [WatchBlocksPrivateResponseV1](docs/WatchBlocksPrivateResponseV1.md) + - [WatchBlocksResponseV1](docs/WatchBlocksResponseV1.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + - [WebSocketKey](docs/WebSocketKey.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..445c8f8a27d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1650 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a fabric ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Fabric + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction: + post: + description: "" + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + "404": + description: "" + summary: Runs a transaction on a Fabric ledger. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-transaction-receipt-by-txid: + post: + description: "" + operationId: getTransactionReceiptByTxIDV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetTransactionReceiptResponse' + description: OK + "404": + description: "" + summary: get a transaction receipt by tx id on a Fabric ledger. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-transaction-receipt-by-txid + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract-go-source: + post: + operationId: deployContractGoSourceV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractGoSourceV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractGoSourceV1Response' + description: OK + "501": + content: + text/plain: + schema: + $ref: '#/components/schemas/deployContractGoSourceV1_501_response' + description: Not implemented + summary: Deploys a chaincode contract in the form of a go sources. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract-go-source + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract: + post: + operationId: deployContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractV1Response' + description: OK + "501": + content: + text/plain: + schema: + $ref: '#/components/schemas/deployContractGoSourceV1_501_response' + description: Not implemented + summary: "Deploys a chaincode contract from a set of source files. Note: This\ + \ endpoint only supports Fabric 2.x. The 'v1' suffix in the method name refers\ + \ to the Cactus API version, not the supported Fabric ledger version." + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-block: + post: + operationId: getBlockV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockRequestV1' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockResponseV1' + description: OK + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error + summary: Get block from the channel using one of selectors from the input. Works + only on Fabric 2.x. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-block + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics +components: + schemas: + TransactReceiptTransactionEndorsement: + example: + mspid: mspid + signature: signature + endorserID: endorserID + properties: + mspid: + type: string + endorserID: + type: string + signature: + type: string + type: object + TransactReceiptTransactionCreator: + example: + mspid: mspid + creatorID: creatorID + properties: + mspid: + type: string + creatorID: + type: string + type: object + TransactReceiptBlockMetaData: + example: + mspid: mspid + blockCreatorID: blockCreatorID + signature: signature + properties: + mspid: + type: string + blockCreatorID: + type: string + signature: + type: string + type: object + VaultTransitKey: + description: vault key details for signing fabric message with private key stored + with transit engine. + example: + keyName: keyName + token: token + nullable: false + properties: + keyName: + description: label of private key + maxLength: 100 + minLength: 1 + nullable: false + type: string + token: + description: token for accessing private key + maxLength: 100 + minLength: 1 + nullable: false + type: string + required: + - keyName + - token + type: object + WebSocketKey: + description: web-socket key details for signing fabric message with private + key stored with external client + example: + signature: signature + sessionId: sessionId + nullable: false + properties: + sessionId: + description: session Id to access client + maxLength: 100 + minLength: 1 + nullable: false + type: string + signature: + description: signature of the session ID + maxLength: 100 + minLength: 1 + nullable: false + type: string + required: + - sessionId + - signature + type: object + FabricSigningCredentialType: + description: different type of identity provider for singing fabric messages + supported by this package + enum: + - X.509 + - Vault-X.509 + - WS-X.509 + nullable: false + type: string + FabricSigningCredential: + example: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + properties: + keychainId: + maxLength: 100 + minLength: 1 + nullable: false + type: string + keychainRef: + maxLength: 100 + minLength: 1 + nullable: false + type: string + type: + $ref: '#/components/schemas/FabricSigningCredentialType' + vaultTransitKey: + $ref: '#/components/schemas/VaultTransitKey' + webSocketKey: + $ref: '#/components/schemas/WebSocketKey' + required: + - keychainId + - keychainRef + type: object + ChainCodeLifeCycleCommandResponses: + example: + init: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + commit: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + installList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + queryCommitted: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + packaging: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + approveForMyOrgList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + queryInstalledList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + properties: + packaging: + $ref: '#/components/schemas/SSHExecCommandResponse' + installList: + items: + $ref: '#/components/schemas/SSHExecCommandResponse' + minItems: 1 + type: array + queryInstalledList: + items: + $ref: '#/components/schemas/SSHExecCommandResponse' + minItems: 1 + type: array + approveForMyOrgList: + items: + $ref: '#/components/schemas/SSHExecCommandResponse' + minItems: 1 + type: array + commit: + $ref: '#/components/schemas/SSHExecCommandResponse' + queryCommitted: + $ref: '#/components/schemas/SSHExecCommandResponse' + init: + $ref: '#/components/schemas/SSHExecCommandResponse' + required: + - approveForMyOrgList + - installList + - queryInstalledList + type: object + ChainCodeProgrammingLanguage: + description: Enumerates the supported source code programming languages of Hyperledger + Fabric + enum: + - golang + - javascript + - typescript + - java + type: string + ChainCodeLanguageRuntime: + description: Enumerates the supported programming language runtimes of Hyperledger + Fabric + enum: + - golang + - node + - java + type: string + ConnectionProfile: + additionalProperties: true + example: + channels: + key: "" + certificateAuthorities: + key: "" + name: basic-network + organizations: + key: "" + peers: + key: "" + x-type: hlfv1 + description: The basic network + client: + organization: Org1 + orderers: + key: "" + version: "1.0" + properties: + name: + example: basic-network + maxLength: 1024 + minLength: 1 + type: string + x-type: + example: hlfv1 + minLength: 1 + type: string + description: + example: The basic network + type: string + version: + example: "1.0" + type: string + client: + $ref: '#/components/schemas/ConnectionProfile_client' + channels: + additionalProperties: true + type: object + organizations: + additionalProperties: true + type: object + orderers: + additionalProperties: true + type: object + peers: + additionalProperties: true + type: object + certificateAuthorities: + additionalProperties: true + type: object + required: + - name + - organizations + - peers + - version + type: object + GatewayDiscoveryOptions: + additionalProperties: false + example: + asLocalhost: true + enabled: true + properties: + asLocalhost: + nullable: false + type: boolean + enabled: + nullable: false + type: boolean + type: object + GatewayOptions: + example: + wallet: + keychain: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + json: json + connectionProfile: + channels: + key: "" + certificateAuthorities: + key: "" + name: basic-network + organizations: + key: "" + peers: + key: "" + x-type: hlfv1 + description: The basic network + client: + organization: Org1 + orderers: + key: "" + version: "1.0" + discovery: + asLocalhost: true + enabled: true + identity: identity + eventHandlerOptions: + commitTimeout: 0.8008281904610115 + strategy: null + endorseTimeout: 6.027456183070403 + properties: + connectionProfile: + $ref: '#/components/schemas/ConnectionProfile' + discovery: + $ref: '#/components/schemas/GatewayDiscoveryOptions' + eventHandlerOptions: + $ref: '#/components/schemas/GatewayEventHandlerOptions' + identity: + type: string + wallet: + $ref: '#/components/schemas/GatewayOptions_wallet' + required: + - identity + - wallet + type: object + DefaultEventHandlerStrategy: + enum: + - MSPID_SCOPE_ALLFORTX + - MSPID_SCOPE_ANYFORTX + - NETWORK_SCOPE_ALLFORTX + - NETWORK_SCOPE_ANYFORTX + type: string + GatewayEventHandlerOptions: + additionalProperties: false + example: + commitTimeout: 0.8008281904610115 + strategy: null + endorseTimeout: 6.027456183070403 + properties: + commitTimeout: + nullable: false + type: number + endorseTimeout: + nullable: false + type: number + strategy: + $ref: '#/components/schemas/DefaultEventHandlerStrategy' + required: + - strategy + type: object + FileBase64: + description: Represents a file-system file that has a name and a body which + holds the file contents as a Base64 encoded string + example: + filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + properties: + body: + description: The file's contents encoded as a Base64 string. + maxLength: 104857600 + minLength: 1 + nullable: false + type: string + filename: + description: The name as referred to on a file system + example: my-cool-file-full-of-wonders-and-fun-stuff.go + maxLength: 255 + minLength: 1 + nullable: false + type: string + filepath: + description: "The relative path of the file, if it should be placed in a\ + \ sub-directory" + example: ./my/sub-folder/structure/ + maxLength: 512 + minLength: 1 + nullable: false + type: string + required: + - body + - filename + type: object + FabricContractInvocationType: + enum: + - FabricContractInvocationType.SEND + - FabricContractInvocationType.CALL + - FabricContractInvocationType.SENDPRIVATE + type: string + SSHExecCommandResponse: + example: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + properties: + stdout: + nullable: false + type: string + stderr: + nullable: false + type: string + code: + nullable: true + type: integer + signal: + nullable: true + type: string + required: + - code + - signal + - stderr + - stdout + type: object + RunTransactionRequest: + additionalProperties: false + example: + gatewayOptions: + wallet: + keychain: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + json: json + connectionProfile: + channels: + key: "" + certificateAuthorities: + key: "" + name: basic-network + organizations: + key: "" + peers: + key: "" + x-type: hlfv1 + description: The basic network + client: + organization: Org1 + orderers: + key: "" + version: "1.0" + discovery: + asLocalhost: true + enabled: true + identity: identity + eventHandlerOptions: + commitTimeout: 0.8008281904610115 + strategy: null + endorseTimeout: 6.027456183070403 + invocationType: null + responseType: responseType + transientData: "{}" + endorsingParties: + - endorsingParties + - endorsingParties + endorsingPeers: + - endorsingPeers + - endorsingPeers + methodName: methodName + channelName: channelName + contractName: contractName + params: + - params + - params + signingCredential: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + properties: + endorsingPeers: + description: An array of MSP IDs to set as the list of endorsing peers for + the transaction. + items: + maxLength: 4096 + minLength: 1 + nullable: false + type: string + type: array + transientData: + nullable: true + type: object + gatewayOptions: + $ref: '#/components/schemas/GatewayOptions' + signingCredential: + $ref: '#/components/schemas/FabricSigningCredential' + channelName: + maxLength: 100 + minLength: 1 + nullable: false + type: string + contractName: + maxLength: 100 + minLength: 1 + nullable: false + type: string + invocationType: + $ref: '#/components/schemas/FabricContractInvocationType' + methodName: + maxLength: 100 + minLength: 1 + nullable: false + type: string + params: + default: [] + items: + nullable: true + type: string + nullable: false + type: array + endorsingParties: + default: [] + items: + nullable: true + type: string + nullable: false + type: array + responseType: + type: string + required: + - channelName + - contractName + - invocationType + - methodName + - params + - signingCredential + type: object + RunTransactionResponse: + example: + success: true + functionOutput: functionOutput + transactionId: transactionId + properties: + functionOutput: + nullable: false + type: string + success: + nullable: false + type: boolean + transactionId: + nullable: false + type: string + required: + - functionOutput + - success + - transactionId + type: object + GetTransactionReceiptResponse: + example: + chainCodeVersion: chainCodeVersion + blockMetaData: + mspid: mspid + blockCreatorID: blockCreatorID + signature: signature + transactionCreator: + mspid: mspid + creatorID: creatorID + blockNumber: blockNumber + chainCodeName: chainCodeName + transactionEndorsement: + - mspid: mspid + signature: signature + endorserID: endorserID + - mspid: mspid + signature: signature + endorserID: endorserID + responseStatus: responseStatus + channelID: channelID + rwsetWriteData: rwsetWriteData + rwsetKey: rwsetKey + properties: + blockNumber: + type: string + channelID: + type: string + transactionCreator: + $ref: '#/components/schemas/TransactReceiptTransactionCreator' + transactionEndorsement: + items: + $ref: '#/components/schemas/TransactReceiptTransactionEndorsement' + type: array + blockMetaData: + $ref: '#/components/schemas/TransactReceiptBlockMetaData' + chainCodeName: + type: string + chainCodeVersion: + type: string + responseStatus: + type: string + rwsetKey: + type: string + rwsetWriteData: + type: string + type: object + DeploymentTargetOrganization: + example: + CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + properties: + CORE_PEER_LOCALMSPID: + description: Mapped to environment variables of the Fabric CLI container. + example: Org1MSP + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_ADDRESS: + description: Mapped to environment variables of the Fabric CLI container. + example: peer0.org1.example.com:7051 + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_MSPCONFIGPATH: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_TLS_ROOTCERT_FILE: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + maxLength: 1024 + minLength: 1 + nullable: false + type: string + ORDERER_TLS_ROOTCERT_FILE: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - CORE_PEER_ADDRESS + - CORE_PEER_LOCALMSPID + - CORE_PEER_MSPCONFIGPATH + - CORE_PEER_TLS_ROOTCERT_FILE + - ORDERER_TLS_ROOTCERT_FILE + type: object + DeploymentTargetOrgFabric2x: + properties: + transient: + description: Transient map of arguments in JSON encoding + example: orderer.example.com:7050 + maxLength: 1073741824 + minLength: 1 + type: string + CORE_PEER_LOCALMSPID: + description: Mapped to environment variables of the Fabric CLI container. + example: Org1MSP + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_ADDRESS: + description: Mapped to environment variables of the Fabric CLI container. + example: peer0.org1.example.com:7051 + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_MSPCONFIGPATH: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + maxLength: 1024 + minLength: 1 + nullable: false + type: string + CORE_PEER_TLS_ROOTCERT_FILE: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + maxLength: 1024 + minLength: 1 + nullable: false + type: string + ORDERER_TLS_ROOTCERT_FILE: + description: Mapped to environment variables of the Fabric CLI container. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + maxLength: 1024 + minLength: 1 + nullable: false + type: string + required: + - CORE_PEER_ADDRESS + - CORE_PEER_LOCALMSPID + - CORE_PEER_MSPCONFIGPATH + - CORE_PEER_TLS_ROOTCERT_FILE + - ORDERER_TLS_ROOTCERT_FILE + type: object + DeployContractGoSourceV1Request: + additionalProperties: false + example: + chainCodeVersion: 1.0.0 + pinnedDeps: + - github.com/hyperledger/fabric@v1.4.8 + - github.com/hyperledger/fabric@v1.4.8 + - github.com/hyperledger/fabric@v1.4.8 + - github.com/hyperledger/fabric@v1.4.8 + - github.com/hyperledger/fabric@v1.4.8 + goSource: + filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + targetPeerAddresses: + - peer0.org1.example.com:7051 + goMod: + filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + constructorArgs: "{} - An empty object literal can be sufficient if your contract\ + \ does not have parameters." + targetOrganizations: + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + tlsRootCertFiles: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + moduleName: hello-world-contract + policyDslSource: "AND('Org1MSP.member','Org2MSP.member')" + channelId: mychannel + modTidyOnly: true + properties: + policyDslSource: + example: "AND('Org1MSP.member','Org2MSP.member')" + maxLength: 65535 + minLength: 1 + nullable: false + type: string + tlsRootCertFiles: + description: The TLS root cert files that will be passed to the chaincode + instantiation command. + example: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + maxLength: 65535 + minLength: 1 + nullable: false + type: string + channelId: + description: The name of the Fabric channel where the contract will get + instantiated. + example: mychannel + maxLength: 2048 + minLength: 1 + nullable: false + type: string + targetOrganizations: + items: + $ref: '#/components/schemas/DeploymentTargetOrganization' + maxItems: 1024 + minItems: 1 + nullable: false + type: array + targetPeerAddresses: + description: An array of peer addresses where the contract will be instantiated. + Note that at present only the first item from this array will be used + which is the behavior taken from the official Fabric samples repository + and therefore it is assumed to be correct usage. + example: + - peer0.org1.example.com:7051 + items: + maxLength: 4096 + minLength: 1 + type: string + maxItems: 2048 + minItems: 1 + type: array + constructorArgs: + $ref: '#/components/schemas/DeployContractGoSourceV1Request_constructorArgs' + chainCodeVersion: + example: 1.0.0 + maxLength: 128 + minLength: 1 + nullable: false + type: string + goSource: + $ref: '#/components/schemas/FileBase64' + goMod: + $ref: '#/components/schemas/FileBase64' + moduleName: + description: The go module name that will be used for the go compilation + process. + example: hello-world-contract + maxLength: 255 + minLength: 1 + nullable: false + type: string + pinnedDeps: + items: + example: github.com/hyperledger/fabric@v1.4.8 + nullable: false + type: string + maxItems: 1024 + minItems: 0 + type: array + modTidyOnly: + description: Indicates to the go chaincode compiler of Cactus if it should + do an actual go compilation with the contact source or if it should just + execute the go mod tidy command. + nullable: true + type: boolean + required: + - chainCodeVersion + - channelId + - goSource + - policyDslSource + - targetOrganizations + - targetPeerAddresses + - tlsRootCertFiles + type: object + DeployContractGoSourceV1Response: + example: + success: true + instantiationCommandResponse: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + installationCommandResponses: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + properties: + success: + type: boolean + installationCommandResponses: + items: + $ref: '#/components/schemas/SSHExecCommandResponse' + type: array + instantiationCommandResponse: + $ref: '#/components/schemas/SSHExecCommandResponse' + required: + - installationCommandResponses + - instantiationCommandResponse + - success + type: object + DeployContractV1Request: + additionalProperties: false + example: + ccVersion: 1.0.0 + ccLabel: hello-world-contract + constructorArgs: "{} - An empty object literal can be sufficient if your contract\ + \ does not have parameters." + ccLang: null + ccSequence: 1 + ccName: my-hello-world-contract + connTimeout: 0 + caFile: "${orgCfgDir}ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" + signaturePolicy: "AND('Org1MSP.member','Org2MSP.member')" + sourceFiles: + - filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + - filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + - filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + - filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + - filename: my-cool-file-full-of-wonders-and-fun-stuff.go + filepath: ./my/sub-folder/structure/ + body: body + ordererTLSHostnameOverride: orderer.example.com:7050 + orderer: orderer.example.com:7050 + targetOrganizations: + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + - CORE_PEER_LOCALMSPID: Org1MSP + CORE_PEER_MSPCONFIGPATH: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp + ORDERER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + CORE_PEER_ADDRESS: peer0.org1.example.com:7051 + CORE_PEER_TLS_ROOTCERT_FILE: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt + collectionsConfigFile: collectionsConfigFile + channelId: mychannel + properties: + ccLang: + $ref: '#/components/schemas/ChainCodeProgrammingLanguage' + caFile: + description: File-system path pointing at the CA file. + example: "${orgCfgDir}ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" + maxLength: 4096 + minLength: 1 + type: string + orderer: + description: Ordering service endpoint specified as : + example: orderer.example.com:7050 + maxLength: 65535 + minLength: 1 + type: string + ordererTLSHostnameOverride: + description: The hostname override to use when validating the TLS connection + to the orderer + example: orderer.example.com:7050 + maxLength: 65535 + minLength: 1 + type: string + connTimeout: + description: Timeout for client to connect (default 3s) + nullable: false + type: integer + signaturePolicy: + description: "Passed in to the peer via the --signature-policy argument\ + \ on the command line. See also: https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html#setting-chaincode-level-endorsement-policies" + example: "AND('Org1MSP.member','Org2MSP.member')" + maxLength: 65535 + minLength: 1 + nullable: false + type: string + collectionsConfigFile: + description: Name of the collections config file as present in the sourceFiles + array of the request. + maxLength: 255 + minLength: 1 + nullable: false + type: string + channelId: + description: The name of the Fabric channel where the contract will get + instantiated. + example: mychannel + maxLength: 2048 + minLength: 1 + nullable: false + type: string + targetOrganizations: + items: + $ref: '#/components/schemas/DeploymentTargetOrganization' + maxItems: 1024 + minItems: 1 + nullable: false + type: array + constructorArgs: + $ref: '#/components/schemas/DeployContractGoSourceV1Request_constructorArgs' + ccSequence: + example: 1 + nullable: false + type: number + ccVersion: + example: 1.0.0 + maxLength: 128 + minLength: 1 + nullable: false + type: string + ccName: + example: my-hello-world-contract + maxLength: 128 + minLength: 1 + nullable: false + type: string + ccLabel: + description: Human readable label to uniquely identify the contract. Recommended + to include in this at least the contract name and the exact version in + order to make it easily distinguishable from other deployments of the + same contract. + example: hello-world-contract + maxLength: 255 + minLength: 1 + nullable: false + type: string + sourceFiles: + description: The your-smart-contract.go file where the functionality of + your contract is implemented. + items: + $ref: '#/components/schemas/FileBase64' + maxItems: 65535 + minItems: 1 + nullable: false + type: array + required: + - caFile + - ccLabel + - ccLang + - ccName + - ccSequence + - ccVersion + - channelId + - orderer + - ordererTLSHostnameOverride + - sourceFiles + - targetOrganizations + type: object + DeployContractV1Response: + example: + lifecycle: + init: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + commit: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + installList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + queryCommitted: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + packaging: + code: 0 + stdout: stdout + stderr: stderr + signal: signal + approveForMyOrgList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + queryInstalledList: + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + - code: 0 + stdout: stdout + stderr: stderr + signal: signal + success: true + packageIds: + - f8c8e06bfc27771028c4bbc3564341887881e29b92a844c66c30bac0ff83966e + - f8c8e06bfc27771028c4bbc3564341887881e29b92a844c66c30bac0ff83966e + properties: + success: + type: boolean + packageIds: + items: + example: f8c8e06bfc27771028c4bbc3564341887881e29b92a844c66c30bac0ff83966e + maxLength: 4096 + minLength: 1 + nullable: false + type: string + type: array + lifecycle: + $ref: '#/components/schemas/ChainCodeLifeCycleCommandResponses' + required: + - lifecycle + - packageIds + - success + type: object + GetBlockRequestV1: + description: Request for GetBlock endpoint. + example: + gatewayOptions: + wallet: + keychain: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + json: json + connectionProfile: + channels: + key: "" + certificateAuthorities: + key: "" + name: basic-network + organizations: + key: "" + peers: + key: "" + x-type: hlfv1 + description: The basic network + client: + organization: Org1 + orderers: + key: "" + version: "1.0" + discovery: + asLocalhost: true + enabled: true + identity: identity + eventHandlerOptions: + commitTimeout: 0.8008281904610115 + strategy: null + endorseTimeout: 6.027456183070403 + query: + blockHash: + buffer: buffer + encoding: encoding + blockNumber: blockNumber + transactionId: transactionId + skipDecode: false + channelName: channelName + connectionChannelName: connectionChannelName + properties: + channelName: + description: Fabric channel which we want to query. + maxLength: 100 + minLength: 1 + nullable: false + type: string + connectionChannelName: + description: "Fabric channel we want to connect to. If not provided, then\ + \ one from channelName parameter will be used" + maxLength: 100 + minLength: 1 + nullable: false + type: string + gatewayOptions: + $ref: '#/components/schemas/GatewayOptions' + query: + $ref: '#/components/schemas/GetBlockRequestV1_query' + skipDecode: + default: false + description: "If true, encoded buffer will be returned. Otherwise, entire\ + \ block object is returned." + nullable: false + type: boolean + required: + - channelName + - gatewayOptions + - query + type: object + FabricFullBlockDataV1: + description: Full hyperledger fabric block data. + GetBlockResponseDecodedV1: + description: When skipDecode is false (default) then decoded block object is + returned. + properties: + decodedBlock: + description: Full hyperledger fabric block data. + required: + - decodedBlock + type: object + GetBlockResponseEncodedV1: + description: When skipDecode is true then encoded block Buffer is returned. + properties: + encodedBlock: + type: string + required: + - encodedBlock + type: object + GetBlockResponseV1: + description: Response from GetBlock endpoint. + oneOf: + - $ref: '#/components/schemas/GetBlockResponseDecodedV1' + - $ref: '#/components/schemas/GetBlockResponseEncodedV1' + ErrorExceptionResponseV1: + properties: + message: + nullable: false + type: string + error: + nullable: false + type: string + required: + - error + - message + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + WatchBlocksV1: + description: Websocket requests for monitoring new blocks. + enum: + - org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + WatchBlocksListenerTypeV1: + description: "Response type from WatchBlocks. 'Cactus*' are custom views, others\ + \ correspond to fabric SDK call." + enum: + - filtered + - full + - private + - cactus:transactions + type: string + x-enum-varnames: + - Filtered + - Full + - Private + - CactusTransactions + WatchBlocksOptionsV1: + description: Options passed when subscribing to block monitoring. + properties: + channelName: + description: Hyperledger Fabric channel to connect to. + maxLength: 100 + minLength: 1 + nullable: false + type: string + gatewayOptions: + $ref: '#/components/schemas/GatewayOptions' + type: + $ref: '#/components/schemas/WatchBlocksListenerTypeV1' + startBlock: + description: From which block start monitoring. Defaults to latest. + maxLength: 100 + minLength: 1 + nullable: false + type: string + required: + - channelName + - gatewayOptions + - type + type: object + WatchBlocksCactusTransactionsEventV1: + description: Transaction summary from commited block. + properties: + chaincodeId: + description: ChainCode containing function that was executed. + nullable: false + type: string + transactionId: + description: Transaction identifier. + nullable: false + type: string + functionName: + description: Function name that was executed. + nullable: false + type: string + functionArgs: + description: List of function arguments. + items: + minLength: 0 + nullable: false + type: string + type: array + required: + - chaincodeId + - functionArgs + - functionName + - transactionId + type: object + WatchBlocksCactusTransactionsResponseV1: + description: Custom response containing block transactions summary. Compatible + with legacy fabric-socketio connector monitoring. + properties: + cactusTransactionsEvents: + description: List of transactions summary + items: + $ref: '#/components/schemas/WatchBlocksCactusTransactionsEventV1' + type: array + required: + - cactusTransactionsEvents + type: object + WatchBlocksFullResponseV1: + description: Response that corresponds to Fabric SDK 'full' EventType. + properties: + fullBlock: + description: Full commited block. + nullable: false + required: + - fullBlock + type: object + WatchBlocksFilteredResponseV1: + description: Response that corresponds to Fabric SDK 'filtered' EventType. + properties: + filteredBlock: + description: Filtered commited block. + nullable: false + required: + - filteredBlock + type: object + WatchBlocksPrivateResponseV1: + description: Response that corresponds to Fabric SDK 'private' EventType. + properties: + privateBlock: + description: Private commited block. + nullable: false + required: + - privateBlock + type: object + WatchBlocksCactusErrorResponseV1: + description: Error response from WatchBlocks operation. + properties: + code: + description: Error code. + type: number + errorMessage: + description: Description of the error. + type: string + required: + - code + - errorMessage + type: object + WatchBlocksResponseV1: + description: Response block from WatchBlocks endpoint. Depends on 'type' passed + in subscription options. + oneOf: + - $ref: '#/components/schemas/WatchBlocksCactusTransactionsResponseV1' + - $ref: '#/components/schemas/WatchBlocksFullResponseV1' + - $ref: '#/components/schemas/WatchBlocksFilteredResponseV1' + - $ref: '#/components/schemas/WatchBlocksPrivateResponseV1' + - $ref: '#/components/schemas/WatchBlocksCactusErrorResponseV1' + deployContractGoSourceV1_501_response: + properties: + message: + maxLength: 2048 + minLength: 1 + nullable: false + type: string + type: object + ConnectionProfile_client: + example: + organization: Org1 + properties: + organization: + example: Org1 + type: string + type: object + GatewayOptions_wallet: + example: + keychain: + vaultTransitKey: + keyName: keyName + token: token + keychainId: keychainId + keychainRef: keychainRef + webSocketKey: + signature: signature + sessionId: sessionId + type: null + json: json + maxProperties: 1 + minProperties: 1 + properties: + keychain: + $ref: '#/components/schemas/FabricSigningCredential' + json: + maxLength: 65535 + minLength: 1 + nullable: false + type: string + type: object + DeployContractGoSourceV1Request_constructorArgs: + example: "{} - An empty object literal can be sufficient if your contract does\ + \ not have parameters." + nullable: false + properties: + Args: + items: {} + maxLength: 2048 + minLength: 0 + type: array + type: object + GetBlockRequestV1_query_blockHash: + description: Select block by it's hash. + example: + buffer: buffer + encoding: encoding + nullable: false + properties: + encoding: + description: "NodeJS Buffer encoding (utf-8, hex, binary, base64, etc...).\ + \ Passed directly to `Buffer.from()` call on hashBuffer. If not provided\ + \ then JSON buffer format is assumed." + nullable: false + type: string + buffer: + description: Buffer of blockHash. It's encoding should be described in `encoding` + parameter. + nullable: false + type: string + required: + - buffer + type: object + GetBlockRequestV1_query: + description: "Query selector, caller must provide at least one of them. First\ + \ found will be used, rest will be ignored, so it's recommended to pass single\ + \ selector." + example: + blockHash: + buffer: buffer + encoding: encoding + blockNumber: blockNumber + transactionId: transactionId + properties: + blockNumber: + description: Select block by it's number. + nullable: false + type: string + blockHash: + $ref: '#/components/schemas/GetBlockRequestV1_query_blockHash' + transactionId: + description: Select block by id of transaction that it contains. + nullable: false + type: string + type: object diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..eb14ea6e196 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,685 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeployContractGoSourceV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractGoSourceV1Request *DeployContractGoSourceV1Request +} + +func (r ApiDeployContractGoSourceV1Request) DeployContractGoSourceV1Request(deployContractGoSourceV1Request DeployContractGoSourceV1Request) ApiDeployContractGoSourceV1Request { + r.deployContractGoSourceV1Request = &deployContractGoSourceV1Request + return r +} + +func (r ApiDeployContractGoSourceV1Request) Execute() (*DeployContractGoSourceV1Response, *http.Response, error) { + return r.ApiService.DeployContractGoSourceV1Execute(r) +} + +/* +DeployContractGoSourceV1 Deploys a chaincode contract in the form of a go sources. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractGoSourceV1Request +*/ +func (a *DefaultApiService) DeployContractGoSourceV1(ctx context.Context) ApiDeployContractGoSourceV1Request { + return ApiDeployContractGoSourceV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractGoSourceV1Response +func (a *DefaultApiService) DeployContractGoSourceV1Execute(r ApiDeployContractGoSourceV1Request) (*DeployContractGoSourceV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractGoSourceV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractGoSourceV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract-go-source" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractGoSourceV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 501 { + var v DeployContractGoSourceV1501Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeployContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractV1Request *DeployContractV1Request +} + +func (r ApiDeployContractV1Request) DeployContractV1Request(deployContractV1Request DeployContractV1Request) ApiDeployContractV1Request { + r.deployContractV1Request = &deployContractV1Request + return r +} + +func (r ApiDeployContractV1Request) Execute() (*DeployContractV1Response, *http.Response, error) { + return r.ApiService.DeployContractV1Execute(r) +} + +/* +DeployContractV1 Deploys a chaincode contract from a set of source files. Note: This endpoint only supports Fabric 2.x. The 'v1' suffix in the method name refers to the Cactus API version, not the supported Fabric ledger version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractV1Request +*/ +func (a *DefaultApiService) DeployContractV1(ctx context.Context) ApiDeployContractV1Request { + return ApiDeployContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractV1Response +func (a *DefaultApiService) DeployContractV1Execute(r ApiDeployContractV1Request) (*DeployContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 501 { + var v DeployContractGoSourceV1501Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBlockV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getBlockRequestV1 *GetBlockRequestV1 +} + +func (r ApiGetBlockV1Request) GetBlockRequestV1(getBlockRequestV1 GetBlockRequestV1) ApiGetBlockV1Request { + r.getBlockRequestV1 = &getBlockRequestV1 + return r +} + +func (r ApiGetBlockV1Request) Execute() (*GetBlockResponseV1, *http.Response, error) { + return r.ApiService.GetBlockV1Execute(r) +} + +/* +GetBlockV1 Get block from the channel using one of selectors from the input. Works only on Fabric 2.x. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBlockV1Request +*/ +func (a *DefaultApiService) GetBlockV1(ctx context.Context) ApiGetBlockV1Request { + return ApiGetBlockV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetBlockResponseV1 +func (a *DefaultApiService) GetBlockV1Execute(r ApiGetBlockV1Request) (*GetBlockResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBlockResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetBlockV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-block" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getBlockRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTransactionReceiptByTxIDV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequest *RunTransactionRequest +} + +func (r ApiGetTransactionReceiptByTxIDV1Request) RunTransactionRequest(runTransactionRequest RunTransactionRequest) ApiGetTransactionReceiptByTxIDV1Request { + r.runTransactionRequest = &runTransactionRequest + return r +} + +func (r ApiGetTransactionReceiptByTxIDV1Request) Execute() (*GetTransactionReceiptResponse, *http.Response, error) { + return r.ApiService.GetTransactionReceiptByTxIDV1Execute(r) +} + +/* +GetTransactionReceiptByTxIDV1 get a transaction receipt by tx id on a Fabric ledger. + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTransactionReceiptByTxIDV1Request +*/ +func (a *DefaultApiService) GetTransactionReceiptByTxIDV1(ctx context.Context) ApiGetTransactionReceiptByTxIDV1Request { + return ApiGetTransactionReceiptByTxIDV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetTransactionReceiptResponse +func (a *DefaultApiService) GetTransactionReceiptByTxIDV1Execute(r ApiGetTransactionReceiptByTxIDV1Request) (*GetTransactionReceiptResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTransactionReceiptResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetTransactionReceiptByTxIDV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-transaction-receipt-by-txid" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.runTransactionRequest == nil { + return localVarReturnValue, nil, reportError("runTransactionRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequest *RunTransactionRequest +} + +func (r ApiRunTransactionV1Request) RunTransactionRequest(runTransactionRequest RunTransactionRequest) ApiRunTransactionV1Request { + r.runTransactionRequest = &runTransactionRequest + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Runs a transaction on a Fabric ledger. + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.runTransactionRequest == nil { + return localVarReturnValue, nil, reportError("runTransactionRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..8ea4619bdad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Fabric API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..36e6cb69acd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLanguageRuntime.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLanguageRuntime.md new file mode 100644 index 00000000000..ec85b16961c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLanguageRuntime.md @@ -0,0 +1,15 @@ +# ChainCodeLanguageRuntime + +## Enum + + +* `GOLANG` (value: `"golang"`) + +* `NODE` (value: `"node"`) + +* `JAVA` (value: `"java"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLifeCycleCommandResponses.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLifeCycleCommandResponses.md new file mode 100644 index 00000000000..58bd15e21bf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeLifeCycleCommandResponses.md @@ -0,0 +1,197 @@ +# ChainCodeLifeCycleCommandResponses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Packaging** | Pointer to [**SSHExecCommandResponse**](SSHExecCommandResponse.md) | | [optional] +**InstallList** | [**[]SSHExecCommandResponse**](SSHExecCommandResponse.md) | | +**QueryInstalledList** | [**[]SSHExecCommandResponse**](SSHExecCommandResponse.md) | | +**ApproveForMyOrgList** | [**[]SSHExecCommandResponse**](SSHExecCommandResponse.md) | | +**Commit** | Pointer to [**SSHExecCommandResponse**](SSHExecCommandResponse.md) | | [optional] +**QueryCommitted** | Pointer to [**SSHExecCommandResponse**](SSHExecCommandResponse.md) | | [optional] +**Init** | Pointer to [**SSHExecCommandResponse**](SSHExecCommandResponse.md) | | [optional] + +## Methods + +### NewChainCodeLifeCycleCommandResponses + +`func NewChainCodeLifeCycleCommandResponses(installList []SSHExecCommandResponse, queryInstalledList []SSHExecCommandResponse, approveForMyOrgList []SSHExecCommandResponse, ) *ChainCodeLifeCycleCommandResponses` + +NewChainCodeLifeCycleCommandResponses instantiates a new ChainCodeLifeCycleCommandResponses object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewChainCodeLifeCycleCommandResponsesWithDefaults + +`func NewChainCodeLifeCycleCommandResponsesWithDefaults() *ChainCodeLifeCycleCommandResponses` + +NewChainCodeLifeCycleCommandResponsesWithDefaults instantiates a new ChainCodeLifeCycleCommandResponses object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackaging + +`func (o *ChainCodeLifeCycleCommandResponses) GetPackaging() SSHExecCommandResponse` + +GetPackaging returns the Packaging field if non-nil, zero value otherwise. + +### GetPackagingOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetPackagingOk() (*SSHExecCommandResponse, bool)` + +GetPackagingOk returns a tuple with the Packaging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackaging + +`func (o *ChainCodeLifeCycleCommandResponses) SetPackaging(v SSHExecCommandResponse)` + +SetPackaging sets Packaging field to given value. + +### HasPackaging + +`func (o *ChainCodeLifeCycleCommandResponses) HasPackaging() bool` + +HasPackaging returns a boolean if a field has been set. + +### GetInstallList + +`func (o *ChainCodeLifeCycleCommandResponses) GetInstallList() []SSHExecCommandResponse` + +GetInstallList returns the InstallList field if non-nil, zero value otherwise. + +### GetInstallListOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetInstallListOk() (*[]SSHExecCommandResponse, bool)` + +GetInstallListOk returns a tuple with the InstallList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallList + +`func (o *ChainCodeLifeCycleCommandResponses) SetInstallList(v []SSHExecCommandResponse)` + +SetInstallList sets InstallList field to given value. + + +### GetQueryInstalledList + +`func (o *ChainCodeLifeCycleCommandResponses) GetQueryInstalledList() []SSHExecCommandResponse` + +GetQueryInstalledList returns the QueryInstalledList field if non-nil, zero value otherwise. + +### GetQueryInstalledListOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetQueryInstalledListOk() (*[]SSHExecCommandResponse, bool)` + +GetQueryInstalledListOk returns a tuple with the QueryInstalledList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryInstalledList + +`func (o *ChainCodeLifeCycleCommandResponses) SetQueryInstalledList(v []SSHExecCommandResponse)` + +SetQueryInstalledList sets QueryInstalledList field to given value. + + +### GetApproveForMyOrgList + +`func (o *ChainCodeLifeCycleCommandResponses) GetApproveForMyOrgList() []SSHExecCommandResponse` + +GetApproveForMyOrgList returns the ApproveForMyOrgList field if non-nil, zero value otherwise. + +### GetApproveForMyOrgListOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetApproveForMyOrgListOk() (*[]SSHExecCommandResponse, bool)` + +GetApproveForMyOrgListOk returns a tuple with the ApproveForMyOrgList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproveForMyOrgList + +`func (o *ChainCodeLifeCycleCommandResponses) SetApproveForMyOrgList(v []SSHExecCommandResponse)` + +SetApproveForMyOrgList sets ApproveForMyOrgList field to given value. + + +### GetCommit + +`func (o *ChainCodeLifeCycleCommandResponses) GetCommit() SSHExecCommandResponse` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetCommitOk() (*SSHExecCommandResponse, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *ChainCodeLifeCycleCommandResponses) SetCommit(v SSHExecCommandResponse)` + +SetCommit sets Commit field to given value. + +### HasCommit + +`func (o *ChainCodeLifeCycleCommandResponses) HasCommit() bool` + +HasCommit returns a boolean if a field has been set. + +### GetQueryCommitted + +`func (o *ChainCodeLifeCycleCommandResponses) GetQueryCommitted() SSHExecCommandResponse` + +GetQueryCommitted returns the QueryCommitted field if non-nil, zero value otherwise. + +### GetQueryCommittedOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetQueryCommittedOk() (*SSHExecCommandResponse, bool)` + +GetQueryCommittedOk returns a tuple with the QueryCommitted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryCommitted + +`func (o *ChainCodeLifeCycleCommandResponses) SetQueryCommitted(v SSHExecCommandResponse)` + +SetQueryCommitted sets QueryCommitted field to given value. + +### HasQueryCommitted + +`func (o *ChainCodeLifeCycleCommandResponses) HasQueryCommitted() bool` + +HasQueryCommitted returns a boolean if a field has been set. + +### GetInit + +`func (o *ChainCodeLifeCycleCommandResponses) GetInit() SSHExecCommandResponse` + +GetInit returns the Init field if non-nil, zero value otherwise. + +### GetInitOk + +`func (o *ChainCodeLifeCycleCommandResponses) GetInitOk() (*SSHExecCommandResponse, bool)` + +GetInitOk returns a tuple with the Init field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInit + +`func (o *ChainCodeLifeCycleCommandResponses) SetInit(v SSHExecCommandResponse)` + +SetInit sets Init field to given value. + +### HasInit + +`func (o *ChainCodeLifeCycleCommandResponses) HasInit() bool` + +HasInit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeProgrammingLanguage.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeProgrammingLanguage.md new file mode 100644 index 00000000000..382eaf31022 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ChainCodeProgrammingLanguage.md @@ -0,0 +1,17 @@ +# ChainCodeProgrammingLanguage + +## Enum + + +* `GOLANG` (value: `"golang"`) + +* `JAVASCRIPT` (value: `"javascript"`) + +* `TYPESCRIPT` (value: `"typescript"`) + +* `JAVA` (value: `"java"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfile.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfile.md new file mode 100644 index 00000000000..a2b78692a46 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfile.md @@ -0,0 +1,270 @@ +# ConnectionProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**XType** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Version** | **string** | | +**Client** | Pointer to [**ConnectionProfileClient**](ConnectionProfileClient.md) | | [optional] +**Channels** | Pointer to **map[string]interface{}** | | [optional] +**Organizations** | **map[string]interface{}** | | +**Orderers** | Pointer to **map[string]interface{}** | | [optional] +**Peers** | **map[string]interface{}** | | +**CertificateAuthorities** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewConnectionProfile + +`func NewConnectionProfile(name string, version string, organizations map[string]interface{}, peers map[string]interface{}, ) *ConnectionProfile` + +NewConnectionProfile instantiates a new ConnectionProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectionProfileWithDefaults + +`func NewConnectionProfileWithDefaults() *ConnectionProfile` + +NewConnectionProfileWithDefaults instantiates a new ConnectionProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ConnectionProfile) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectionProfile) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectionProfile) SetName(v string)` + +SetName sets Name field to given value. + + +### GetXType + +`func (o *ConnectionProfile) GetXType() string` + +GetXType returns the XType field if non-nil, zero value otherwise. + +### GetXTypeOk + +`func (o *ConnectionProfile) GetXTypeOk() (*string, bool)` + +GetXTypeOk returns a tuple with the XType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXType + +`func (o *ConnectionProfile) SetXType(v string)` + +SetXType sets XType field to given value. + +### HasXType + +`func (o *ConnectionProfile) HasXType() bool` + +HasXType returns a boolean if a field has been set. + +### GetDescription + +`func (o *ConnectionProfile) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ConnectionProfile) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ConnectionProfile) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ConnectionProfile) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVersion + +`func (o *ConnectionProfile) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConnectionProfile) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConnectionProfile) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetClient + +`func (o *ConnectionProfile) GetClient() ConnectionProfileClient` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *ConnectionProfile) GetClientOk() (*ConnectionProfileClient, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *ConnectionProfile) SetClient(v ConnectionProfileClient)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *ConnectionProfile) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetChannels + +`func (o *ConnectionProfile) GetChannels() map[string]interface{}` + +GetChannels returns the Channels field if non-nil, zero value otherwise. + +### GetChannelsOk + +`func (o *ConnectionProfile) GetChannelsOk() (*map[string]interface{}, bool)` + +GetChannelsOk returns a tuple with the Channels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannels + +`func (o *ConnectionProfile) SetChannels(v map[string]interface{})` + +SetChannels sets Channels field to given value. + +### HasChannels + +`func (o *ConnectionProfile) HasChannels() bool` + +HasChannels returns a boolean if a field has been set. + +### GetOrganizations + +`func (o *ConnectionProfile) GetOrganizations() map[string]interface{}` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *ConnectionProfile) GetOrganizationsOk() (*map[string]interface{}, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *ConnectionProfile) SetOrganizations(v map[string]interface{})` + +SetOrganizations sets Organizations field to given value. + + +### GetOrderers + +`func (o *ConnectionProfile) GetOrderers() map[string]interface{}` + +GetOrderers returns the Orderers field if non-nil, zero value otherwise. + +### GetOrderersOk + +`func (o *ConnectionProfile) GetOrderersOk() (*map[string]interface{}, bool)` + +GetOrderersOk returns a tuple with the Orderers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderers + +`func (o *ConnectionProfile) SetOrderers(v map[string]interface{})` + +SetOrderers sets Orderers field to given value. + +### HasOrderers + +`func (o *ConnectionProfile) HasOrderers() bool` + +HasOrderers returns a boolean if a field has been set. + +### GetPeers + +`func (o *ConnectionProfile) GetPeers() map[string]interface{}` + +GetPeers returns the Peers field if non-nil, zero value otherwise. + +### GetPeersOk + +`func (o *ConnectionProfile) GetPeersOk() (*map[string]interface{}, bool)` + +GetPeersOk returns a tuple with the Peers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeers + +`func (o *ConnectionProfile) SetPeers(v map[string]interface{})` + +SetPeers sets Peers field to given value. + + +### GetCertificateAuthorities + +`func (o *ConnectionProfile) GetCertificateAuthorities() map[string]interface{}` + +GetCertificateAuthorities returns the CertificateAuthorities field if non-nil, zero value otherwise. + +### GetCertificateAuthoritiesOk + +`func (o *ConnectionProfile) GetCertificateAuthoritiesOk() (*map[string]interface{}, bool)` + +GetCertificateAuthoritiesOk returns a tuple with the CertificateAuthorities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorities + +`func (o *ConnectionProfile) SetCertificateAuthorities(v map[string]interface{})` + +SetCertificateAuthorities sets CertificateAuthorities field to given value. + +### HasCertificateAuthorities + +`func (o *ConnectionProfile) HasCertificateAuthorities() bool` + +HasCertificateAuthorities returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfileClient.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfileClient.md new file mode 100644 index 00000000000..abd0b6f61a6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ConnectionProfileClient.md @@ -0,0 +1,56 @@ +# ConnectionProfileClient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectionProfileClient + +`func NewConnectionProfileClient() *ConnectionProfileClient` + +NewConnectionProfileClient instantiates a new ConnectionProfileClient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectionProfileClientWithDefaults + +`func NewConnectionProfileClientWithDefaults() *ConnectionProfileClient` + +NewConnectionProfileClientWithDefaults instantiates a new ConnectionProfileClient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *ConnectionProfileClient) GetOrganization() string` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *ConnectionProfileClient) GetOrganizationOk() (*string, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *ConnectionProfileClient) SetOrganization(v string)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *ConnectionProfileClient) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..fe64f1575fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,397 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeployContractGoSourceV1**](DefaultApi.md#DeployContractGoSourceV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract-go-source | Deploys a chaincode contract in the form of a go sources. +[**DeployContractV1**](DefaultApi.md#DeployContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/deploy-contract | Deploys a chaincode contract from a set of source files. Note: This endpoint only supports Fabric 2.x. The 'v1' suffix in the method name refers to the Cactus API version, not the supported Fabric ledger version. +[**GetBlockV1**](DefaultApi.md#GetBlockV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-block | Get block from the channel using one of selectors from the input. Works only on Fabric 2.x. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**GetTransactionReceiptByTxIDV1**](DefaultApi.md#GetTransactionReceiptByTxIDV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-transaction-receipt-by-txid | get a transaction receipt by tx id on a Fabric ledger. +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction | Runs a transaction on a Fabric ledger. + + + +## DeployContractGoSourceV1 + +> DeployContractGoSourceV1Response DeployContractGoSourceV1(ctx).DeployContractGoSourceV1Request(deployContractGoSourceV1Request).Execute() + +Deploys a chaincode contract in the form of a go sources. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractGoSourceV1Request := *openapiclient.NewDeployContractGoSourceV1Request("AND('Org1MSP.member','Org2MSP.member')", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt", "mychannel", []openapiclient.DeploymentTargetOrganization{*openapiclient.NewDeploymentTargetOrganization("Org1MSP", "peer0.org1.example.com:7051", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem")}, []string{"TargetPeerAddresses_example"}, "1.0.0", *openapiclient.NewFileBase64("Body_example", "my-cool-file-full-of-wonders-and-fun-stuff.go")) // DeployContractGoSourceV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractGoSourceV1(context.Background()).DeployContractGoSourceV1Request(deployContractGoSourceV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractGoSourceV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractGoSourceV1`: DeployContractGoSourceV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractGoSourceV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractGoSourceV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractGoSourceV1Request** | [**DeployContractGoSourceV1Request**](DeployContractGoSourceV1Request.md) | | + +### Return type + +[**DeployContractGoSourceV1Response**](DeployContractGoSourceV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeployContractV1 + +> DeployContractV1Response DeployContractV1(ctx).DeployContractV1Request(deployContractV1Request).Execute() + +Deploys a chaincode contract from a set of source files. Note: This endpoint only supports Fabric 2.x. The 'v1' suffix in the method name refers to the Cactus API version, not the supported Fabric ledger version. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractV1Request := *openapiclient.NewDeployContractV1Request(openapiclient.ChainCodeProgrammingLanguage("golang"), "${orgCfgDir}ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem", "orderer.example.com:7050", "orderer.example.com:7050", "mychannel", []openapiclient.DeploymentTargetOrganization{*openapiclient.NewDeploymentTargetOrganization("Org1MSP", "peer0.org1.example.com:7051", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt", "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem")}, float32(1), "1.0.0", "my-hello-world-contract", "hello-world-contract", []openapiclient.FileBase64{*openapiclient.NewFileBase64("Body_example", "my-cool-file-full-of-wonders-and-fun-stuff.go")}) // DeployContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractV1(context.Background()).DeployContractV1Request(deployContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractV1`: DeployContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractV1Request** | [**DeployContractV1Request**](DeployContractV1Request.md) | | + +### Return type + +[**DeployContractV1Response**](DeployContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBlockV1 + +> GetBlockResponseV1 GetBlockV1(ctx).GetBlockRequestV1(getBlockRequestV1).Execute() + +Get block from the channel using one of selectors from the input. Works only on Fabric 2.x. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + getBlockRequestV1 := *openapiclient.NewGetBlockRequestV1("ChannelName_example", *openapiclient.NewGatewayOptions("Identity_example", *openapiclient.NewGatewayOptionsWallet()), *openapiclient.NewGetBlockRequestV1Query()) // GetBlockRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetBlockV1(context.Background()).GetBlockRequestV1(getBlockRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetBlockV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBlockV1`: GetBlockResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetBlockV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBlockV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getBlockRequestV1** | [**GetBlockRequestV1**](GetBlockRequestV1.md) | | + +### Return type + +[**GetBlockResponseV1**](GetBlockResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTransactionReceiptByTxIDV1 + +> GetTransactionReceiptResponse GetTransactionReceiptByTxIDV1(ctx).RunTransactionRequest(runTransactionRequest).Execute() + +get a transaction receipt by tx id on a Fabric ledger. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionRequest := *openapiclient.NewRunTransactionRequest(*openapiclient.NewFabricSigningCredential("KeychainId_example", "KeychainRef_example"), "ChannelName_example", "ContractName_example", openapiclient.FabricContractInvocationType("FabricContractInvocationType.SEND"), "MethodName_example", []*string{nil}) // RunTransactionRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetTransactionReceiptByTxIDV1(context.Background()).RunTransactionRequest(runTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTransactionReceiptByTxIDV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransactionReceiptByTxIDV1`: GetTransactionReceiptResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTransactionReceiptByTxIDV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTransactionReceiptByTxIDV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequest** | [**RunTransactionRequest**](RunTransactionRequest.md) | | + +### Return type + +[**GetTransactionReceiptResponse**](GetTransactionReceiptResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionResponse RunTransactionV1(ctx).RunTransactionRequest(runTransactionRequest).Execute() + +Runs a transaction on a Fabric ledger. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionRequest := *openapiclient.NewRunTransactionRequest(*openapiclient.NewFabricSigningCredential("KeychainId_example", "KeychainRef_example"), "ChannelName_example", "ContractName_example", openapiclient.FabricContractInvocationType("FabricContractInvocationType.SEND"), "MethodName_example", []*string{nil}) // RunTransactionRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionRequest(runTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequest** | [**RunTransactionRequest**](RunTransactionRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultEventHandlerStrategy.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultEventHandlerStrategy.md new file mode 100644 index 00000000000..b3e2f1a82e4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DefaultEventHandlerStrategy.md @@ -0,0 +1,17 @@ +# DefaultEventHandlerStrategy + +## Enum + + +* `MSPID_SCOPE_ALLFORTX` (value: `"MSPID_SCOPE_ALLFORTX"`) + +* `MSPID_SCOPE_ANYFORTX` (value: `"MSPID_SCOPE_ANYFORTX"`) + +* `NETWORK_SCOPE_ALLFORTX` (value: `"NETWORK_SCOPE_ALLFORTX"`) + +* `NETWORK_SCOPE_ANYFORTX` (value: `"NETWORK_SCOPE_ANYFORTX"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1501Response.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1501Response.md new file mode 100644 index 00000000000..97102033bf7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1501Response.md @@ -0,0 +1,56 @@ +# DeployContractGoSourceV1501Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewDeployContractGoSourceV1501Response + +`func NewDeployContractGoSourceV1501Response() *DeployContractGoSourceV1501Response` + +NewDeployContractGoSourceV1501Response instantiates a new DeployContractGoSourceV1501Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractGoSourceV1501ResponseWithDefaults + +`func NewDeployContractGoSourceV1501ResponseWithDefaults() *DeployContractGoSourceV1501Response` + +NewDeployContractGoSourceV1501ResponseWithDefaults instantiates a new DeployContractGoSourceV1501Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *DeployContractGoSourceV1501Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeployContractGoSourceV1501Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *DeployContractGoSourceV1501Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeployContractGoSourceV1501Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Request.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Request.md new file mode 100644 index 00000000000..880d4d80784 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Request.md @@ -0,0 +1,317 @@ +# DeployContractGoSourceV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyDslSource** | **string** | | +**TlsRootCertFiles** | **string** | The TLS root cert files that will be passed to the chaincode instantiation command. | +**ChannelId** | **string** | The name of the Fabric channel where the contract will get instantiated. | +**TargetOrganizations** | [**[]DeploymentTargetOrganization**](DeploymentTargetOrganization.md) | | +**TargetPeerAddresses** | **[]string** | An array of peer addresses where the contract will be instantiated. Note that at present only the first item from this array will be used which is the behavior taken from the official Fabric samples repository and therefore it is assumed to be correct usage. | +**ConstructorArgs** | Pointer to [**DeployContractGoSourceV1RequestConstructorArgs**](DeployContractGoSourceV1RequestConstructorArgs.md) | | [optional] +**ChainCodeVersion** | **string** | | +**GoSource** | [**FileBase64**](FileBase64.md) | | +**GoMod** | Pointer to [**FileBase64**](FileBase64.md) | | [optional] +**ModuleName** | Pointer to **string** | The go module name that will be used for the go compilation process. | [optional] +**PinnedDeps** | Pointer to **[]string** | | [optional] +**ModTidyOnly** | Pointer to **NullableBool** | Indicates to the go chaincode compiler of Cactus if it should do an actual go compilation with the contact source or if it should just execute the go mod tidy command. | [optional] + +## Methods + +### NewDeployContractGoSourceV1Request + +`func NewDeployContractGoSourceV1Request(policyDslSource string, tlsRootCertFiles string, channelId string, targetOrganizations []DeploymentTargetOrganization, targetPeerAddresses []string, chainCodeVersion string, goSource FileBase64, ) *DeployContractGoSourceV1Request` + +NewDeployContractGoSourceV1Request instantiates a new DeployContractGoSourceV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractGoSourceV1RequestWithDefaults + +`func NewDeployContractGoSourceV1RequestWithDefaults() *DeployContractGoSourceV1Request` + +NewDeployContractGoSourceV1RequestWithDefaults instantiates a new DeployContractGoSourceV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicyDslSource + +`func (o *DeployContractGoSourceV1Request) GetPolicyDslSource() string` + +GetPolicyDslSource returns the PolicyDslSource field if non-nil, zero value otherwise. + +### GetPolicyDslSourceOk + +`func (o *DeployContractGoSourceV1Request) GetPolicyDslSourceOk() (*string, bool)` + +GetPolicyDslSourceOk returns a tuple with the PolicyDslSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyDslSource + +`func (o *DeployContractGoSourceV1Request) SetPolicyDslSource(v string)` + +SetPolicyDslSource sets PolicyDslSource field to given value. + + +### GetTlsRootCertFiles + +`func (o *DeployContractGoSourceV1Request) GetTlsRootCertFiles() string` + +GetTlsRootCertFiles returns the TlsRootCertFiles field if non-nil, zero value otherwise. + +### GetTlsRootCertFilesOk + +`func (o *DeployContractGoSourceV1Request) GetTlsRootCertFilesOk() (*string, bool)` + +GetTlsRootCertFilesOk returns a tuple with the TlsRootCertFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTlsRootCertFiles + +`func (o *DeployContractGoSourceV1Request) SetTlsRootCertFiles(v string)` + +SetTlsRootCertFiles sets TlsRootCertFiles field to given value. + + +### GetChannelId + +`func (o *DeployContractGoSourceV1Request) GetChannelId() string` + +GetChannelId returns the ChannelId field if non-nil, zero value otherwise. + +### GetChannelIdOk + +`func (o *DeployContractGoSourceV1Request) GetChannelIdOk() (*string, bool)` + +GetChannelIdOk returns a tuple with the ChannelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelId + +`func (o *DeployContractGoSourceV1Request) SetChannelId(v string)` + +SetChannelId sets ChannelId field to given value. + + +### GetTargetOrganizations + +`func (o *DeployContractGoSourceV1Request) GetTargetOrganizations() []DeploymentTargetOrganization` + +GetTargetOrganizations returns the TargetOrganizations field if non-nil, zero value otherwise. + +### GetTargetOrganizationsOk + +`func (o *DeployContractGoSourceV1Request) GetTargetOrganizationsOk() (*[]DeploymentTargetOrganization, bool)` + +GetTargetOrganizationsOk returns a tuple with the TargetOrganizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetOrganizations + +`func (o *DeployContractGoSourceV1Request) SetTargetOrganizations(v []DeploymentTargetOrganization)` + +SetTargetOrganizations sets TargetOrganizations field to given value. + + +### GetTargetPeerAddresses + +`func (o *DeployContractGoSourceV1Request) GetTargetPeerAddresses() []string` + +GetTargetPeerAddresses returns the TargetPeerAddresses field if non-nil, zero value otherwise. + +### GetTargetPeerAddressesOk + +`func (o *DeployContractGoSourceV1Request) GetTargetPeerAddressesOk() (*[]string, bool)` + +GetTargetPeerAddressesOk returns a tuple with the TargetPeerAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetPeerAddresses + +`func (o *DeployContractGoSourceV1Request) SetTargetPeerAddresses(v []string)` + +SetTargetPeerAddresses sets TargetPeerAddresses field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractGoSourceV1Request) GetConstructorArgs() DeployContractGoSourceV1RequestConstructorArgs` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractGoSourceV1Request) GetConstructorArgsOk() (*DeployContractGoSourceV1RequestConstructorArgs, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractGoSourceV1Request) SetConstructorArgs(v DeployContractGoSourceV1RequestConstructorArgs)` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractGoSourceV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + +### GetChainCodeVersion + +`func (o *DeployContractGoSourceV1Request) GetChainCodeVersion() string` + +GetChainCodeVersion returns the ChainCodeVersion field if non-nil, zero value otherwise. + +### GetChainCodeVersionOk + +`func (o *DeployContractGoSourceV1Request) GetChainCodeVersionOk() (*string, bool)` + +GetChainCodeVersionOk returns a tuple with the ChainCodeVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainCodeVersion + +`func (o *DeployContractGoSourceV1Request) SetChainCodeVersion(v string)` + +SetChainCodeVersion sets ChainCodeVersion field to given value. + + +### GetGoSource + +`func (o *DeployContractGoSourceV1Request) GetGoSource() FileBase64` + +GetGoSource returns the GoSource field if non-nil, zero value otherwise. + +### GetGoSourceOk + +`func (o *DeployContractGoSourceV1Request) GetGoSourceOk() (*FileBase64, bool)` + +GetGoSourceOk returns a tuple with the GoSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoSource + +`func (o *DeployContractGoSourceV1Request) SetGoSource(v FileBase64)` + +SetGoSource sets GoSource field to given value. + + +### GetGoMod + +`func (o *DeployContractGoSourceV1Request) GetGoMod() FileBase64` + +GetGoMod returns the GoMod field if non-nil, zero value otherwise. + +### GetGoModOk + +`func (o *DeployContractGoSourceV1Request) GetGoModOk() (*FileBase64, bool)` + +GetGoModOk returns a tuple with the GoMod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoMod + +`func (o *DeployContractGoSourceV1Request) SetGoMod(v FileBase64)` + +SetGoMod sets GoMod field to given value. + +### HasGoMod + +`func (o *DeployContractGoSourceV1Request) HasGoMod() bool` + +HasGoMod returns a boolean if a field has been set. + +### GetModuleName + +`func (o *DeployContractGoSourceV1Request) GetModuleName() string` + +GetModuleName returns the ModuleName field if non-nil, zero value otherwise. + +### GetModuleNameOk + +`func (o *DeployContractGoSourceV1Request) GetModuleNameOk() (*string, bool)` + +GetModuleNameOk returns a tuple with the ModuleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleName + +`func (o *DeployContractGoSourceV1Request) SetModuleName(v string)` + +SetModuleName sets ModuleName field to given value. + +### HasModuleName + +`func (o *DeployContractGoSourceV1Request) HasModuleName() bool` + +HasModuleName returns a boolean if a field has been set. + +### GetPinnedDeps + +`func (o *DeployContractGoSourceV1Request) GetPinnedDeps() []string` + +GetPinnedDeps returns the PinnedDeps field if non-nil, zero value otherwise. + +### GetPinnedDepsOk + +`func (o *DeployContractGoSourceV1Request) GetPinnedDepsOk() (*[]string, bool)` + +GetPinnedDepsOk returns a tuple with the PinnedDeps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPinnedDeps + +`func (o *DeployContractGoSourceV1Request) SetPinnedDeps(v []string)` + +SetPinnedDeps sets PinnedDeps field to given value. + +### HasPinnedDeps + +`func (o *DeployContractGoSourceV1Request) HasPinnedDeps() bool` + +HasPinnedDeps returns a boolean if a field has been set. + +### GetModTidyOnly + +`func (o *DeployContractGoSourceV1Request) GetModTidyOnly() bool` + +GetModTidyOnly returns the ModTidyOnly field if non-nil, zero value otherwise. + +### GetModTidyOnlyOk + +`func (o *DeployContractGoSourceV1Request) GetModTidyOnlyOk() (*bool, bool)` + +GetModTidyOnlyOk returns a tuple with the ModTidyOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModTidyOnly + +`func (o *DeployContractGoSourceV1Request) SetModTidyOnly(v bool)` + +SetModTidyOnly sets ModTidyOnly field to given value. + +### HasModTidyOnly + +`func (o *DeployContractGoSourceV1Request) HasModTidyOnly() bool` + +HasModTidyOnly returns a boolean if a field has been set. + +### SetModTidyOnlyNil + +`func (o *DeployContractGoSourceV1Request) SetModTidyOnlyNil(b bool)` + + SetModTidyOnlyNil sets the value for ModTidyOnly to be an explicit nil + +### UnsetModTidyOnly +`func (o *DeployContractGoSourceV1Request) UnsetModTidyOnly()` + +UnsetModTidyOnly ensures that no value is present for ModTidyOnly, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1RequestConstructorArgs.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1RequestConstructorArgs.md new file mode 100644 index 00000000000..5f5ae3281fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1RequestConstructorArgs.md @@ -0,0 +1,56 @@ +# DeployContractGoSourceV1RequestConstructorArgs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Args** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewDeployContractGoSourceV1RequestConstructorArgs + +`func NewDeployContractGoSourceV1RequestConstructorArgs() *DeployContractGoSourceV1RequestConstructorArgs` + +NewDeployContractGoSourceV1RequestConstructorArgs instantiates a new DeployContractGoSourceV1RequestConstructorArgs object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractGoSourceV1RequestConstructorArgsWithDefaults + +`func NewDeployContractGoSourceV1RequestConstructorArgsWithDefaults() *DeployContractGoSourceV1RequestConstructorArgs` + +NewDeployContractGoSourceV1RequestConstructorArgsWithDefaults instantiates a new DeployContractGoSourceV1RequestConstructorArgs object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArgs + +`func (o *DeployContractGoSourceV1RequestConstructorArgs) GetArgs() []interface{}` + +GetArgs returns the Args field if non-nil, zero value otherwise. + +### GetArgsOk + +`func (o *DeployContractGoSourceV1RequestConstructorArgs) GetArgsOk() (*[]interface{}, bool)` + +GetArgsOk returns a tuple with the Args field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArgs + +`func (o *DeployContractGoSourceV1RequestConstructorArgs) SetArgs(v []interface{})` + +SetArgs sets Args field to given value. + +### HasArgs + +`func (o *DeployContractGoSourceV1RequestConstructorArgs) HasArgs() bool` + +HasArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Response.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Response.md new file mode 100644 index 00000000000..0f444cd8423 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractGoSourceV1Response.md @@ -0,0 +1,93 @@ +# DeployContractGoSourceV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**InstallationCommandResponses** | [**[]SSHExecCommandResponse**](SSHExecCommandResponse.md) | | +**InstantiationCommandResponse** | [**SSHExecCommandResponse**](SSHExecCommandResponse.md) | | + +## Methods + +### NewDeployContractGoSourceV1Response + +`func NewDeployContractGoSourceV1Response(success bool, installationCommandResponses []SSHExecCommandResponse, instantiationCommandResponse SSHExecCommandResponse, ) *DeployContractGoSourceV1Response` + +NewDeployContractGoSourceV1Response instantiates a new DeployContractGoSourceV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractGoSourceV1ResponseWithDefaults + +`func NewDeployContractGoSourceV1ResponseWithDefaults() *DeployContractGoSourceV1Response` + +NewDeployContractGoSourceV1ResponseWithDefaults instantiates a new DeployContractGoSourceV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *DeployContractGoSourceV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *DeployContractGoSourceV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *DeployContractGoSourceV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetInstallationCommandResponses + +`func (o *DeployContractGoSourceV1Response) GetInstallationCommandResponses() []SSHExecCommandResponse` + +GetInstallationCommandResponses returns the InstallationCommandResponses field if non-nil, zero value otherwise. + +### GetInstallationCommandResponsesOk + +`func (o *DeployContractGoSourceV1Response) GetInstallationCommandResponsesOk() (*[]SSHExecCommandResponse, bool)` + +GetInstallationCommandResponsesOk returns a tuple with the InstallationCommandResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallationCommandResponses + +`func (o *DeployContractGoSourceV1Response) SetInstallationCommandResponses(v []SSHExecCommandResponse)` + +SetInstallationCommandResponses sets InstallationCommandResponses field to given value. + + +### GetInstantiationCommandResponse + +`func (o *DeployContractGoSourceV1Response) GetInstantiationCommandResponse() SSHExecCommandResponse` + +GetInstantiationCommandResponse returns the InstantiationCommandResponse field if non-nil, zero value otherwise. + +### GetInstantiationCommandResponseOk + +`func (o *DeployContractGoSourceV1Response) GetInstantiationCommandResponseOk() (*SSHExecCommandResponse, bool)` + +GetInstantiationCommandResponseOk returns a tuple with the InstantiationCommandResponse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstantiationCommandResponse + +`func (o *DeployContractGoSourceV1Response) SetInstantiationCommandResponse(v SSHExecCommandResponse)` + +SetInstantiationCommandResponse sets InstantiationCommandResponse field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md new file mode 100644 index 00000000000..45e5e7659ba --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md @@ -0,0 +1,365 @@ +# DeployContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CcLang** | [**ChainCodeProgrammingLanguage**](ChainCodeProgrammingLanguage.md) | | +**CaFile** | **string** | File-system path pointing at the CA file. | +**Orderer** | **string** | Ordering service endpoint specified as <hostname or IP address>:<port> | +**OrdererTLSHostnameOverride** | **string** | The hostname override to use when validating the TLS connection to the orderer | +**ConnTimeout** | Pointer to **int32** | Timeout for client to connect (default 3s) | [optional] +**SignaturePolicy** | Pointer to **string** | Passed in to the peer via the --signature-policy argument on the command line. See also: https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html#setting-chaincode-level-endorsement-policies | [optional] +**CollectionsConfigFile** | Pointer to **string** | Name of the collections config file as present in the sourceFiles array of the request. | [optional] +**ChannelId** | **string** | The name of the Fabric channel where the contract will get instantiated. | +**TargetOrganizations** | [**[]DeploymentTargetOrganization**](DeploymentTargetOrganization.md) | | +**ConstructorArgs** | Pointer to [**DeployContractGoSourceV1RequestConstructorArgs**](DeployContractGoSourceV1RequestConstructorArgs.md) | | [optional] +**CcSequence** | **float32** | | +**CcVersion** | **string** | | +**CcName** | **string** | | +**CcLabel** | **string** | Human readable label to uniquely identify the contract. Recommended to include in this at least the contract name and the exact version in order to make it easily distinguishable from other deployments of the same contract. | +**SourceFiles** | [**[]FileBase64**](FileBase64.md) | The your-smart-contract.go file where the functionality of your contract is implemented. | + +## Methods + +### NewDeployContractV1Request + +`func NewDeployContractV1Request(ccLang ChainCodeProgrammingLanguage, caFile string, orderer string, ordererTLSHostnameOverride string, channelId string, targetOrganizations []DeploymentTargetOrganization, ccSequence float32, ccVersion string, ccName string, ccLabel string, sourceFiles []FileBase64, ) *DeployContractV1Request` + +NewDeployContractV1Request instantiates a new DeployContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractV1RequestWithDefaults + +`func NewDeployContractV1RequestWithDefaults() *DeployContractV1Request` + +NewDeployContractV1RequestWithDefaults instantiates a new DeployContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCcLang + +`func (o *DeployContractV1Request) GetCcLang() ChainCodeProgrammingLanguage` + +GetCcLang returns the CcLang field if non-nil, zero value otherwise. + +### GetCcLangOk + +`func (o *DeployContractV1Request) GetCcLangOk() (*ChainCodeProgrammingLanguage, bool)` + +GetCcLangOk returns a tuple with the CcLang field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcLang + +`func (o *DeployContractV1Request) SetCcLang(v ChainCodeProgrammingLanguage)` + +SetCcLang sets CcLang field to given value. + + +### GetCaFile + +`func (o *DeployContractV1Request) GetCaFile() string` + +GetCaFile returns the CaFile field if non-nil, zero value otherwise. + +### GetCaFileOk + +`func (o *DeployContractV1Request) GetCaFileOk() (*string, bool)` + +GetCaFileOk returns a tuple with the CaFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaFile + +`func (o *DeployContractV1Request) SetCaFile(v string)` + +SetCaFile sets CaFile field to given value. + + +### GetOrderer + +`func (o *DeployContractV1Request) GetOrderer() string` + +GetOrderer returns the Orderer field if non-nil, zero value otherwise. + +### GetOrdererOk + +`func (o *DeployContractV1Request) GetOrdererOk() (*string, bool)` + +GetOrdererOk returns a tuple with the Orderer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderer + +`func (o *DeployContractV1Request) SetOrderer(v string)` + +SetOrderer sets Orderer field to given value. + + +### GetOrdererTLSHostnameOverride + +`func (o *DeployContractV1Request) GetOrdererTLSHostnameOverride() string` + +GetOrdererTLSHostnameOverride returns the OrdererTLSHostnameOverride field if non-nil, zero value otherwise. + +### GetOrdererTLSHostnameOverrideOk + +`func (o *DeployContractV1Request) GetOrdererTLSHostnameOverrideOk() (*string, bool)` + +GetOrdererTLSHostnameOverrideOk returns a tuple with the OrdererTLSHostnameOverride field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdererTLSHostnameOverride + +`func (o *DeployContractV1Request) SetOrdererTLSHostnameOverride(v string)` + +SetOrdererTLSHostnameOverride sets OrdererTLSHostnameOverride field to given value. + + +### GetConnTimeout + +`func (o *DeployContractV1Request) GetConnTimeout() int32` + +GetConnTimeout returns the ConnTimeout field if non-nil, zero value otherwise. + +### GetConnTimeoutOk + +`func (o *DeployContractV1Request) GetConnTimeoutOk() (*int32, bool)` + +GetConnTimeoutOk returns a tuple with the ConnTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnTimeout + +`func (o *DeployContractV1Request) SetConnTimeout(v int32)` + +SetConnTimeout sets ConnTimeout field to given value. + +### HasConnTimeout + +`func (o *DeployContractV1Request) HasConnTimeout() bool` + +HasConnTimeout returns a boolean if a field has been set. + +### GetSignaturePolicy + +`func (o *DeployContractV1Request) GetSignaturePolicy() string` + +GetSignaturePolicy returns the SignaturePolicy field if non-nil, zero value otherwise. + +### GetSignaturePolicyOk + +`func (o *DeployContractV1Request) GetSignaturePolicyOk() (*string, bool)` + +GetSignaturePolicyOk returns a tuple with the SignaturePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignaturePolicy + +`func (o *DeployContractV1Request) SetSignaturePolicy(v string)` + +SetSignaturePolicy sets SignaturePolicy field to given value. + +### HasSignaturePolicy + +`func (o *DeployContractV1Request) HasSignaturePolicy() bool` + +HasSignaturePolicy returns a boolean if a field has been set. + +### GetCollectionsConfigFile + +`func (o *DeployContractV1Request) GetCollectionsConfigFile() string` + +GetCollectionsConfigFile returns the CollectionsConfigFile field if non-nil, zero value otherwise. + +### GetCollectionsConfigFileOk + +`func (o *DeployContractV1Request) GetCollectionsConfigFileOk() (*string, bool)` + +GetCollectionsConfigFileOk returns a tuple with the CollectionsConfigFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionsConfigFile + +`func (o *DeployContractV1Request) SetCollectionsConfigFile(v string)` + +SetCollectionsConfigFile sets CollectionsConfigFile field to given value. + +### HasCollectionsConfigFile + +`func (o *DeployContractV1Request) HasCollectionsConfigFile() bool` + +HasCollectionsConfigFile returns a boolean if a field has been set. + +### GetChannelId + +`func (o *DeployContractV1Request) GetChannelId() string` + +GetChannelId returns the ChannelId field if non-nil, zero value otherwise. + +### GetChannelIdOk + +`func (o *DeployContractV1Request) GetChannelIdOk() (*string, bool)` + +GetChannelIdOk returns a tuple with the ChannelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelId + +`func (o *DeployContractV1Request) SetChannelId(v string)` + +SetChannelId sets ChannelId field to given value. + + +### GetTargetOrganizations + +`func (o *DeployContractV1Request) GetTargetOrganizations() []DeploymentTargetOrganization` + +GetTargetOrganizations returns the TargetOrganizations field if non-nil, zero value otherwise. + +### GetTargetOrganizationsOk + +`func (o *DeployContractV1Request) GetTargetOrganizationsOk() (*[]DeploymentTargetOrganization, bool)` + +GetTargetOrganizationsOk returns a tuple with the TargetOrganizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetOrganizations + +`func (o *DeployContractV1Request) SetTargetOrganizations(v []DeploymentTargetOrganization)` + +SetTargetOrganizations sets TargetOrganizations field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractV1Request) GetConstructorArgs() DeployContractGoSourceV1RequestConstructorArgs` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractV1Request) GetConstructorArgsOk() (*DeployContractGoSourceV1RequestConstructorArgs, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractV1Request) SetConstructorArgs(v DeployContractGoSourceV1RequestConstructorArgs)` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + +### GetCcSequence + +`func (o *DeployContractV1Request) GetCcSequence() float32` + +GetCcSequence returns the CcSequence field if non-nil, zero value otherwise. + +### GetCcSequenceOk + +`func (o *DeployContractV1Request) GetCcSequenceOk() (*float32, bool)` + +GetCcSequenceOk returns a tuple with the CcSequence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcSequence + +`func (o *DeployContractV1Request) SetCcSequence(v float32)` + +SetCcSequence sets CcSequence field to given value. + + +### GetCcVersion + +`func (o *DeployContractV1Request) GetCcVersion() string` + +GetCcVersion returns the CcVersion field if non-nil, zero value otherwise. + +### GetCcVersionOk + +`func (o *DeployContractV1Request) GetCcVersionOk() (*string, bool)` + +GetCcVersionOk returns a tuple with the CcVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcVersion + +`func (o *DeployContractV1Request) SetCcVersion(v string)` + +SetCcVersion sets CcVersion field to given value. + + +### GetCcName + +`func (o *DeployContractV1Request) GetCcName() string` + +GetCcName returns the CcName field if non-nil, zero value otherwise. + +### GetCcNameOk + +`func (o *DeployContractV1Request) GetCcNameOk() (*string, bool)` + +GetCcNameOk returns a tuple with the CcName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcName + +`func (o *DeployContractV1Request) SetCcName(v string)` + +SetCcName sets CcName field to given value. + + +### GetCcLabel + +`func (o *DeployContractV1Request) GetCcLabel() string` + +GetCcLabel returns the CcLabel field if non-nil, zero value otherwise. + +### GetCcLabelOk + +`func (o *DeployContractV1Request) GetCcLabelOk() (*string, bool)` + +GetCcLabelOk returns a tuple with the CcLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCcLabel + +`func (o *DeployContractV1Request) SetCcLabel(v string)` + +SetCcLabel sets CcLabel field to given value. + + +### GetSourceFiles + +`func (o *DeployContractV1Request) GetSourceFiles() []FileBase64` + +GetSourceFiles returns the SourceFiles field if non-nil, zero value otherwise. + +### GetSourceFilesOk + +`func (o *DeployContractV1Request) GetSourceFilesOk() (*[]FileBase64, bool)` + +GetSourceFilesOk returns a tuple with the SourceFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceFiles + +`func (o *DeployContractV1Request) SetSourceFiles(v []FileBase64)` + +SetSourceFiles sets SourceFiles field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md new file mode 100644 index 00000000000..4e0f3838fbb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md @@ -0,0 +1,93 @@ +# DeployContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**PackageIds** | **[]string** | | +**Lifecycle** | [**ChainCodeLifeCycleCommandResponses**](ChainCodeLifeCycleCommandResponses.md) | | + +## Methods + +### NewDeployContractV1Response + +`func NewDeployContractV1Response(success bool, packageIds []string, lifecycle ChainCodeLifeCycleCommandResponses, ) *DeployContractV1Response` + +NewDeployContractV1Response instantiates a new DeployContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractV1ResponseWithDefaults + +`func NewDeployContractV1ResponseWithDefaults() *DeployContractV1Response` + +NewDeployContractV1ResponseWithDefaults instantiates a new DeployContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *DeployContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *DeployContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *DeployContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetPackageIds + +`func (o *DeployContractV1Response) GetPackageIds() []string` + +GetPackageIds returns the PackageIds field if non-nil, zero value otherwise. + +### GetPackageIdsOk + +`func (o *DeployContractV1Response) GetPackageIdsOk() (*[]string, bool)` + +GetPackageIdsOk returns a tuple with the PackageIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageIds + +`func (o *DeployContractV1Response) SetPackageIds(v []string)` + +SetPackageIds sets PackageIds field to given value. + + +### GetLifecycle + +`func (o *DeployContractV1Response) GetLifecycle() ChainCodeLifeCycleCommandResponses` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *DeployContractV1Response) GetLifecycleOk() (*ChainCodeLifeCycleCommandResponses, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *DeployContractV1Response) SetLifecycle(v ChainCodeLifeCycleCommandResponses)` + +SetLifecycle sets Lifecycle field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrgFabric2x.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrgFabric2x.md new file mode 100644 index 00000000000..f457bca4785 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrgFabric2x.md @@ -0,0 +1,161 @@ +# DeploymentTargetOrgFabric2x + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Transient** | Pointer to **string** | Transient map of arguments in JSON encoding | [optional] +**CORE_PEER_LOCALMSPID** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_ADDRESS** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_MSPCONFIGPATH** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_TLS_ROOTCERT_FILE** | **string** | Mapped to environment variables of the Fabric CLI container. | +**ORDERER_TLS_ROOTCERT_FILE** | **string** | Mapped to environment variables of the Fabric CLI container. | + +## Methods + +### NewDeploymentTargetOrgFabric2x + +`func NewDeploymentTargetOrgFabric2x(cOREPEERLOCALMSPID string, cOREPEERADDRESS string, cOREPEERMSPCONFIGPATH string, cOREPEERTLSROOTCERTFILE string, oRDERERTLSROOTCERTFILE string, ) *DeploymentTargetOrgFabric2x` + +NewDeploymentTargetOrgFabric2x instantiates a new DeploymentTargetOrgFabric2x object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeploymentTargetOrgFabric2xWithDefaults + +`func NewDeploymentTargetOrgFabric2xWithDefaults() *DeploymentTargetOrgFabric2x` + +NewDeploymentTargetOrgFabric2xWithDefaults instantiates a new DeploymentTargetOrgFabric2x object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransient + +`func (o *DeploymentTargetOrgFabric2x) GetTransient() string` + +GetTransient returns the Transient field if non-nil, zero value otherwise. + +### GetTransientOk + +`func (o *DeploymentTargetOrgFabric2x) GetTransientOk() (*string, bool)` + +GetTransientOk returns a tuple with the Transient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransient + +`func (o *DeploymentTargetOrgFabric2x) SetTransient(v string)` + +SetTransient sets Transient field to given value. + +### HasTransient + +`func (o *DeploymentTargetOrgFabric2x) HasTransient() bool` + +HasTransient returns a boolean if a field has been set. + +### GetCORE_PEER_LOCALMSPID + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_LOCALMSPID() string` + +GetCORE_PEER_LOCALMSPID returns the CORE_PEER_LOCALMSPID field if non-nil, zero value otherwise. + +### GetCORE_PEER_LOCALMSPIDOk + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_LOCALMSPIDOk() (*string, bool)` + +GetCORE_PEER_LOCALMSPIDOk returns a tuple with the CORE_PEER_LOCALMSPID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_LOCALMSPID + +`func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_LOCALMSPID(v string)` + +SetCORE_PEER_LOCALMSPID sets CORE_PEER_LOCALMSPID field to given value. + + +### GetCORE_PEER_ADDRESS + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_ADDRESS() string` + +GetCORE_PEER_ADDRESS returns the CORE_PEER_ADDRESS field if non-nil, zero value otherwise. + +### GetCORE_PEER_ADDRESSOk + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_ADDRESSOk() (*string, bool)` + +GetCORE_PEER_ADDRESSOk returns a tuple with the CORE_PEER_ADDRESS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_ADDRESS + +`func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_ADDRESS(v string)` + +SetCORE_PEER_ADDRESS sets CORE_PEER_ADDRESS field to given value. + + +### GetCORE_PEER_MSPCONFIGPATH + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_MSPCONFIGPATH() string` + +GetCORE_PEER_MSPCONFIGPATH returns the CORE_PEER_MSPCONFIGPATH field if non-nil, zero value otherwise. + +### GetCORE_PEER_MSPCONFIGPATHOk + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_MSPCONFIGPATHOk() (*string, bool)` + +GetCORE_PEER_MSPCONFIGPATHOk returns a tuple with the CORE_PEER_MSPCONFIGPATH field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_MSPCONFIGPATH + +`func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_MSPCONFIGPATH(v string)` + +SetCORE_PEER_MSPCONFIGPATH sets CORE_PEER_MSPCONFIGPATH field to given value. + + +### GetCORE_PEER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_TLS_ROOTCERT_FILE() string` + +GetCORE_PEER_TLS_ROOTCERT_FILE returns the CORE_PEER_TLS_ROOTCERT_FILE field if non-nil, zero value otherwise. + +### GetCORE_PEER_TLS_ROOTCERT_FILEOk + +`func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_TLS_ROOTCERT_FILEOk() (*string, bool)` + +GetCORE_PEER_TLS_ROOTCERT_FILEOk returns a tuple with the CORE_PEER_TLS_ROOTCERT_FILE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_TLS_ROOTCERT_FILE(v string)` + +SetCORE_PEER_TLS_ROOTCERT_FILE sets CORE_PEER_TLS_ROOTCERT_FILE field to given value. + + +### GetORDERER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrgFabric2x) GetORDERER_TLS_ROOTCERT_FILE() string` + +GetORDERER_TLS_ROOTCERT_FILE returns the ORDERER_TLS_ROOTCERT_FILE field if non-nil, zero value otherwise. + +### GetORDERER_TLS_ROOTCERT_FILEOk + +`func (o *DeploymentTargetOrgFabric2x) GetORDERER_TLS_ROOTCERT_FILEOk() (*string, bool)` + +GetORDERER_TLS_ROOTCERT_FILEOk returns a tuple with the ORDERER_TLS_ROOTCERT_FILE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetORDERER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrgFabric2x) SetORDERER_TLS_ROOTCERT_FILE(v string)` + +SetORDERER_TLS_ROOTCERT_FILE sets ORDERER_TLS_ROOTCERT_FILE field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrganization.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrganization.md new file mode 100644 index 00000000000..e6fef06b53c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/DeploymentTargetOrganization.md @@ -0,0 +1,135 @@ +# DeploymentTargetOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CORE_PEER_LOCALMSPID** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_ADDRESS** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_MSPCONFIGPATH** | **string** | Mapped to environment variables of the Fabric CLI container. | +**CORE_PEER_TLS_ROOTCERT_FILE** | **string** | Mapped to environment variables of the Fabric CLI container. | +**ORDERER_TLS_ROOTCERT_FILE** | **string** | Mapped to environment variables of the Fabric CLI container. | + +## Methods + +### NewDeploymentTargetOrganization + +`func NewDeploymentTargetOrganization(cOREPEERLOCALMSPID string, cOREPEERADDRESS string, cOREPEERMSPCONFIGPATH string, cOREPEERTLSROOTCERTFILE string, oRDERERTLSROOTCERTFILE string, ) *DeploymentTargetOrganization` + +NewDeploymentTargetOrganization instantiates a new DeploymentTargetOrganization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeploymentTargetOrganizationWithDefaults + +`func NewDeploymentTargetOrganizationWithDefaults() *DeploymentTargetOrganization` + +NewDeploymentTargetOrganizationWithDefaults instantiates a new DeploymentTargetOrganization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCORE_PEER_LOCALMSPID + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_LOCALMSPID() string` + +GetCORE_PEER_LOCALMSPID returns the CORE_PEER_LOCALMSPID field if non-nil, zero value otherwise. + +### GetCORE_PEER_LOCALMSPIDOk + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_LOCALMSPIDOk() (*string, bool)` + +GetCORE_PEER_LOCALMSPIDOk returns a tuple with the CORE_PEER_LOCALMSPID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_LOCALMSPID + +`func (o *DeploymentTargetOrganization) SetCORE_PEER_LOCALMSPID(v string)` + +SetCORE_PEER_LOCALMSPID sets CORE_PEER_LOCALMSPID field to given value. + + +### GetCORE_PEER_ADDRESS + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_ADDRESS() string` + +GetCORE_PEER_ADDRESS returns the CORE_PEER_ADDRESS field if non-nil, zero value otherwise. + +### GetCORE_PEER_ADDRESSOk + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_ADDRESSOk() (*string, bool)` + +GetCORE_PEER_ADDRESSOk returns a tuple with the CORE_PEER_ADDRESS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_ADDRESS + +`func (o *DeploymentTargetOrganization) SetCORE_PEER_ADDRESS(v string)` + +SetCORE_PEER_ADDRESS sets CORE_PEER_ADDRESS field to given value. + + +### GetCORE_PEER_MSPCONFIGPATH + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_MSPCONFIGPATH() string` + +GetCORE_PEER_MSPCONFIGPATH returns the CORE_PEER_MSPCONFIGPATH field if non-nil, zero value otherwise. + +### GetCORE_PEER_MSPCONFIGPATHOk + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_MSPCONFIGPATHOk() (*string, bool)` + +GetCORE_PEER_MSPCONFIGPATHOk returns a tuple with the CORE_PEER_MSPCONFIGPATH field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_MSPCONFIGPATH + +`func (o *DeploymentTargetOrganization) SetCORE_PEER_MSPCONFIGPATH(v string)` + +SetCORE_PEER_MSPCONFIGPATH sets CORE_PEER_MSPCONFIGPATH field to given value. + + +### GetCORE_PEER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_TLS_ROOTCERT_FILE() string` + +GetCORE_PEER_TLS_ROOTCERT_FILE returns the CORE_PEER_TLS_ROOTCERT_FILE field if non-nil, zero value otherwise. + +### GetCORE_PEER_TLS_ROOTCERT_FILEOk + +`func (o *DeploymentTargetOrganization) GetCORE_PEER_TLS_ROOTCERT_FILEOk() (*string, bool)` + +GetCORE_PEER_TLS_ROOTCERT_FILEOk returns a tuple with the CORE_PEER_TLS_ROOTCERT_FILE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCORE_PEER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrganization) SetCORE_PEER_TLS_ROOTCERT_FILE(v string)` + +SetCORE_PEER_TLS_ROOTCERT_FILE sets CORE_PEER_TLS_ROOTCERT_FILE field to given value. + + +### GetORDERER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrganization) GetORDERER_TLS_ROOTCERT_FILE() string` + +GetORDERER_TLS_ROOTCERT_FILE returns the ORDERER_TLS_ROOTCERT_FILE field if non-nil, zero value otherwise. + +### GetORDERER_TLS_ROOTCERT_FILEOk + +`func (o *DeploymentTargetOrganization) GetORDERER_TLS_ROOTCERT_FILEOk() (*string, bool)` + +GetORDERER_TLS_ROOTCERT_FILEOk returns a tuple with the ORDERER_TLS_ROOTCERT_FILE field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetORDERER_TLS_ROOTCERT_FILE + +`func (o *DeploymentTargetOrganization) SetORDERER_TLS_ROOTCERT_FILE(v string)` + +SetORDERER_TLS_ROOTCERT_FILE sets ORDERER_TLS_ROOTCERT_FILE field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md new file mode 100644 index 00000000000..2757745a0df --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md @@ -0,0 +1,72 @@ +# ErrorExceptionResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | +**Error** | **string** | | + +## Methods + +### NewErrorExceptionResponseV1 + +`func NewErrorExceptionResponseV1(message string, error_ string, ) *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorExceptionResponseV1WithDefaults + +`func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ErrorExceptionResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorExceptionResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetError + +`func (o *ErrorExceptionResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ErrorExceptionResponseV1) SetError(v string)` + +SetError sets Error field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricContractInvocationType.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricContractInvocationType.md new file mode 100644 index 00000000000..f401111f311 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricContractInvocationType.md @@ -0,0 +1,15 @@ +# FabricContractInvocationType + +## Enum + + +* `SEND` (value: `"FabricContractInvocationType.SEND"`) + +* `CALL` (value: `"FabricContractInvocationType.CALL"`) + +* `SENDPRIVATE` (value: `"FabricContractInvocationType.SENDPRIVATE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredential.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredential.md new file mode 100644 index 00000000000..1217c3b5db0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredential.md @@ -0,0 +1,150 @@ +# FabricSigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeychainId** | **string** | | +**KeychainRef** | **string** | | +**Type** | Pointer to [**FabricSigningCredentialType**](FabricSigningCredentialType.md) | | [optional] +**VaultTransitKey** | Pointer to [**VaultTransitKey**](VaultTransitKey.md) | | [optional] +**WebSocketKey** | Pointer to [**WebSocketKey**](WebSocketKey.md) | | [optional] + +## Methods + +### NewFabricSigningCredential + +`func NewFabricSigningCredential(keychainId string, keychainRef string, ) *FabricSigningCredential` + +NewFabricSigningCredential instantiates a new FabricSigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFabricSigningCredentialWithDefaults + +`func NewFabricSigningCredentialWithDefaults() *FabricSigningCredential` + +NewFabricSigningCredentialWithDefaults instantiates a new FabricSigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeychainId + +`func (o *FabricSigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *FabricSigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *FabricSigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetKeychainRef + +`func (o *FabricSigningCredential) GetKeychainRef() string` + +GetKeychainRef returns the KeychainRef field if non-nil, zero value otherwise. + +### GetKeychainRefOk + +`func (o *FabricSigningCredential) GetKeychainRefOk() (*string, bool)` + +GetKeychainRefOk returns a tuple with the KeychainRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainRef + +`func (o *FabricSigningCredential) SetKeychainRef(v string)` + +SetKeychainRef sets KeychainRef field to given value. + + +### GetType + +`func (o *FabricSigningCredential) GetType() FabricSigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *FabricSigningCredential) GetTypeOk() (*FabricSigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *FabricSigningCredential) SetType(v FabricSigningCredentialType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *FabricSigningCredential) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetVaultTransitKey + +`func (o *FabricSigningCredential) GetVaultTransitKey() VaultTransitKey` + +GetVaultTransitKey returns the VaultTransitKey field if non-nil, zero value otherwise. + +### GetVaultTransitKeyOk + +`func (o *FabricSigningCredential) GetVaultTransitKeyOk() (*VaultTransitKey, bool)` + +GetVaultTransitKeyOk returns a tuple with the VaultTransitKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVaultTransitKey + +`func (o *FabricSigningCredential) SetVaultTransitKey(v VaultTransitKey)` + +SetVaultTransitKey sets VaultTransitKey field to given value. + +### HasVaultTransitKey + +`func (o *FabricSigningCredential) HasVaultTransitKey() bool` + +HasVaultTransitKey returns a boolean if a field has been set. + +### GetWebSocketKey + +`func (o *FabricSigningCredential) GetWebSocketKey() WebSocketKey` + +GetWebSocketKey returns the WebSocketKey field if non-nil, zero value otherwise. + +### GetWebSocketKeyOk + +`func (o *FabricSigningCredential) GetWebSocketKeyOk() (*WebSocketKey, bool)` + +GetWebSocketKeyOk returns a tuple with the WebSocketKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebSocketKey + +`func (o *FabricSigningCredential) SetWebSocketKey(v WebSocketKey)` + +SetWebSocketKey sets WebSocketKey field to given value. + +### HasWebSocketKey + +`func (o *FabricSigningCredential) HasWebSocketKey() bool` + +HasWebSocketKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredentialType.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredentialType.md new file mode 100644 index 00000000000..b91066ad2e4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FabricSigningCredentialType.md @@ -0,0 +1,15 @@ +# FabricSigningCredentialType + +## Enum + + +* `X_509` (value: `"X.509"`) + +* `VAULT_X_509` (value: `"Vault-X.509"`) + +* `WS_X_509` (value: `"WS-X.509"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FileBase64.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FileBase64.md new file mode 100644 index 00000000000..399df3c2583 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/FileBase64.md @@ -0,0 +1,98 @@ +# FileBase64 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | The file's contents encoded as a Base64 string. | +**Filename** | **string** | The name as referred to on a file system | +**Filepath** | Pointer to **string** | The relative path of the file, if it should be placed in a sub-directory | [optional] + +## Methods + +### NewFileBase64 + +`func NewFileBase64(body string, filename string, ) *FileBase64` + +NewFileBase64 instantiates a new FileBase64 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFileBase64WithDefaults + +`func NewFileBase64WithDefaults() *FileBase64` + +NewFileBase64WithDefaults instantiates a new FileBase64 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBody + +`func (o *FileBase64) GetBody() string` + +GetBody returns the Body field if non-nil, zero value otherwise. + +### GetBodyOk + +`func (o *FileBase64) GetBodyOk() (*string, bool)` + +GetBodyOk returns a tuple with the Body field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBody + +`func (o *FileBase64) SetBody(v string)` + +SetBody sets Body field to given value. + + +### GetFilename + +`func (o *FileBase64) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *FileBase64) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *FileBase64) SetFilename(v string)` + +SetFilename sets Filename field to given value. + + +### GetFilepath + +`func (o *FileBase64) GetFilepath() string` + +GetFilepath returns the Filepath field if non-nil, zero value otherwise. + +### GetFilepathOk + +`func (o *FileBase64) GetFilepathOk() (*string, bool)` + +GetFilepathOk returns a tuple with the Filepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilepath + +`func (o *FileBase64) SetFilepath(v string)` + +SetFilepath sets Filepath field to given value. + +### HasFilepath + +`func (o *FileBase64) HasFilepath() bool` + +HasFilepath returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayDiscoveryOptions.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayDiscoveryOptions.md new file mode 100644 index 00000000000..f110dfc4f03 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayDiscoveryOptions.md @@ -0,0 +1,82 @@ +# GatewayDiscoveryOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AsLocalhost** | Pointer to **bool** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewGatewayDiscoveryOptions + +`func NewGatewayDiscoveryOptions() *GatewayDiscoveryOptions` + +NewGatewayDiscoveryOptions instantiates a new GatewayDiscoveryOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGatewayDiscoveryOptionsWithDefaults + +`func NewGatewayDiscoveryOptionsWithDefaults() *GatewayDiscoveryOptions` + +NewGatewayDiscoveryOptionsWithDefaults instantiates a new GatewayDiscoveryOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAsLocalhost + +`func (o *GatewayDiscoveryOptions) GetAsLocalhost() bool` + +GetAsLocalhost returns the AsLocalhost field if non-nil, zero value otherwise. + +### GetAsLocalhostOk + +`func (o *GatewayDiscoveryOptions) GetAsLocalhostOk() (*bool, bool)` + +GetAsLocalhostOk returns a tuple with the AsLocalhost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsLocalhost + +`func (o *GatewayDiscoveryOptions) SetAsLocalhost(v bool)` + +SetAsLocalhost sets AsLocalhost field to given value. + +### HasAsLocalhost + +`func (o *GatewayDiscoveryOptions) HasAsLocalhost() bool` + +HasAsLocalhost returns a boolean if a field has been set. + +### GetEnabled + +`func (o *GatewayDiscoveryOptions) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *GatewayDiscoveryOptions) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *GatewayDiscoveryOptions) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *GatewayDiscoveryOptions) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayEventHandlerOptions.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayEventHandlerOptions.md new file mode 100644 index 00000000000..bff13f31f5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayEventHandlerOptions.md @@ -0,0 +1,103 @@ +# GatewayEventHandlerOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitTimeout** | Pointer to **float32** | | [optional] +**EndorseTimeout** | Pointer to **float32** | | [optional] +**Strategy** | [**DefaultEventHandlerStrategy**](DefaultEventHandlerStrategy.md) | | + +## Methods + +### NewGatewayEventHandlerOptions + +`func NewGatewayEventHandlerOptions(strategy DefaultEventHandlerStrategy, ) *GatewayEventHandlerOptions` + +NewGatewayEventHandlerOptions instantiates a new GatewayEventHandlerOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGatewayEventHandlerOptionsWithDefaults + +`func NewGatewayEventHandlerOptionsWithDefaults() *GatewayEventHandlerOptions` + +NewGatewayEventHandlerOptionsWithDefaults instantiates a new GatewayEventHandlerOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommitTimeout + +`func (o *GatewayEventHandlerOptions) GetCommitTimeout() float32` + +GetCommitTimeout returns the CommitTimeout field if non-nil, zero value otherwise. + +### GetCommitTimeoutOk + +`func (o *GatewayEventHandlerOptions) GetCommitTimeoutOk() (*float32, bool)` + +GetCommitTimeoutOk returns a tuple with the CommitTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitTimeout + +`func (o *GatewayEventHandlerOptions) SetCommitTimeout(v float32)` + +SetCommitTimeout sets CommitTimeout field to given value. + +### HasCommitTimeout + +`func (o *GatewayEventHandlerOptions) HasCommitTimeout() bool` + +HasCommitTimeout returns a boolean if a field has been set. + +### GetEndorseTimeout + +`func (o *GatewayEventHandlerOptions) GetEndorseTimeout() float32` + +GetEndorseTimeout returns the EndorseTimeout field if non-nil, zero value otherwise. + +### GetEndorseTimeoutOk + +`func (o *GatewayEventHandlerOptions) GetEndorseTimeoutOk() (*float32, bool)` + +GetEndorseTimeoutOk returns a tuple with the EndorseTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndorseTimeout + +`func (o *GatewayEventHandlerOptions) SetEndorseTimeout(v float32)` + +SetEndorseTimeout sets EndorseTimeout field to given value. + +### HasEndorseTimeout + +`func (o *GatewayEventHandlerOptions) HasEndorseTimeout() bool` + +HasEndorseTimeout returns a boolean if a field has been set. + +### GetStrategy + +`func (o *GatewayEventHandlerOptions) GetStrategy() DefaultEventHandlerStrategy` + +GetStrategy returns the Strategy field if non-nil, zero value otherwise. + +### GetStrategyOk + +`func (o *GatewayEventHandlerOptions) GetStrategyOk() (*DefaultEventHandlerStrategy, bool)` + +GetStrategyOk returns a tuple with the Strategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStrategy + +`func (o *GatewayEventHandlerOptions) SetStrategy(v DefaultEventHandlerStrategy)` + +SetStrategy sets Strategy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptions.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptions.md new file mode 100644 index 00000000000..79f259fd5c8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptions.md @@ -0,0 +1,150 @@ +# GatewayOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectionProfile** | Pointer to [**ConnectionProfile**](ConnectionProfile.md) | | [optional] +**Discovery** | Pointer to [**GatewayDiscoveryOptions**](GatewayDiscoveryOptions.md) | | [optional] +**EventHandlerOptions** | Pointer to [**GatewayEventHandlerOptions**](GatewayEventHandlerOptions.md) | | [optional] +**Identity** | **string** | | +**Wallet** | [**GatewayOptionsWallet**](GatewayOptionsWallet.md) | | + +## Methods + +### NewGatewayOptions + +`func NewGatewayOptions(identity string, wallet GatewayOptionsWallet, ) *GatewayOptions` + +NewGatewayOptions instantiates a new GatewayOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGatewayOptionsWithDefaults + +`func NewGatewayOptionsWithDefaults() *GatewayOptions` + +NewGatewayOptionsWithDefaults instantiates a new GatewayOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectionProfile + +`func (o *GatewayOptions) GetConnectionProfile() ConnectionProfile` + +GetConnectionProfile returns the ConnectionProfile field if non-nil, zero value otherwise. + +### GetConnectionProfileOk + +`func (o *GatewayOptions) GetConnectionProfileOk() (*ConnectionProfile, bool)` + +GetConnectionProfileOk returns a tuple with the ConnectionProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionProfile + +`func (o *GatewayOptions) SetConnectionProfile(v ConnectionProfile)` + +SetConnectionProfile sets ConnectionProfile field to given value. + +### HasConnectionProfile + +`func (o *GatewayOptions) HasConnectionProfile() bool` + +HasConnectionProfile returns a boolean if a field has been set. + +### GetDiscovery + +`func (o *GatewayOptions) GetDiscovery() GatewayDiscoveryOptions` + +GetDiscovery returns the Discovery field if non-nil, zero value otherwise. + +### GetDiscoveryOk + +`func (o *GatewayOptions) GetDiscoveryOk() (*GatewayDiscoveryOptions, bool)` + +GetDiscoveryOk returns a tuple with the Discovery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovery + +`func (o *GatewayOptions) SetDiscovery(v GatewayDiscoveryOptions)` + +SetDiscovery sets Discovery field to given value. + +### HasDiscovery + +`func (o *GatewayOptions) HasDiscovery() bool` + +HasDiscovery returns a boolean if a field has been set. + +### GetEventHandlerOptions + +`func (o *GatewayOptions) GetEventHandlerOptions() GatewayEventHandlerOptions` + +GetEventHandlerOptions returns the EventHandlerOptions field if non-nil, zero value otherwise. + +### GetEventHandlerOptionsOk + +`func (o *GatewayOptions) GetEventHandlerOptionsOk() (*GatewayEventHandlerOptions, bool)` + +GetEventHandlerOptionsOk returns a tuple with the EventHandlerOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerOptions + +`func (o *GatewayOptions) SetEventHandlerOptions(v GatewayEventHandlerOptions)` + +SetEventHandlerOptions sets EventHandlerOptions field to given value. + +### HasEventHandlerOptions + +`func (o *GatewayOptions) HasEventHandlerOptions() bool` + +HasEventHandlerOptions returns a boolean if a field has been set. + +### GetIdentity + +`func (o *GatewayOptions) GetIdentity() string` + +GetIdentity returns the Identity field if non-nil, zero value otherwise. + +### GetIdentityOk + +`func (o *GatewayOptions) GetIdentityOk() (*string, bool)` + +GetIdentityOk returns a tuple with the Identity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentity + +`func (o *GatewayOptions) SetIdentity(v string)` + +SetIdentity sets Identity field to given value. + + +### GetWallet + +`func (o *GatewayOptions) GetWallet() GatewayOptionsWallet` + +GetWallet returns the Wallet field if non-nil, zero value otherwise. + +### GetWalletOk + +`func (o *GatewayOptions) GetWalletOk() (*GatewayOptionsWallet, bool)` + +GetWalletOk returns a tuple with the Wallet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWallet + +`func (o *GatewayOptions) SetWallet(v GatewayOptionsWallet)` + +SetWallet sets Wallet field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptionsWallet.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptionsWallet.md new file mode 100644 index 00000000000..3997d492d96 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GatewayOptionsWallet.md @@ -0,0 +1,82 @@ +# GatewayOptionsWallet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Keychain** | Pointer to [**FabricSigningCredential**](FabricSigningCredential.md) | | [optional] +**Json** | Pointer to **string** | | [optional] + +## Methods + +### NewGatewayOptionsWallet + +`func NewGatewayOptionsWallet() *GatewayOptionsWallet` + +NewGatewayOptionsWallet instantiates a new GatewayOptionsWallet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGatewayOptionsWalletWithDefaults + +`func NewGatewayOptionsWalletWithDefaults() *GatewayOptionsWallet` + +NewGatewayOptionsWalletWithDefaults instantiates a new GatewayOptionsWallet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeychain + +`func (o *GatewayOptionsWallet) GetKeychain() FabricSigningCredential` + +GetKeychain returns the Keychain field if non-nil, zero value otherwise. + +### GetKeychainOk + +`func (o *GatewayOptionsWallet) GetKeychainOk() (*FabricSigningCredential, bool)` + +GetKeychainOk returns a tuple with the Keychain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychain + +`func (o *GatewayOptionsWallet) SetKeychain(v FabricSigningCredential)` + +SetKeychain sets Keychain field to given value. + +### HasKeychain + +`func (o *GatewayOptionsWallet) HasKeychain() bool` + +HasKeychain returns a boolean if a field has been set. + +### GetJson + +`func (o *GatewayOptionsWallet) GetJson() string` + +GetJson returns the Json field if non-nil, zero value otherwise. + +### GetJsonOk + +`func (o *GatewayOptionsWallet) GetJsonOk() (*string, bool)` + +GetJsonOk returns a tuple with the Json field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJson + +`func (o *GatewayOptionsWallet) SetJson(v string)` + +SetJson sets Json field to given value. + +### HasJson + +`func (o *GatewayOptionsWallet) HasJson() bool` + +HasJson returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1.md new file mode 100644 index 00000000000..c1603d22be5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1.md @@ -0,0 +1,145 @@ +# GetBlockRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelName** | **string** | Fabric channel which we want to query. | +**ConnectionChannelName** | Pointer to **string** | Fabric channel we want to connect to. If not provided, then one from channelName parameter will be used | [optional] +**GatewayOptions** | [**GatewayOptions**](GatewayOptions.md) | | +**Query** | [**GetBlockRequestV1Query**](GetBlockRequestV1Query.md) | | +**SkipDecode** | Pointer to **bool** | If true, encoded buffer will be returned. Otherwise, entire block object is returned. | [optional] [default to false] + +## Methods + +### NewGetBlockRequestV1 + +`func NewGetBlockRequestV1(channelName string, gatewayOptions GatewayOptions, query GetBlockRequestV1Query, ) *GetBlockRequestV1` + +NewGetBlockRequestV1 instantiates a new GetBlockRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockRequestV1WithDefaults + +`func NewGetBlockRequestV1WithDefaults() *GetBlockRequestV1` + +NewGetBlockRequestV1WithDefaults instantiates a new GetBlockRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChannelName + +`func (o *GetBlockRequestV1) GetChannelName() string` + +GetChannelName returns the ChannelName field if non-nil, zero value otherwise. + +### GetChannelNameOk + +`func (o *GetBlockRequestV1) GetChannelNameOk() (*string, bool)` + +GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelName + +`func (o *GetBlockRequestV1) SetChannelName(v string)` + +SetChannelName sets ChannelName field to given value. + + +### GetConnectionChannelName + +`func (o *GetBlockRequestV1) GetConnectionChannelName() string` + +GetConnectionChannelName returns the ConnectionChannelName field if non-nil, zero value otherwise. + +### GetConnectionChannelNameOk + +`func (o *GetBlockRequestV1) GetConnectionChannelNameOk() (*string, bool)` + +GetConnectionChannelNameOk returns a tuple with the ConnectionChannelName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionChannelName + +`func (o *GetBlockRequestV1) SetConnectionChannelName(v string)` + +SetConnectionChannelName sets ConnectionChannelName field to given value. + +### HasConnectionChannelName + +`func (o *GetBlockRequestV1) HasConnectionChannelName() bool` + +HasConnectionChannelName returns a boolean if a field has been set. + +### GetGatewayOptions + +`func (o *GetBlockRequestV1) GetGatewayOptions() GatewayOptions` + +GetGatewayOptions returns the GatewayOptions field if non-nil, zero value otherwise. + +### GetGatewayOptionsOk + +`func (o *GetBlockRequestV1) GetGatewayOptionsOk() (*GatewayOptions, bool)` + +GetGatewayOptionsOk returns a tuple with the GatewayOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGatewayOptions + +`func (o *GetBlockRequestV1) SetGatewayOptions(v GatewayOptions)` + +SetGatewayOptions sets GatewayOptions field to given value. + + +### GetQuery + +`func (o *GetBlockRequestV1) GetQuery() GetBlockRequestV1Query` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *GetBlockRequestV1) GetQueryOk() (*GetBlockRequestV1Query, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *GetBlockRequestV1) SetQuery(v GetBlockRequestV1Query)` + +SetQuery sets Query field to given value. + + +### GetSkipDecode + +`func (o *GetBlockRequestV1) GetSkipDecode() bool` + +GetSkipDecode returns the SkipDecode field if non-nil, zero value otherwise. + +### GetSkipDecodeOk + +`func (o *GetBlockRequestV1) GetSkipDecodeOk() (*bool, bool)` + +GetSkipDecodeOk returns a tuple with the SkipDecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipDecode + +`func (o *GetBlockRequestV1) SetSkipDecode(v bool)` + +SetSkipDecode sets SkipDecode field to given value. + +### HasSkipDecode + +`func (o *GetBlockRequestV1) HasSkipDecode() bool` + +HasSkipDecode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1Query.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1Query.md new file mode 100644 index 00000000000..2e7f20148ff --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1Query.md @@ -0,0 +1,108 @@ +# GetBlockRequestV1Query + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockNumber** | Pointer to **string** | Select block by it's number. | [optional] +**BlockHash** | Pointer to [**GetBlockRequestV1QueryBlockHash**](GetBlockRequestV1QueryBlockHash.md) | | [optional] +**TransactionId** | Pointer to **string** | Select block by id of transaction that it contains. | [optional] + +## Methods + +### NewGetBlockRequestV1Query + +`func NewGetBlockRequestV1Query() *GetBlockRequestV1Query` + +NewGetBlockRequestV1Query instantiates a new GetBlockRequestV1Query object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockRequestV1QueryWithDefaults + +`func NewGetBlockRequestV1QueryWithDefaults() *GetBlockRequestV1Query` + +NewGetBlockRequestV1QueryWithDefaults instantiates a new GetBlockRequestV1Query object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockNumber + +`func (o *GetBlockRequestV1Query) GetBlockNumber() string` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *GetBlockRequestV1Query) GetBlockNumberOk() (*string, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *GetBlockRequestV1Query) SetBlockNumber(v string)` + +SetBlockNumber sets BlockNumber field to given value. + +### HasBlockNumber + +`func (o *GetBlockRequestV1Query) HasBlockNumber() bool` + +HasBlockNumber returns a boolean if a field has been set. + +### GetBlockHash + +`func (o *GetBlockRequestV1Query) GetBlockHash() GetBlockRequestV1QueryBlockHash` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *GetBlockRequestV1Query) GetBlockHashOk() (*GetBlockRequestV1QueryBlockHash, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *GetBlockRequestV1Query) SetBlockHash(v GetBlockRequestV1QueryBlockHash)` + +SetBlockHash sets BlockHash field to given value. + +### HasBlockHash + +`func (o *GetBlockRequestV1Query) HasBlockHash() bool` + +HasBlockHash returns a boolean if a field has been set. + +### GetTransactionId + +`func (o *GetBlockRequestV1Query) GetTransactionId() string` + +GetTransactionId returns the TransactionId field if non-nil, zero value otherwise. + +### GetTransactionIdOk + +`func (o *GetBlockRequestV1Query) GetTransactionIdOk() (*string, bool)` + +GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionId + +`func (o *GetBlockRequestV1Query) SetTransactionId(v string)` + +SetTransactionId sets TransactionId field to given value. + +### HasTransactionId + +`func (o *GetBlockRequestV1Query) HasTransactionId() bool` + +HasTransactionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1QueryBlockHash.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1QueryBlockHash.md new file mode 100644 index 00000000000..fdd5586714b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockRequestV1QueryBlockHash.md @@ -0,0 +1,77 @@ +# GetBlockRequestV1QueryBlockHash + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Encoding** | Pointer to **string** | NodeJS Buffer encoding (utf-8, hex, binary, base64, etc...). Passed directly to `Buffer.from()` call on hashBuffer. If not provided then JSON buffer format is assumed. | [optional] +**Buffer** | **string** | Buffer of blockHash. It's encoding should be described in `encoding` parameter. | + +## Methods + +### NewGetBlockRequestV1QueryBlockHash + +`func NewGetBlockRequestV1QueryBlockHash(buffer string, ) *GetBlockRequestV1QueryBlockHash` + +NewGetBlockRequestV1QueryBlockHash instantiates a new GetBlockRequestV1QueryBlockHash object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockRequestV1QueryBlockHashWithDefaults + +`func NewGetBlockRequestV1QueryBlockHashWithDefaults() *GetBlockRequestV1QueryBlockHash` + +NewGetBlockRequestV1QueryBlockHashWithDefaults instantiates a new GetBlockRequestV1QueryBlockHash object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEncoding + +`func (o *GetBlockRequestV1QueryBlockHash) GetEncoding() string` + +GetEncoding returns the Encoding field if non-nil, zero value otherwise. + +### GetEncodingOk + +`func (o *GetBlockRequestV1QueryBlockHash) GetEncodingOk() (*string, bool)` + +GetEncodingOk returns a tuple with the Encoding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncoding + +`func (o *GetBlockRequestV1QueryBlockHash) SetEncoding(v string)` + +SetEncoding sets Encoding field to given value. + +### HasEncoding + +`func (o *GetBlockRequestV1QueryBlockHash) HasEncoding() bool` + +HasEncoding returns a boolean if a field has been set. + +### GetBuffer + +`func (o *GetBlockRequestV1QueryBlockHash) GetBuffer() string` + +GetBuffer returns the Buffer field if non-nil, zero value otherwise. + +### GetBufferOk + +`func (o *GetBlockRequestV1QueryBlockHash) GetBufferOk() (*string, bool)` + +GetBufferOk returns a tuple with the Buffer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuffer + +`func (o *GetBlockRequestV1QueryBlockHash) SetBuffer(v string)` + +SetBuffer sets Buffer field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseDecodedV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseDecodedV1.md new file mode 100644 index 00000000000..a715d2c49c5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseDecodedV1.md @@ -0,0 +1,61 @@ +# GetBlockResponseDecodedV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DecodedBlock** | **interface{}** | Full hyperledger fabric block data. | + +## Methods + +### NewGetBlockResponseDecodedV1 + +`func NewGetBlockResponseDecodedV1(decodedBlock interface{}, ) *GetBlockResponseDecodedV1` + +NewGetBlockResponseDecodedV1 instantiates a new GetBlockResponseDecodedV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockResponseDecodedV1WithDefaults + +`func NewGetBlockResponseDecodedV1WithDefaults() *GetBlockResponseDecodedV1` + +NewGetBlockResponseDecodedV1WithDefaults instantiates a new GetBlockResponseDecodedV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDecodedBlock + +`func (o *GetBlockResponseDecodedV1) GetDecodedBlock() interface{}` + +GetDecodedBlock returns the DecodedBlock field if non-nil, zero value otherwise. + +### GetDecodedBlockOk + +`func (o *GetBlockResponseDecodedV1) GetDecodedBlockOk() (*interface{}, bool)` + +GetDecodedBlockOk returns a tuple with the DecodedBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecodedBlock + +`func (o *GetBlockResponseDecodedV1) SetDecodedBlock(v interface{})` + +SetDecodedBlock sets DecodedBlock field to given value. + + +### SetDecodedBlockNil + +`func (o *GetBlockResponseDecodedV1) SetDecodedBlockNil(b bool)` + + SetDecodedBlockNil sets the value for DecodedBlock to be an explicit nil + +### UnsetDecodedBlock +`func (o *GetBlockResponseDecodedV1) UnsetDecodedBlock()` + +UnsetDecodedBlock ensures that no value is present for DecodedBlock, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseEncodedV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseEncodedV1.md new file mode 100644 index 00000000000..7cdd038beab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseEncodedV1.md @@ -0,0 +1,51 @@ +# GetBlockResponseEncodedV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EncodedBlock** | **string** | | + +## Methods + +### NewGetBlockResponseEncodedV1 + +`func NewGetBlockResponseEncodedV1(encodedBlock string, ) *GetBlockResponseEncodedV1` + +NewGetBlockResponseEncodedV1 instantiates a new GetBlockResponseEncodedV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockResponseEncodedV1WithDefaults + +`func NewGetBlockResponseEncodedV1WithDefaults() *GetBlockResponseEncodedV1` + +NewGetBlockResponseEncodedV1WithDefaults instantiates a new GetBlockResponseEncodedV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEncodedBlock + +`func (o *GetBlockResponseEncodedV1) GetEncodedBlock() string` + +GetEncodedBlock returns the EncodedBlock field if non-nil, zero value otherwise. + +### GetEncodedBlockOk + +`func (o *GetBlockResponseEncodedV1) GetEncodedBlockOk() (*string, bool)` + +GetEncodedBlockOk returns a tuple with the EncodedBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncodedBlock + +`func (o *GetBlockResponseEncodedV1) SetEncodedBlock(v string)` + +SetEncodedBlock sets EncodedBlock field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseV1.md new file mode 100644 index 00000000000..65bc75a2e25 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetBlockResponseV1.md @@ -0,0 +1,82 @@ +# GetBlockResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DecodedBlock** | **interface{}** | Full hyperledger fabric block data. | +**EncodedBlock** | **string** | | + +## Methods + +### NewGetBlockResponseV1 + +`func NewGetBlockResponseV1(decodedBlock interface{}, encodedBlock string, ) *GetBlockResponseV1` + +NewGetBlockResponseV1 instantiates a new GetBlockResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockResponseV1WithDefaults + +`func NewGetBlockResponseV1WithDefaults() *GetBlockResponseV1` + +NewGetBlockResponseV1WithDefaults instantiates a new GetBlockResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDecodedBlock + +`func (o *GetBlockResponseV1) GetDecodedBlock() interface{}` + +GetDecodedBlock returns the DecodedBlock field if non-nil, zero value otherwise. + +### GetDecodedBlockOk + +`func (o *GetBlockResponseV1) GetDecodedBlockOk() (*interface{}, bool)` + +GetDecodedBlockOk returns a tuple with the DecodedBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecodedBlock + +`func (o *GetBlockResponseV1) SetDecodedBlock(v interface{})` + +SetDecodedBlock sets DecodedBlock field to given value. + + +### SetDecodedBlockNil + +`func (o *GetBlockResponseV1) SetDecodedBlockNil(b bool)` + + SetDecodedBlockNil sets the value for DecodedBlock to be an explicit nil + +### UnsetDecodedBlock +`func (o *GetBlockResponseV1) UnsetDecodedBlock()` + +UnsetDecodedBlock ensures that no value is present for DecodedBlock, not even an explicit nil +### GetEncodedBlock + +`func (o *GetBlockResponseV1) GetEncodedBlock() string` + +GetEncodedBlock returns the EncodedBlock field if non-nil, zero value otherwise. + +### GetEncodedBlockOk + +`func (o *GetBlockResponseV1) GetEncodedBlockOk() (*string, bool)` + +GetEncodedBlockOk returns a tuple with the EncodedBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncodedBlock + +`func (o *GetBlockResponseV1) SetEncodedBlock(v string)` + +SetEncodedBlock sets EncodedBlock field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetTransactionReceiptResponse.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetTransactionReceiptResponse.md new file mode 100644 index 00000000000..debe6c59d81 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/GetTransactionReceiptResponse.md @@ -0,0 +1,290 @@ +# GetTransactionReceiptResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockNumber** | Pointer to **string** | | [optional] +**ChannelID** | Pointer to **string** | | [optional] +**TransactionCreator** | Pointer to [**TransactReceiptTransactionCreator**](TransactReceiptTransactionCreator.md) | | [optional] +**TransactionEndorsement** | Pointer to [**[]TransactReceiptTransactionEndorsement**](TransactReceiptTransactionEndorsement.md) | | [optional] +**BlockMetaData** | Pointer to [**TransactReceiptBlockMetaData**](TransactReceiptBlockMetaData.md) | | [optional] +**ChainCodeName** | Pointer to **string** | | [optional] +**ChainCodeVersion** | Pointer to **string** | | [optional] +**ResponseStatus** | Pointer to **string** | | [optional] +**RwsetKey** | Pointer to **string** | | [optional] +**RwsetWriteData** | Pointer to **string** | | [optional] + +## Methods + +### NewGetTransactionReceiptResponse + +`func NewGetTransactionReceiptResponse() *GetTransactionReceiptResponse` + +NewGetTransactionReceiptResponse instantiates a new GetTransactionReceiptResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTransactionReceiptResponseWithDefaults + +`func NewGetTransactionReceiptResponseWithDefaults() *GetTransactionReceiptResponse` + +NewGetTransactionReceiptResponseWithDefaults instantiates a new GetTransactionReceiptResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockNumber + +`func (o *GetTransactionReceiptResponse) GetBlockNumber() string` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *GetTransactionReceiptResponse) GetBlockNumberOk() (*string, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *GetTransactionReceiptResponse) SetBlockNumber(v string)` + +SetBlockNumber sets BlockNumber field to given value. + +### HasBlockNumber + +`func (o *GetTransactionReceiptResponse) HasBlockNumber() bool` + +HasBlockNumber returns a boolean if a field has been set. + +### GetChannelID + +`func (o *GetTransactionReceiptResponse) GetChannelID() string` + +GetChannelID returns the ChannelID field if non-nil, zero value otherwise. + +### GetChannelIDOk + +`func (o *GetTransactionReceiptResponse) GetChannelIDOk() (*string, bool)` + +GetChannelIDOk returns a tuple with the ChannelID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelID + +`func (o *GetTransactionReceiptResponse) SetChannelID(v string)` + +SetChannelID sets ChannelID field to given value. + +### HasChannelID + +`func (o *GetTransactionReceiptResponse) HasChannelID() bool` + +HasChannelID returns a boolean if a field has been set. + +### GetTransactionCreator + +`func (o *GetTransactionReceiptResponse) GetTransactionCreator() TransactReceiptTransactionCreator` + +GetTransactionCreator returns the TransactionCreator field if non-nil, zero value otherwise. + +### GetTransactionCreatorOk + +`func (o *GetTransactionReceiptResponse) GetTransactionCreatorOk() (*TransactReceiptTransactionCreator, bool)` + +GetTransactionCreatorOk returns a tuple with the TransactionCreator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionCreator + +`func (o *GetTransactionReceiptResponse) SetTransactionCreator(v TransactReceiptTransactionCreator)` + +SetTransactionCreator sets TransactionCreator field to given value. + +### HasTransactionCreator + +`func (o *GetTransactionReceiptResponse) HasTransactionCreator() bool` + +HasTransactionCreator returns a boolean if a field has been set. + +### GetTransactionEndorsement + +`func (o *GetTransactionReceiptResponse) GetTransactionEndorsement() []TransactReceiptTransactionEndorsement` + +GetTransactionEndorsement returns the TransactionEndorsement field if non-nil, zero value otherwise. + +### GetTransactionEndorsementOk + +`func (o *GetTransactionReceiptResponse) GetTransactionEndorsementOk() (*[]TransactReceiptTransactionEndorsement, bool)` + +GetTransactionEndorsementOk returns a tuple with the TransactionEndorsement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionEndorsement + +`func (o *GetTransactionReceiptResponse) SetTransactionEndorsement(v []TransactReceiptTransactionEndorsement)` + +SetTransactionEndorsement sets TransactionEndorsement field to given value. + +### HasTransactionEndorsement + +`func (o *GetTransactionReceiptResponse) HasTransactionEndorsement() bool` + +HasTransactionEndorsement returns a boolean if a field has been set. + +### GetBlockMetaData + +`func (o *GetTransactionReceiptResponse) GetBlockMetaData() TransactReceiptBlockMetaData` + +GetBlockMetaData returns the BlockMetaData field if non-nil, zero value otherwise. + +### GetBlockMetaDataOk + +`func (o *GetTransactionReceiptResponse) GetBlockMetaDataOk() (*TransactReceiptBlockMetaData, bool)` + +GetBlockMetaDataOk returns a tuple with the BlockMetaData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockMetaData + +`func (o *GetTransactionReceiptResponse) SetBlockMetaData(v TransactReceiptBlockMetaData)` + +SetBlockMetaData sets BlockMetaData field to given value. + +### HasBlockMetaData + +`func (o *GetTransactionReceiptResponse) HasBlockMetaData() bool` + +HasBlockMetaData returns a boolean if a field has been set. + +### GetChainCodeName + +`func (o *GetTransactionReceiptResponse) GetChainCodeName() string` + +GetChainCodeName returns the ChainCodeName field if non-nil, zero value otherwise. + +### GetChainCodeNameOk + +`func (o *GetTransactionReceiptResponse) GetChainCodeNameOk() (*string, bool)` + +GetChainCodeNameOk returns a tuple with the ChainCodeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainCodeName + +`func (o *GetTransactionReceiptResponse) SetChainCodeName(v string)` + +SetChainCodeName sets ChainCodeName field to given value. + +### HasChainCodeName + +`func (o *GetTransactionReceiptResponse) HasChainCodeName() bool` + +HasChainCodeName returns a boolean if a field has been set. + +### GetChainCodeVersion + +`func (o *GetTransactionReceiptResponse) GetChainCodeVersion() string` + +GetChainCodeVersion returns the ChainCodeVersion field if non-nil, zero value otherwise. + +### GetChainCodeVersionOk + +`func (o *GetTransactionReceiptResponse) GetChainCodeVersionOk() (*string, bool)` + +GetChainCodeVersionOk returns a tuple with the ChainCodeVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainCodeVersion + +`func (o *GetTransactionReceiptResponse) SetChainCodeVersion(v string)` + +SetChainCodeVersion sets ChainCodeVersion field to given value. + +### HasChainCodeVersion + +`func (o *GetTransactionReceiptResponse) HasChainCodeVersion() bool` + +HasChainCodeVersion returns a boolean if a field has been set. + +### GetResponseStatus + +`func (o *GetTransactionReceiptResponse) GetResponseStatus() string` + +GetResponseStatus returns the ResponseStatus field if non-nil, zero value otherwise. + +### GetResponseStatusOk + +`func (o *GetTransactionReceiptResponse) GetResponseStatusOk() (*string, bool)` + +GetResponseStatusOk returns a tuple with the ResponseStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseStatus + +`func (o *GetTransactionReceiptResponse) SetResponseStatus(v string)` + +SetResponseStatus sets ResponseStatus field to given value. + +### HasResponseStatus + +`func (o *GetTransactionReceiptResponse) HasResponseStatus() bool` + +HasResponseStatus returns a boolean if a field has been set. + +### GetRwsetKey + +`func (o *GetTransactionReceiptResponse) GetRwsetKey() string` + +GetRwsetKey returns the RwsetKey field if non-nil, zero value otherwise. + +### GetRwsetKeyOk + +`func (o *GetTransactionReceiptResponse) GetRwsetKeyOk() (*string, bool)` + +GetRwsetKeyOk returns a tuple with the RwsetKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRwsetKey + +`func (o *GetTransactionReceiptResponse) SetRwsetKey(v string)` + +SetRwsetKey sets RwsetKey field to given value. + +### HasRwsetKey + +`func (o *GetTransactionReceiptResponse) HasRwsetKey() bool` + +HasRwsetKey returns a boolean if a field has been set. + +### GetRwsetWriteData + +`func (o *GetTransactionReceiptResponse) GetRwsetWriteData() string` + +GetRwsetWriteData returns the RwsetWriteData field if non-nil, zero value otherwise. + +### GetRwsetWriteDataOk + +`func (o *GetTransactionReceiptResponse) GetRwsetWriteDataOk() (*string, bool)` + +GetRwsetWriteDataOk returns a tuple with the RwsetWriteData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRwsetWriteData + +`func (o *GetTransactionReceiptResponse) SetRwsetWriteData(v string)` + +SetRwsetWriteData sets RwsetWriteData field to given value. + +### HasRwsetWriteData + +`func (o *GetTransactionReceiptResponse) HasRwsetWriteData() bool` + +HasRwsetWriteData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md new file mode 100644 index 00000000000..c750fc18ae3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md @@ -0,0 +1,296 @@ +# RunTransactionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndorsingPeers** | Pointer to **[]string** | An array of MSP IDs to set as the list of endorsing peers for the transaction. | [optional] +**TransientData** | Pointer to **map[string]interface{}** | | [optional] +**GatewayOptions** | Pointer to [**GatewayOptions**](GatewayOptions.md) | | [optional] +**SigningCredential** | [**FabricSigningCredential**](FabricSigningCredential.md) | | +**ChannelName** | **string** | | +**ContractName** | **string** | | +**InvocationType** | [**FabricContractInvocationType**](FabricContractInvocationType.md) | | +**MethodName** | **string** | | +**Params** | **[]string** | | [default to []] +**EndorsingParties** | Pointer to **[]string** | | [optional] [default to []] +**ResponseType** | Pointer to **string** | | [optional] + +## Methods + +### NewRunTransactionRequest + +`func NewRunTransactionRequest(signingCredential FabricSigningCredential, channelName string, contractName string, invocationType FabricContractInvocationType, methodName string, params []*string, ) *RunTransactionRequest` + +NewRunTransactionRequest instantiates a new RunTransactionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestWithDefaults + +`func NewRunTransactionRequestWithDefaults() *RunTransactionRequest` + +NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndorsingPeers + +`func (o *RunTransactionRequest) GetEndorsingPeers() []string` + +GetEndorsingPeers returns the EndorsingPeers field if non-nil, zero value otherwise. + +### GetEndorsingPeersOk + +`func (o *RunTransactionRequest) GetEndorsingPeersOk() (*[]string, bool)` + +GetEndorsingPeersOk returns a tuple with the EndorsingPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndorsingPeers + +`func (o *RunTransactionRequest) SetEndorsingPeers(v []string)` + +SetEndorsingPeers sets EndorsingPeers field to given value. + +### HasEndorsingPeers + +`func (o *RunTransactionRequest) HasEndorsingPeers() bool` + +HasEndorsingPeers returns a boolean if a field has been set. + +### GetTransientData + +`func (o *RunTransactionRequest) GetTransientData() map[string]interface{}` + +GetTransientData returns the TransientData field if non-nil, zero value otherwise. + +### GetTransientDataOk + +`func (o *RunTransactionRequest) GetTransientDataOk() (*map[string]interface{}, bool)` + +GetTransientDataOk returns a tuple with the TransientData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientData + +`func (o *RunTransactionRequest) SetTransientData(v map[string]interface{})` + +SetTransientData sets TransientData field to given value. + +### HasTransientData + +`func (o *RunTransactionRequest) HasTransientData() bool` + +HasTransientData returns a boolean if a field has been set. + +### SetTransientDataNil + +`func (o *RunTransactionRequest) SetTransientDataNil(b bool)` + + SetTransientDataNil sets the value for TransientData to be an explicit nil + +### UnsetTransientData +`func (o *RunTransactionRequest) UnsetTransientData()` + +UnsetTransientData ensures that no value is present for TransientData, not even an explicit nil +### GetGatewayOptions + +`func (o *RunTransactionRequest) GetGatewayOptions() GatewayOptions` + +GetGatewayOptions returns the GatewayOptions field if non-nil, zero value otherwise. + +### GetGatewayOptionsOk + +`func (o *RunTransactionRequest) GetGatewayOptionsOk() (*GatewayOptions, bool)` + +GetGatewayOptionsOk returns a tuple with the GatewayOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGatewayOptions + +`func (o *RunTransactionRequest) SetGatewayOptions(v GatewayOptions)` + +SetGatewayOptions sets GatewayOptions field to given value. + +### HasGatewayOptions + +`func (o *RunTransactionRequest) HasGatewayOptions() bool` + +HasGatewayOptions returns a boolean if a field has been set. + +### GetSigningCredential + +`func (o *RunTransactionRequest) GetSigningCredential() FabricSigningCredential` + +GetSigningCredential returns the SigningCredential field if non-nil, zero value otherwise. + +### GetSigningCredentialOk + +`func (o *RunTransactionRequest) GetSigningCredentialOk() (*FabricSigningCredential, bool)` + +GetSigningCredentialOk returns a tuple with the SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningCredential + +`func (o *RunTransactionRequest) SetSigningCredential(v FabricSigningCredential)` + +SetSigningCredential sets SigningCredential field to given value. + + +### GetChannelName + +`func (o *RunTransactionRequest) GetChannelName() string` + +GetChannelName returns the ChannelName field if non-nil, zero value otherwise. + +### GetChannelNameOk + +`func (o *RunTransactionRequest) GetChannelNameOk() (*string, bool)` + +GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelName + +`func (o *RunTransactionRequest) SetChannelName(v string)` + +SetChannelName sets ChannelName field to given value. + + +### GetContractName + +`func (o *RunTransactionRequest) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *RunTransactionRequest) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *RunTransactionRequest) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetInvocationType + +`func (o *RunTransactionRequest) GetInvocationType() FabricContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *RunTransactionRequest) GetInvocationTypeOk() (*FabricContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *RunTransactionRequest) SetInvocationType(v FabricContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *RunTransactionRequest) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *RunTransactionRequest) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *RunTransactionRequest) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *RunTransactionRequest) GetParams() []*string` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *RunTransactionRequest) GetParamsOk() (*[]*string, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *RunTransactionRequest) SetParams(v []*string)` + +SetParams sets Params field to given value. + + +### GetEndorsingParties + +`func (o *RunTransactionRequest) GetEndorsingParties() []*string` + +GetEndorsingParties returns the EndorsingParties field if non-nil, zero value otherwise. + +### GetEndorsingPartiesOk + +`func (o *RunTransactionRequest) GetEndorsingPartiesOk() (*[]*string, bool)` + +GetEndorsingPartiesOk returns a tuple with the EndorsingParties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndorsingParties + +`func (o *RunTransactionRequest) SetEndorsingParties(v []*string)` + +SetEndorsingParties sets EndorsingParties field to given value. + +### HasEndorsingParties + +`func (o *RunTransactionRequest) HasEndorsingParties() bool` + +HasEndorsingParties returns a boolean if a field has been set. + +### GetResponseType + +`func (o *RunTransactionRequest) GetResponseType() string` + +GetResponseType returns the ResponseType field if non-nil, zero value otherwise. + +### GetResponseTypeOk + +`func (o *RunTransactionRequest) GetResponseTypeOk() (*string, bool)` + +GetResponseTypeOk returns a tuple with the ResponseType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseType + +`func (o *RunTransactionRequest) SetResponseType(v string)` + +SetResponseType sets ResponseType field to given value. + +### HasResponseType + +`func (o *RunTransactionRequest) HasResponseType() bool` + +HasResponseType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..19f8765ad97 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,93 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FunctionOutput** | **string** | | +**Success** | **bool** | | +**TransactionId** | **string** | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(functionOutput string, success bool, transactionId string, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFunctionOutput + +`func (o *RunTransactionResponse) GetFunctionOutput() string` + +GetFunctionOutput returns the FunctionOutput field if non-nil, zero value otherwise. + +### GetFunctionOutputOk + +`func (o *RunTransactionResponse) GetFunctionOutputOk() (*string, bool)` + +GetFunctionOutputOk returns a tuple with the FunctionOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionOutput + +`func (o *RunTransactionResponse) SetFunctionOutput(v string)` + +SetFunctionOutput sets FunctionOutput field to given value. + + +### GetSuccess + +`func (o *RunTransactionResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RunTransactionResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RunTransactionResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetTransactionId + +`func (o *RunTransactionResponse) GetTransactionId() string` + +GetTransactionId returns the TransactionId field if non-nil, zero value otherwise. + +### GetTransactionIdOk + +`func (o *RunTransactionResponse) GetTransactionIdOk() (*string, bool)` + +GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionId + +`func (o *RunTransactionResponse) SetTransactionId(v string)` + +SetTransactionId sets TransactionId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/SSHExecCommandResponse.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/SSHExecCommandResponse.md new file mode 100644 index 00000000000..c6c05462717 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/SSHExecCommandResponse.md @@ -0,0 +1,134 @@ +# SSHExecCommandResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stdout** | **string** | | +**Stderr** | **string** | | +**Code** | **NullableInt32** | | +**Signal** | **NullableString** | | + +## Methods + +### NewSSHExecCommandResponse + +`func NewSSHExecCommandResponse(stdout string, stderr string, code NullableInt32, signal NullableString, ) *SSHExecCommandResponse` + +NewSSHExecCommandResponse instantiates a new SSHExecCommandResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSSHExecCommandResponseWithDefaults + +`func NewSSHExecCommandResponseWithDefaults() *SSHExecCommandResponse` + +NewSSHExecCommandResponseWithDefaults instantiates a new SSHExecCommandResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStdout + +`func (o *SSHExecCommandResponse) GetStdout() string` + +GetStdout returns the Stdout field if non-nil, zero value otherwise. + +### GetStdoutOk + +`func (o *SSHExecCommandResponse) GetStdoutOk() (*string, bool)` + +GetStdoutOk returns a tuple with the Stdout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStdout + +`func (o *SSHExecCommandResponse) SetStdout(v string)` + +SetStdout sets Stdout field to given value. + + +### GetStderr + +`func (o *SSHExecCommandResponse) GetStderr() string` + +GetStderr returns the Stderr field if non-nil, zero value otherwise. + +### GetStderrOk + +`func (o *SSHExecCommandResponse) GetStderrOk() (*string, bool)` + +GetStderrOk returns a tuple with the Stderr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStderr + +`func (o *SSHExecCommandResponse) SetStderr(v string)` + +SetStderr sets Stderr field to given value. + + +### GetCode + +`func (o *SSHExecCommandResponse) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *SSHExecCommandResponse) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *SSHExecCommandResponse) SetCode(v int32)` + +SetCode sets Code field to given value. + + +### SetCodeNil + +`func (o *SSHExecCommandResponse) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *SSHExecCommandResponse) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil +### GetSignal + +`func (o *SSHExecCommandResponse) GetSignal() string` + +GetSignal returns the Signal field if non-nil, zero value otherwise. + +### GetSignalOk + +`func (o *SSHExecCommandResponse) GetSignalOk() (*string, bool)` + +GetSignalOk returns a tuple with the Signal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignal + +`func (o *SSHExecCommandResponse) SetSignal(v string)` + +SetSignal sets Signal field to given value. + + +### SetSignalNil + +`func (o *SSHExecCommandResponse) SetSignalNil(b bool)` + + SetSignalNil sets the value for Signal to be an explicit nil + +### UnsetSignal +`func (o *SSHExecCommandResponse) UnsetSignal()` + +UnsetSignal ensures that no value is present for Signal, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptBlockMetaData.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptBlockMetaData.md new file mode 100644 index 00000000000..2aec51c628f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptBlockMetaData.md @@ -0,0 +1,108 @@ +# TransactReceiptBlockMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mspid** | Pointer to **string** | | [optional] +**BlockCreatorID** | Pointer to **string** | | [optional] +**Signature** | Pointer to **string** | | [optional] + +## Methods + +### NewTransactReceiptBlockMetaData + +`func NewTransactReceiptBlockMetaData() *TransactReceiptBlockMetaData` + +NewTransactReceiptBlockMetaData instantiates a new TransactReceiptBlockMetaData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactReceiptBlockMetaDataWithDefaults + +`func NewTransactReceiptBlockMetaDataWithDefaults() *TransactReceiptBlockMetaData` + +NewTransactReceiptBlockMetaDataWithDefaults instantiates a new TransactReceiptBlockMetaData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMspid + +`func (o *TransactReceiptBlockMetaData) GetMspid() string` + +GetMspid returns the Mspid field if non-nil, zero value otherwise. + +### GetMspidOk + +`func (o *TransactReceiptBlockMetaData) GetMspidOk() (*string, bool)` + +GetMspidOk returns a tuple with the Mspid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMspid + +`func (o *TransactReceiptBlockMetaData) SetMspid(v string)` + +SetMspid sets Mspid field to given value. + +### HasMspid + +`func (o *TransactReceiptBlockMetaData) HasMspid() bool` + +HasMspid returns a boolean if a field has been set. + +### GetBlockCreatorID + +`func (o *TransactReceiptBlockMetaData) GetBlockCreatorID() string` + +GetBlockCreatorID returns the BlockCreatorID field if non-nil, zero value otherwise. + +### GetBlockCreatorIDOk + +`func (o *TransactReceiptBlockMetaData) GetBlockCreatorIDOk() (*string, bool)` + +GetBlockCreatorIDOk returns a tuple with the BlockCreatorID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockCreatorID + +`func (o *TransactReceiptBlockMetaData) SetBlockCreatorID(v string)` + +SetBlockCreatorID sets BlockCreatorID field to given value. + +### HasBlockCreatorID + +`func (o *TransactReceiptBlockMetaData) HasBlockCreatorID() bool` + +HasBlockCreatorID returns a boolean if a field has been set. + +### GetSignature + +`func (o *TransactReceiptBlockMetaData) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransactReceiptBlockMetaData) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransactReceiptBlockMetaData) SetSignature(v string)` + +SetSignature sets Signature field to given value. + +### HasSignature + +`func (o *TransactReceiptBlockMetaData) HasSignature() bool` + +HasSignature returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionCreator.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionCreator.md new file mode 100644 index 00000000000..fdfa66cba87 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionCreator.md @@ -0,0 +1,82 @@ +# TransactReceiptTransactionCreator + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mspid** | Pointer to **string** | | [optional] +**CreatorID** | Pointer to **string** | | [optional] + +## Methods + +### NewTransactReceiptTransactionCreator + +`func NewTransactReceiptTransactionCreator() *TransactReceiptTransactionCreator` + +NewTransactReceiptTransactionCreator instantiates a new TransactReceiptTransactionCreator object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactReceiptTransactionCreatorWithDefaults + +`func NewTransactReceiptTransactionCreatorWithDefaults() *TransactReceiptTransactionCreator` + +NewTransactReceiptTransactionCreatorWithDefaults instantiates a new TransactReceiptTransactionCreator object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMspid + +`func (o *TransactReceiptTransactionCreator) GetMspid() string` + +GetMspid returns the Mspid field if non-nil, zero value otherwise. + +### GetMspidOk + +`func (o *TransactReceiptTransactionCreator) GetMspidOk() (*string, bool)` + +GetMspidOk returns a tuple with the Mspid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMspid + +`func (o *TransactReceiptTransactionCreator) SetMspid(v string)` + +SetMspid sets Mspid field to given value. + +### HasMspid + +`func (o *TransactReceiptTransactionCreator) HasMspid() bool` + +HasMspid returns a boolean if a field has been set. + +### GetCreatorID + +`func (o *TransactReceiptTransactionCreator) GetCreatorID() string` + +GetCreatorID returns the CreatorID field if non-nil, zero value otherwise. + +### GetCreatorIDOk + +`func (o *TransactReceiptTransactionCreator) GetCreatorIDOk() (*string, bool)` + +GetCreatorIDOk returns a tuple with the CreatorID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorID + +`func (o *TransactReceiptTransactionCreator) SetCreatorID(v string)` + +SetCreatorID sets CreatorID field to given value. + +### HasCreatorID + +`func (o *TransactReceiptTransactionCreator) HasCreatorID() bool` + +HasCreatorID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionEndorsement.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionEndorsement.md new file mode 100644 index 00000000000..41e849cb551 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/TransactReceiptTransactionEndorsement.md @@ -0,0 +1,108 @@ +# TransactReceiptTransactionEndorsement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mspid** | Pointer to **string** | | [optional] +**EndorserID** | Pointer to **string** | | [optional] +**Signature** | Pointer to **string** | | [optional] + +## Methods + +### NewTransactReceiptTransactionEndorsement + +`func NewTransactReceiptTransactionEndorsement() *TransactReceiptTransactionEndorsement` + +NewTransactReceiptTransactionEndorsement instantiates a new TransactReceiptTransactionEndorsement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactReceiptTransactionEndorsementWithDefaults + +`func NewTransactReceiptTransactionEndorsementWithDefaults() *TransactReceiptTransactionEndorsement` + +NewTransactReceiptTransactionEndorsementWithDefaults instantiates a new TransactReceiptTransactionEndorsement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMspid + +`func (o *TransactReceiptTransactionEndorsement) GetMspid() string` + +GetMspid returns the Mspid field if non-nil, zero value otherwise. + +### GetMspidOk + +`func (o *TransactReceiptTransactionEndorsement) GetMspidOk() (*string, bool)` + +GetMspidOk returns a tuple with the Mspid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMspid + +`func (o *TransactReceiptTransactionEndorsement) SetMspid(v string)` + +SetMspid sets Mspid field to given value. + +### HasMspid + +`func (o *TransactReceiptTransactionEndorsement) HasMspid() bool` + +HasMspid returns a boolean if a field has been set. + +### GetEndorserID + +`func (o *TransactReceiptTransactionEndorsement) GetEndorserID() string` + +GetEndorserID returns the EndorserID field if non-nil, zero value otherwise. + +### GetEndorserIDOk + +`func (o *TransactReceiptTransactionEndorsement) GetEndorserIDOk() (*string, bool)` + +GetEndorserIDOk returns a tuple with the EndorserID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndorserID + +`func (o *TransactReceiptTransactionEndorsement) SetEndorserID(v string)` + +SetEndorserID sets EndorserID field to given value. + +### HasEndorserID + +`func (o *TransactReceiptTransactionEndorsement) HasEndorserID() bool` + +HasEndorserID returns a boolean if a field has been set. + +### GetSignature + +`func (o *TransactReceiptTransactionEndorsement) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransactReceiptTransactionEndorsement) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransactReceiptTransactionEndorsement) SetSignature(v string)` + +SetSignature sets Signature field to given value. + +### HasSignature + +`func (o *TransactReceiptTransactionEndorsement) HasSignature() bool` + +HasSignature returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/VaultTransitKey.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/VaultTransitKey.md new file mode 100644 index 00000000000..60ed0f83f71 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/VaultTransitKey.md @@ -0,0 +1,72 @@ +# VaultTransitKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyName** | **string** | label of private key | +**Token** | **string** | token for accessing private key | + +## Methods + +### NewVaultTransitKey + +`func NewVaultTransitKey(keyName string, token string, ) *VaultTransitKey` + +NewVaultTransitKey instantiates a new VaultTransitKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVaultTransitKeyWithDefaults + +`func NewVaultTransitKeyWithDefaults() *VaultTransitKey` + +NewVaultTransitKeyWithDefaults instantiates a new VaultTransitKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyName + +`func (o *VaultTransitKey) GetKeyName() string` + +GetKeyName returns the KeyName field if non-nil, zero value otherwise. + +### GetKeyNameOk + +`func (o *VaultTransitKey) GetKeyNameOk() (*string, bool)` + +GetKeyNameOk returns a tuple with the KeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyName + +`func (o *VaultTransitKey) SetKeyName(v string)` + +SetKeyName sets KeyName field to given value. + + +### GetToken + +`func (o *VaultTransitKey) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *VaultTransitKey) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *VaultTransitKey) SetToken(v string)` + +SetToken sets Token field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusErrorResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusErrorResponseV1.md new file mode 100644 index 00000000000..180c2c5bc53 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusErrorResponseV1.md @@ -0,0 +1,72 @@ +# WatchBlocksCactusErrorResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **float32** | Error code. | +**ErrorMessage** | **string** | Description of the error. | + +## Methods + +### NewWatchBlocksCactusErrorResponseV1 + +`func NewWatchBlocksCactusErrorResponseV1(code float32, errorMessage string, ) *WatchBlocksCactusErrorResponseV1` + +NewWatchBlocksCactusErrorResponseV1 instantiates a new WatchBlocksCactusErrorResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksCactusErrorResponseV1WithDefaults + +`func NewWatchBlocksCactusErrorResponseV1WithDefaults() *WatchBlocksCactusErrorResponseV1` + +NewWatchBlocksCactusErrorResponseV1WithDefaults instantiates a new WatchBlocksCactusErrorResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *WatchBlocksCactusErrorResponseV1) GetCode() float32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *WatchBlocksCactusErrorResponseV1) GetCodeOk() (*float32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *WatchBlocksCactusErrorResponseV1) SetCode(v float32)` + +SetCode sets Code field to given value. + + +### GetErrorMessage + +`func (o *WatchBlocksCactusErrorResponseV1) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *WatchBlocksCactusErrorResponseV1) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *WatchBlocksCactusErrorResponseV1) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsEventV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsEventV1.md new file mode 100644 index 00000000000..3aee4bf6cad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsEventV1.md @@ -0,0 +1,114 @@ +# WatchBlocksCactusTransactionsEventV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChaincodeId** | **string** | ChainCode containing function that was executed. | +**TransactionId** | **string** | Transaction identifier. | +**FunctionName** | **string** | Function name that was executed. | +**FunctionArgs** | **[]string** | List of function arguments. | + +## Methods + +### NewWatchBlocksCactusTransactionsEventV1 + +`func NewWatchBlocksCactusTransactionsEventV1(chaincodeId string, transactionId string, functionName string, functionArgs []string, ) *WatchBlocksCactusTransactionsEventV1` + +NewWatchBlocksCactusTransactionsEventV1 instantiates a new WatchBlocksCactusTransactionsEventV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksCactusTransactionsEventV1WithDefaults + +`func NewWatchBlocksCactusTransactionsEventV1WithDefaults() *WatchBlocksCactusTransactionsEventV1` + +NewWatchBlocksCactusTransactionsEventV1WithDefaults instantiates a new WatchBlocksCactusTransactionsEventV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChaincodeId + +`func (o *WatchBlocksCactusTransactionsEventV1) GetChaincodeId() string` + +GetChaincodeId returns the ChaincodeId field if non-nil, zero value otherwise. + +### GetChaincodeIdOk + +`func (o *WatchBlocksCactusTransactionsEventV1) GetChaincodeIdOk() (*string, bool)` + +GetChaincodeIdOk returns a tuple with the ChaincodeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChaincodeId + +`func (o *WatchBlocksCactusTransactionsEventV1) SetChaincodeId(v string)` + +SetChaincodeId sets ChaincodeId field to given value. + + +### GetTransactionId + +`func (o *WatchBlocksCactusTransactionsEventV1) GetTransactionId() string` + +GetTransactionId returns the TransactionId field if non-nil, zero value otherwise. + +### GetTransactionIdOk + +`func (o *WatchBlocksCactusTransactionsEventV1) GetTransactionIdOk() (*string, bool)` + +GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionId + +`func (o *WatchBlocksCactusTransactionsEventV1) SetTransactionId(v string)` + +SetTransactionId sets TransactionId field to given value. + + +### GetFunctionName + +`func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionName() string` + +GetFunctionName returns the FunctionName field if non-nil, zero value otherwise. + +### GetFunctionNameOk + +`func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionNameOk() (*string, bool)` + +GetFunctionNameOk returns a tuple with the FunctionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionName + +`func (o *WatchBlocksCactusTransactionsEventV1) SetFunctionName(v string)` + +SetFunctionName sets FunctionName field to given value. + + +### GetFunctionArgs + +`func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionArgs() []string` + +GetFunctionArgs returns the FunctionArgs field if non-nil, zero value otherwise. + +### GetFunctionArgsOk + +`func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionArgsOk() (*[]string, bool)` + +GetFunctionArgsOk returns a tuple with the FunctionArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionArgs + +`func (o *WatchBlocksCactusTransactionsEventV1) SetFunctionArgs(v []string)` + +SetFunctionArgs sets FunctionArgs field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsResponseV1.md new file mode 100644 index 00000000000..36be820ee4f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksCactusTransactionsResponseV1.md @@ -0,0 +1,51 @@ +# WatchBlocksCactusTransactionsResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CactusTransactionsEvents** | [**[]WatchBlocksCactusTransactionsEventV1**](WatchBlocksCactusTransactionsEventV1.md) | List of transactions summary | + +## Methods + +### NewWatchBlocksCactusTransactionsResponseV1 + +`func NewWatchBlocksCactusTransactionsResponseV1(cactusTransactionsEvents []WatchBlocksCactusTransactionsEventV1, ) *WatchBlocksCactusTransactionsResponseV1` + +NewWatchBlocksCactusTransactionsResponseV1 instantiates a new WatchBlocksCactusTransactionsResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksCactusTransactionsResponseV1WithDefaults + +`func NewWatchBlocksCactusTransactionsResponseV1WithDefaults() *WatchBlocksCactusTransactionsResponseV1` + +NewWatchBlocksCactusTransactionsResponseV1WithDefaults instantiates a new WatchBlocksCactusTransactionsResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCactusTransactionsEvents + +`func (o *WatchBlocksCactusTransactionsResponseV1) GetCactusTransactionsEvents() []WatchBlocksCactusTransactionsEventV1` + +GetCactusTransactionsEvents returns the CactusTransactionsEvents field if non-nil, zero value otherwise. + +### GetCactusTransactionsEventsOk + +`func (o *WatchBlocksCactusTransactionsResponseV1) GetCactusTransactionsEventsOk() (*[]WatchBlocksCactusTransactionsEventV1, bool)` + +GetCactusTransactionsEventsOk returns a tuple with the CactusTransactionsEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCactusTransactionsEvents + +`func (o *WatchBlocksCactusTransactionsResponseV1) SetCactusTransactionsEvents(v []WatchBlocksCactusTransactionsEventV1)` + +SetCactusTransactionsEvents sets CactusTransactionsEvents field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFilteredResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFilteredResponseV1.md new file mode 100644 index 00000000000..932cbcb6839 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFilteredResponseV1.md @@ -0,0 +1,61 @@ +# WatchBlocksFilteredResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FilteredBlock** | **interface{}** | Filtered commited block. | + +## Methods + +### NewWatchBlocksFilteredResponseV1 + +`func NewWatchBlocksFilteredResponseV1(filteredBlock interface{}, ) *WatchBlocksFilteredResponseV1` + +NewWatchBlocksFilteredResponseV1 instantiates a new WatchBlocksFilteredResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksFilteredResponseV1WithDefaults + +`func NewWatchBlocksFilteredResponseV1WithDefaults() *WatchBlocksFilteredResponseV1` + +NewWatchBlocksFilteredResponseV1WithDefaults instantiates a new WatchBlocksFilteredResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilteredBlock + +`func (o *WatchBlocksFilteredResponseV1) GetFilteredBlock() interface{}` + +GetFilteredBlock returns the FilteredBlock field if non-nil, zero value otherwise. + +### GetFilteredBlockOk + +`func (o *WatchBlocksFilteredResponseV1) GetFilteredBlockOk() (*interface{}, bool)` + +GetFilteredBlockOk returns a tuple with the FilteredBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilteredBlock + +`func (o *WatchBlocksFilteredResponseV1) SetFilteredBlock(v interface{})` + +SetFilteredBlock sets FilteredBlock field to given value. + + +### SetFilteredBlockNil + +`func (o *WatchBlocksFilteredResponseV1) SetFilteredBlockNil(b bool)` + + SetFilteredBlockNil sets the value for FilteredBlock to be an explicit nil + +### UnsetFilteredBlock +`func (o *WatchBlocksFilteredResponseV1) UnsetFilteredBlock()` + +UnsetFilteredBlock ensures that no value is present for FilteredBlock, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFullResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFullResponseV1.md new file mode 100644 index 00000000000..c5ae40696ea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksFullResponseV1.md @@ -0,0 +1,61 @@ +# WatchBlocksFullResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FullBlock** | **interface{}** | Full commited block. | + +## Methods + +### NewWatchBlocksFullResponseV1 + +`func NewWatchBlocksFullResponseV1(fullBlock interface{}, ) *WatchBlocksFullResponseV1` + +NewWatchBlocksFullResponseV1 instantiates a new WatchBlocksFullResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksFullResponseV1WithDefaults + +`func NewWatchBlocksFullResponseV1WithDefaults() *WatchBlocksFullResponseV1` + +NewWatchBlocksFullResponseV1WithDefaults instantiates a new WatchBlocksFullResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFullBlock + +`func (o *WatchBlocksFullResponseV1) GetFullBlock() interface{}` + +GetFullBlock returns the FullBlock field if non-nil, zero value otherwise. + +### GetFullBlockOk + +`func (o *WatchBlocksFullResponseV1) GetFullBlockOk() (*interface{}, bool)` + +GetFullBlockOk returns a tuple with the FullBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullBlock + +`func (o *WatchBlocksFullResponseV1) SetFullBlock(v interface{})` + +SetFullBlock sets FullBlock field to given value. + + +### SetFullBlockNil + +`func (o *WatchBlocksFullResponseV1) SetFullBlockNil(b bool)` + + SetFullBlockNil sets the value for FullBlock to be an explicit nil + +### UnsetFullBlock +`func (o *WatchBlocksFullResponseV1) UnsetFullBlock()` + +UnsetFullBlock ensures that no value is present for FullBlock, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksListenerTypeV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksListenerTypeV1.md new file mode 100644 index 00000000000..4cd8641d7f5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksListenerTypeV1.md @@ -0,0 +1,17 @@ +# WatchBlocksListenerTypeV1 + +## Enum + + +* `Filtered` (value: `"filtered"`) + +* `Full` (value: `"full"`) + +* `Private` (value: `"private"`) + +* `CactusTransactions` (value: `"cactus:transactions"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md new file mode 100644 index 00000000000..35417a6de2d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md @@ -0,0 +1,119 @@ +# WatchBlocksOptionsV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelName** | **string** | Hyperledger Fabric channel to connect to. | +**GatewayOptions** | [**GatewayOptions**](GatewayOptions.md) | | +**Type** | [**WatchBlocksListenerTypeV1**](WatchBlocksListenerTypeV1.md) | | +**StartBlock** | Pointer to **string** | From which block start monitoring. Defaults to latest. | [optional] + +## Methods + +### NewWatchBlocksOptionsV1 + +`func NewWatchBlocksOptionsV1(channelName string, gatewayOptions GatewayOptions, type_ WatchBlocksListenerTypeV1, ) *WatchBlocksOptionsV1` + +NewWatchBlocksOptionsV1 instantiates a new WatchBlocksOptionsV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksOptionsV1WithDefaults + +`func NewWatchBlocksOptionsV1WithDefaults() *WatchBlocksOptionsV1` + +NewWatchBlocksOptionsV1WithDefaults instantiates a new WatchBlocksOptionsV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChannelName + +`func (o *WatchBlocksOptionsV1) GetChannelName() string` + +GetChannelName returns the ChannelName field if non-nil, zero value otherwise. + +### GetChannelNameOk + +`func (o *WatchBlocksOptionsV1) GetChannelNameOk() (*string, bool)` + +GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelName + +`func (o *WatchBlocksOptionsV1) SetChannelName(v string)` + +SetChannelName sets ChannelName field to given value. + + +### GetGatewayOptions + +`func (o *WatchBlocksOptionsV1) GetGatewayOptions() GatewayOptions` + +GetGatewayOptions returns the GatewayOptions field if non-nil, zero value otherwise. + +### GetGatewayOptionsOk + +`func (o *WatchBlocksOptionsV1) GetGatewayOptionsOk() (*GatewayOptions, bool)` + +GetGatewayOptionsOk returns a tuple with the GatewayOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGatewayOptions + +`func (o *WatchBlocksOptionsV1) SetGatewayOptions(v GatewayOptions)` + +SetGatewayOptions sets GatewayOptions field to given value. + + +### GetType + +`func (o *WatchBlocksOptionsV1) GetType() WatchBlocksListenerTypeV1` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *WatchBlocksOptionsV1) GetTypeOk() (*WatchBlocksListenerTypeV1, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *WatchBlocksOptionsV1) SetType(v WatchBlocksListenerTypeV1)` + +SetType sets Type field to given value. + + +### GetStartBlock + +`func (o *WatchBlocksOptionsV1) GetStartBlock() string` + +GetStartBlock returns the StartBlock field if non-nil, zero value otherwise. + +### GetStartBlockOk + +`func (o *WatchBlocksOptionsV1) GetStartBlockOk() (*string, bool)` + +GetStartBlockOk returns a tuple with the StartBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartBlock + +`func (o *WatchBlocksOptionsV1) SetStartBlock(v string)` + +SetStartBlock sets StartBlock field to given value. + +### HasStartBlock + +`func (o *WatchBlocksOptionsV1) HasStartBlock() bool` + +HasStartBlock returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksPrivateResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksPrivateResponseV1.md new file mode 100644 index 00000000000..f3ab6e0d7ba --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksPrivateResponseV1.md @@ -0,0 +1,61 @@ +# WatchBlocksPrivateResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateBlock** | **interface{}** | Private commited block. | + +## Methods + +### NewWatchBlocksPrivateResponseV1 + +`func NewWatchBlocksPrivateResponseV1(privateBlock interface{}, ) *WatchBlocksPrivateResponseV1` + +NewWatchBlocksPrivateResponseV1 instantiates a new WatchBlocksPrivateResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksPrivateResponseV1WithDefaults + +`func NewWatchBlocksPrivateResponseV1WithDefaults() *WatchBlocksPrivateResponseV1` + +NewWatchBlocksPrivateResponseV1WithDefaults instantiates a new WatchBlocksPrivateResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateBlock + +`func (o *WatchBlocksPrivateResponseV1) GetPrivateBlock() interface{}` + +GetPrivateBlock returns the PrivateBlock field if non-nil, zero value otherwise. + +### GetPrivateBlockOk + +`func (o *WatchBlocksPrivateResponseV1) GetPrivateBlockOk() (*interface{}, bool)` + +GetPrivateBlockOk returns a tuple with the PrivateBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateBlock + +`func (o *WatchBlocksPrivateResponseV1) SetPrivateBlock(v interface{})` + +SetPrivateBlock sets PrivateBlock field to given value. + + +### SetPrivateBlockNil + +`func (o *WatchBlocksPrivateResponseV1) SetPrivateBlockNil(b bool)` + + SetPrivateBlockNil sets the value for PrivateBlock to be an explicit nil + +### UnsetPrivateBlock +`func (o *WatchBlocksPrivateResponseV1) UnsetPrivateBlock()` + +UnsetPrivateBlock ensures that no value is present for PrivateBlock, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md new file mode 100644 index 00000000000..9c0fc3d46f0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md @@ -0,0 +1,186 @@ +# WatchBlocksResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CactusTransactionsEvents** | [**[]WatchBlocksCactusTransactionsEventV1**](WatchBlocksCactusTransactionsEventV1.md) | List of transactions summary | +**FullBlock** | **interface{}** | Full commited block. | +**FilteredBlock** | **interface{}** | Filtered commited block. | +**PrivateBlock** | **interface{}** | Private commited block. | +**Code** | **float32** | Error code. | +**ErrorMessage** | **string** | Description of the error. | + +## Methods + +### NewWatchBlocksResponseV1 + +`func NewWatchBlocksResponseV1(cactusTransactionsEvents []WatchBlocksCactusTransactionsEventV1, fullBlock interface{}, filteredBlock interface{}, privateBlock interface{}, code float32, errorMessage string, ) *WatchBlocksResponseV1` + +NewWatchBlocksResponseV1 instantiates a new WatchBlocksResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksResponseV1WithDefaults + +`func NewWatchBlocksResponseV1WithDefaults() *WatchBlocksResponseV1` + +NewWatchBlocksResponseV1WithDefaults instantiates a new WatchBlocksResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCactusTransactionsEvents + +`func (o *WatchBlocksResponseV1) GetCactusTransactionsEvents() []WatchBlocksCactusTransactionsEventV1` + +GetCactusTransactionsEvents returns the CactusTransactionsEvents field if non-nil, zero value otherwise. + +### GetCactusTransactionsEventsOk + +`func (o *WatchBlocksResponseV1) GetCactusTransactionsEventsOk() (*[]WatchBlocksCactusTransactionsEventV1, bool)` + +GetCactusTransactionsEventsOk returns a tuple with the CactusTransactionsEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCactusTransactionsEvents + +`func (o *WatchBlocksResponseV1) SetCactusTransactionsEvents(v []WatchBlocksCactusTransactionsEventV1)` + +SetCactusTransactionsEvents sets CactusTransactionsEvents field to given value. + + +### GetFullBlock + +`func (o *WatchBlocksResponseV1) GetFullBlock() interface{}` + +GetFullBlock returns the FullBlock field if non-nil, zero value otherwise. + +### GetFullBlockOk + +`func (o *WatchBlocksResponseV1) GetFullBlockOk() (*interface{}, bool)` + +GetFullBlockOk returns a tuple with the FullBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullBlock + +`func (o *WatchBlocksResponseV1) SetFullBlock(v interface{})` + +SetFullBlock sets FullBlock field to given value. + + +### SetFullBlockNil + +`func (o *WatchBlocksResponseV1) SetFullBlockNil(b bool)` + + SetFullBlockNil sets the value for FullBlock to be an explicit nil + +### UnsetFullBlock +`func (o *WatchBlocksResponseV1) UnsetFullBlock()` + +UnsetFullBlock ensures that no value is present for FullBlock, not even an explicit nil +### GetFilteredBlock + +`func (o *WatchBlocksResponseV1) GetFilteredBlock() interface{}` + +GetFilteredBlock returns the FilteredBlock field if non-nil, zero value otherwise. + +### GetFilteredBlockOk + +`func (o *WatchBlocksResponseV1) GetFilteredBlockOk() (*interface{}, bool)` + +GetFilteredBlockOk returns a tuple with the FilteredBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilteredBlock + +`func (o *WatchBlocksResponseV1) SetFilteredBlock(v interface{})` + +SetFilteredBlock sets FilteredBlock field to given value. + + +### SetFilteredBlockNil + +`func (o *WatchBlocksResponseV1) SetFilteredBlockNil(b bool)` + + SetFilteredBlockNil sets the value for FilteredBlock to be an explicit nil + +### UnsetFilteredBlock +`func (o *WatchBlocksResponseV1) UnsetFilteredBlock()` + +UnsetFilteredBlock ensures that no value is present for FilteredBlock, not even an explicit nil +### GetPrivateBlock + +`func (o *WatchBlocksResponseV1) GetPrivateBlock() interface{}` + +GetPrivateBlock returns the PrivateBlock field if non-nil, zero value otherwise. + +### GetPrivateBlockOk + +`func (o *WatchBlocksResponseV1) GetPrivateBlockOk() (*interface{}, bool)` + +GetPrivateBlockOk returns a tuple with the PrivateBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateBlock + +`func (o *WatchBlocksResponseV1) SetPrivateBlock(v interface{})` + +SetPrivateBlock sets PrivateBlock field to given value. + + +### SetPrivateBlockNil + +`func (o *WatchBlocksResponseV1) SetPrivateBlockNil(b bool)` + + SetPrivateBlockNil sets the value for PrivateBlock to be an explicit nil + +### UnsetPrivateBlock +`func (o *WatchBlocksResponseV1) UnsetPrivateBlock()` + +UnsetPrivateBlock ensures that no value is present for PrivateBlock, not even an explicit nil +### GetCode + +`func (o *WatchBlocksResponseV1) GetCode() float32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *WatchBlocksResponseV1) GetCodeOk() (*float32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *WatchBlocksResponseV1) SetCode(v float32)` + +SetCode sets Code field to given value. + + +### GetErrorMessage + +`func (o *WatchBlocksResponseV1) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *WatchBlocksResponseV1) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *WatchBlocksResponseV1) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..1d4c404d7d4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WebSocketKey.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WebSocketKey.md new file mode 100644 index 00000000000..c6774377ebf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/docs/WebSocketKey.md @@ -0,0 +1,72 @@ +# WebSocketKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionId** | **string** | session Id to access client | +**Signature** | **string** | signature of the session ID | + +## Methods + +### NewWebSocketKey + +`func NewWebSocketKey(sessionId string, signature string, ) *WebSocketKey` + +NewWebSocketKey instantiates a new WebSocketKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWebSocketKeyWithDefaults + +`func NewWebSocketKeyWithDefaults() *WebSocketKey` + +NewWebSocketKeyWithDefaults instantiates a new WebSocketKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionId + +`func (o *WebSocketKey) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *WebSocketKey) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *WebSocketKey) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + + +### GetSignature + +`func (o *WebSocketKey) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *WebSocketKey) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *WebSocketKey) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..e28ee377c14 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..8378334f7c6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_language_runtime.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_language_runtime.go new file mode 100644 index 00000000000..accb42896e3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_language_runtime.go @@ -0,0 +1,113 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// ChainCodeLanguageRuntime Enumerates the supported programming language runtimes of Hyperledger Fabric +type ChainCodeLanguageRuntime string + +// List of ChainCodeLanguageRuntime +const ( + GOLANG ChainCodeLanguageRuntime = "golang" + NODE ChainCodeLanguageRuntime = "node" + JAVA ChainCodeLanguageRuntime = "java" +) + +// All allowed values of ChainCodeLanguageRuntime enum +var AllowedChainCodeLanguageRuntimeEnumValues = []ChainCodeLanguageRuntime{ + "golang", + "node", + "java", +} + +func (v *ChainCodeLanguageRuntime) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ChainCodeLanguageRuntime(value) + for _, existing := range AllowedChainCodeLanguageRuntimeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ChainCodeLanguageRuntime", value) +} + +// NewChainCodeLanguageRuntimeFromValue returns a pointer to a valid ChainCodeLanguageRuntime +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewChainCodeLanguageRuntimeFromValue(v string) (*ChainCodeLanguageRuntime, error) { + ev := ChainCodeLanguageRuntime(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ChainCodeLanguageRuntime: valid values are %v", v, AllowedChainCodeLanguageRuntimeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ChainCodeLanguageRuntime) IsValid() bool { + for _, existing := range AllowedChainCodeLanguageRuntimeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ChainCodeLanguageRuntime value +func (v ChainCodeLanguageRuntime) Ptr() *ChainCodeLanguageRuntime { + return &v +} + +type NullableChainCodeLanguageRuntime struct { + value *ChainCodeLanguageRuntime + isSet bool +} + +func (v NullableChainCodeLanguageRuntime) Get() *ChainCodeLanguageRuntime { + return v.value +} + +func (v *NullableChainCodeLanguageRuntime) Set(val *ChainCodeLanguageRuntime) { + v.value = val + v.isSet = true +} + +func (v NullableChainCodeLanguageRuntime) IsSet() bool { + return v.isSet +} + +func (v *NullableChainCodeLanguageRuntime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChainCodeLanguageRuntime(val *ChainCodeLanguageRuntime) *NullableChainCodeLanguageRuntime { + return &NullableChainCodeLanguageRuntime{value: val, isSet: true} +} + +func (v NullableChainCodeLanguageRuntime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChainCodeLanguageRuntime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_life_cycle_command_responses.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_life_cycle_command_responses.go new file mode 100644 index 00000000000..d0d98705960 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_life_cycle_command_responses.go @@ -0,0 +1,315 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the ChainCodeLifeCycleCommandResponses type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChainCodeLifeCycleCommandResponses{} + +// ChainCodeLifeCycleCommandResponses struct for ChainCodeLifeCycleCommandResponses +type ChainCodeLifeCycleCommandResponses struct { + Packaging *SSHExecCommandResponse `json:"packaging,omitempty"` + InstallList []SSHExecCommandResponse `json:"installList"` + QueryInstalledList []SSHExecCommandResponse `json:"queryInstalledList"` + ApproveForMyOrgList []SSHExecCommandResponse `json:"approveForMyOrgList"` + Commit *SSHExecCommandResponse `json:"commit,omitempty"` + QueryCommitted *SSHExecCommandResponse `json:"queryCommitted,omitempty"` + Init *SSHExecCommandResponse `json:"init,omitempty"` +} + +// NewChainCodeLifeCycleCommandResponses instantiates a new ChainCodeLifeCycleCommandResponses object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChainCodeLifeCycleCommandResponses(installList []SSHExecCommandResponse, queryInstalledList []SSHExecCommandResponse, approveForMyOrgList []SSHExecCommandResponse) *ChainCodeLifeCycleCommandResponses { + this := ChainCodeLifeCycleCommandResponses{} + this.InstallList = installList + this.QueryInstalledList = queryInstalledList + this.ApproveForMyOrgList = approveForMyOrgList + return &this +} + +// NewChainCodeLifeCycleCommandResponsesWithDefaults instantiates a new ChainCodeLifeCycleCommandResponses object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChainCodeLifeCycleCommandResponsesWithDefaults() *ChainCodeLifeCycleCommandResponses { + this := ChainCodeLifeCycleCommandResponses{} + return &this +} + +// GetPackaging returns the Packaging field value if set, zero value otherwise. +func (o *ChainCodeLifeCycleCommandResponses) GetPackaging() SSHExecCommandResponse { + if o == nil || IsNil(o.Packaging) { + var ret SSHExecCommandResponse + return ret + } + return *o.Packaging +} + +// GetPackagingOk returns a tuple with the Packaging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetPackagingOk() (*SSHExecCommandResponse, bool) { + if o == nil || IsNil(o.Packaging) { + return nil, false + } + return o.Packaging, true +} + +// HasPackaging returns a boolean if a field has been set. +func (o *ChainCodeLifeCycleCommandResponses) HasPackaging() bool { + if o != nil && !IsNil(o.Packaging) { + return true + } + + return false +} + +// SetPackaging gets a reference to the given SSHExecCommandResponse and assigns it to the Packaging field. +func (o *ChainCodeLifeCycleCommandResponses) SetPackaging(v SSHExecCommandResponse) { + o.Packaging = &v +} + +// GetInstallList returns the InstallList field value +func (o *ChainCodeLifeCycleCommandResponses) GetInstallList() []SSHExecCommandResponse { + if o == nil { + var ret []SSHExecCommandResponse + return ret + } + + return o.InstallList +} + +// GetInstallListOk returns a tuple with the InstallList field value +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetInstallListOk() ([]SSHExecCommandResponse, bool) { + if o == nil { + return nil, false + } + return o.InstallList, true +} + +// SetInstallList sets field value +func (o *ChainCodeLifeCycleCommandResponses) SetInstallList(v []SSHExecCommandResponse) { + o.InstallList = v +} + +// GetQueryInstalledList returns the QueryInstalledList field value +func (o *ChainCodeLifeCycleCommandResponses) GetQueryInstalledList() []SSHExecCommandResponse { + if o == nil { + var ret []SSHExecCommandResponse + return ret + } + + return o.QueryInstalledList +} + +// GetQueryInstalledListOk returns a tuple with the QueryInstalledList field value +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetQueryInstalledListOk() ([]SSHExecCommandResponse, bool) { + if o == nil { + return nil, false + } + return o.QueryInstalledList, true +} + +// SetQueryInstalledList sets field value +func (o *ChainCodeLifeCycleCommandResponses) SetQueryInstalledList(v []SSHExecCommandResponse) { + o.QueryInstalledList = v +} + +// GetApproveForMyOrgList returns the ApproveForMyOrgList field value +func (o *ChainCodeLifeCycleCommandResponses) GetApproveForMyOrgList() []SSHExecCommandResponse { + if o == nil { + var ret []SSHExecCommandResponse + return ret + } + + return o.ApproveForMyOrgList +} + +// GetApproveForMyOrgListOk returns a tuple with the ApproveForMyOrgList field value +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetApproveForMyOrgListOk() ([]SSHExecCommandResponse, bool) { + if o == nil { + return nil, false + } + return o.ApproveForMyOrgList, true +} + +// SetApproveForMyOrgList sets field value +func (o *ChainCodeLifeCycleCommandResponses) SetApproveForMyOrgList(v []SSHExecCommandResponse) { + o.ApproveForMyOrgList = v +} + +// GetCommit returns the Commit field value if set, zero value otherwise. +func (o *ChainCodeLifeCycleCommandResponses) GetCommit() SSHExecCommandResponse { + if o == nil || IsNil(o.Commit) { + var ret SSHExecCommandResponse + return ret + } + return *o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetCommitOk() (*SSHExecCommandResponse, bool) { + if o == nil || IsNil(o.Commit) { + return nil, false + } + return o.Commit, true +} + +// HasCommit returns a boolean if a field has been set. +func (o *ChainCodeLifeCycleCommandResponses) HasCommit() bool { + if o != nil && !IsNil(o.Commit) { + return true + } + + return false +} + +// SetCommit gets a reference to the given SSHExecCommandResponse and assigns it to the Commit field. +func (o *ChainCodeLifeCycleCommandResponses) SetCommit(v SSHExecCommandResponse) { + o.Commit = &v +} + +// GetQueryCommitted returns the QueryCommitted field value if set, zero value otherwise. +func (o *ChainCodeLifeCycleCommandResponses) GetQueryCommitted() SSHExecCommandResponse { + if o == nil || IsNil(o.QueryCommitted) { + var ret SSHExecCommandResponse + return ret + } + return *o.QueryCommitted +} + +// GetQueryCommittedOk returns a tuple with the QueryCommitted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetQueryCommittedOk() (*SSHExecCommandResponse, bool) { + if o == nil || IsNil(o.QueryCommitted) { + return nil, false + } + return o.QueryCommitted, true +} + +// HasQueryCommitted returns a boolean if a field has been set. +func (o *ChainCodeLifeCycleCommandResponses) HasQueryCommitted() bool { + if o != nil && !IsNil(o.QueryCommitted) { + return true + } + + return false +} + +// SetQueryCommitted gets a reference to the given SSHExecCommandResponse and assigns it to the QueryCommitted field. +func (o *ChainCodeLifeCycleCommandResponses) SetQueryCommitted(v SSHExecCommandResponse) { + o.QueryCommitted = &v +} + +// GetInit returns the Init field value if set, zero value otherwise. +func (o *ChainCodeLifeCycleCommandResponses) GetInit() SSHExecCommandResponse { + if o == nil || IsNil(o.Init) { + var ret SSHExecCommandResponse + return ret + } + return *o.Init +} + +// GetInitOk returns a tuple with the Init field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChainCodeLifeCycleCommandResponses) GetInitOk() (*SSHExecCommandResponse, bool) { + if o == nil || IsNil(o.Init) { + return nil, false + } + return o.Init, true +} + +// HasInit returns a boolean if a field has been set. +func (o *ChainCodeLifeCycleCommandResponses) HasInit() bool { + if o != nil && !IsNil(o.Init) { + return true + } + + return false +} + +// SetInit gets a reference to the given SSHExecCommandResponse and assigns it to the Init field. +func (o *ChainCodeLifeCycleCommandResponses) SetInit(v SSHExecCommandResponse) { + o.Init = &v +} + +func (o ChainCodeLifeCycleCommandResponses) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChainCodeLifeCycleCommandResponses) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Packaging) { + toSerialize["packaging"] = o.Packaging + } + toSerialize["installList"] = o.InstallList + toSerialize["queryInstalledList"] = o.QueryInstalledList + toSerialize["approveForMyOrgList"] = o.ApproveForMyOrgList + if !IsNil(o.Commit) { + toSerialize["commit"] = o.Commit + } + if !IsNil(o.QueryCommitted) { + toSerialize["queryCommitted"] = o.QueryCommitted + } + if !IsNil(o.Init) { + toSerialize["init"] = o.Init + } + return toSerialize, nil +} + +type NullableChainCodeLifeCycleCommandResponses struct { + value *ChainCodeLifeCycleCommandResponses + isSet bool +} + +func (v NullableChainCodeLifeCycleCommandResponses) Get() *ChainCodeLifeCycleCommandResponses { + return v.value +} + +func (v *NullableChainCodeLifeCycleCommandResponses) Set(val *ChainCodeLifeCycleCommandResponses) { + v.value = val + v.isSet = true +} + +func (v NullableChainCodeLifeCycleCommandResponses) IsSet() bool { + return v.isSet +} + +func (v *NullableChainCodeLifeCycleCommandResponses) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChainCodeLifeCycleCommandResponses(val *ChainCodeLifeCycleCommandResponses) *NullableChainCodeLifeCycleCommandResponses { + return &NullableChainCodeLifeCycleCommandResponses{value: val, isSet: true} +} + +func (v NullableChainCodeLifeCycleCommandResponses) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChainCodeLifeCycleCommandResponses) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_programming_language.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_programming_language.go new file mode 100644 index 00000000000..57f1161c32a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_chain_code_programming_language.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// ChainCodeProgrammingLanguage Enumerates the supported source code programming languages of Hyperledger Fabric +type ChainCodeProgrammingLanguage string + +// List of ChainCodeProgrammingLanguage +const ( + GOLANG ChainCodeProgrammingLanguage = "golang" + JAVASCRIPT ChainCodeProgrammingLanguage = "javascript" + TYPESCRIPT ChainCodeProgrammingLanguage = "typescript" + JAVA ChainCodeProgrammingLanguage = "java" +) + +// All allowed values of ChainCodeProgrammingLanguage enum +var AllowedChainCodeProgrammingLanguageEnumValues = []ChainCodeProgrammingLanguage{ + "golang", + "javascript", + "typescript", + "java", +} + +func (v *ChainCodeProgrammingLanguage) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ChainCodeProgrammingLanguage(value) + for _, existing := range AllowedChainCodeProgrammingLanguageEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ChainCodeProgrammingLanguage", value) +} + +// NewChainCodeProgrammingLanguageFromValue returns a pointer to a valid ChainCodeProgrammingLanguage +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewChainCodeProgrammingLanguageFromValue(v string) (*ChainCodeProgrammingLanguage, error) { + ev := ChainCodeProgrammingLanguage(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ChainCodeProgrammingLanguage: valid values are %v", v, AllowedChainCodeProgrammingLanguageEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ChainCodeProgrammingLanguage) IsValid() bool { + for _, existing := range AllowedChainCodeProgrammingLanguageEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ChainCodeProgrammingLanguage value +func (v ChainCodeProgrammingLanguage) Ptr() *ChainCodeProgrammingLanguage { + return &v +} + +type NullableChainCodeProgrammingLanguage struct { + value *ChainCodeProgrammingLanguage + isSet bool +} + +func (v NullableChainCodeProgrammingLanguage) Get() *ChainCodeProgrammingLanguage { + return v.value +} + +func (v *NullableChainCodeProgrammingLanguage) Set(val *ChainCodeProgrammingLanguage) { + v.value = val + v.isSet = true +} + +func (v NullableChainCodeProgrammingLanguage) IsSet() bool { + return v.isSet +} + +func (v *NullableChainCodeProgrammingLanguage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChainCodeProgrammingLanguage(val *ChainCodeProgrammingLanguage) *NullableChainCodeProgrammingLanguage { + return &NullableChainCodeProgrammingLanguage{value: val, isSet: true} +} + +func (v NullableChainCodeProgrammingLanguage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChainCodeProgrammingLanguage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile.go new file mode 100644 index 00000000000..4ce490bda84 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile.go @@ -0,0 +1,448 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the ConnectionProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionProfile{} + +// ConnectionProfile struct for ConnectionProfile +type ConnectionProfile struct { + Name string `json:"name"` + XType *string `json:"x-type,omitempty"` + Description *string `json:"description,omitempty"` + Version string `json:"version"` + Client *ConnectionProfileClient `json:"client,omitempty"` + Channels map[string]interface{} `json:"channels,omitempty"` + Organizations map[string]interface{} `json:"organizations"` + Orderers map[string]interface{} `json:"orderers,omitempty"` + Peers map[string]interface{} `json:"peers"` + CertificateAuthorities map[string]interface{} `json:"certificateAuthorities,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionProfile ConnectionProfile + +// NewConnectionProfile instantiates a new ConnectionProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectionProfile(name string, version string, organizations map[string]interface{}, peers map[string]interface{}) *ConnectionProfile { + this := ConnectionProfile{} + this.Name = name + this.Version = version + this.Organizations = organizations + this.Peers = peers + return &this +} + +// NewConnectionProfileWithDefaults instantiates a new ConnectionProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectionProfileWithDefaults() *ConnectionProfile { + this := ConnectionProfile{} + return &this +} + +// GetName returns the Name field value +func (o *ConnectionProfile) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectionProfile) SetName(v string) { + o.Name = v +} + +// GetXType returns the XType field value if set, zero value otherwise. +func (o *ConnectionProfile) GetXType() string { + if o == nil || IsNil(o.XType) { + var ret string + return ret + } + return *o.XType +} + +// GetXTypeOk returns a tuple with the XType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetXTypeOk() (*string, bool) { + if o == nil || IsNil(o.XType) { + return nil, false + } + return o.XType, true +} + +// HasXType returns a boolean if a field has been set. +func (o *ConnectionProfile) HasXType() bool { + if o != nil && !IsNil(o.XType) { + return true + } + + return false +} + +// SetXType gets a reference to the given string and assigns it to the XType field. +func (o *ConnectionProfile) SetXType(v string) { + o.XType = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ConnectionProfile) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ConnectionProfile) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ConnectionProfile) SetDescription(v string) { + o.Description = &v +} + +// GetVersion returns the Version field value +func (o *ConnectionProfile) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *ConnectionProfile) SetVersion(v string) { + o.Version = v +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *ConnectionProfile) GetClient() ConnectionProfileClient { + if o == nil || IsNil(o.Client) { + var ret ConnectionProfileClient + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetClientOk() (*ConnectionProfileClient, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *ConnectionProfile) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given ConnectionProfileClient and assigns it to the Client field. +func (o *ConnectionProfile) SetClient(v ConnectionProfileClient) { + o.Client = &v +} + +// GetChannels returns the Channels field value if set, zero value otherwise. +func (o *ConnectionProfile) GetChannels() map[string]interface{} { + if o == nil || IsNil(o.Channels) { + var ret map[string]interface{} + return ret + } + return o.Channels +} + +// GetChannelsOk returns a tuple with the Channels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetChannelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Channels) { + return map[string]interface{}{}, false + } + return o.Channels, true +} + +// HasChannels returns a boolean if a field has been set. +func (o *ConnectionProfile) HasChannels() bool { + if o != nil && !IsNil(o.Channels) { + return true + } + + return false +} + +// SetChannels gets a reference to the given map[string]interface{} and assigns it to the Channels field. +func (o *ConnectionProfile) SetChannels(v map[string]interface{}) { + o.Channels = v +} + +// GetOrganizations returns the Organizations field value +func (o *ConnectionProfile) GetOrganizations() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetOrganizationsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Organizations, true +} + +// SetOrganizations sets field value +func (o *ConnectionProfile) SetOrganizations(v map[string]interface{}) { + o.Organizations = v +} + +// GetOrderers returns the Orderers field value if set, zero value otherwise. +func (o *ConnectionProfile) GetOrderers() map[string]interface{} { + if o == nil || IsNil(o.Orderers) { + var ret map[string]interface{} + return ret + } + return o.Orderers +} + +// GetOrderersOk returns a tuple with the Orderers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetOrderersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Orderers) { + return map[string]interface{}{}, false + } + return o.Orderers, true +} + +// HasOrderers returns a boolean if a field has been set. +func (o *ConnectionProfile) HasOrderers() bool { + if o != nil && !IsNil(o.Orderers) { + return true + } + + return false +} + +// SetOrderers gets a reference to the given map[string]interface{} and assigns it to the Orderers field. +func (o *ConnectionProfile) SetOrderers(v map[string]interface{}) { + o.Orderers = v +} + +// GetPeers returns the Peers field value +func (o *ConnectionProfile) GetPeers() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Peers +} + +// GetPeersOk returns a tuple with the Peers field value +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetPeersOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Peers, true +} + +// SetPeers sets field value +func (o *ConnectionProfile) SetPeers(v map[string]interface{}) { + o.Peers = v +} + +// GetCertificateAuthorities returns the CertificateAuthorities field value if set, zero value otherwise. +func (o *ConnectionProfile) GetCertificateAuthorities() map[string]interface{} { + if o == nil || IsNil(o.CertificateAuthorities) { + var ret map[string]interface{} + return ret + } + return o.CertificateAuthorities +} + +// GetCertificateAuthoritiesOk returns a tuple with the CertificateAuthorities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfile) GetCertificateAuthoritiesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CertificateAuthorities) { + return map[string]interface{}{}, false + } + return o.CertificateAuthorities, true +} + +// HasCertificateAuthorities returns a boolean if a field has been set. +func (o *ConnectionProfile) HasCertificateAuthorities() bool { + if o != nil && !IsNil(o.CertificateAuthorities) { + return true + } + + return false +} + +// SetCertificateAuthorities gets a reference to the given map[string]interface{} and assigns it to the CertificateAuthorities field. +func (o *ConnectionProfile) SetCertificateAuthorities(v map[string]interface{}) { + o.CertificateAuthorities = v +} + +func (o ConnectionProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.XType) { + toSerialize["x-type"] = o.XType + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["version"] = o.Version + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.Channels) { + toSerialize["channels"] = o.Channels + } + toSerialize["organizations"] = o.Organizations + if !IsNil(o.Orderers) { + toSerialize["orderers"] = o.Orderers + } + toSerialize["peers"] = o.Peers + if !IsNil(o.CertificateAuthorities) { + toSerialize["certificateAuthorities"] = o.CertificateAuthorities + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionProfile) UnmarshalJSON(bytes []byte) (err error) { + varConnectionProfile := _ConnectionProfile{} + + if err = json.Unmarshal(bytes, &varConnectionProfile); err == nil { + *o = ConnectionProfile(varConnectionProfile) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "x-type") + delete(additionalProperties, "description") + delete(additionalProperties, "version") + delete(additionalProperties, "client") + delete(additionalProperties, "channels") + delete(additionalProperties, "organizations") + delete(additionalProperties, "orderers") + delete(additionalProperties, "peers") + delete(additionalProperties, "certificateAuthorities") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionProfile struct { + value *ConnectionProfile + isSet bool +} + +func (v NullableConnectionProfile) Get() *ConnectionProfile { + return v.value +} + +func (v *NullableConnectionProfile) Set(val *ConnectionProfile) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionProfile(val *ConnectionProfile) *NullableConnectionProfile { + return &NullableConnectionProfile{value: val, isSet: true} +} + +func (v NullableConnectionProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile_client.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile_client.go new file mode 100644 index 00000000000..d4425092c80 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_connection_profile_client.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the ConnectionProfileClient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionProfileClient{} + +// ConnectionProfileClient struct for ConnectionProfileClient +type ConnectionProfileClient struct { + Organization *string `json:"organization,omitempty"` +} + +// NewConnectionProfileClient instantiates a new ConnectionProfileClient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectionProfileClient() *ConnectionProfileClient { + this := ConnectionProfileClient{} + return &this +} + +// NewConnectionProfileClientWithDefaults instantiates a new ConnectionProfileClient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectionProfileClientWithDefaults() *ConnectionProfileClient { + this := ConnectionProfileClient{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *ConnectionProfileClient) GetOrganization() string { + if o == nil || IsNil(o.Organization) { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionProfileClient) GetOrganizationOk() (*string, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ConnectionProfileClient) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *ConnectionProfileClient) SetOrganization(v string) { + o.Organization = &v +} + +func (o ConnectionProfileClient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionProfileClient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + return toSerialize, nil +} + +type NullableConnectionProfileClient struct { + value *ConnectionProfileClient + isSet bool +} + +func (v NullableConnectionProfileClient) Get() *ConnectionProfileClient { + return v.value +} + +func (v *NullableConnectionProfileClient) Set(val *ConnectionProfileClient) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionProfileClient) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionProfileClient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionProfileClient(val *ConnectionProfileClient) *NullableConnectionProfileClient { + return &NullableConnectionProfileClient{value: val, isSet: true} +} + +func (v NullableConnectionProfileClient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionProfileClient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_default_event_handler_strategy.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_default_event_handler_strategy.go new file mode 100644 index 00000000000..80b54ba056c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_default_event_handler_strategy.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// DefaultEventHandlerStrategy the model 'DefaultEventHandlerStrategy' +type DefaultEventHandlerStrategy string + +// List of DefaultEventHandlerStrategy +const ( + MSPID_SCOPE_ALLFORTX DefaultEventHandlerStrategy = "MSPID_SCOPE_ALLFORTX" + MSPID_SCOPE_ANYFORTX DefaultEventHandlerStrategy = "MSPID_SCOPE_ANYFORTX" + NETWORK_SCOPE_ALLFORTX DefaultEventHandlerStrategy = "NETWORK_SCOPE_ALLFORTX" + NETWORK_SCOPE_ANYFORTX DefaultEventHandlerStrategy = "NETWORK_SCOPE_ANYFORTX" +) + +// All allowed values of DefaultEventHandlerStrategy enum +var AllowedDefaultEventHandlerStrategyEnumValues = []DefaultEventHandlerStrategy{ + "MSPID_SCOPE_ALLFORTX", + "MSPID_SCOPE_ANYFORTX", + "NETWORK_SCOPE_ALLFORTX", + "NETWORK_SCOPE_ANYFORTX", +} + +func (v *DefaultEventHandlerStrategy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DefaultEventHandlerStrategy(value) + for _, existing := range AllowedDefaultEventHandlerStrategyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DefaultEventHandlerStrategy", value) +} + +// NewDefaultEventHandlerStrategyFromValue returns a pointer to a valid DefaultEventHandlerStrategy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDefaultEventHandlerStrategyFromValue(v string) (*DefaultEventHandlerStrategy, error) { + ev := DefaultEventHandlerStrategy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DefaultEventHandlerStrategy: valid values are %v", v, AllowedDefaultEventHandlerStrategyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DefaultEventHandlerStrategy) IsValid() bool { + for _, existing := range AllowedDefaultEventHandlerStrategyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DefaultEventHandlerStrategy value +func (v DefaultEventHandlerStrategy) Ptr() *DefaultEventHandlerStrategy { + return &v +} + +type NullableDefaultEventHandlerStrategy struct { + value *DefaultEventHandlerStrategy + isSet bool +} + +func (v NullableDefaultEventHandlerStrategy) Get() *DefaultEventHandlerStrategy { + return v.value +} + +func (v *NullableDefaultEventHandlerStrategy) Set(val *DefaultEventHandlerStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableDefaultEventHandlerStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableDefaultEventHandlerStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefaultEventHandlerStrategy(val *DefaultEventHandlerStrategy) *NullableDefaultEventHandlerStrategy { + return &NullableDefaultEventHandlerStrategy{value: val, isSet: true} +} + +func (v NullableDefaultEventHandlerStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefaultEventHandlerStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_501_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_501_response.go new file mode 100644 index 00000000000..1c581196ad5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_501_response.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractGoSourceV1501Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractGoSourceV1501Response{} + +// DeployContractGoSourceV1501Response struct for DeployContractGoSourceV1501Response +type DeployContractGoSourceV1501Response struct { + Message *string `json:"message,omitempty"` +} + +// NewDeployContractGoSourceV1501Response instantiates a new DeployContractGoSourceV1501Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractGoSourceV1501Response() *DeployContractGoSourceV1501Response { + this := DeployContractGoSourceV1501Response{} + return &this +} + +// NewDeployContractGoSourceV1501ResponseWithDefaults instantiates a new DeployContractGoSourceV1501Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractGoSourceV1501ResponseWithDefaults() *DeployContractGoSourceV1501Response { + this := DeployContractGoSourceV1501Response{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1501Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1501Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1501Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *DeployContractGoSourceV1501Response) SetMessage(v string) { + o.Message = &v +} + +func (o DeployContractGoSourceV1501Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractGoSourceV1501Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableDeployContractGoSourceV1501Response struct { + value *DeployContractGoSourceV1501Response + isSet bool +} + +func (v NullableDeployContractGoSourceV1501Response) Get() *DeployContractGoSourceV1501Response { + return v.value +} + +func (v *NullableDeployContractGoSourceV1501Response) Set(val *DeployContractGoSourceV1501Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractGoSourceV1501Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractGoSourceV1501Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractGoSourceV1501Response(val *DeployContractGoSourceV1501Response) *NullableDeployContractGoSourceV1501Response { + return &NullableDeployContractGoSourceV1501Response{value: val, isSet: true} +} + +func (v NullableDeployContractGoSourceV1501Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractGoSourceV1501Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request.go new file mode 100644 index 00000000000..f6398a6a397 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request.go @@ -0,0 +1,474 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractGoSourceV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractGoSourceV1Request{} + +// DeployContractGoSourceV1Request struct for DeployContractGoSourceV1Request +type DeployContractGoSourceV1Request struct { + PolicyDslSource string `json:"policyDslSource"` + // The TLS root cert files that will be passed to the chaincode instantiation command. + TlsRootCertFiles string `json:"tlsRootCertFiles"` + // The name of the Fabric channel where the contract will get instantiated. + ChannelId string `json:"channelId"` + TargetOrganizations []DeploymentTargetOrganization `json:"targetOrganizations"` + // An array of peer addresses where the contract will be instantiated. Note that at present only the first item from this array will be used which is the behavior taken from the official Fabric samples repository and therefore it is assumed to be correct usage. + TargetPeerAddresses []string `json:"targetPeerAddresses"` + ConstructorArgs *DeployContractGoSourceV1RequestConstructorArgs `json:"constructorArgs,omitempty"` + ChainCodeVersion string `json:"chainCodeVersion"` + GoSource FileBase64 `json:"goSource"` + GoMod *FileBase64 `json:"goMod,omitempty"` + // The go module name that will be used for the go compilation process. + ModuleName *string `json:"moduleName,omitempty"` + PinnedDeps []string `json:"pinnedDeps,omitempty"` + // Indicates to the go chaincode compiler of Cactus if it should do an actual go compilation with the contact source or if it should just execute the go mod tidy command. + ModTidyOnly NullableBool `json:"modTidyOnly,omitempty"` +} + +// NewDeployContractGoSourceV1Request instantiates a new DeployContractGoSourceV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractGoSourceV1Request(policyDslSource string, tlsRootCertFiles string, channelId string, targetOrganizations []DeploymentTargetOrganization, targetPeerAddresses []string, chainCodeVersion string, goSource FileBase64) *DeployContractGoSourceV1Request { + this := DeployContractGoSourceV1Request{} + this.PolicyDslSource = policyDslSource + this.TlsRootCertFiles = tlsRootCertFiles + this.ChannelId = channelId + this.TargetOrganizations = targetOrganizations + this.TargetPeerAddresses = targetPeerAddresses + this.ChainCodeVersion = chainCodeVersion + this.GoSource = goSource + return &this +} + +// NewDeployContractGoSourceV1RequestWithDefaults instantiates a new DeployContractGoSourceV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractGoSourceV1RequestWithDefaults() *DeployContractGoSourceV1Request { + this := DeployContractGoSourceV1Request{} + return &this +} + +// GetPolicyDslSource returns the PolicyDslSource field value +func (o *DeployContractGoSourceV1Request) GetPolicyDslSource() string { + if o == nil { + var ret string + return ret + } + + return o.PolicyDslSource +} + +// GetPolicyDslSourceOk returns a tuple with the PolicyDslSource field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetPolicyDslSourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PolicyDslSource, true +} + +// SetPolicyDslSource sets field value +func (o *DeployContractGoSourceV1Request) SetPolicyDslSource(v string) { + o.PolicyDslSource = v +} + +// GetTlsRootCertFiles returns the TlsRootCertFiles field value +func (o *DeployContractGoSourceV1Request) GetTlsRootCertFiles() string { + if o == nil { + var ret string + return ret + } + + return o.TlsRootCertFiles +} + +// GetTlsRootCertFilesOk returns a tuple with the TlsRootCertFiles field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetTlsRootCertFilesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TlsRootCertFiles, true +} + +// SetTlsRootCertFiles sets field value +func (o *DeployContractGoSourceV1Request) SetTlsRootCertFiles(v string) { + o.TlsRootCertFiles = v +} + +// GetChannelId returns the ChannelId field value +func (o *DeployContractGoSourceV1Request) GetChannelId() string { + if o == nil { + var ret string + return ret + } + + return o.ChannelId +} + +// GetChannelIdOk returns a tuple with the ChannelId field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetChannelIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChannelId, true +} + +// SetChannelId sets field value +func (o *DeployContractGoSourceV1Request) SetChannelId(v string) { + o.ChannelId = v +} + +// GetTargetOrganizations returns the TargetOrganizations field value +func (o *DeployContractGoSourceV1Request) GetTargetOrganizations() []DeploymentTargetOrganization { + if o == nil { + var ret []DeploymentTargetOrganization + return ret + } + + return o.TargetOrganizations +} + +// GetTargetOrganizationsOk returns a tuple with the TargetOrganizations field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetTargetOrganizationsOk() ([]DeploymentTargetOrganization, bool) { + if o == nil { + return nil, false + } + return o.TargetOrganizations, true +} + +// SetTargetOrganizations sets field value +func (o *DeployContractGoSourceV1Request) SetTargetOrganizations(v []DeploymentTargetOrganization) { + o.TargetOrganizations = v +} + +// GetTargetPeerAddresses returns the TargetPeerAddresses field value +func (o *DeployContractGoSourceV1Request) GetTargetPeerAddresses() []string { + if o == nil { + var ret []string + return ret + } + + return o.TargetPeerAddresses +} + +// GetTargetPeerAddressesOk returns a tuple with the TargetPeerAddresses field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetTargetPeerAddressesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TargetPeerAddresses, true +} + +// SetTargetPeerAddresses sets field value +func (o *DeployContractGoSourceV1Request) SetTargetPeerAddresses(v []string) { + o.TargetPeerAddresses = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1Request) GetConstructorArgs() DeployContractGoSourceV1RequestConstructorArgs { + if o == nil || IsNil(o.ConstructorArgs) { + var ret DeployContractGoSourceV1RequestConstructorArgs + return ret + } + return *o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetConstructorArgsOk() (*DeployContractGoSourceV1RequestConstructorArgs, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given DeployContractGoSourceV1RequestConstructorArgs and assigns it to the ConstructorArgs field. +func (o *DeployContractGoSourceV1Request) SetConstructorArgs(v DeployContractGoSourceV1RequestConstructorArgs) { + o.ConstructorArgs = &v +} + +// GetChainCodeVersion returns the ChainCodeVersion field value +func (o *DeployContractGoSourceV1Request) GetChainCodeVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ChainCodeVersion +} + +// GetChainCodeVersionOk returns a tuple with the ChainCodeVersion field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetChainCodeVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChainCodeVersion, true +} + +// SetChainCodeVersion sets field value +func (o *DeployContractGoSourceV1Request) SetChainCodeVersion(v string) { + o.ChainCodeVersion = v +} + +// GetGoSource returns the GoSource field value +func (o *DeployContractGoSourceV1Request) GetGoSource() FileBase64 { + if o == nil { + var ret FileBase64 + return ret + } + + return o.GoSource +} + +// GetGoSourceOk returns a tuple with the GoSource field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetGoSourceOk() (*FileBase64, bool) { + if o == nil { + return nil, false + } + return &o.GoSource, true +} + +// SetGoSource sets field value +func (o *DeployContractGoSourceV1Request) SetGoSource(v FileBase64) { + o.GoSource = v +} + +// GetGoMod returns the GoMod field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1Request) GetGoMod() FileBase64 { + if o == nil || IsNil(o.GoMod) { + var ret FileBase64 + return ret + } + return *o.GoMod +} + +// GetGoModOk returns a tuple with the GoMod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetGoModOk() (*FileBase64, bool) { + if o == nil || IsNil(o.GoMod) { + return nil, false + } + return o.GoMod, true +} + +// HasGoMod returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1Request) HasGoMod() bool { + if o != nil && !IsNil(o.GoMod) { + return true + } + + return false +} + +// SetGoMod gets a reference to the given FileBase64 and assigns it to the GoMod field. +func (o *DeployContractGoSourceV1Request) SetGoMod(v FileBase64) { + o.GoMod = &v +} + +// GetModuleName returns the ModuleName field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1Request) GetModuleName() string { + if o == nil || IsNil(o.ModuleName) { + var ret string + return ret + } + return *o.ModuleName +} + +// GetModuleNameOk returns a tuple with the ModuleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetModuleNameOk() (*string, bool) { + if o == nil || IsNil(o.ModuleName) { + return nil, false + } + return o.ModuleName, true +} + +// HasModuleName returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1Request) HasModuleName() bool { + if o != nil && !IsNil(o.ModuleName) { + return true + } + + return false +} + +// SetModuleName gets a reference to the given string and assigns it to the ModuleName field. +func (o *DeployContractGoSourceV1Request) SetModuleName(v string) { + o.ModuleName = &v +} + +// GetPinnedDeps returns the PinnedDeps field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1Request) GetPinnedDeps() []string { + if o == nil || IsNil(o.PinnedDeps) { + var ret []string + return ret + } + return o.PinnedDeps +} + +// GetPinnedDepsOk returns a tuple with the PinnedDeps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Request) GetPinnedDepsOk() ([]string, bool) { + if o == nil || IsNil(o.PinnedDeps) { + return nil, false + } + return o.PinnedDeps, true +} + +// HasPinnedDeps returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1Request) HasPinnedDeps() bool { + if o != nil && !IsNil(o.PinnedDeps) { + return true + } + + return false +} + +// SetPinnedDeps gets a reference to the given []string and assigns it to the PinnedDeps field. +func (o *DeployContractGoSourceV1Request) SetPinnedDeps(v []string) { + o.PinnedDeps = v +} + +// GetModTidyOnly returns the ModTidyOnly field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeployContractGoSourceV1Request) GetModTidyOnly() bool { + if o == nil || IsNil(o.ModTidyOnly.Get()) { + var ret bool + return ret + } + return *o.ModTidyOnly.Get() +} + +// GetModTidyOnlyOk returns a tuple with the ModTidyOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeployContractGoSourceV1Request) GetModTidyOnlyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.ModTidyOnly.Get(), o.ModTidyOnly.IsSet() +} + +// HasModTidyOnly returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1Request) HasModTidyOnly() bool { + if o != nil && o.ModTidyOnly.IsSet() { + return true + } + + return false +} + +// SetModTidyOnly gets a reference to the given NullableBool and assigns it to the ModTidyOnly field. +func (o *DeployContractGoSourceV1Request) SetModTidyOnly(v bool) { + o.ModTidyOnly.Set(&v) +} +// SetModTidyOnlyNil sets the value for ModTidyOnly to be an explicit nil +func (o *DeployContractGoSourceV1Request) SetModTidyOnlyNil() { + o.ModTidyOnly.Set(nil) +} + +// UnsetModTidyOnly ensures that no value is present for ModTidyOnly, not even an explicit nil +func (o *DeployContractGoSourceV1Request) UnsetModTidyOnly() { + o.ModTidyOnly.Unset() +} + +func (o DeployContractGoSourceV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractGoSourceV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["policyDslSource"] = o.PolicyDslSource + toSerialize["tlsRootCertFiles"] = o.TlsRootCertFiles + toSerialize["channelId"] = o.ChannelId + toSerialize["targetOrganizations"] = o.TargetOrganizations + toSerialize["targetPeerAddresses"] = o.TargetPeerAddresses + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + toSerialize["chainCodeVersion"] = o.ChainCodeVersion + toSerialize["goSource"] = o.GoSource + if !IsNil(o.GoMod) { + toSerialize["goMod"] = o.GoMod + } + if !IsNil(o.ModuleName) { + toSerialize["moduleName"] = o.ModuleName + } + if !IsNil(o.PinnedDeps) { + toSerialize["pinnedDeps"] = o.PinnedDeps + } + if o.ModTidyOnly.IsSet() { + toSerialize["modTidyOnly"] = o.ModTidyOnly.Get() + } + return toSerialize, nil +} + +type NullableDeployContractGoSourceV1Request struct { + value *DeployContractGoSourceV1Request + isSet bool +} + +func (v NullableDeployContractGoSourceV1Request) Get() *DeployContractGoSourceV1Request { + return v.value +} + +func (v *NullableDeployContractGoSourceV1Request) Set(val *DeployContractGoSourceV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractGoSourceV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractGoSourceV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractGoSourceV1Request(val *DeployContractGoSourceV1Request) *NullableDeployContractGoSourceV1Request { + return &NullableDeployContractGoSourceV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractGoSourceV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractGoSourceV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request_constructor_args.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request_constructor_args.go new file mode 100644 index 00000000000..6a54cc7a7f3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_request_constructor_args.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractGoSourceV1RequestConstructorArgs type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractGoSourceV1RequestConstructorArgs{} + +// DeployContractGoSourceV1RequestConstructorArgs struct for DeployContractGoSourceV1RequestConstructorArgs +type DeployContractGoSourceV1RequestConstructorArgs struct { + Args []interface{} `json:"Args,omitempty"` +} + +// NewDeployContractGoSourceV1RequestConstructorArgs instantiates a new DeployContractGoSourceV1RequestConstructorArgs object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractGoSourceV1RequestConstructorArgs() *DeployContractGoSourceV1RequestConstructorArgs { + this := DeployContractGoSourceV1RequestConstructorArgs{} + return &this +} + +// NewDeployContractGoSourceV1RequestConstructorArgsWithDefaults instantiates a new DeployContractGoSourceV1RequestConstructorArgs object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractGoSourceV1RequestConstructorArgsWithDefaults() *DeployContractGoSourceV1RequestConstructorArgs { + this := DeployContractGoSourceV1RequestConstructorArgs{} + return &this +} + +// GetArgs returns the Args field value if set, zero value otherwise. +func (o *DeployContractGoSourceV1RequestConstructorArgs) GetArgs() []interface{} { + if o == nil || IsNil(o.Args) { + var ret []interface{} + return ret + } + return o.Args +} + +// GetArgsOk returns a tuple with the Args field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1RequestConstructorArgs) GetArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Args) { + return nil, false + } + return o.Args, true +} + +// HasArgs returns a boolean if a field has been set. +func (o *DeployContractGoSourceV1RequestConstructorArgs) HasArgs() bool { + if o != nil && !IsNil(o.Args) { + return true + } + + return false +} + +// SetArgs gets a reference to the given []interface{} and assigns it to the Args field. +func (o *DeployContractGoSourceV1RequestConstructorArgs) SetArgs(v []interface{}) { + o.Args = v +} + +func (o DeployContractGoSourceV1RequestConstructorArgs) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractGoSourceV1RequestConstructorArgs) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Args) { + toSerialize["Args"] = o.Args + } + return toSerialize, nil +} + +type NullableDeployContractGoSourceV1RequestConstructorArgs struct { + value *DeployContractGoSourceV1RequestConstructorArgs + isSet bool +} + +func (v NullableDeployContractGoSourceV1RequestConstructorArgs) Get() *DeployContractGoSourceV1RequestConstructorArgs { + return v.value +} + +func (v *NullableDeployContractGoSourceV1RequestConstructorArgs) Set(val *DeployContractGoSourceV1RequestConstructorArgs) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractGoSourceV1RequestConstructorArgs) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractGoSourceV1RequestConstructorArgs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractGoSourceV1RequestConstructorArgs(val *DeployContractGoSourceV1RequestConstructorArgs) *NullableDeployContractGoSourceV1RequestConstructorArgs { + return &NullableDeployContractGoSourceV1RequestConstructorArgs{value: val, isSet: true} +} + +func (v NullableDeployContractGoSourceV1RequestConstructorArgs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractGoSourceV1RequestConstructorArgs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_response.go new file mode 100644 index 00000000000..46ba420cbda --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_go_source_v1_response.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractGoSourceV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractGoSourceV1Response{} + +// DeployContractGoSourceV1Response struct for DeployContractGoSourceV1Response +type DeployContractGoSourceV1Response struct { + Success bool `json:"success"` + InstallationCommandResponses []SSHExecCommandResponse `json:"installationCommandResponses"` + InstantiationCommandResponse SSHExecCommandResponse `json:"instantiationCommandResponse"` +} + +// NewDeployContractGoSourceV1Response instantiates a new DeployContractGoSourceV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractGoSourceV1Response(success bool, installationCommandResponses []SSHExecCommandResponse, instantiationCommandResponse SSHExecCommandResponse) *DeployContractGoSourceV1Response { + this := DeployContractGoSourceV1Response{} + this.Success = success + this.InstallationCommandResponses = installationCommandResponses + this.InstantiationCommandResponse = instantiationCommandResponse + return &this +} + +// NewDeployContractGoSourceV1ResponseWithDefaults instantiates a new DeployContractGoSourceV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractGoSourceV1ResponseWithDefaults() *DeployContractGoSourceV1Response { + this := DeployContractGoSourceV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *DeployContractGoSourceV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *DeployContractGoSourceV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetInstallationCommandResponses returns the InstallationCommandResponses field value +func (o *DeployContractGoSourceV1Response) GetInstallationCommandResponses() []SSHExecCommandResponse { + if o == nil { + var ret []SSHExecCommandResponse + return ret + } + + return o.InstallationCommandResponses +} + +// GetInstallationCommandResponsesOk returns a tuple with the InstallationCommandResponses field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Response) GetInstallationCommandResponsesOk() ([]SSHExecCommandResponse, bool) { + if o == nil { + return nil, false + } + return o.InstallationCommandResponses, true +} + +// SetInstallationCommandResponses sets field value +func (o *DeployContractGoSourceV1Response) SetInstallationCommandResponses(v []SSHExecCommandResponse) { + o.InstallationCommandResponses = v +} + +// GetInstantiationCommandResponse returns the InstantiationCommandResponse field value +func (o *DeployContractGoSourceV1Response) GetInstantiationCommandResponse() SSHExecCommandResponse { + if o == nil { + var ret SSHExecCommandResponse + return ret + } + + return o.InstantiationCommandResponse +} + +// GetInstantiationCommandResponseOk returns a tuple with the InstantiationCommandResponse field value +// and a boolean to check if the value has been set. +func (o *DeployContractGoSourceV1Response) GetInstantiationCommandResponseOk() (*SSHExecCommandResponse, bool) { + if o == nil { + return nil, false + } + return &o.InstantiationCommandResponse, true +} + +// SetInstantiationCommandResponse sets field value +func (o *DeployContractGoSourceV1Response) SetInstantiationCommandResponse(v SSHExecCommandResponse) { + o.InstantiationCommandResponse = v +} + +func (o DeployContractGoSourceV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractGoSourceV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["installationCommandResponses"] = o.InstallationCommandResponses + toSerialize["instantiationCommandResponse"] = o.InstantiationCommandResponse + return toSerialize, nil +} + +type NullableDeployContractGoSourceV1Response struct { + value *DeployContractGoSourceV1Response + isSet bool +} + +func (v NullableDeployContractGoSourceV1Response) Get() *DeployContractGoSourceV1Response { + return v.value +} + +func (v *NullableDeployContractGoSourceV1Response) Set(val *DeployContractGoSourceV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractGoSourceV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractGoSourceV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractGoSourceV1Response(val *DeployContractGoSourceV1Response) *NullableDeployContractGoSourceV1Response { + return &NullableDeployContractGoSourceV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractGoSourceV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractGoSourceV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go new file mode 100644 index 00000000000..e20b3e72777 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go @@ -0,0 +1,540 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractV1Request{} + +// DeployContractV1Request struct for DeployContractV1Request +type DeployContractV1Request struct { + CcLang ChainCodeProgrammingLanguage `json:"ccLang"` + // File-system path pointing at the CA file. + CaFile string `json:"caFile"` + // Ordering service endpoint specified as : + Orderer string `json:"orderer"` + // The hostname override to use when validating the TLS connection to the orderer + OrdererTLSHostnameOverride string `json:"ordererTLSHostnameOverride"` + // Timeout for client to connect (default 3s) + ConnTimeout *int32 `json:"connTimeout,omitempty"` + // Passed in to the peer via the --signature-policy argument on the command line. See also: https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html#setting-chaincode-level-endorsement-policies + SignaturePolicy *string `json:"signaturePolicy,omitempty"` + // Name of the collections config file as present in the sourceFiles array of the request. + CollectionsConfigFile *string `json:"collectionsConfigFile,omitempty"` + // The name of the Fabric channel where the contract will get instantiated. + ChannelId string `json:"channelId"` + TargetOrganizations []DeploymentTargetOrganization `json:"targetOrganizations"` + ConstructorArgs *DeployContractGoSourceV1RequestConstructorArgs `json:"constructorArgs,omitempty"` + CcSequence float32 `json:"ccSequence"` + CcVersion string `json:"ccVersion"` + CcName string `json:"ccName"` + // Human readable label to uniquely identify the contract. Recommended to include in this at least the contract name and the exact version in order to make it easily distinguishable from other deployments of the same contract. + CcLabel string `json:"ccLabel"` + // The your-smart-contract.go file where the functionality of your contract is implemented. + SourceFiles []FileBase64 `json:"sourceFiles"` +} + +// NewDeployContractV1Request instantiates a new DeployContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractV1Request(ccLang ChainCodeProgrammingLanguage, caFile string, orderer string, ordererTLSHostnameOverride string, channelId string, targetOrganizations []DeploymentTargetOrganization, ccSequence float32, ccVersion string, ccName string, ccLabel string, sourceFiles []FileBase64) *DeployContractV1Request { + this := DeployContractV1Request{} + this.CcLang = ccLang + this.CaFile = caFile + this.Orderer = orderer + this.OrdererTLSHostnameOverride = ordererTLSHostnameOverride + this.ChannelId = channelId + this.TargetOrganizations = targetOrganizations + this.CcSequence = ccSequence + this.CcVersion = ccVersion + this.CcName = ccName + this.CcLabel = ccLabel + this.SourceFiles = sourceFiles + return &this +} + +// NewDeployContractV1RequestWithDefaults instantiates a new DeployContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractV1RequestWithDefaults() *DeployContractV1Request { + this := DeployContractV1Request{} + return &this +} + +// GetCcLang returns the CcLang field value +func (o *DeployContractV1Request) GetCcLang() ChainCodeProgrammingLanguage { + if o == nil { + var ret ChainCodeProgrammingLanguage + return ret + } + + return o.CcLang +} + +// GetCcLangOk returns a tuple with the CcLang field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCcLangOk() (*ChainCodeProgrammingLanguage, bool) { + if o == nil { + return nil, false + } + return &o.CcLang, true +} + +// SetCcLang sets field value +func (o *DeployContractV1Request) SetCcLang(v ChainCodeProgrammingLanguage) { + o.CcLang = v +} + +// GetCaFile returns the CaFile field value +func (o *DeployContractV1Request) GetCaFile() string { + if o == nil { + var ret string + return ret + } + + return o.CaFile +} + +// GetCaFileOk returns a tuple with the CaFile field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCaFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CaFile, true +} + +// SetCaFile sets field value +func (o *DeployContractV1Request) SetCaFile(v string) { + o.CaFile = v +} + +// GetOrderer returns the Orderer field value +func (o *DeployContractV1Request) GetOrderer() string { + if o == nil { + var ret string + return ret + } + + return o.Orderer +} + +// GetOrdererOk returns a tuple with the Orderer field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetOrdererOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Orderer, true +} + +// SetOrderer sets field value +func (o *DeployContractV1Request) SetOrderer(v string) { + o.Orderer = v +} + +// GetOrdererTLSHostnameOverride returns the OrdererTLSHostnameOverride field value +func (o *DeployContractV1Request) GetOrdererTLSHostnameOverride() string { + if o == nil { + var ret string + return ret + } + + return o.OrdererTLSHostnameOverride +} + +// GetOrdererTLSHostnameOverrideOk returns a tuple with the OrdererTLSHostnameOverride field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetOrdererTLSHostnameOverrideOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrdererTLSHostnameOverride, true +} + +// SetOrdererTLSHostnameOverride sets field value +func (o *DeployContractV1Request) SetOrdererTLSHostnameOverride(v string) { + o.OrdererTLSHostnameOverride = v +} + +// GetConnTimeout returns the ConnTimeout field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetConnTimeout() int32 { + if o == nil || IsNil(o.ConnTimeout) { + var ret int32 + return ret + } + return *o.ConnTimeout +} + +// GetConnTimeoutOk returns a tuple with the ConnTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetConnTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.ConnTimeout) { + return nil, false + } + return o.ConnTimeout, true +} + +// HasConnTimeout returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasConnTimeout() bool { + if o != nil && !IsNil(o.ConnTimeout) { + return true + } + + return false +} + +// SetConnTimeout gets a reference to the given int32 and assigns it to the ConnTimeout field. +func (o *DeployContractV1Request) SetConnTimeout(v int32) { + o.ConnTimeout = &v +} + +// GetSignaturePolicy returns the SignaturePolicy field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetSignaturePolicy() string { + if o == nil || IsNil(o.SignaturePolicy) { + var ret string + return ret + } + return *o.SignaturePolicy +} + +// GetSignaturePolicyOk returns a tuple with the SignaturePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetSignaturePolicyOk() (*string, bool) { + if o == nil || IsNil(o.SignaturePolicy) { + return nil, false + } + return o.SignaturePolicy, true +} + +// HasSignaturePolicy returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasSignaturePolicy() bool { + if o != nil && !IsNil(o.SignaturePolicy) { + return true + } + + return false +} + +// SetSignaturePolicy gets a reference to the given string and assigns it to the SignaturePolicy field. +func (o *DeployContractV1Request) SetSignaturePolicy(v string) { + o.SignaturePolicy = &v +} + +// GetCollectionsConfigFile returns the CollectionsConfigFile field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetCollectionsConfigFile() string { + if o == nil || IsNil(o.CollectionsConfigFile) { + var ret string + return ret + } + return *o.CollectionsConfigFile +} + +// GetCollectionsConfigFileOk returns a tuple with the CollectionsConfigFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCollectionsConfigFileOk() (*string, bool) { + if o == nil || IsNil(o.CollectionsConfigFile) { + return nil, false + } + return o.CollectionsConfigFile, true +} + +// HasCollectionsConfigFile returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasCollectionsConfigFile() bool { + if o != nil && !IsNil(o.CollectionsConfigFile) { + return true + } + + return false +} + +// SetCollectionsConfigFile gets a reference to the given string and assigns it to the CollectionsConfigFile field. +func (o *DeployContractV1Request) SetCollectionsConfigFile(v string) { + o.CollectionsConfigFile = &v +} + +// GetChannelId returns the ChannelId field value +func (o *DeployContractV1Request) GetChannelId() string { + if o == nil { + var ret string + return ret + } + + return o.ChannelId +} + +// GetChannelIdOk returns a tuple with the ChannelId field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetChannelIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChannelId, true +} + +// SetChannelId sets field value +func (o *DeployContractV1Request) SetChannelId(v string) { + o.ChannelId = v +} + +// GetTargetOrganizations returns the TargetOrganizations field value +func (o *DeployContractV1Request) GetTargetOrganizations() []DeploymentTargetOrganization { + if o == nil { + var ret []DeploymentTargetOrganization + return ret + } + + return o.TargetOrganizations +} + +// GetTargetOrganizationsOk returns a tuple with the TargetOrganizations field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetTargetOrganizationsOk() ([]DeploymentTargetOrganization, bool) { + if o == nil { + return nil, false + } + return o.TargetOrganizations, true +} + +// SetTargetOrganizations sets field value +func (o *DeployContractV1Request) SetTargetOrganizations(v []DeploymentTargetOrganization) { + o.TargetOrganizations = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetConstructorArgs() DeployContractGoSourceV1RequestConstructorArgs { + if o == nil || IsNil(o.ConstructorArgs) { + var ret DeployContractGoSourceV1RequestConstructorArgs + return ret + } + return *o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetConstructorArgsOk() (*DeployContractGoSourceV1RequestConstructorArgs, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given DeployContractGoSourceV1RequestConstructorArgs and assigns it to the ConstructorArgs field. +func (o *DeployContractV1Request) SetConstructorArgs(v DeployContractGoSourceV1RequestConstructorArgs) { + o.ConstructorArgs = &v +} + +// GetCcSequence returns the CcSequence field value +func (o *DeployContractV1Request) GetCcSequence() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.CcSequence +} + +// GetCcSequenceOk returns a tuple with the CcSequence field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCcSequenceOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.CcSequence, true +} + +// SetCcSequence sets field value +func (o *DeployContractV1Request) SetCcSequence(v float32) { + o.CcSequence = v +} + +// GetCcVersion returns the CcVersion field value +func (o *DeployContractV1Request) GetCcVersion() string { + if o == nil { + var ret string + return ret + } + + return o.CcVersion +} + +// GetCcVersionOk returns a tuple with the CcVersion field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCcVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CcVersion, true +} + +// SetCcVersion sets field value +func (o *DeployContractV1Request) SetCcVersion(v string) { + o.CcVersion = v +} + +// GetCcName returns the CcName field value +func (o *DeployContractV1Request) GetCcName() string { + if o == nil { + var ret string + return ret + } + + return o.CcName +} + +// GetCcNameOk returns a tuple with the CcName field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCcNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CcName, true +} + +// SetCcName sets field value +func (o *DeployContractV1Request) SetCcName(v string) { + o.CcName = v +} + +// GetCcLabel returns the CcLabel field value +func (o *DeployContractV1Request) GetCcLabel() string { + if o == nil { + var ret string + return ret + } + + return o.CcLabel +} + +// GetCcLabelOk returns a tuple with the CcLabel field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetCcLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CcLabel, true +} + +// SetCcLabel sets field value +func (o *DeployContractV1Request) SetCcLabel(v string) { + o.CcLabel = v +} + +// GetSourceFiles returns the SourceFiles field value +func (o *DeployContractV1Request) GetSourceFiles() []FileBase64 { + if o == nil { + var ret []FileBase64 + return ret + } + + return o.SourceFiles +} + +// GetSourceFilesOk returns a tuple with the SourceFiles field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetSourceFilesOk() ([]FileBase64, bool) { + if o == nil { + return nil, false + } + return o.SourceFiles, true +} + +// SetSourceFiles sets field value +func (o *DeployContractV1Request) SetSourceFiles(v []FileBase64) { + o.SourceFiles = v +} + +func (o DeployContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ccLang"] = o.CcLang + toSerialize["caFile"] = o.CaFile + toSerialize["orderer"] = o.Orderer + toSerialize["ordererTLSHostnameOverride"] = o.OrdererTLSHostnameOverride + if !IsNil(o.ConnTimeout) { + toSerialize["connTimeout"] = o.ConnTimeout + } + if !IsNil(o.SignaturePolicy) { + toSerialize["signaturePolicy"] = o.SignaturePolicy + } + if !IsNil(o.CollectionsConfigFile) { + toSerialize["collectionsConfigFile"] = o.CollectionsConfigFile + } + toSerialize["channelId"] = o.ChannelId + toSerialize["targetOrganizations"] = o.TargetOrganizations + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + toSerialize["ccSequence"] = o.CcSequence + toSerialize["ccVersion"] = o.CcVersion + toSerialize["ccName"] = o.CcName + toSerialize["ccLabel"] = o.CcLabel + toSerialize["sourceFiles"] = o.SourceFiles + return toSerialize, nil +} + +type NullableDeployContractV1Request struct { + value *DeployContractV1Request + isSet bool +} + +func (v NullableDeployContractV1Request) Get() *DeployContractV1Request { + return v.value +} + +func (v *NullableDeployContractV1Request) Set(val *DeployContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractV1Request(val *DeployContractV1Request) *NullableDeployContractV1Request { + return &NullableDeployContractV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go new file mode 100644 index 00000000000..ef2089f1f31 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeployContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractV1Response{} + +// DeployContractV1Response struct for DeployContractV1Response +type DeployContractV1Response struct { + Success bool `json:"success"` + PackageIds []string `json:"packageIds"` + Lifecycle ChainCodeLifeCycleCommandResponses `json:"lifecycle"` +} + +// NewDeployContractV1Response instantiates a new DeployContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractV1Response(success bool, packageIds []string, lifecycle ChainCodeLifeCycleCommandResponses) *DeployContractV1Response { + this := DeployContractV1Response{} + this.Success = success + this.PackageIds = packageIds + this.Lifecycle = lifecycle + return &this +} + +// NewDeployContractV1ResponseWithDefaults instantiates a new DeployContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractV1ResponseWithDefaults() *DeployContractV1Response { + this := DeployContractV1Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *DeployContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *DeployContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +// GetPackageIds returns the PackageIds field value +func (o *DeployContractV1Response) GetPackageIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageIds +} + +// GetPackageIdsOk returns a tuple with the PackageIds field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Response) GetPackageIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.PackageIds, true +} + +// SetPackageIds sets field value +func (o *DeployContractV1Response) SetPackageIds(v []string) { + o.PackageIds = v +} + +// GetLifecycle returns the Lifecycle field value +func (o *DeployContractV1Response) GetLifecycle() ChainCodeLifeCycleCommandResponses { + if o == nil { + var ret ChainCodeLifeCycleCommandResponses + return ret + } + + return o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Response) GetLifecycleOk() (*ChainCodeLifeCycleCommandResponses, bool) { + if o == nil { + return nil, false + } + return &o.Lifecycle, true +} + +// SetLifecycle sets field value +func (o *DeployContractV1Response) SetLifecycle(v ChainCodeLifeCycleCommandResponses) { + o.Lifecycle = v +} + +func (o DeployContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["packageIds"] = o.PackageIds + toSerialize["lifecycle"] = o.Lifecycle + return toSerialize, nil +} + +type NullableDeployContractV1Response struct { + value *DeployContractV1Response + isSet bool +} + +func (v NullableDeployContractV1Response) Get() *DeployContractV1Response { + return v.value +} + +func (v *NullableDeployContractV1Response) Set(val *DeployContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractV1Response(val *DeployContractV1Response) *NullableDeployContractV1Response { + return &NullableDeployContractV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_org_fabric2x.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_org_fabric2x.go new file mode 100644 index 00000000000..8155d70c726 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_org_fabric2x.go @@ -0,0 +1,267 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeploymentTargetOrgFabric2x type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentTargetOrgFabric2x{} + +// DeploymentTargetOrgFabric2x struct for DeploymentTargetOrgFabric2x +type DeploymentTargetOrgFabric2x struct { + // Transient map of arguments in JSON encoding + Transient *string `json:"transient,omitempty"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_LOCALMSPID string `json:"CORE_PEER_LOCALMSPID"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_ADDRESS string `json:"CORE_PEER_ADDRESS"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_MSPCONFIGPATH string `json:"CORE_PEER_MSPCONFIGPATH"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_TLS_ROOTCERT_FILE string `json:"CORE_PEER_TLS_ROOTCERT_FILE"` + // Mapped to environment variables of the Fabric CLI container. + ORDERER_TLS_ROOTCERT_FILE string `json:"ORDERER_TLS_ROOTCERT_FILE"` +} + +// NewDeploymentTargetOrgFabric2x instantiates a new DeploymentTargetOrgFabric2x object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeploymentTargetOrgFabric2x(cOREPEERLOCALMSPID string, cOREPEERADDRESS string, cOREPEERMSPCONFIGPATH string, cOREPEERTLSROOTCERTFILE string, oRDERERTLSROOTCERTFILE string) *DeploymentTargetOrgFabric2x { + this := DeploymentTargetOrgFabric2x{} + this.CORE_PEER_LOCALMSPID = cOREPEERLOCALMSPID + this.CORE_PEER_ADDRESS = cOREPEERADDRESS + this.CORE_PEER_MSPCONFIGPATH = cOREPEERMSPCONFIGPATH + this.CORE_PEER_TLS_ROOTCERT_FILE = cOREPEERTLSROOTCERTFILE + this.ORDERER_TLS_ROOTCERT_FILE = oRDERERTLSROOTCERTFILE + return &this +} + +// NewDeploymentTargetOrgFabric2xWithDefaults instantiates a new DeploymentTargetOrgFabric2x object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeploymentTargetOrgFabric2xWithDefaults() *DeploymentTargetOrgFabric2x { + this := DeploymentTargetOrgFabric2x{} + return &this +} + +// GetTransient returns the Transient field value if set, zero value otherwise. +func (o *DeploymentTargetOrgFabric2x) GetTransient() string { + if o == nil || IsNil(o.Transient) { + var ret string + return ret + } + return *o.Transient +} + +// GetTransientOk returns a tuple with the Transient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetTransientOk() (*string, bool) { + if o == nil || IsNil(o.Transient) { + return nil, false + } + return o.Transient, true +} + +// HasTransient returns a boolean if a field has been set. +func (o *DeploymentTargetOrgFabric2x) HasTransient() bool { + if o != nil && !IsNil(o.Transient) { + return true + } + + return false +} + +// SetTransient gets a reference to the given string and assigns it to the Transient field. +func (o *DeploymentTargetOrgFabric2x) SetTransient(v string) { + o.Transient = &v +} + +// GetCORE_PEER_LOCALMSPID returns the CORE_PEER_LOCALMSPID field value +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_LOCALMSPID() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_LOCALMSPID +} + +// GetCORE_PEER_LOCALMSPIDOk returns a tuple with the CORE_PEER_LOCALMSPID field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_LOCALMSPIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_LOCALMSPID, true +} + +// SetCORE_PEER_LOCALMSPID sets field value +func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_LOCALMSPID(v string) { + o.CORE_PEER_LOCALMSPID = v +} + +// GetCORE_PEER_ADDRESS returns the CORE_PEER_ADDRESS field value +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_ADDRESS() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_ADDRESS +} + +// GetCORE_PEER_ADDRESSOk returns a tuple with the CORE_PEER_ADDRESS field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_ADDRESSOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_ADDRESS, true +} + +// SetCORE_PEER_ADDRESS sets field value +func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_ADDRESS(v string) { + o.CORE_PEER_ADDRESS = v +} + +// GetCORE_PEER_MSPCONFIGPATH returns the CORE_PEER_MSPCONFIGPATH field value +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_MSPCONFIGPATH() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_MSPCONFIGPATH +} + +// GetCORE_PEER_MSPCONFIGPATHOk returns a tuple with the CORE_PEER_MSPCONFIGPATH field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_MSPCONFIGPATHOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_MSPCONFIGPATH, true +} + +// SetCORE_PEER_MSPCONFIGPATH sets field value +func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_MSPCONFIGPATH(v string) { + o.CORE_PEER_MSPCONFIGPATH = v +} + +// GetCORE_PEER_TLS_ROOTCERT_FILE returns the CORE_PEER_TLS_ROOTCERT_FILE field value +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_TLS_ROOTCERT_FILE() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_TLS_ROOTCERT_FILE +} + +// GetCORE_PEER_TLS_ROOTCERT_FILEOk returns a tuple with the CORE_PEER_TLS_ROOTCERT_FILE field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetCORE_PEER_TLS_ROOTCERT_FILEOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_TLS_ROOTCERT_FILE, true +} + +// SetCORE_PEER_TLS_ROOTCERT_FILE sets field value +func (o *DeploymentTargetOrgFabric2x) SetCORE_PEER_TLS_ROOTCERT_FILE(v string) { + o.CORE_PEER_TLS_ROOTCERT_FILE = v +} + +// GetORDERER_TLS_ROOTCERT_FILE returns the ORDERER_TLS_ROOTCERT_FILE field value +func (o *DeploymentTargetOrgFabric2x) GetORDERER_TLS_ROOTCERT_FILE() string { + if o == nil { + var ret string + return ret + } + + return o.ORDERER_TLS_ROOTCERT_FILE +} + +// GetORDERER_TLS_ROOTCERT_FILEOk returns a tuple with the ORDERER_TLS_ROOTCERT_FILE field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrgFabric2x) GetORDERER_TLS_ROOTCERT_FILEOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ORDERER_TLS_ROOTCERT_FILE, true +} + +// SetORDERER_TLS_ROOTCERT_FILE sets field value +func (o *DeploymentTargetOrgFabric2x) SetORDERER_TLS_ROOTCERT_FILE(v string) { + o.ORDERER_TLS_ROOTCERT_FILE = v +} + +func (o DeploymentTargetOrgFabric2x) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentTargetOrgFabric2x) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Transient) { + toSerialize["transient"] = o.Transient + } + toSerialize["CORE_PEER_LOCALMSPID"] = o.CORE_PEER_LOCALMSPID + toSerialize["CORE_PEER_ADDRESS"] = o.CORE_PEER_ADDRESS + toSerialize["CORE_PEER_MSPCONFIGPATH"] = o.CORE_PEER_MSPCONFIGPATH + toSerialize["CORE_PEER_TLS_ROOTCERT_FILE"] = o.CORE_PEER_TLS_ROOTCERT_FILE + toSerialize["ORDERER_TLS_ROOTCERT_FILE"] = o.ORDERER_TLS_ROOTCERT_FILE + return toSerialize, nil +} + +type NullableDeploymentTargetOrgFabric2x struct { + value *DeploymentTargetOrgFabric2x + isSet bool +} + +func (v NullableDeploymentTargetOrgFabric2x) Get() *DeploymentTargetOrgFabric2x { + return v.value +} + +func (v *NullableDeploymentTargetOrgFabric2x) Set(val *DeploymentTargetOrgFabric2x) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentTargetOrgFabric2x) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentTargetOrgFabric2x) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentTargetOrgFabric2x(val *DeploymentTargetOrgFabric2x) *NullableDeploymentTargetOrgFabric2x { + return &NullableDeploymentTargetOrgFabric2x{value: val, isSet: true} +} + +func (v NullableDeploymentTargetOrgFabric2x) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentTargetOrgFabric2x) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_organization.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_organization.go new file mode 100644 index 00000000000..3486ea9b9e9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_deployment_target_organization.go @@ -0,0 +1,230 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the DeploymentTargetOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentTargetOrganization{} + +// DeploymentTargetOrganization struct for DeploymentTargetOrganization +type DeploymentTargetOrganization struct { + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_LOCALMSPID string `json:"CORE_PEER_LOCALMSPID"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_ADDRESS string `json:"CORE_PEER_ADDRESS"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_MSPCONFIGPATH string `json:"CORE_PEER_MSPCONFIGPATH"` + // Mapped to environment variables of the Fabric CLI container. + CORE_PEER_TLS_ROOTCERT_FILE string `json:"CORE_PEER_TLS_ROOTCERT_FILE"` + // Mapped to environment variables of the Fabric CLI container. + ORDERER_TLS_ROOTCERT_FILE string `json:"ORDERER_TLS_ROOTCERT_FILE"` +} + +// NewDeploymentTargetOrganization instantiates a new DeploymentTargetOrganization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeploymentTargetOrganization(cOREPEERLOCALMSPID string, cOREPEERADDRESS string, cOREPEERMSPCONFIGPATH string, cOREPEERTLSROOTCERTFILE string, oRDERERTLSROOTCERTFILE string) *DeploymentTargetOrganization { + this := DeploymentTargetOrganization{} + this.CORE_PEER_LOCALMSPID = cOREPEERLOCALMSPID + this.CORE_PEER_ADDRESS = cOREPEERADDRESS + this.CORE_PEER_MSPCONFIGPATH = cOREPEERMSPCONFIGPATH + this.CORE_PEER_TLS_ROOTCERT_FILE = cOREPEERTLSROOTCERTFILE + this.ORDERER_TLS_ROOTCERT_FILE = oRDERERTLSROOTCERTFILE + return &this +} + +// NewDeploymentTargetOrganizationWithDefaults instantiates a new DeploymentTargetOrganization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeploymentTargetOrganizationWithDefaults() *DeploymentTargetOrganization { + this := DeploymentTargetOrganization{} + return &this +} + +// GetCORE_PEER_LOCALMSPID returns the CORE_PEER_LOCALMSPID field value +func (o *DeploymentTargetOrganization) GetCORE_PEER_LOCALMSPID() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_LOCALMSPID +} + +// GetCORE_PEER_LOCALMSPIDOk returns a tuple with the CORE_PEER_LOCALMSPID field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrganization) GetCORE_PEER_LOCALMSPIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_LOCALMSPID, true +} + +// SetCORE_PEER_LOCALMSPID sets field value +func (o *DeploymentTargetOrganization) SetCORE_PEER_LOCALMSPID(v string) { + o.CORE_PEER_LOCALMSPID = v +} + +// GetCORE_PEER_ADDRESS returns the CORE_PEER_ADDRESS field value +func (o *DeploymentTargetOrganization) GetCORE_PEER_ADDRESS() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_ADDRESS +} + +// GetCORE_PEER_ADDRESSOk returns a tuple with the CORE_PEER_ADDRESS field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrganization) GetCORE_PEER_ADDRESSOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_ADDRESS, true +} + +// SetCORE_PEER_ADDRESS sets field value +func (o *DeploymentTargetOrganization) SetCORE_PEER_ADDRESS(v string) { + o.CORE_PEER_ADDRESS = v +} + +// GetCORE_PEER_MSPCONFIGPATH returns the CORE_PEER_MSPCONFIGPATH field value +func (o *DeploymentTargetOrganization) GetCORE_PEER_MSPCONFIGPATH() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_MSPCONFIGPATH +} + +// GetCORE_PEER_MSPCONFIGPATHOk returns a tuple with the CORE_PEER_MSPCONFIGPATH field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrganization) GetCORE_PEER_MSPCONFIGPATHOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_MSPCONFIGPATH, true +} + +// SetCORE_PEER_MSPCONFIGPATH sets field value +func (o *DeploymentTargetOrganization) SetCORE_PEER_MSPCONFIGPATH(v string) { + o.CORE_PEER_MSPCONFIGPATH = v +} + +// GetCORE_PEER_TLS_ROOTCERT_FILE returns the CORE_PEER_TLS_ROOTCERT_FILE field value +func (o *DeploymentTargetOrganization) GetCORE_PEER_TLS_ROOTCERT_FILE() string { + if o == nil { + var ret string + return ret + } + + return o.CORE_PEER_TLS_ROOTCERT_FILE +} + +// GetCORE_PEER_TLS_ROOTCERT_FILEOk returns a tuple with the CORE_PEER_TLS_ROOTCERT_FILE field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrganization) GetCORE_PEER_TLS_ROOTCERT_FILEOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CORE_PEER_TLS_ROOTCERT_FILE, true +} + +// SetCORE_PEER_TLS_ROOTCERT_FILE sets field value +func (o *DeploymentTargetOrganization) SetCORE_PEER_TLS_ROOTCERT_FILE(v string) { + o.CORE_PEER_TLS_ROOTCERT_FILE = v +} + +// GetORDERER_TLS_ROOTCERT_FILE returns the ORDERER_TLS_ROOTCERT_FILE field value +func (o *DeploymentTargetOrganization) GetORDERER_TLS_ROOTCERT_FILE() string { + if o == nil { + var ret string + return ret + } + + return o.ORDERER_TLS_ROOTCERT_FILE +} + +// GetORDERER_TLS_ROOTCERT_FILEOk returns a tuple with the ORDERER_TLS_ROOTCERT_FILE field value +// and a boolean to check if the value has been set. +func (o *DeploymentTargetOrganization) GetORDERER_TLS_ROOTCERT_FILEOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ORDERER_TLS_ROOTCERT_FILE, true +} + +// SetORDERER_TLS_ROOTCERT_FILE sets field value +func (o *DeploymentTargetOrganization) SetORDERER_TLS_ROOTCERT_FILE(v string) { + o.ORDERER_TLS_ROOTCERT_FILE = v +} + +func (o DeploymentTargetOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentTargetOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CORE_PEER_LOCALMSPID"] = o.CORE_PEER_LOCALMSPID + toSerialize["CORE_PEER_ADDRESS"] = o.CORE_PEER_ADDRESS + toSerialize["CORE_PEER_MSPCONFIGPATH"] = o.CORE_PEER_MSPCONFIGPATH + toSerialize["CORE_PEER_TLS_ROOTCERT_FILE"] = o.CORE_PEER_TLS_ROOTCERT_FILE + toSerialize["ORDERER_TLS_ROOTCERT_FILE"] = o.ORDERER_TLS_ROOTCERT_FILE + return toSerialize, nil +} + +type NullableDeploymentTargetOrganization struct { + value *DeploymentTargetOrganization + isSet bool +} + +func (v NullableDeploymentTargetOrganization) Get() *DeploymentTargetOrganization { + return v.value +} + +func (v *NullableDeploymentTargetOrganization) Set(val *DeploymentTargetOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentTargetOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentTargetOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentTargetOrganization(val *DeploymentTargetOrganization) *NullableDeploymentTargetOrganization { + return &NullableDeploymentTargetOrganization{value: val, isSet: true} +} + +func (v NullableDeploymentTargetOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentTargetOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go new file mode 100644 index 00000000000..292bf98ce0e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the ErrorExceptionResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorExceptionResponseV1{} + +// ErrorExceptionResponseV1 struct for ErrorExceptionResponseV1 +type ErrorExceptionResponseV1 struct { + Message string `json:"message"` + Error string `json:"error"` +} + +// NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorExceptionResponseV1(message string, error_ string) *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + this.Message = message + this.Error = error_ + return &this +} + +// NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + return &this +} + +// GetMessage returns the Message field value +func (o *ErrorExceptionResponseV1) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorExceptionResponseV1) SetMessage(v string) { + o.Message = v +} + +// GetError returns the Error field value +func (o *ErrorExceptionResponseV1) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *ErrorExceptionResponseV1) SetError(v string) { + o.Error = v +} + +func (o ErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorExceptionResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["error"] = o.Error + return toSerialize, nil +} + +type NullableErrorExceptionResponseV1 struct { + value *ErrorExceptionResponseV1 + isSet bool +} + +func (v NullableErrorExceptionResponseV1) Get() *ErrorExceptionResponseV1 { + return v.value +} + +func (v *NullableErrorExceptionResponseV1) Set(val *ErrorExceptionResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableErrorExceptionResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorExceptionResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorExceptionResponseV1(val *ErrorExceptionResponseV1) *NullableErrorExceptionResponseV1 { + return &NullableErrorExceptionResponseV1{value: val, isSet: true} +} + +func (v NullableErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorExceptionResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_contract_invocation_type.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_contract_invocation_type.go new file mode 100644 index 00000000000..2259976cdc1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_contract_invocation_type.go @@ -0,0 +1,113 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// FabricContractInvocationType the model 'FabricContractInvocationType' +type FabricContractInvocationType string + +// List of FabricContractInvocationType +const ( + SEND FabricContractInvocationType = "FabricContractInvocationType.SEND" + CALL FabricContractInvocationType = "FabricContractInvocationType.CALL" + SENDPRIVATE FabricContractInvocationType = "FabricContractInvocationType.SENDPRIVATE" +) + +// All allowed values of FabricContractInvocationType enum +var AllowedFabricContractInvocationTypeEnumValues = []FabricContractInvocationType{ + "FabricContractInvocationType.SEND", + "FabricContractInvocationType.CALL", + "FabricContractInvocationType.SENDPRIVATE", +} + +func (v *FabricContractInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := FabricContractInvocationType(value) + for _, existing := range AllowedFabricContractInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid FabricContractInvocationType", value) +} + +// NewFabricContractInvocationTypeFromValue returns a pointer to a valid FabricContractInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewFabricContractInvocationTypeFromValue(v string) (*FabricContractInvocationType, error) { + ev := FabricContractInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for FabricContractInvocationType: valid values are %v", v, AllowedFabricContractInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v FabricContractInvocationType) IsValid() bool { + for _, existing := range AllowedFabricContractInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to FabricContractInvocationType value +func (v FabricContractInvocationType) Ptr() *FabricContractInvocationType { + return &v +} + +type NullableFabricContractInvocationType struct { + value *FabricContractInvocationType + isSet bool +} + +func (v NullableFabricContractInvocationType) Get() *FabricContractInvocationType { + return v.value +} + +func (v *NullableFabricContractInvocationType) Set(val *FabricContractInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableFabricContractInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableFabricContractInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFabricContractInvocationType(val *FabricContractInvocationType) *NullableFabricContractInvocationType { + return &NullableFabricContractInvocationType{value: val, isSet: true} +} + +func (v NullableFabricContractInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFabricContractInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential.go new file mode 100644 index 00000000000..5985b3cc116 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential.go @@ -0,0 +1,252 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the FabricSigningCredential type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FabricSigningCredential{} + +// FabricSigningCredential struct for FabricSigningCredential +type FabricSigningCredential struct { + KeychainId string `json:"keychainId"` + KeychainRef string `json:"keychainRef"` + Type *FabricSigningCredentialType `json:"type,omitempty"` + VaultTransitKey *VaultTransitKey `json:"vaultTransitKey,omitempty"` + WebSocketKey *WebSocketKey `json:"webSocketKey,omitempty"` +} + +// NewFabricSigningCredential instantiates a new FabricSigningCredential object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFabricSigningCredential(keychainId string, keychainRef string) *FabricSigningCredential { + this := FabricSigningCredential{} + this.KeychainId = keychainId + this.KeychainRef = keychainRef + return &this +} + +// NewFabricSigningCredentialWithDefaults instantiates a new FabricSigningCredential object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFabricSigningCredentialWithDefaults() *FabricSigningCredential { + this := FabricSigningCredential{} + return &this +} + +// GetKeychainId returns the KeychainId field value +func (o *FabricSigningCredential) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *FabricSigningCredential) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *FabricSigningCredential) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetKeychainRef returns the KeychainRef field value +func (o *FabricSigningCredential) GetKeychainRef() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainRef +} + +// GetKeychainRefOk returns a tuple with the KeychainRef field value +// and a boolean to check if the value has been set. +func (o *FabricSigningCredential) GetKeychainRefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainRef, true +} + +// SetKeychainRef sets field value +func (o *FabricSigningCredential) SetKeychainRef(v string) { + o.KeychainRef = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *FabricSigningCredential) GetType() FabricSigningCredentialType { + if o == nil || IsNil(o.Type) { + var ret FabricSigningCredentialType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FabricSigningCredential) GetTypeOk() (*FabricSigningCredentialType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *FabricSigningCredential) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given FabricSigningCredentialType and assigns it to the Type field. +func (o *FabricSigningCredential) SetType(v FabricSigningCredentialType) { + o.Type = &v +} + +// GetVaultTransitKey returns the VaultTransitKey field value if set, zero value otherwise. +func (o *FabricSigningCredential) GetVaultTransitKey() VaultTransitKey { + if o == nil || IsNil(o.VaultTransitKey) { + var ret VaultTransitKey + return ret + } + return *o.VaultTransitKey +} + +// GetVaultTransitKeyOk returns a tuple with the VaultTransitKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FabricSigningCredential) GetVaultTransitKeyOk() (*VaultTransitKey, bool) { + if o == nil || IsNil(o.VaultTransitKey) { + return nil, false + } + return o.VaultTransitKey, true +} + +// HasVaultTransitKey returns a boolean if a field has been set. +func (o *FabricSigningCredential) HasVaultTransitKey() bool { + if o != nil && !IsNil(o.VaultTransitKey) { + return true + } + + return false +} + +// SetVaultTransitKey gets a reference to the given VaultTransitKey and assigns it to the VaultTransitKey field. +func (o *FabricSigningCredential) SetVaultTransitKey(v VaultTransitKey) { + o.VaultTransitKey = &v +} + +// GetWebSocketKey returns the WebSocketKey field value if set, zero value otherwise. +func (o *FabricSigningCredential) GetWebSocketKey() WebSocketKey { + if o == nil || IsNil(o.WebSocketKey) { + var ret WebSocketKey + return ret + } + return *o.WebSocketKey +} + +// GetWebSocketKeyOk returns a tuple with the WebSocketKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FabricSigningCredential) GetWebSocketKeyOk() (*WebSocketKey, bool) { + if o == nil || IsNil(o.WebSocketKey) { + return nil, false + } + return o.WebSocketKey, true +} + +// HasWebSocketKey returns a boolean if a field has been set. +func (o *FabricSigningCredential) HasWebSocketKey() bool { + if o != nil && !IsNil(o.WebSocketKey) { + return true + } + + return false +} + +// SetWebSocketKey gets a reference to the given WebSocketKey and assigns it to the WebSocketKey field. +func (o *FabricSigningCredential) SetWebSocketKey(v WebSocketKey) { + o.WebSocketKey = &v +} + +func (o FabricSigningCredential) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FabricSigningCredential) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["keychainId"] = o.KeychainId + toSerialize["keychainRef"] = o.KeychainRef + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.VaultTransitKey) { + toSerialize["vaultTransitKey"] = o.VaultTransitKey + } + if !IsNil(o.WebSocketKey) { + toSerialize["webSocketKey"] = o.WebSocketKey + } + return toSerialize, nil +} + +type NullableFabricSigningCredential struct { + value *FabricSigningCredential + isSet bool +} + +func (v NullableFabricSigningCredential) Get() *FabricSigningCredential { + return v.value +} + +func (v *NullableFabricSigningCredential) Set(val *FabricSigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableFabricSigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableFabricSigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFabricSigningCredential(val *FabricSigningCredential) *NullableFabricSigningCredential { + return &NullableFabricSigningCredential{value: val, isSet: true} +} + +func (v NullableFabricSigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFabricSigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential_type.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential_type.go new file mode 100644 index 00000000000..6d31701b75c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_fabric_signing_credential_type.go @@ -0,0 +1,113 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// FabricSigningCredentialType different type of identity provider for singing fabric messages supported by this package +type FabricSigningCredentialType string + +// List of FabricSigningCredentialType +const ( + X_509 FabricSigningCredentialType = "X.509" + VAULT_X_509 FabricSigningCredentialType = "Vault-X.509" + WS_X_509 FabricSigningCredentialType = "WS-X.509" +) + +// All allowed values of FabricSigningCredentialType enum +var AllowedFabricSigningCredentialTypeEnumValues = []FabricSigningCredentialType{ + "X.509", + "Vault-X.509", + "WS-X.509", +} + +func (v *FabricSigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := FabricSigningCredentialType(value) + for _, existing := range AllowedFabricSigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid FabricSigningCredentialType", value) +} + +// NewFabricSigningCredentialTypeFromValue returns a pointer to a valid FabricSigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewFabricSigningCredentialTypeFromValue(v string) (*FabricSigningCredentialType, error) { + ev := FabricSigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for FabricSigningCredentialType: valid values are %v", v, AllowedFabricSigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v FabricSigningCredentialType) IsValid() bool { + for _, existing := range AllowedFabricSigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to FabricSigningCredentialType value +func (v FabricSigningCredentialType) Ptr() *FabricSigningCredentialType { + return &v +} + +type NullableFabricSigningCredentialType struct { + value *FabricSigningCredentialType + isSet bool +} + +func (v NullableFabricSigningCredentialType) Get() *FabricSigningCredentialType { + return v.value +} + +func (v *NullableFabricSigningCredentialType) Set(val *FabricSigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableFabricSigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableFabricSigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFabricSigningCredentialType(val *FabricSigningCredentialType) *NullableFabricSigningCredentialType { + return &NullableFabricSigningCredentialType{value: val, isSet: true} +} + +func (v NullableFabricSigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFabricSigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_file_base64.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_file_base64.go new file mode 100644 index 00000000000..ee510ae481f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_file_base64.go @@ -0,0 +1,183 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the FileBase64 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FileBase64{} + +// FileBase64 Represents a file-system file that has a name and a body which holds the file contents as a Base64 encoded string +type FileBase64 struct { + // The file's contents encoded as a Base64 string. + Body string `json:"body"` + // The name as referred to on a file system + Filename string `json:"filename"` + // The relative path of the file, if it should be placed in a sub-directory + Filepath *string `json:"filepath,omitempty"` +} + +// NewFileBase64 instantiates a new FileBase64 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFileBase64(body string, filename string) *FileBase64 { + this := FileBase64{} + this.Body = body + this.Filename = filename + return &this +} + +// NewFileBase64WithDefaults instantiates a new FileBase64 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFileBase64WithDefaults() *FileBase64 { + this := FileBase64{} + return &this +} + +// GetBody returns the Body field value +func (o *FileBase64) GetBody() string { + if o == nil { + var ret string + return ret + } + + return o.Body +} + +// GetBodyOk returns a tuple with the Body field value +// and a boolean to check if the value has been set. +func (o *FileBase64) GetBodyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Body, true +} + +// SetBody sets field value +func (o *FileBase64) SetBody(v string) { + o.Body = v +} + +// GetFilename returns the Filename field value +func (o *FileBase64) GetFilename() string { + if o == nil { + var ret string + return ret + } + + return o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value +// and a boolean to check if the value has been set. +func (o *FileBase64) GetFilenameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Filename, true +} + +// SetFilename sets field value +func (o *FileBase64) SetFilename(v string) { + o.Filename = v +} + +// GetFilepath returns the Filepath field value if set, zero value otherwise. +func (o *FileBase64) GetFilepath() string { + if o == nil || IsNil(o.Filepath) { + var ret string + return ret + } + return *o.Filepath +} + +// GetFilepathOk returns a tuple with the Filepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileBase64) GetFilepathOk() (*string, bool) { + if o == nil || IsNil(o.Filepath) { + return nil, false + } + return o.Filepath, true +} + +// HasFilepath returns a boolean if a field has been set. +func (o *FileBase64) HasFilepath() bool { + if o != nil && !IsNil(o.Filepath) { + return true + } + + return false +} + +// SetFilepath gets a reference to the given string and assigns it to the Filepath field. +func (o *FileBase64) SetFilepath(v string) { + o.Filepath = &v +} + +func (o FileBase64) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FileBase64) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["body"] = o.Body + toSerialize["filename"] = o.Filename + if !IsNil(o.Filepath) { + toSerialize["filepath"] = o.Filepath + } + return toSerialize, nil +} + +type NullableFileBase64 struct { + value *FileBase64 + isSet bool +} + +func (v NullableFileBase64) Get() *FileBase64 { + return v.value +} + +func (v *NullableFileBase64) Set(val *FileBase64) { + v.value = val + v.isSet = true +} + +func (v NullableFileBase64) IsSet() bool { + return v.isSet +} + +func (v *NullableFileBase64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFileBase64(val *FileBase64) *NullableFileBase64 { + return &NullableFileBase64{value: val, isSet: true} +} + +func (v NullableFileBase64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFileBase64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_discovery_options.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_discovery_options.go new file mode 100644 index 00000000000..7f7be25eba5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_discovery_options.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GatewayDiscoveryOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GatewayDiscoveryOptions{} + +// GatewayDiscoveryOptions struct for GatewayDiscoveryOptions +type GatewayDiscoveryOptions struct { + AsLocalhost *bool `json:"asLocalhost,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// NewGatewayDiscoveryOptions instantiates a new GatewayDiscoveryOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGatewayDiscoveryOptions() *GatewayDiscoveryOptions { + this := GatewayDiscoveryOptions{} + return &this +} + +// NewGatewayDiscoveryOptionsWithDefaults instantiates a new GatewayDiscoveryOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGatewayDiscoveryOptionsWithDefaults() *GatewayDiscoveryOptions { + this := GatewayDiscoveryOptions{} + return &this +} + +// GetAsLocalhost returns the AsLocalhost field value if set, zero value otherwise. +func (o *GatewayDiscoveryOptions) GetAsLocalhost() bool { + if o == nil || IsNil(o.AsLocalhost) { + var ret bool + return ret + } + return *o.AsLocalhost +} + +// GetAsLocalhostOk returns a tuple with the AsLocalhost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayDiscoveryOptions) GetAsLocalhostOk() (*bool, bool) { + if o == nil || IsNil(o.AsLocalhost) { + return nil, false + } + return o.AsLocalhost, true +} + +// HasAsLocalhost returns a boolean if a field has been set. +func (o *GatewayDiscoveryOptions) HasAsLocalhost() bool { + if o != nil && !IsNil(o.AsLocalhost) { + return true + } + + return false +} + +// SetAsLocalhost gets a reference to the given bool and assigns it to the AsLocalhost field. +func (o *GatewayDiscoveryOptions) SetAsLocalhost(v bool) { + o.AsLocalhost = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GatewayDiscoveryOptions) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayDiscoveryOptions) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GatewayDiscoveryOptions) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GatewayDiscoveryOptions) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o GatewayDiscoveryOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GatewayDiscoveryOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AsLocalhost) { + toSerialize["asLocalhost"] = o.AsLocalhost + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableGatewayDiscoveryOptions struct { + value *GatewayDiscoveryOptions + isSet bool +} + +func (v NullableGatewayDiscoveryOptions) Get() *GatewayDiscoveryOptions { + return v.value +} + +func (v *NullableGatewayDiscoveryOptions) Set(val *GatewayDiscoveryOptions) { + v.value = val + v.isSet = true +} + +func (v NullableGatewayDiscoveryOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableGatewayDiscoveryOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGatewayDiscoveryOptions(val *GatewayDiscoveryOptions) *NullableGatewayDiscoveryOptions { + return &NullableGatewayDiscoveryOptions{value: val, isSet: true} +} + +func (v NullableGatewayDiscoveryOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGatewayDiscoveryOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_event_handler_options.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_event_handler_options.go new file mode 100644 index 00000000000..ea9fb6368ff --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_event_handler_options.go @@ -0,0 +1,189 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GatewayEventHandlerOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GatewayEventHandlerOptions{} + +// GatewayEventHandlerOptions struct for GatewayEventHandlerOptions +type GatewayEventHandlerOptions struct { + CommitTimeout *float32 `json:"commitTimeout,omitempty"` + EndorseTimeout *float32 `json:"endorseTimeout,omitempty"` + Strategy DefaultEventHandlerStrategy `json:"strategy"` +} + +// NewGatewayEventHandlerOptions instantiates a new GatewayEventHandlerOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGatewayEventHandlerOptions(strategy DefaultEventHandlerStrategy) *GatewayEventHandlerOptions { + this := GatewayEventHandlerOptions{} + this.Strategy = strategy + return &this +} + +// NewGatewayEventHandlerOptionsWithDefaults instantiates a new GatewayEventHandlerOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGatewayEventHandlerOptionsWithDefaults() *GatewayEventHandlerOptions { + this := GatewayEventHandlerOptions{} + return &this +} + +// GetCommitTimeout returns the CommitTimeout field value if set, zero value otherwise. +func (o *GatewayEventHandlerOptions) GetCommitTimeout() float32 { + if o == nil || IsNil(o.CommitTimeout) { + var ret float32 + return ret + } + return *o.CommitTimeout +} + +// GetCommitTimeoutOk returns a tuple with the CommitTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayEventHandlerOptions) GetCommitTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.CommitTimeout) { + return nil, false + } + return o.CommitTimeout, true +} + +// HasCommitTimeout returns a boolean if a field has been set. +func (o *GatewayEventHandlerOptions) HasCommitTimeout() bool { + if o != nil && !IsNil(o.CommitTimeout) { + return true + } + + return false +} + +// SetCommitTimeout gets a reference to the given float32 and assigns it to the CommitTimeout field. +func (o *GatewayEventHandlerOptions) SetCommitTimeout(v float32) { + o.CommitTimeout = &v +} + +// GetEndorseTimeout returns the EndorseTimeout field value if set, zero value otherwise. +func (o *GatewayEventHandlerOptions) GetEndorseTimeout() float32 { + if o == nil || IsNil(o.EndorseTimeout) { + var ret float32 + return ret + } + return *o.EndorseTimeout +} + +// GetEndorseTimeoutOk returns a tuple with the EndorseTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayEventHandlerOptions) GetEndorseTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.EndorseTimeout) { + return nil, false + } + return o.EndorseTimeout, true +} + +// HasEndorseTimeout returns a boolean if a field has been set. +func (o *GatewayEventHandlerOptions) HasEndorseTimeout() bool { + if o != nil && !IsNil(o.EndorseTimeout) { + return true + } + + return false +} + +// SetEndorseTimeout gets a reference to the given float32 and assigns it to the EndorseTimeout field. +func (o *GatewayEventHandlerOptions) SetEndorseTimeout(v float32) { + o.EndorseTimeout = &v +} + +// GetStrategy returns the Strategy field value +func (o *GatewayEventHandlerOptions) GetStrategy() DefaultEventHandlerStrategy { + if o == nil { + var ret DefaultEventHandlerStrategy + return ret + } + + return o.Strategy +} + +// GetStrategyOk returns a tuple with the Strategy field value +// and a boolean to check if the value has been set. +func (o *GatewayEventHandlerOptions) GetStrategyOk() (*DefaultEventHandlerStrategy, bool) { + if o == nil { + return nil, false + } + return &o.Strategy, true +} + +// SetStrategy sets field value +func (o *GatewayEventHandlerOptions) SetStrategy(v DefaultEventHandlerStrategy) { + o.Strategy = v +} + +func (o GatewayEventHandlerOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GatewayEventHandlerOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CommitTimeout) { + toSerialize["commitTimeout"] = o.CommitTimeout + } + if !IsNil(o.EndorseTimeout) { + toSerialize["endorseTimeout"] = o.EndorseTimeout + } + toSerialize["strategy"] = o.Strategy + return toSerialize, nil +} + +type NullableGatewayEventHandlerOptions struct { + value *GatewayEventHandlerOptions + isSet bool +} + +func (v NullableGatewayEventHandlerOptions) Get() *GatewayEventHandlerOptions { + return v.value +} + +func (v *NullableGatewayEventHandlerOptions) Set(val *GatewayEventHandlerOptions) { + v.value = val + v.isSet = true +} + +func (v NullableGatewayEventHandlerOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableGatewayEventHandlerOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGatewayEventHandlerOptions(val *GatewayEventHandlerOptions) *NullableGatewayEventHandlerOptions { + return &NullableGatewayEventHandlerOptions{value: val, isSet: true} +} + +func (v NullableGatewayEventHandlerOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGatewayEventHandlerOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options.go new file mode 100644 index 00000000000..84fb2f742e3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options.go @@ -0,0 +1,252 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GatewayOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GatewayOptions{} + +// GatewayOptions struct for GatewayOptions +type GatewayOptions struct { + ConnectionProfile *ConnectionProfile `json:"connectionProfile,omitempty"` + Discovery *GatewayDiscoveryOptions `json:"discovery,omitempty"` + EventHandlerOptions *GatewayEventHandlerOptions `json:"eventHandlerOptions,omitempty"` + Identity string `json:"identity"` + Wallet GatewayOptionsWallet `json:"wallet"` +} + +// NewGatewayOptions instantiates a new GatewayOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGatewayOptions(identity string, wallet GatewayOptionsWallet) *GatewayOptions { + this := GatewayOptions{} + this.Identity = identity + this.Wallet = wallet + return &this +} + +// NewGatewayOptionsWithDefaults instantiates a new GatewayOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGatewayOptionsWithDefaults() *GatewayOptions { + this := GatewayOptions{} + return &this +} + +// GetConnectionProfile returns the ConnectionProfile field value if set, zero value otherwise. +func (o *GatewayOptions) GetConnectionProfile() ConnectionProfile { + if o == nil || IsNil(o.ConnectionProfile) { + var ret ConnectionProfile + return ret + } + return *o.ConnectionProfile +} + +// GetConnectionProfileOk returns a tuple with the ConnectionProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayOptions) GetConnectionProfileOk() (*ConnectionProfile, bool) { + if o == nil || IsNil(o.ConnectionProfile) { + return nil, false + } + return o.ConnectionProfile, true +} + +// HasConnectionProfile returns a boolean if a field has been set. +func (o *GatewayOptions) HasConnectionProfile() bool { + if o != nil && !IsNil(o.ConnectionProfile) { + return true + } + + return false +} + +// SetConnectionProfile gets a reference to the given ConnectionProfile and assigns it to the ConnectionProfile field. +func (o *GatewayOptions) SetConnectionProfile(v ConnectionProfile) { + o.ConnectionProfile = &v +} + +// GetDiscovery returns the Discovery field value if set, zero value otherwise. +func (o *GatewayOptions) GetDiscovery() GatewayDiscoveryOptions { + if o == nil || IsNil(o.Discovery) { + var ret GatewayDiscoveryOptions + return ret + } + return *o.Discovery +} + +// GetDiscoveryOk returns a tuple with the Discovery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayOptions) GetDiscoveryOk() (*GatewayDiscoveryOptions, bool) { + if o == nil || IsNil(o.Discovery) { + return nil, false + } + return o.Discovery, true +} + +// HasDiscovery returns a boolean if a field has been set. +func (o *GatewayOptions) HasDiscovery() bool { + if o != nil && !IsNil(o.Discovery) { + return true + } + + return false +} + +// SetDiscovery gets a reference to the given GatewayDiscoveryOptions and assigns it to the Discovery field. +func (o *GatewayOptions) SetDiscovery(v GatewayDiscoveryOptions) { + o.Discovery = &v +} + +// GetEventHandlerOptions returns the EventHandlerOptions field value if set, zero value otherwise. +func (o *GatewayOptions) GetEventHandlerOptions() GatewayEventHandlerOptions { + if o == nil || IsNil(o.EventHandlerOptions) { + var ret GatewayEventHandlerOptions + return ret + } + return *o.EventHandlerOptions +} + +// GetEventHandlerOptionsOk returns a tuple with the EventHandlerOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayOptions) GetEventHandlerOptionsOk() (*GatewayEventHandlerOptions, bool) { + if o == nil || IsNil(o.EventHandlerOptions) { + return nil, false + } + return o.EventHandlerOptions, true +} + +// HasEventHandlerOptions returns a boolean if a field has been set. +func (o *GatewayOptions) HasEventHandlerOptions() bool { + if o != nil && !IsNil(o.EventHandlerOptions) { + return true + } + + return false +} + +// SetEventHandlerOptions gets a reference to the given GatewayEventHandlerOptions and assigns it to the EventHandlerOptions field. +func (o *GatewayOptions) SetEventHandlerOptions(v GatewayEventHandlerOptions) { + o.EventHandlerOptions = &v +} + +// GetIdentity returns the Identity field value +func (o *GatewayOptions) GetIdentity() string { + if o == nil { + var ret string + return ret + } + + return o.Identity +} + +// GetIdentityOk returns a tuple with the Identity field value +// and a boolean to check if the value has been set. +func (o *GatewayOptions) GetIdentityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identity, true +} + +// SetIdentity sets field value +func (o *GatewayOptions) SetIdentity(v string) { + o.Identity = v +} + +// GetWallet returns the Wallet field value +func (o *GatewayOptions) GetWallet() GatewayOptionsWallet { + if o == nil { + var ret GatewayOptionsWallet + return ret + } + + return o.Wallet +} + +// GetWalletOk returns a tuple with the Wallet field value +// and a boolean to check if the value has been set. +func (o *GatewayOptions) GetWalletOk() (*GatewayOptionsWallet, bool) { + if o == nil { + return nil, false + } + return &o.Wallet, true +} + +// SetWallet sets field value +func (o *GatewayOptions) SetWallet(v GatewayOptionsWallet) { + o.Wallet = v +} + +func (o GatewayOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GatewayOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConnectionProfile) { + toSerialize["connectionProfile"] = o.ConnectionProfile + } + if !IsNil(o.Discovery) { + toSerialize["discovery"] = o.Discovery + } + if !IsNil(o.EventHandlerOptions) { + toSerialize["eventHandlerOptions"] = o.EventHandlerOptions + } + toSerialize["identity"] = o.Identity + toSerialize["wallet"] = o.Wallet + return toSerialize, nil +} + +type NullableGatewayOptions struct { + value *GatewayOptions + isSet bool +} + +func (v NullableGatewayOptions) Get() *GatewayOptions { + return v.value +} + +func (v *NullableGatewayOptions) Set(val *GatewayOptions) { + v.value = val + v.isSet = true +} + +func (v NullableGatewayOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableGatewayOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGatewayOptions(val *GatewayOptions) *NullableGatewayOptions { + return &NullableGatewayOptions{value: val, isSet: true} +} + +func (v NullableGatewayOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGatewayOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options_wallet.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options_wallet.go new file mode 100644 index 00000000000..a4b0bda33bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_gateway_options_wallet.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GatewayOptionsWallet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GatewayOptionsWallet{} + +// GatewayOptionsWallet struct for GatewayOptionsWallet +type GatewayOptionsWallet struct { + Keychain *FabricSigningCredential `json:"keychain,omitempty"` + Json *string `json:"json,omitempty"` +} + +// NewGatewayOptionsWallet instantiates a new GatewayOptionsWallet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGatewayOptionsWallet() *GatewayOptionsWallet { + this := GatewayOptionsWallet{} + return &this +} + +// NewGatewayOptionsWalletWithDefaults instantiates a new GatewayOptionsWallet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGatewayOptionsWalletWithDefaults() *GatewayOptionsWallet { + this := GatewayOptionsWallet{} + return &this +} + +// GetKeychain returns the Keychain field value if set, zero value otherwise. +func (o *GatewayOptionsWallet) GetKeychain() FabricSigningCredential { + if o == nil || IsNil(o.Keychain) { + var ret FabricSigningCredential + return ret + } + return *o.Keychain +} + +// GetKeychainOk returns a tuple with the Keychain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayOptionsWallet) GetKeychainOk() (*FabricSigningCredential, bool) { + if o == nil || IsNil(o.Keychain) { + return nil, false + } + return o.Keychain, true +} + +// HasKeychain returns a boolean if a field has been set. +func (o *GatewayOptionsWallet) HasKeychain() bool { + if o != nil && !IsNil(o.Keychain) { + return true + } + + return false +} + +// SetKeychain gets a reference to the given FabricSigningCredential and assigns it to the Keychain field. +func (o *GatewayOptionsWallet) SetKeychain(v FabricSigningCredential) { + o.Keychain = &v +} + +// GetJson returns the Json field value if set, zero value otherwise. +func (o *GatewayOptionsWallet) GetJson() string { + if o == nil || IsNil(o.Json) { + var ret string + return ret + } + return *o.Json +} + +// GetJsonOk returns a tuple with the Json field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayOptionsWallet) GetJsonOk() (*string, bool) { + if o == nil || IsNil(o.Json) { + return nil, false + } + return o.Json, true +} + +// HasJson returns a boolean if a field has been set. +func (o *GatewayOptionsWallet) HasJson() bool { + if o != nil && !IsNil(o.Json) { + return true + } + + return false +} + +// SetJson gets a reference to the given string and assigns it to the Json field. +func (o *GatewayOptionsWallet) SetJson(v string) { + o.Json = &v +} + +func (o GatewayOptionsWallet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GatewayOptionsWallet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Keychain) { + toSerialize["keychain"] = o.Keychain + } + if !IsNil(o.Json) { + toSerialize["json"] = o.Json + } + return toSerialize, nil +} + +type NullableGatewayOptionsWallet struct { + value *GatewayOptionsWallet + isSet bool +} + +func (v NullableGatewayOptionsWallet) Get() *GatewayOptionsWallet { + return v.value +} + +func (v *NullableGatewayOptionsWallet) Set(val *GatewayOptionsWallet) { + v.value = val + v.isSet = true +} + +func (v NullableGatewayOptionsWallet) IsSet() bool { + return v.isSet +} + +func (v *NullableGatewayOptionsWallet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGatewayOptionsWallet(val *GatewayOptionsWallet) *NullableGatewayOptionsWallet { + return &NullableGatewayOptionsWallet{value: val, isSet: true} +} + +func (v NullableGatewayOptionsWallet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGatewayOptionsWallet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1.go new file mode 100644 index 00000000000..877f21aee51 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1.go @@ -0,0 +1,250 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetBlockRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockRequestV1{} + +// GetBlockRequestV1 Request for GetBlock endpoint. +type GetBlockRequestV1 struct { + // Fabric channel which we want to query. + ChannelName string `json:"channelName"` + // Fabric channel we want to connect to. If not provided, then one from channelName parameter will be used + ConnectionChannelName *string `json:"connectionChannelName,omitempty"` + GatewayOptions GatewayOptions `json:"gatewayOptions"` + Query GetBlockRequestV1Query `json:"query"` + // If true, encoded buffer will be returned. Otherwise, entire block object is returned. + SkipDecode *bool `json:"skipDecode,omitempty"` +} + +// NewGetBlockRequestV1 instantiates a new GetBlockRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockRequestV1(channelName string, gatewayOptions GatewayOptions, query GetBlockRequestV1Query) *GetBlockRequestV1 { + this := GetBlockRequestV1{} + this.ChannelName = channelName + this.GatewayOptions = gatewayOptions + this.Query = query + var skipDecode bool = false + this.SkipDecode = &skipDecode + return &this +} + +// NewGetBlockRequestV1WithDefaults instantiates a new GetBlockRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockRequestV1WithDefaults() *GetBlockRequestV1 { + this := GetBlockRequestV1{} + var skipDecode bool = false + this.SkipDecode = &skipDecode + return &this +} + +// GetChannelName returns the ChannelName field value +func (o *GetBlockRequestV1) GetChannelName() string { + if o == nil { + var ret string + return ret + } + + return o.ChannelName +} + +// GetChannelNameOk returns a tuple with the ChannelName field value +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1) GetChannelNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChannelName, true +} + +// SetChannelName sets field value +func (o *GetBlockRequestV1) SetChannelName(v string) { + o.ChannelName = v +} + +// GetConnectionChannelName returns the ConnectionChannelName field value if set, zero value otherwise. +func (o *GetBlockRequestV1) GetConnectionChannelName() string { + if o == nil || IsNil(o.ConnectionChannelName) { + var ret string + return ret + } + return *o.ConnectionChannelName +} + +// GetConnectionChannelNameOk returns a tuple with the ConnectionChannelName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1) GetConnectionChannelNameOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionChannelName) { + return nil, false + } + return o.ConnectionChannelName, true +} + +// HasConnectionChannelName returns a boolean if a field has been set. +func (o *GetBlockRequestV1) HasConnectionChannelName() bool { + if o != nil && !IsNil(o.ConnectionChannelName) { + return true + } + + return false +} + +// SetConnectionChannelName gets a reference to the given string and assigns it to the ConnectionChannelName field. +func (o *GetBlockRequestV1) SetConnectionChannelName(v string) { + o.ConnectionChannelName = &v +} + +// GetGatewayOptions returns the GatewayOptions field value +func (o *GetBlockRequestV1) GetGatewayOptions() GatewayOptions { + if o == nil { + var ret GatewayOptions + return ret + } + + return o.GatewayOptions +} + +// GetGatewayOptionsOk returns a tuple with the GatewayOptions field value +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1) GetGatewayOptionsOk() (*GatewayOptions, bool) { + if o == nil { + return nil, false + } + return &o.GatewayOptions, true +} + +// SetGatewayOptions sets field value +func (o *GetBlockRequestV1) SetGatewayOptions(v GatewayOptions) { + o.GatewayOptions = v +} + +// GetQuery returns the Query field value +func (o *GetBlockRequestV1) GetQuery() GetBlockRequestV1Query { + if o == nil { + var ret GetBlockRequestV1Query + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1) GetQueryOk() (*GetBlockRequestV1Query, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *GetBlockRequestV1) SetQuery(v GetBlockRequestV1Query) { + o.Query = v +} + +// GetSkipDecode returns the SkipDecode field value if set, zero value otherwise. +func (o *GetBlockRequestV1) GetSkipDecode() bool { + if o == nil || IsNil(o.SkipDecode) { + var ret bool + return ret + } + return *o.SkipDecode +} + +// GetSkipDecodeOk returns a tuple with the SkipDecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1) GetSkipDecodeOk() (*bool, bool) { + if o == nil || IsNil(o.SkipDecode) { + return nil, false + } + return o.SkipDecode, true +} + +// HasSkipDecode returns a boolean if a field has been set. +func (o *GetBlockRequestV1) HasSkipDecode() bool { + if o != nil && !IsNil(o.SkipDecode) { + return true + } + + return false +} + +// SetSkipDecode gets a reference to the given bool and assigns it to the SkipDecode field. +func (o *GetBlockRequestV1) SetSkipDecode(v bool) { + o.SkipDecode = &v +} + +func (o GetBlockRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["channelName"] = o.ChannelName + if !IsNil(o.ConnectionChannelName) { + toSerialize["connectionChannelName"] = o.ConnectionChannelName + } + toSerialize["gatewayOptions"] = o.GatewayOptions + toSerialize["query"] = o.Query + if !IsNil(o.SkipDecode) { + toSerialize["skipDecode"] = o.SkipDecode + } + return toSerialize, nil +} + +type NullableGetBlockRequestV1 struct { + value *GetBlockRequestV1 + isSet bool +} + +func (v NullableGetBlockRequestV1) Get() *GetBlockRequestV1 { + return v.value +} + +func (v *NullableGetBlockRequestV1) Set(val *GetBlockRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockRequestV1(val *GetBlockRequestV1) *NullableGetBlockRequestV1 { + return &NullableGetBlockRequestV1{value: val, isSet: true} +} + +func (v NullableGetBlockRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query.go new file mode 100644 index 00000000000..7755ff39d34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query.go @@ -0,0 +1,200 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetBlockRequestV1Query type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockRequestV1Query{} + +// GetBlockRequestV1Query Query selector, caller must provide at least one of them. First found will be used, rest will be ignored, so it's recommended to pass single selector. +type GetBlockRequestV1Query struct { + // Select block by it's number. + BlockNumber *string `json:"blockNumber,omitempty"` + BlockHash *GetBlockRequestV1QueryBlockHash `json:"blockHash,omitempty"` + // Select block by id of transaction that it contains. + TransactionId *string `json:"transactionId,omitempty"` +} + +// NewGetBlockRequestV1Query instantiates a new GetBlockRequestV1Query object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockRequestV1Query() *GetBlockRequestV1Query { + this := GetBlockRequestV1Query{} + return &this +} + +// NewGetBlockRequestV1QueryWithDefaults instantiates a new GetBlockRequestV1Query object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockRequestV1QueryWithDefaults() *GetBlockRequestV1Query { + this := GetBlockRequestV1Query{} + return &this +} + +// GetBlockNumber returns the BlockNumber field value if set, zero value otherwise. +func (o *GetBlockRequestV1Query) GetBlockNumber() string { + if o == nil || IsNil(o.BlockNumber) { + var ret string + return ret + } + return *o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1Query) GetBlockNumberOk() (*string, bool) { + if o == nil || IsNil(o.BlockNumber) { + return nil, false + } + return o.BlockNumber, true +} + +// HasBlockNumber returns a boolean if a field has been set. +func (o *GetBlockRequestV1Query) HasBlockNumber() bool { + if o != nil && !IsNil(o.BlockNumber) { + return true + } + + return false +} + +// SetBlockNumber gets a reference to the given string and assigns it to the BlockNumber field. +func (o *GetBlockRequestV1Query) SetBlockNumber(v string) { + o.BlockNumber = &v +} + +// GetBlockHash returns the BlockHash field value if set, zero value otherwise. +func (o *GetBlockRequestV1Query) GetBlockHash() GetBlockRequestV1QueryBlockHash { + if o == nil || IsNil(o.BlockHash) { + var ret GetBlockRequestV1QueryBlockHash + return ret + } + return *o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1Query) GetBlockHashOk() (*GetBlockRequestV1QueryBlockHash, bool) { + if o == nil || IsNil(o.BlockHash) { + return nil, false + } + return o.BlockHash, true +} + +// HasBlockHash returns a boolean if a field has been set. +func (o *GetBlockRequestV1Query) HasBlockHash() bool { + if o != nil && !IsNil(o.BlockHash) { + return true + } + + return false +} + +// SetBlockHash gets a reference to the given GetBlockRequestV1QueryBlockHash and assigns it to the BlockHash field. +func (o *GetBlockRequestV1Query) SetBlockHash(v GetBlockRequestV1QueryBlockHash) { + o.BlockHash = &v +} + +// GetTransactionId returns the TransactionId field value if set, zero value otherwise. +func (o *GetBlockRequestV1Query) GetTransactionId() string { + if o == nil || IsNil(o.TransactionId) { + var ret string + return ret + } + return *o.TransactionId +} + +// GetTransactionIdOk returns a tuple with the TransactionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1Query) GetTransactionIdOk() (*string, bool) { + if o == nil || IsNil(o.TransactionId) { + return nil, false + } + return o.TransactionId, true +} + +// HasTransactionId returns a boolean if a field has been set. +func (o *GetBlockRequestV1Query) HasTransactionId() bool { + if o != nil && !IsNil(o.TransactionId) { + return true + } + + return false +} + +// SetTransactionId gets a reference to the given string and assigns it to the TransactionId field. +func (o *GetBlockRequestV1Query) SetTransactionId(v string) { + o.TransactionId = &v +} + +func (o GetBlockRequestV1Query) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockRequestV1Query) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BlockNumber) { + toSerialize["blockNumber"] = o.BlockNumber + } + if !IsNil(o.BlockHash) { + toSerialize["blockHash"] = o.BlockHash + } + if !IsNil(o.TransactionId) { + toSerialize["transactionId"] = o.TransactionId + } + return toSerialize, nil +} + +type NullableGetBlockRequestV1Query struct { + value *GetBlockRequestV1Query + isSet bool +} + +func (v NullableGetBlockRequestV1Query) Get() *GetBlockRequestV1Query { + return v.value +} + +func (v *NullableGetBlockRequestV1Query) Set(val *GetBlockRequestV1Query) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockRequestV1Query) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockRequestV1Query) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockRequestV1Query(val *GetBlockRequestV1Query) *NullableGetBlockRequestV1Query { + return &NullableGetBlockRequestV1Query{value: val, isSet: true} +} + +func (v NullableGetBlockRequestV1Query) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockRequestV1Query) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query_block_hash.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query_block_hash.go new file mode 100644 index 00000000000..4652050da7e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_request_v1_query_block_hash.go @@ -0,0 +1,155 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetBlockRequestV1QueryBlockHash type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockRequestV1QueryBlockHash{} + +// GetBlockRequestV1QueryBlockHash Select block by it's hash. +type GetBlockRequestV1QueryBlockHash struct { + // NodeJS Buffer encoding (utf-8, hex, binary, base64, etc...). Passed directly to `Buffer.from()` call on hashBuffer. If not provided then JSON buffer format is assumed. + Encoding *string `json:"encoding,omitempty"` + // Buffer of blockHash. It's encoding should be described in `encoding` parameter. + Buffer string `json:"buffer"` +} + +// NewGetBlockRequestV1QueryBlockHash instantiates a new GetBlockRequestV1QueryBlockHash object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockRequestV1QueryBlockHash(buffer string) *GetBlockRequestV1QueryBlockHash { + this := GetBlockRequestV1QueryBlockHash{} + this.Buffer = buffer + return &this +} + +// NewGetBlockRequestV1QueryBlockHashWithDefaults instantiates a new GetBlockRequestV1QueryBlockHash object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockRequestV1QueryBlockHashWithDefaults() *GetBlockRequestV1QueryBlockHash { + this := GetBlockRequestV1QueryBlockHash{} + return &this +} + +// GetEncoding returns the Encoding field value if set, zero value otherwise. +func (o *GetBlockRequestV1QueryBlockHash) GetEncoding() string { + if o == nil || IsNil(o.Encoding) { + var ret string + return ret + } + return *o.Encoding +} + +// GetEncodingOk returns a tuple with the Encoding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1QueryBlockHash) GetEncodingOk() (*string, bool) { + if o == nil || IsNil(o.Encoding) { + return nil, false + } + return o.Encoding, true +} + +// HasEncoding returns a boolean if a field has been set. +func (o *GetBlockRequestV1QueryBlockHash) HasEncoding() bool { + if o != nil && !IsNil(o.Encoding) { + return true + } + + return false +} + +// SetEncoding gets a reference to the given string and assigns it to the Encoding field. +func (o *GetBlockRequestV1QueryBlockHash) SetEncoding(v string) { + o.Encoding = &v +} + +// GetBuffer returns the Buffer field value +func (o *GetBlockRequestV1QueryBlockHash) GetBuffer() string { + if o == nil { + var ret string + return ret + } + + return o.Buffer +} + +// GetBufferOk returns a tuple with the Buffer field value +// and a boolean to check if the value has been set. +func (o *GetBlockRequestV1QueryBlockHash) GetBufferOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Buffer, true +} + +// SetBuffer sets field value +func (o *GetBlockRequestV1QueryBlockHash) SetBuffer(v string) { + o.Buffer = v +} + +func (o GetBlockRequestV1QueryBlockHash) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockRequestV1QueryBlockHash) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Encoding) { + toSerialize["encoding"] = o.Encoding + } + toSerialize["buffer"] = o.Buffer + return toSerialize, nil +} + +type NullableGetBlockRequestV1QueryBlockHash struct { + value *GetBlockRequestV1QueryBlockHash + isSet bool +} + +func (v NullableGetBlockRequestV1QueryBlockHash) Get() *GetBlockRequestV1QueryBlockHash { + return v.value +} + +func (v *NullableGetBlockRequestV1QueryBlockHash) Set(val *GetBlockRequestV1QueryBlockHash) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockRequestV1QueryBlockHash) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockRequestV1QueryBlockHash) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockRequestV1QueryBlockHash(val *GetBlockRequestV1QueryBlockHash) *NullableGetBlockRequestV1QueryBlockHash { + return &NullableGetBlockRequestV1QueryBlockHash{value: val, isSet: true} +} + +func (v NullableGetBlockRequestV1QueryBlockHash) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockRequestV1QueryBlockHash) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_decoded_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_decoded_v1.go new file mode 100644 index 00000000000..ff6fa551bd7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_decoded_v1.go @@ -0,0 +1,122 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetBlockResponseDecodedV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockResponseDecodedV1{} + +// GetBlockResponseDecodedV1 When skipDecode is false (default) then decoded block object is returned. +type GetBlockResponseDecodedV1 struct { + // Full hyperledger fabric block data. + DecodedBlock interface{} `json:"decodedBlock"` +} + +// NewGetBlockResponseDecodedV1 instantiates a new GetBlockResponseDecodedV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockResponseDecodedV1(decodedBlock interface{}) *GetBlockResponseDecodedV1 { + this := GetBlockResponseDecodedV1{} + this.DecodedBlock = decodedBlock + return &this +} + +// NewGetBlockResponseDecodedV1WithDefaults instantiates a new GetBlockResponseDecodedV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockResponseDecodedV1WithDefaults() *GetBlockResponseDecodedV1 { + this := GetBlockResponseDecodedV1{} + return &this +} + +// GetDecodedBlock returns the DecodedBlock field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *GetBlockResponseDecodedV1) GetDecodedBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.DecodedBlock +} + +// GetDecodedBlockOk returns a tuple with the DecodedBlock field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetBlockResponseDecodedV1) GetDecodedBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.DecodedBlock) { + return nil, false + } + return &o.DecodedBlock, true +} + +// SetDecodedBlock sets field value +func (o *GetBlockResponseDecodedV1) SetDecodedBlock(v interface{}) { + o.DecodedBlock = v +} + +func (o GetBlockResponseDecodedV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockResponseDecodedV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DecodedBlock != nil { + toSerialize["decodedBlock"] = o.DecodedBlock + } + return toSerialize, nil +} + +type NullableGetBlockResponseDecodedV1 struct { + value *GetBlockResponseDecodedV1 + isSet bool +} + +func (v NullableGetBlockResponseDecodedV1) Get() *GetBlockResponseDecodedV1 { + return v.value +} + +func (v *NullableGetBlockResponseDecodedV1) Set(val *GetBlockResponseDecodedV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockResponseDecodedV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockResponseDecodedV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockResponseDecodedV1(val *GetBlockResponseDecodedV1) *NullableGetBlockResponseDecodedV1 { + return &NullableGetBlockResponseDecodedV1{value: val, isSet: true} +} + +func (v NullableGetBlockResponseDecodedV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockResponseDecodedV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_encoded_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_encoded_v1.go new file mode 100644 index 00000000000..597844198d2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_encoded_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetBlockResponseEncodedV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockResponseEncodedV1{} + +// GetBlockResponseEncodedV1 When skipDecode is true then encoded block Buffer is returned. +type GetBlockResponseEncodedV1 struct { + EncodedBlock string `json:"encodedBlock"` +} + +// NewGetBlockResponseEncodedV1 instantiates a new GetBlockResponseEncodedV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockResponseEncodedV1(encodedBlock string) *GetBlockResponseEncodedV1 { + this := GetBlockResponseEncodedV1{} + this.EncodedBlock = encodedBlock + return &this +} + +// NewGetBlockResponseEncodedV1WithDefaults instantiates a new GetBlockResponseEncodedV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockResponseEncodedV1WithDefaults() *GetBlockResponseEncodedV1 { + this := GetBlockResponseEncodedV1{} + return &this +} + +// GetEncodedBlock returns the EncodedBlock field value +func (o *GetBlockResponseEncodedV1) GetEncodedBlock() string { + if o == nil { + var ret string + return ret + } + + return o.EncodedBlock +} + +// GetEncodedBlockOk returns a tuple with the EncodedBlock field value +// and a boolean to check if the value has been set. +func (o *GetBlockResponseEncodedV1) GetEncodedBlockOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EncodedBlock, true +} + +// SetEncodedBlock sets field value +func (o *GetBlockResponseEncodedV1) SetEncodedBlock(v string) { + o.EncodedBlock = v +} + +func (o GetBlockResponseEncodedV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockResponseEncodedV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["encodedBlock"] = o.EncodedBlock + return toSerialize, nil +} + +type NullableGetBlockResponseEncodedV1 struct { + value *GetBlockResponseEncodedV1 + isSet bool +} + +func (v NullableGetBlockResponseEncodedV1) Get() *GetBlockResponseEncodedV1 { + return v.value +} + +func (v *NullableGetBlockResponseEncodedV1) Set(val *GetBlockResponseEncodedV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockResponseEncodedV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockResponseEncodedV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockResponseEncodedV1(val *GetBlockResponseEncodedV1) *NullableGetBlockResponseEncodedV1 { + return &NullableGetBlockResponseEncodedV1{value: val, isSet: true} +} + +func (v NullableGetBlockResponseEncodedV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockResponseEncodedV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_v1.go new file mode 100644 index 00000000000..e5e0d28b96d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_block_response_v1.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// GetBlockResponseV1 - Response from GetBlock endpoint. +type GetBlockResponseV1 struct { + GetBlockResponseDecodedV1 *GetBlockResponseDecodedV1 + GetBlockResponseEncodedV1 *GetBlockResponseEncodedV1 +} + +// GetBlockResponseDecodedV1AsGetBlockResponseV1 is a convenience function that returns GetBlockResponseDecodedV1 wrapped in GetBlockResponseV1 +func GetBlockResponseDecodedV1AsGetBlockResponseV1(v *GetBlockResponseDecodedV1) GetBlockResponseV1 { + return GetBlockResponseV1{ + GetBlockResponseDecodedV1: v, + } +} + +// GetBlockResponseEncodedV1AsGetBlockResponseV1 is a convenience function that returns GetBlockResponseEncodedV1 wrapped in GetBlockResponseV1 +func GetBlockResponseEncodedV1AsGetBlockResponseV1(v *GetBlockResponseEncodedV1) GetBlockResponseV1 { + return GetBlockResponseV1{ + GetBlockResponseEncodedV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetBlockResponseV1) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetBlockResponseDecodedV1 + err = newStrictDecoder(data).Decode(&dst.GetBlockResponseDecodedV1) + if err == nil { + jsonGetBlockResponseDecodedV1, _ := json.Marshal(dst.GetBlockResponseDecodedV1) + if string(jsonGetBlockResponseDecodedV1) == "{}" { // empty struct + dst.GetBlockResponseDecodedV1 = nil + } else { + match++ + } + } else { + dst.GetBlockResponseDecodedV1 = nil + } + + // try to unmarshal data into GetBlockResponseEncodedV1 + err = newStrictDecoder(data).Decode(&dst.GetBlockResponseEncodedV1) + if err == nil { + jsonGetBlockResponseEncodedV1, _ := json.Marshal(dst.GetBlockResponseEncodedV1) + if string(jsonGetBlockResponseEncodedV1) == "{}" { // empty struct + dst.GetBlockResponseEncodedV1 = nil + } else { + match++ + } + } else { + dst.GetBlockResponseEncodedV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetBlockResponseDecodedV1 = nil + dst.GetBlockResponseEncodedV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetBlockResponseV1)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetBlockResponseV1)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetBlockResponseV1) MarshalJSON() ([]byte, error) { + if src.GetBlockResponseDecodedV1 != nil { + return json.Marshal(&src.GetBlockResponseDecodedV1) + } + + if src.GetBlockResponseEncodedV1 != nil { + return json.Marshal(&src.GetBlockResponseEncodedV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetBlockResponseV1) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.GetBlockResponseDecodedV1 != nil { + return obj.GetBlockResponseDecodedV1 + } + + if obj.GetBlockResponseEncodedV1 != nil { + return obj.GetBlockResponseEncodedV1 + } + + // all schemas are nil + return nil +} + +type NullableGetBlockResponseV1 struct { + value *GetBlockResponseV1 + isSet bool +} + +func (v NullableGetBlockResponseV1) Get() *GetBlockResponseV1 { + return v.value +} + +func (v *NullableGetBlockResponseV1) Set(val *GetBlockResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockResponseV1(val *GetBlockResponseV1) *NullableGetBlockResponseV1 { + return &NullableGetBlockResponseV1{value: val, isSet: true} +} + +func (v NullableGetBlockResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_transaction_receipt_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_transaction_receipt_response.go new file mode 100644 index 00000000000..a5b64bdc576 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_get_transaction_receipt_response.go @@ -0,0 +1,450 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the GetTransactionReceiptResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTransactionReceiptResponse{} + +// GetTransactionReceiptResponse struct for GetTransactionReceiptResponse +type GetTransactionReceiptResponse struct { + BlockNumber *string `json:"blockNumber,omitempty"` + ChannelID *string `json:"channelID,omitempty"` + TransactionCreator *TransactReceiptTransactionCreator `json:"transactionCreator,omitempty"` + TransactionEndorsement []TransactReceiptTransactionEndorsement `json:"transactionEndorsement,omitempty"` + BlockMetaData *TransactReceiptBlockMetaData `json:"blockMetaData,omitempty"` + ChainCodeName *string `json:"chainCodeName,omitempty"` + ChainCodeVersion *string `json:"chainCodeVersion,omitempty"` + ResponseStatus *string `json:"responseStatus,omitempty"` + RwsetKey *string `json:"rwsetKey,omitempty"` + RwsetWriteData *string `json:"rwsetWriteData,omitempty"` +} + +// NewGetTransactionReceiptResponse instantiates a new GetTransactionReceiptResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTransactionReceiptResponse() *GetTransactionReceiptResponse { + this := GetTransactionReceiptResponse{} + return &this +} + +// NewGetTransactionReceiptResponseWithDefaults instantiates a new GetTransactionReceiptResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTransactionReceiptResponseWithDefaults() *GetTransactionReceiptResponse { + this := GetTransactionReceiptResponse{} + return &this +} + +// GetBlockNumber returns the BlockNumber field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetBlockNumber() string { + if o == nil || IsNil(o.BlockNumber) { + var ret string + return ret + } + return *o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetBlockNumberOk() (*string, bool) { + if o == nil || IsNil(o.BlockNumber) { + return nil, false + } + return o.BlockNumber, true +} + +// HasBlockNumber returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasBlockNumber() bool { + if o != nil && !IsNil(o.BlockNumber) { + return true + } + + return false +} + +// SetBlockNumber gets a reference to the given string and assigns it to the BlockNumber field. +func (o *GetTransactionReceiptResponse) SetBlockNumber(v string) { + o.BlockNumber = &v +} + +// GetChannelID returns the ChannelID field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetChannelID() string { + if o == nil || IsNil(o.ChannelID) { + var ret string + return ret + } + return *o.ChannelID +} + +// GetChannelIDOk returns a tuple with the ChannelID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetChannelIDOk() (*string, bool) { + if o == nil || IsNil(o.ChannelID) { + return nil, false + } + return o.ChannelID, true +} + +// HasChannelID returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasChannelID() bool { + if o != nil && !IsNil(o.ChannelID) { + return true + } + + return false +} + +// SetChannelID gets a reference to the given string and assigns it to the ChannelID field. +func (o *GetTransactionReceiptResponse) SetChannelID(v string) { + o.ChannelID = &v +} + +// GetTransactionCreator returns the TransactionCreator field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetTransactionCreator() TransactReceiptTransactionCreator { + if o == nil || IsNil(o.TransactionCreator) { + var ret TransactReceiptTransactionCreator + return ret + } + return *o.TransactionCreator +} + +// GetTransactionCreatorOk returns a tuple with the TransactionCreator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetTransactionCreatorOk() (*TransactReceiptTransactionCreator, bool) { + if o == nil || IsNil(o.TransactionCreator) { + return nil, false + } + return o.TransactionCreator, true +} + +// HasTransactionCreator returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasTransactionCreator() bool { + if o != nil && !IsNil(o.TransactionCreator) { + return true + } + + return false +} + +// SetTransactionCreator gets a reference to the given TransactReceiptTransactionCreator and assigns it to the TransactionCreator field. +func (o *GetTransactionReceiptResponse) SetTransactionCreator(v TransactReceiptTransactionCreator) { + o.TransactionCreator = &v +} + +// GetTransactionEndorsement returns the TransactionEndorsement field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetTransactionEndorsement() []TransactReceiptTransactionEndorsement { + if o == nil || IsNil(o.TransactionEndorsement) { + var ret []TransactReceiptTransactionEndorsement + return ret + } + return o.TransactionEndorsement +} + +// GetTransactionEndorsementOk returns a tuple with the TransactionEndorsement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetTransactionEndorsementOk() ([]TransactReceiptTransactionEndorsement, bool) { + if o == nil || IsNil(o.TransactionEndorsement) { + return nil, false + } + return o.TransactionEndorsement, true +} + +// HasTransactionEndorsement returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasTransactionEndorsement() bool { + if o != nil && !IsNil(o.TransactionEndorsement) { + return true + } + + return false +} + +// SetTransactionEndorsement gets a reference to the given []TransactReceiptTransactionEndorsement and assigns it to the TransactionEndorsement field. +func (o *GetTransactionReceiptResponse) SetTransactionEndorsement(v []TransactReceiptTransactionEndorsement) { + o.TransactionEndorsement = v +} + +// GetBlockMetaData returns the BlockMetaData field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetBlockMetaData() TransactReceiptBlockMetaData { + if o == nil || IsNil(o.BlockMetaData) { + var ret TransactReceiptBlockMetaData + return ret + } + return *o.BlockMetaData +} + +// GetBlockMetaDataOk returns a tuple with the BlockMetaData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetBlockMetaDataOk() (*TransactReceiptBlockMetaData, bool) { + if o == nil || IsNil(o.BlockMetaData) { + return nil, false + } + return o.BlockMetaData, true +} + +// HasBlockMetaData returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasBlockMetaData() bool { + if o != nil && !IsNil(o.BlockMetaData) { + return true + } + + return false +} + +// SetBlockMetaData gets a reference to the given TransactReceiptBlockMetaData and assigns it to the BlockMetaData field. +func (o *GetTransactionReceiptResponse) SetBlockMetaData(v TransactReceiptBlockMetaData) { + o.BlockMetaData = &v +} + +// GetChainCodeName returns the ChainCodeName field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetChainCodeName() string { + if o == nil || IsNil(o.ChainCodeName) { + var ret string + return ret + } + return *o.ChainCodeName +} + +// GetChainCodeNameOk returns a tuple with the ChainCodeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetChainCodeNameOk() (*string, bool) { + if o == nil || IsNil(o.ChainCodeName) { + return nil, false + } + return o.ChainCodeName, true +} + +// HasChainCodeName returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasChainCodeName() bool { + if o != nil && !IsNil(o.ChainCodeName) { + return true + } + + return false +} + +// SetChainCodeName gets a reference to the given string and assigns it to the ChainCodeName field. +func (o *GetTransactionReceiptResponse) SetChainCodeName(v string) { + o.ChainCodeName = &v +} + +// GetChainCodeVersion returns the ChainCodeVersion field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetChainCodeVersion() string { + if o == nil || IsNil(o.ChainCodeVersion) { + var ret string + return ret + } + return *o.ChainCodeVersion +} + +// GetChainCodeVersionOk returns a tuple with the ChainCodeVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetChainCodeVersionOk() (*string, bool) { + if o == nil || IsNil(o.ChainCodeVersion) { + return nil, false + } + return o.ChainCodeVersion, true +} + +// HasChainCodeVersion returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasChainCodeVersion() bool { + if o != nil && !IsNil(o.ChainCodeVersion) { + return true + } + + return false +} + +// SetChainCodeVersion gets a reference to the given string and assigns it to the ChainCodeVersion field. +func (o *GetTransactionReceiptResponse) SetChainCodeVersion(v string) { + o.ChainCodeVersion = &v +} + +// GetResponseStatus returns the ResponseStatus field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetResponseStatus() string { + if o == nil || IsNil(o.ResponseStatus) { + var ret string + return ret + } + return *o.ResponseStatus +} + +// GetResponseStatusOk returns a tuple with the ResponseStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetResponseStatusOk() (*string, bool) { + if o == nil || IsNil(o.ResponseStatus) { + return nil, false + } + return o.ResponseStatus, true +} + +// HasResponseStatus returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasResponseStatus() bool { + if o != nil && !IsNil(o.ResponseStatus) { + return true + } + + return false +} + +// SetResponseStatus gets a reference to the given string and assigns it to the ResponseStatus field. +func (o *GetTransactionReceiptResponse) SetResponseStatus(v string) { + o.ResponseStatus = &v +} + +// GetRwsetKey returns the RwsetKey field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetRwsetKey() string { + if o == nil || IsNil(o.RwsetKey) { + var ret string + return ret + } + return *o.RwsetKey +} + +// GetRwsetKeyOk returns a tuple with the RwsetKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetRwsetKeyOk() (*string, bool) { + if o == nil || IsNil(o.RwsetKey) { + return nil, false + } + return o.RwsetKey, true +} + +// HasRwsetKey returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasRwsetKey() bool { + if o != nil && !IsNil(o.RwsetKey) { + return true + } + + return false +} + +// SetRwsetKey gets a reference to the given string and assigns it to the RwsetKey field. +func (o *GetTransactionReceiptResponse) SetRwsetKey(v string) { + o.RwsetKey = &v +} + +// GetRwsetWriteData returns the RwsetWriteData field value if set, zero value otherwise. +func (o *GetTransactionReceiptResponse) GetRwsetWriteData() string { + if o == nil || IsNil(o.RwsetWriteData) { + var ret string + return ret + } + return *o.RwsetWriteData +} + +// GetRwsetWriteDataOk returns a tuple with the RwsetWriteData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTransactionReceiptResponse) GetRwsetWriteDataOk() (*string, bool) { + if o == nil || IsNil(o.RwsetWriteData) { + return nil, false + } + return o.RwsetWriteData, true +} + +// HasRwsetWriteData returns a boolean if a field has been set. +func (o *GetTransactionReceiptResponse) HasRwsetWriteData() bool { + if o != nil && !IsNil(o.RwsetWriteData) { + return true + } + + return false +} + +// SetRwsetWriteData gets a reference to the given string and assigns it to the RwsetWriteData field. +func (o *GetTransactionReceiptResponse) SetRwsetWriteData(v string) { + o.RwsetWriteData = &v +} + +func (o GetTransactionReceiptResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTransactionReceiptResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BlockNumber) { + toSerialize["blockNumber"] = o.BlockNumber + } + if !IsNil(o.ChannelID) { + toSerialize["channelID"] = o.ChannelID + } + if !IsNil(o.TransactionCreator) { + toSerialize["transactionCreator"] = o.TransactionCreator + } + if !IsNil(o.TransactionEndorsement) { + toSerialize["transactionEndorsement"] = o.TransactionEndorsement + } + if !IsNil(o.BlockMetaData) { + toSerialize["blockMetaData"] = o.BlockMetaData + } + if !IsNil(o.ChainCodeName) { + toSerialize["chainCodeName"] = o.ChainCodeName + } + if !IsNil(o.ChainCodeVersion) { + toSerialize["chainCodeVersion"] = o.ChainCodeVersion + } + if !IsNil(o.ResponseStatus) { + toSerialize["responseStatus"] = o.ResponseStatus + } + if !IsNil(o.RwsetKey) { + toSerialize["rwsetKey"] = o.RwsetKey + } + if !IsNil(o.RwsetWriteData) { + toSerialize["rwsetWriteData"] = o.RwsetWriteData + } + return toSerialize, nil +} + +type NullableGetTransactionReceiptResponse struct { + value *GetTransactionReceiptResponse + isSet bool +} + +func (v NullableGetTransactionReceiptResponse) Get() *GetTransactionReceiptResponse { + return v.value +} + +func (v *NullableGetTransactionReceiptResponse) Set(val *GetTransactionReceiptResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetTransactionReceiptResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTransactionReceiptResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTransactionReceiptResponse(val *GetTransactionReceiptResponse) *NullableGetTransactionReceiptResponse { + return &NullableGetTransactionReceiptResponse{value: val, isSet: true} +} + +func (v NullableGetTransactionReceiptResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTransactionReceiptResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_request.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_request.go new file mode 100644 index 00000000000..0ea3127c790 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_request.go @@ -0,0 +1,434 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the RunTransactionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionRequest{} + +// RunTransactionRequest struct for RunTransactionRequest +type RunTransactionRequest struct { + // An array of MSP IDs to set as the list of endorsing peers for the transaction. + EndorsingPeers []string `json:"endorsingPeers,omitempty"` + TransientData map[string]interface{} `json:"transientData,omitempty"` + GatewayOptions *GatewayOptions `json:"gatewayOptions,omitempty"` + SigningCredential FabricSigningCredential `json:"signingCredential"` + ChannelName string `json:"channelName"` + ContractName string `json:"contractName"` + InvocationType FabricContractInvocationType `json:"invocationType"` + MethodName string `json:"methodName"` + Params []*string `json:"params"` + EndorsingParties []*string `json:"endorsingParties,omitempty"` + ResponseType *string `json:"responseType,omitempty"` +} + +// NewRunTransactionRequest instantiates a new RunTransactionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionRequest(signingCredential FabricSigningCredential, channelName string, contractName string, invocationType FabricContractInvocationType, methodName string, params []*string) *RunTransactionRequest { + this := RunTransactionRequest{} + this.SigningCredential = signingCredential + this.ChannelName = channelName + this.ContractName = contractName + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + return &this +} + +// NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionRequestWithDefaults() *RunTransactionRequest { + this := RunTransactionRequest{} + return &this +} + +// GetEndorsingPeers returns the EndorsingPeers field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetEndorsingPeers() []string { + if o == nil || IsNil(o.EndorsingPeers) { + var ret []string + return ret + } + return o.EndorsingPeers +} + +// GetEndorsingPeersOk returns a tuple with the EndorsingPeers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetEndorsingPeersOk() ([]string, bool) { + if o == nil || IsNil(o.EndorsingPeers) { + return nil, false + } + return o.EndorsingPeers, true +} + +// HasEndorsingPeers returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasEndorsingPeers() bool { + if o != nil && !IsNil(o.EndorsingPeers) { + return true + } + + return false +} + +// SetEndorsingPeers gets a reference to the given []string and assigns it to the EndorsingPeers field. +func (o *RunTransactionRequest) SetEndorsingPeers(v []string) { + o.EndorsingPeers = v +} + +// GetTransientData returns the TransientData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RunTransactionRequest) GetTransientData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.TransientData +} + +// GetTransientDataOk returns a tuple with the TransientData field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RunTransactionRequest) GetTransientDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientData) { + return map[string]interface{}{}, false + } + return o.TransientData, true +} + +// HasTransientData returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasTransientData() bool { + if o != nil && IsNil(o.TransientData) { + return true + } + + return false +} + +// SetTransientData gets a reference to the given map[string]interface{} and assigns it to the TransientData field. +func (o *RunTransactionRequest) SetTransientData(v map[string]interface{}) { + o.TransientData = v +} + +// GetGatewayOptions returns the GatewayOptions field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetGatewayOptions() GatewayOptions { + if o == nil || IsNil(o.GatewayOptions) { + var ret GatewayOptions + return ret + } + return *o.GatewayOptions +} + +// GetGatewayOptionsOk returns a tuple with the GatewayOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetGatewayOptionsOk() (*GatewayOptions, bool) { + if o == nil || IsNil(o.GatewayOptions) { + return nil, false + } + return o.GatewayOptions, true +} + +// HasGatewayOptions returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasGatewayOptions() bool { + if o != nil && !IsNil(o.GatewayOptions) { + return true + } + + return false +} + +// SetGatewayOptions gets a reference to the given GatewayOptions and assigns it to the GatewayOptions field. +func (o *RunTransactionRequest) SetGatewayOptions(v GatewayOptions) { + o.GatewayOptions = &v +} + +// GetSigningCredential returns the SigningCredential field value +func (o *RunTransactionRequest) GetSigningCredential() FabricSigningCredential { + if o == nil { + var ret FabricSigningCredential + return ret + } + + return o.SigningCredential +} + +// GetSigningCredentialOk returns a tuple with the SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetSigningCredentialOk() (*FabricSigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.SigningCredential, true +} + +// SetSigningCredential sets field value +func (o *RunTransactionRequest) SetSigningCredential(v FabricSigningCredential) { + o.SigningCredential = v +} + +// GetChannelName returns the ChannelName field value +func (o *RunTransactionRequest) GetChannelName() string { + if o == nil { + var ret string + return ret + } + + return o.ChannelName +} + +// GetChannelNameOk returns a tuple with the ChannelName field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetChannelNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChannelName, true +} + +// SetChannelName sets field value +func (o *RunTransactionRequest) SetChannelName(v string) { + o.ChannelName = v +} + +// GetContractName returns the ContractName field value +func (o *RunTransactionRequest) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *RunTransactionRequest) SetContractName(v string) { + o.ContractName = v +} + +// GetInvocationType returns the InvocationType field value +func (o *RunTransactionRequest) GetInvocationType() FabricContractInvocationType { + if o == nil { + var ret FabricContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetInvocationTypeOk() (*FabricContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *RunTransactionRequest) SetInvocationType(v FabricContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *RunTransactionRequest) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *RunTransactionRequest) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *RunTransactionRequest) GetParams() []*string { + if o == nil { + var ret []*string + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetParamsOk() ([]*string, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *RunTransactionRequest) SetParams(v []*string) { + o.Params = v +} + +// GetEndorsingParties returns the EndorsingParties field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetEndorsingParties() []*string { + if o == nil || IsNil(o.EndorsingParties) { + var ret []*string + return ret + } + return o.EndorsingParties +} + +// GetEndorsingPartiesOk returns a tuple with the EndorsingParties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetEndorsingPartiesOk() ([]*string, bool) { + if o == nil || IsNil(o.EndorsingParties) { + return nil, false + } + return o.EndorsingParties, true +} + +// HasEndorsingParties returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasEndorsingParties() bool { + if o != nil && !IsNil(o.EndorsingParties) { + return true + } + + return false +} + +// SetEndorsingParties gets a reference to the given []*string and assigns it to the EndorsingParties field. +func (o *RunTransactionRequest) SetEndorsingParties(v []*string) { + o.EndorsingParties = v +} + +// GetResponseType returns the ResponseType field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetResponseType() string { + if o == nil || IsNil(o.ResponseType) { + var ret string + return ret + } + return *o.ResponseType +} + +// GetResponseTypeOk returns a tuple with the ResponseType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetResponseTypeOk() (*string, bool) { + if o == nil || IsNil(o.ResponseType) { + return nil, false + } + return o.ResponseType, true +} + +// HasResponseType returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasResponseType() bool { + if o != nil && !IsNil(o.ResponseType) { + return true + } + + return false +} + +// SetResponseType gets a reference to the given string and assigns it to the ResponseType field. +func (o *RunTransactionRequest) SetResponseType(v string) { + o.ResponseType = &v +} + +func (o RunTransactionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EndorsingPeers) { + toSerialize["endorsingPeers"] = o.EndorsingPeers + } + if o.TransientData != nil { + toSerialize["transientData"] = o.TransientData + } + if !IsNil(o.GatewayOptions) { + toSerialize["gatewayOptions"] = o.GatewayOptions + } + toSerialize["signingCredential"] = o.SigningCredential + toSerialize["channelName"] = o.ChannelName + toSerialize["contractName"] = o.ContractName + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !IsNil(o.EndorsingParties) { + toSerialize["endorsingParties"] = o.EndorsingParties + } + if !IsNil(o.ResponseType) { + toSerialize["responseType"] = o.ResponseType + } + return toSerialize, nil +} + +type NullableRunTransactionRequest struct { + value *RunTransactionRequest + isSet bool +} + +func (v NullableRunTransactionRequest) Get() *RunTransactionRequest { + return v.value +} + +func (v *NullableRunTransactionRequest) Set(val *RunTransactionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequest(val *RunTransactionRequest) *NullableRunTransactionRequest { + return &NullableRunTransactionRequest{value: val, isSet: true} +} + +func (v NullableRunTransactionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..8d144c225f2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + FunctionOutput string `json:"functionOutput"` + Success bool `json:"success"` + TransactionId string `json:"transactionId"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(functionOutput string, success bool, transactionId string) *RunTransactionResponse { + this := RunTransactionResponse{} + this.FunctionOutput = functionOutput + this.Success = success + this.TransactionId = transactionId + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetFunctionOutput returns the FunctionOutput field value +func (o *RunTransactionResponse) GetFunctionOutput() string { + if o == nil { + var ret string + return ret + } + + return o.FunctionOutput +} + +// GetFunctionOutputOk returns a tuple with the FunctionOutput field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetFunctionOutputOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FunctionOutput, true +} + +// SetFunctionOutput sets field value +func (o *RunTransactionResponse) SetFunctionOutput(v string) { + o.FunctionOutput = v +} + +// GetSuccess returns the Success field value +func (o *RunTransactionResponse) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RunTransactionResponse) SetSuccess(v bool) { + o.Success = v +} + +// GetTransactionId returns the TransactionId field value +func (o *RunTransactionResponse) GetTransactionId() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionId +} + +// GetTransactionIdOk returns a tuple with the TransactionId field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionId, true +} + +// SetTransactionId sets field value +func (o *RunTransactionResponse) SetTransactionId(v string) { + o.TransactionId = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["functionOutput"] = o.FunctionOutput + toSerialize["success"] = o.Success + toSerialize["transactionId"] = o.TransactionId + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_ssh_exec_command_response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_ssh_exec_command_response.go new file mode 100644 index 00000000000..c597da3e6be --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_ssh_exec_command_response.go @@ -0,0 +1,202 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the SSHExecCommandResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SSHExecCommandResponse{} + +// SSHExecCommandResponse struct for SSHExecCommandResponse +type SSHExecCommandResponse struct { + Stdout string `json:"stdout"` + Stderr string `json:"stderr"` + Code NullableInt32 `json:"code"` + Signal NullableString `json:"signal"` +} + +// NewSSHExecCommandResponse instantiates a new SSHExecCommandResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSSHExecCommandResponse(stdout string, stderr string, code NullableInt32, signal NullableString) *SSHExecCommandResponse { + this := SSHExecCommandResponse{} + this.Stdout = stdout + this.Stderr = stderr + this.Code = code + this.Signal = signal + return &this +} + +// NewSSHExecCommandResponseWithDefaults instantiates a new SSHExecCommandResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSSHExecCommandResponseWithDefaults() *SSHExecCommandResponse { + this := SSHExecCommandResponse{} + return &this +} + +// GetStdout returns the Stdout field value +func (o *SSHExecCommandResponse) GetStdout() string { + if o == nil { + var ret string + return ret + } + + return o.Stdout +} + +// GetStdoutOk returns a tuple with the Stdout field value +// and a boolean to check if the value has been set. +func (o *SSHExecCommandResponse) GetStdoutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Stdout, true +} + +// SetStdout sets field value +func (o *SSHExecCommandResponse) SetStdout(v string) { + o.Stdout = v +} + +// GetStderr returns the Stderr field value +func (o *SSHExecCommandResponse) GetStderr() string { + if o == nil { + var ret string + return ret + } + + return o.Stderr +} + +// GetStderrOk returns a tuple with the Stderr field value +// and a boolean to check if the value has been set. +func (o *SSHExecCommandResponse) GetStderrOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Stderr, true +} + +// SetStderr sets field value +func (o *SSHExecCommandResponse) SetStderr(v string) { + o.Stderr = v +} + +// GetCode returns the Code field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *SSHExecCommandResponse) GetCode() int32 { + if o == nil || o.Code.Get() == nil { + var ret int32 + return ret + } + + return *o.Code.Get() +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SSHExecCommandResponse) GetCodeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Code.Get(), o.Code.IsSet() +} + +// SetCode sets field value +func (o *SSHExecCommandResponse) SetCode(v int32) { + o.Code.Set(&v) +} + +// GetSignal returns the Signal field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SSHExecCommandResponse) GetSignal() string { + if o == nil || o.Signal.Get() == nil { + var ret string + return ret + } + + return *o.Signal.Get() +} + +// GetSignalOk returns a tuple with the Signal field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SSHExecCommandResponse) GetSignalOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Signal.Get(), o.Signal.IsSet() +} + +// SetSignal sets field value +func (o *SSHExecCommandResponse) SetSignal(v string) { + o.Signal.Set(&v) +} + +func (o SSHExecCommandResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SSHExecCommandResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["stdout"] = o.Stdout + toSerialize["stderr"] = o.Stderr + toSerialize["code"] = o.Code.Get() + toSerialize["signal"] = o.Signal.Get() + return toSerialize, nil +} + +type NullableSSHExecCommandResponse struct { + value *SSHExecCommandResponse + isSet bool +} + +func (v NullableSSHExecCommandResponse) Get() *SSHExecCommandResponse { + return v.value +} + +func (v *NullableSSHExecCommandResponse) Set(val *SSHExecCommandResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSSHExecCommandResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSSHExecCommandResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSSHExecCommandResponse(val *SSHExecCommandResponse) *NullableSSHExecCommandResponse { + return &NullableSSHExecCommandResponse{value: val, isSet: true} +} + +func (v NullableSSHExecCommandResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSSHExecCommandResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_block_meta_data.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_block_meta_data.go new file mode 100644 index 00000000000..fbdbb260105 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_block_meta_data.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the TransactReceiptBlockMetaData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactReceiptBlockMetaData{} + +// TransactReceiptBlockMetaData struct for TransactReceiptBlockMetaData +type TransactReceiptBlockMetaData struct { + Mspid *string `json:"mspid,omitempty"` + BlockCreatorID *string `json:"blockCreatorID,omitempty"` + Signature *string `json:"signature,omitempty"` +} + +// NewTransactReceiptBlockMetaData instantiates a new TransactReceiptBlockMetaData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactReceiptBlockMetaData() *TransactReceiptBlockMetaData { + this := TransactReceiptBlockMetaData{} + return &this +} + +// NewTransactReceiptBlockMetaDataWithDefaults instantiates a new TransactReceiptBlockMetaData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactReceiptBlockMetaDataWithDefaults() *TransactReceiptBlockMetaData { + this := TransactReceiptBlockMetaData{} + return &this +} + +// GetMspid returns the Mspid field value if set, zero value otherwise. +func (o *TransactReceiptBlockMetaData) GetMspid() string { + if o == nil || IsNil(o.Mspid) { + var ret string + return ret + } + return *o.Mspid +} + +// GetMspidOk returns a tuple with the Mspid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptBlockMetaData) GetMspidOk() (*string, bool) { + if o == nil || IsNil(o.Mspid) { + return nil, false + } + return o.Mspid, true +} + +// HasMspid returns a boolean if a field has been set. +func (o *TransactReceiptBlockMetaData) HasMspid() bool { + if o != nil && !IsNil(o.Mspid) { + return true + } + + return false +} + +// SetMspid gets a reference to the given string and assigns it to the Mspid field. +func (o *TransactReceiptBlockMetaData) SetMspid(v string) { + o.Mspid = &v +} + +// GetBlockCreatorID returns the BlockCreatorID field value if set, zero value otherwise. +func (o *TransactReceiptBlockMetaData) GetBlockCreatorID() string { + if o == nil || IsNil(o.BlockCreatorID) { + var ret string + return ret + } + return *o.BlockCreatorID +} + +// GetBlockCreatorIDOk returns a tuple with the BlockCreatorID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptBlockMetaData) GetBlockCreatorIDOk() (*string, bool) { + if o == nil || IsNil(o.BlockCreatorID) { + return nil, false + } + return o.BlockCreatorID, true +} + +// HasBlockCreatorID returns a boolean if a field has been set. +func (o *TransactReceiptBlockMetaData) HasBlockCreatorID() bool { + if o != nil && !IsNil(o.BlockCreatorID) { + return true + } + + return false +} + +// SetBlockCreatorID gets a reference to the given string and assigns it to the BlockCreatorID field. +func (o *TransactReceiptBlockMetaData) SetBlockCreatorID(v string) { + o.BlockCreatorID = &v +} + +// GetSignature returns the Signature field value if set, zero value otherwise. +func (o *TransactReceiptBlockMetaData) GetSignature() string { + if o == nil || IsNil(o.Signature) { + var ret string + return ret + } + return *o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptBlockMetaData) GetSignatureOk() (*string, bool) { + if o == nil || IsNil(o.Signature) { + return nil, false + } + return o.Signature, true +} + +// HasSignature returns a boolean if a field has been set. +func (o *TransactReceiptBlockMetaData) HasSignature() bool { + if o != nil && !IsNil(o.Signature) { + return true + } + + return false +} + +// SetSignature gets a reference to the given string and assigns it to the Signature field. +func (o *TransactReceiptBlockMetaData) SetSignature(v string) { + o.Signature = &v +} + +func (o TransactReceiptBlockMetaData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactReceiptBlockMetaData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Mspid) { + toSerialize["mspid"] = o.Mspid + } + if !IsNil(o.BlockCreatorID) { + toSerialize["blockCreatorID"] = o.BlockCreatorID + } + if !IsNil(o.Signature) { + toSerialize["signature"] = o.Signature + } + return toSerialize, nil +} + +type NullableTransactReceiptBlockMetaData struct { + value *TransactReceiptBlockMetaData + isSet bool +} + +func (v NullableTransactReceiptBlockMetaData) Get() *TransactReceiptBlockMetaData { + return v.value +} + +func (v *NullableTransactReceiptBlockMetaData) Set(val *TransactReceiptBlockMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableTransactReceiptBlockMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactReceiptBlockMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactReceiptBlockMetaData(val *TransactReceiptBlockMetaData) *NullableTransactReceiptBlockMetaData { + return &NullableTransactReceiptBlockMetaData{value: val, isSet: true} +} + +func (v NullableTransactReceiptBlockMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactReceiptBlockMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_creator.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_creator.go new file mode 100644 index 00000000000..bd4b760e7b9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_creator.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the TransactReceiptTransactionCreator type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactReceiptTransactionCreator{} + +// TransactReceiptTransactionCreator struct for TransactReceiptTransactionCreator +type TransactReceiptTransactionCreator struct { + Mspid *string `json:"mspid,omitempty"` + CreatorID *string `json:"creatorID,omitempty"` +} + +// NewTransactReceiptTransactionCreator instantiates a new TransactReceiptTransactionCreator object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactReceiptTransactionCreator() *TransactReceiptTransactionCreator { + this := TransactReceiptTransactionCreator{} + return &this +} + +// NewTransactReceiptTransactionCreatorWithDefaults instantiates a new TransactReceiptTransactionCreator object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactReceiptTransactionCreatorWithDefaults() *TransactReceiptTransactionCreator { + this := TransactReceiptTransactionCreator{} + return &this +} + +// GetMspid returns the Mspid field value if set, zero value otherwise. +func (o *TransactReceiptTransactionCreator) GetMspid() string { + if o == nil || IsNil(o.Mspid) { + var ret string + return ret + } + return *o.Mspid +} + +// GetMspidOk returns a tuple with the Mspid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptTransactionCreator) GetMspidOk() (*string, bool) { + if o == nil || IsNil(o.Mspid) { + return nil, false + } + return o.Mspid, true +} + +// HasMspid returns a boolean if a field has been set. +func (o *TransactReceiptTransactionCreator) HasMspid() bool { + if o != nil && !IsNil(o.Mspid) { + return true + } + + return false +} + +// SetMspid gets a reference to the given string and assigns it to the Mspid field. +func (o *TransactReceiptTransactionCreator) SetMspid(v string) { + o.Mspid = &v +} + +// GetCreatorID returns the CreatorID field value if set, zero value otherwise. +func (o *TransactReceiptTransactionCreator) GetCreatorID() string { + if o == nil || IsNil(o.CreatorID) { + var ret string + return ret + } + return *o.CreatorID +} + +// GetCreatorIDOk returns a tuple with the CreatorID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptTransactionCreator) GetCreatorIDOk() (*string, bool) { + if o == nil || IsNil(o.CreatorID) { + return nil, false + } + return o.CreatorID, true +} + +// HasCreatorID returns a boolean if a field has been set. +func (o *TransactReceiptTransactionCreator) HasCreatorID() bool { + if o != nil && !IsNil(o.CreatorID) { + return true + } + + return false +} + +// SetCreatorID gets a reference to the given string and assigns it to the CreatorID field. +func (o *TransactReceiptTransactionCreator) SetCreatorID(v string) { + o.CreatorID = &v +} + +func (o TransactReceiptTransactionCreator) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactReceiptTransactionCreator) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Mspid) { + toSerialize["mspid"] = o.Mspid + } + if !IsNil(o.CreatorID) { + toSerialize["creatorID"] = o.CreatorID + } + return toSerialize, nil +} + +type NullableTransactReceiptTransactionCreator struct { + value *TransactReceiptTransactionCreator + isSet bool +} + +func (v NullableTransactReceiptTransactionCreator) Get() *TransactReceiptTransactionCreator { + return v.value +} + +func (v *NullableTransactReceiptTransactionCreator) Set(val *TransactReceiptTransactionCreator) { + v.value = val + v.isSet = true +} + +func (v NullableTransactReceiptTransactionCreator) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactReceiptTransactionCreator) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactReceiptTransactionCreator(val *TransactReceiptTransactionCreator) *NullableTransactReceiptTransactionCreator { + return &NullableTransactReceiptTransactionCreator{value: val, isSet: true} +} + +func (v NullableTransactReceiptTransactionCreator) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactReceiptTransactionCreator) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_endorsement.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_endorsement.go new file mode 100644 index 00000000000..0060d64768a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_transact_receipt_transaction_endorsement.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the TransactReceiptTransactionEndorsement type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactReceiptTransactionEndorsement{} + +// TransactReceiptTransactionEndorsement struct for TransactReceiptTransactionEndorsement +type TransactReceiptTransactionEndorsement struct { + Mspid *string `json:"mspid,omitempty"` + EndorserID *string `json:"endorserID,omitempty"` + Signature *string `json:"signature,omitempty"` +} + +// NewTransactReceiptTransactionEndorsement instantiates a new TransactReceiptTransactionEndorsement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactReceiptTransactionEndorsement() *TransactReceiptTransactionEndorsement { + this := TransactReceiptTransactionEndorsement{} + return &this +} + +// NewTransactReceiptTransactionEndorsementWithDefaults instantiates a new TransactReceiptTransactionEndorsement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactReceiptTransactionEndorsementWithDefaults() *TransactReceiptTransactionEndorsement { + this := TransactReceiptTransactionEndorsement{} + return &this +} + +// GetMspid returns the Mspid field value if set, zero value otherwise. +func (o *TransactReceiptTransactionEndorsement) GetMspid() string { + if o == nil || IsNil(o.Mspid) { + var ret string + return ret + } + return *o.Mspid +} + +// GetMspidOk returns a tuple with the Mspid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptTransactionEndorsement) GetMspidOk() (*string, bool) { + if o == nil || IsNil(o.Mspid) { + return nil, false + } + return o.Mspid, true +} + +// HasMspid returns a boolean if a field has been set. +func (o *TransactReceiptTransactionEndorsement) HasMspid() bool { + if o != nil && !IsNil(o.Mspid) { + return true + } + + return false +} + +// SetMspid gets a reference to the given string and assigns it to the Mspid field. +func (o *TransactReceiptTransactionEndorsement) SetMspid(v string) { + o.Mspid = &v +} + +// GetEndorserID returns the EndorserID field value if set, zero value otherwise. +func (o *TransactReceiptTransactionEndorsement) GetEndorserID() string { + if o == nil || IsNil(o.EndorserID) { + var ret string + return ret + } + return *o.EndorserID +} + +// GetEndorserIDOk returns a tuple with the EndorserID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptTransactionEndorsement) GetEndorserIDOk() (*string, bool) { + if o == nil || IsNil(o.EndorserID) { + return nil, false + } + return o.EndorserID, true +} + +// HasEndorserID returns a boolean if a field has been set. +func (o *TransactReceiptTransactionEndorsement) HasEndorserID() bool { + if o != nil && !IsNil(o.EndorserID) { + return true + } + + return false +} + +// SetEndorserID gets a reference to the given string and assigns it to the EndorserID field. +func (o *TransactReceiptTransactionEndorsement) SetEndorserID(v string) { + o.EndorserID = &v +} + +// GetSignature returns the Signature field value if set, zero value otherwise. +func (o *TransactReceiptTransactionEndorsement) GetSignature() string { + if o == nil || IsNil(o.Signature) { + var ret string + return ret + } + return *o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactReceiptTransactionEndorsement) GetSignatureOk() (*string, bool) { + if o == nil || IsNil(o.Signature) { + return nil, false + } + return o.Signature, true +} + +// HasSignature returns a boolean if a field has been set. +func (o *TransactReceiptTransactionEndorsement) HasSignature() bool { + if o != nil && !IsNil(o.Signature) { + return true + } + + return false +} + +// SetSignature gets a reference to the given string and assigns it to the Signature field. +func (o *TransactReceiptTransactionEndorsement) SetSignature(v string) { + o.Signature = &v +} + +func (o TransactReceiptTransactionEndorsement) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactReceiptTransactionEndorsement) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Mspid) { + toSerialize["mspid"] = o.Mspid + } + if !IsNil(o.EndorserID) { + toSerialize["endorserID"] = o.EndorserID + } + if !IsNil(o.Signature) { + toSerialize["signature"] = o.Signature + } + return toSerialize, nil +} + +type NullableTransactReceiptTransactionEndorsement struct { + value *TransactReceiptTransactionEndorsement + isSet bool +} + +func (v NullableTransactReceiptTransactionEndorsement) Get() *TransactReceiptTransactionEndorsement { + return v.value +} + +func (v *NullableTransactReceiptTransactionEndorsement) Set(val *TransactReceiptTransactionEndorsement) { + v.value = val + v.isSet = true +} + +func (v NullableTransactReceiptTransactionEndorsement) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactReceiptTransactionEndorsement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactReceiptTransactionEndorsement(val *TransactReceiptTransactionEndorsement) *NullableTransactReceiptTransactionEndorsement { + return &NullableTransactReceiptTransactionEndorsement{value: val, isSet: true} +} + +func (v NullableTransactReceiptTransactionEndorsement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactReceiptTransactionEndorsement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_vault_transit_key.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_vault_transit_key.go new file mode 100644 index 00000000000..93cf2272ce0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_vault_transit_key.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the VaultTransitKey type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VaultTransitKey{} + +// VaultTransitKey vault key details for signing fabric message with private key stored with transit engine. +type VaultTransitKey struct { + // label of private key + KeyName string `json:"keyName"` + // token for accessing private key + Token string `json:"token"` +} + +// NewVaultTransitKey instantiates a new VaultTransitKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVaultTransitKey(keyName string, token string) *VaultTransitKey { + this := VaultTransitKey{} + this.KeyName = keyName + this.Token = token + return &this +} + +// NewVaultTransitKeyWithDefaults instantiates a new VaultTransitKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVaultTransitKeyWithDefaults() *VaultTransitKey { + this := VaultTransitKey{} + return &this +} + +// GetKeyName returns the KeyName field value +func (o *VaultTransitKey) GetKeyName() string { + if o == nil { + var ret string + return ret + } + + return o.KeyName +} + +// GetKeyNameOk returns a tuple with the KeyName field value +// and a boolean to check if the value has been set. +func (o *VaultTransitKey) GetKeyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyName, true +} + +// SetKeyName sets field value +func (o *VaultTransitKey) SetKeyName(v string) { + o.KeyName = v +} + +// GetToken returns the Token field value +func (o *VaultTransitKey) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *VaultTransitKey) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *VaultTransitKey) SetToken(v string) { + o.Token = v +} + +func (o VaultTransitKey) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VaultTransitKey) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["keyName"] = o.KeyName + toSerialize["token"] = o.Token + return toSerialize, nil +} + +type NullableVaultTransitKey struct { + value *VaultTransitKey + isSet bool +} + +func (v NullableVaultTransitKey) Get() *VaultTransitKey { + return v.value +} + +func (v *NullableVaultTransitKey) Set(val *VaultTransitKey) { + v.value = val + v.isSet = true +} + +func (v NullableVaultTransitKey) IsSet() bool { + return v.isSet +} + +func (v *NullableVaultTransitKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVaultTransitKey(val *VaultTransitKey) *NullableVaultTransitKey { + return &NullableVaultTransitKey{value: val, isSet: true} +} + +func (v NullableVaultTransitKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVaultTransitKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_error_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_error_response_v1.go new file mode 100644 index 00000000000..ee4d522b085 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_error_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksCactusErrorResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksCactusErrorResponseV1{} + +// WatchBlocksCactusErrorResponseV1 Error response from WatchBlocks operation. +type WatchBlocksCactusErrorResponseV1 struct { + // Error code. + Code float32 `json:"code"` + // Description of the error. + ErrorMessage string `json:"errorMessage"` +} + +// NewWatchBlocksCactusErrorResponseV1 instantiates a new WatchBlocksCactusErrorResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksCactusErrorResponseV1(code float32, errorMessage string) *WatchBlocksCactusErrorResponseV1 { + this := WatchBlocksCactusErrorResponseV1{} + this.Code = code + this.ErrorMessage = errorMessage + return &this +} + +// NewWatchBlocksCactusErrorResponseV1WithDefaults instantiates a new WatchBlocksCactusErrorResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksCactusErrorResponseV1WithDefaults() *WatchBlocksCactusErrorResponseV1 { + this := WatchBlocksCactusErrorResponseV1{} + return &this +} + +// GetCode returns the Code field value +func (o *WatchBlocksCactusErrorResponseV1) GetCode() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusErrorResponseV1) GetCodeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *WatchBlocksCactusErrorResponseV1) SetCode(v float32) { + o.Code = v +} + +// GetErrorMessage returns the ErrorMessage field value +func (o *WatchBlocksCactusErrorResponseV1) GetErrorMessage() string { + if o == nil { + var ret string + return ret + } + + return o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusErrorResponseV1) GetErrorMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ErrorMessage, true +} + +// SetErrorMessage sets field value +func (o *WatchBlocksCactusErrorResponseV1) SetErrorMessage(v string) { + o.ErrorMessage = v +} + +func (o WatchBlocksCactusErrorResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksCactusErrorResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["code"] = o.Code + toSerialize["errorMessage"] = o.ErrorMessage + return toSerialize, nil +} + +type NullableWatchBlocksCactusErrorResponseV1 struct { + value *WatchBlocksCactusErrorResponseV1 + isSet bool +} + +func (v NullableWatchBlocksCactusErrorResponseV1) Get() *WatchBlocksCactusErrorResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksCactusErrorResponseV1) Set(val *WatchBlocksCactusErrorResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksCactusErrorResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksCactusErrorResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksCactusErrorResponseV1(val *WatchBlocksCactusErrorResponseV1) *NullableWatchBlocksCactusErrorResponseV1 { + return &NullableWatchBlocksCactusErrorResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksCactusErrorResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksCactusErrorResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_event_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_event_v1.go new file mode 100644 index 00000000000..45e30ff236a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_event_v1.go @@ -0,0 +1,202 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksCactusTransactionsEventV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksCactusTransactionsEventV1{} + +// WatchBlocksCactusTransactionsEventV1 Transaction summary from commited block. +type WatchBlocksCactusTransactionsEventV1 struct { + // ChainCode containing function that was executed. + ChaincodeId string `json:"chaincodeId"` + // Transaction identifier. + TransactionId string `json:"transactionId"` + // Function name that was executed. + FunctionName string `json:"functionName"` + // List of function arguments. + FunctionArgs []string `json:"functionArgs"` +} + +// NewWatchBlocksCactusTransactionsEventV1 instantiates a new WatchBlocksCactusTransactionsEventV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksCactusTransactionsEventV1(chaincodeId string, transactionId string, functionName string, functionArgs []string) *WatchBlocksCactusTransactionsEventV1 { + this := WatchBlocksCactusTransactionsEventV1{} + this.ChaincodeId = chaincodeId + this.TransactionId = transactionId + this.FunctionName = functionName + this.FunctionArgs = functionArgs + return &this +} + +// NewWatchBlocksCactusTransactionsEventV1WithDefaults instantiates a new WatchBlocksCactusTransactionsEventV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksCactusTransactionsEventV1WithDefaults() *WatchBlocksCactusTransactionsEventV1 { + this := WatchBlocksCactusTransactionsEventV1{} + return &this +} + +// GetChaincodeId returns the ChaincodeId field value +func (o *WatchBlocksCactusTransactionsEventV1) GetChaincodeId() string { + if o == nil { + var ret string + return ret + } + + return o.ChaincodeId +} + +// GetChaincodeIdOk returns a tuple with the ChaincodeId field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusTransactionsEventV1) GetChaincodeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChaincodeId, true +} + +// SetChaincodeId sets field value +func (o *WatchBlocksCactusTransactionsEventV1) SetChaincodeId(v string) { + o.ChaincodeId = v +} + +// GetTransactionId returns the TransactionId field value +func (o *WatchBlocksCactusTransactionsEventV1) GetTransactionId() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionId +} + +// GetTransactionIdOk returns a tuple with the TransactionId field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusTransactionsEventV1) GetTransactionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionId, true +} + +// SetTransactionId sets field value +func (o *WatchBlocksCactusTransactionsEventV1) SetTransactionId(v string) { + o.TransactionId = v +} + +// GetFunctionName returns the FunctionName field value +func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionName() string { + if o == nil { + var ret string + return ret + } + + return o.FunctionName +} + +// GetFunctionNameOk returns a tuple with the FunctionName field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FunctionName, true +} + +// SetFunctionName sets field value +func (o *WatchBlocksCactusTransactionsEventV1) SetFunctionName(v string) { + o.FunctionName = v +} + +// GetFunctionArgs returns the FunctionArgs field value +func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionArgs() []string { + if o == nil { + var ret []string + return ret + } + + return o.FunctionArgs +} + +// GetFunctionArgsOk returns a tuple with the FunctionArgs field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusTransactionsEventV1) GetFunctionArgsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.FunctionArgs, true +} + +// SetFunctionArgs sets field value +func (o *WatchBlocksCactusTransactionsEventV1) SetFunctionArgs(v []string) { + o.FunctionArgs = v +} + +func (o WatchBlocksCactusTransactionsEventV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksCactusTransactionsEventV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["chaincodeId"] = o.ChaincodeId + toSerialize["transactionId"] = o.TransactionId + toSerialize["functionName"] = o.FunctionName + toSerialize["functionArgs"] = o.FunctionArgs + return toSerialize, nil +} + +type NullableWatchBlocksCactusTransactionsEventV1 struct { + value *WatchBlocksCactusTransactionsEventV1 + isSet bool +} + +func (v NullableWatchBlocksCactusTransactionsEventV1) Get() *WatchBlocksCactusTransactionsEventV1 { + return v.value +} + +func (v *NullableWatchBlocksCactusTransactionsEventV1) Set(val *WatchBlocksCactusTransactionsEventV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksCactusTransactionsEventV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksCactusTransactionsEventV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksCactusTransactionsEventV1(val *WatchBlocksCactusTransactionsEventV1) *NullableWatchBlocksCactusTransactionsEventV1 { + return &NullableWatchBlocksCactusTransactionsEventV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksCactusTransactionsEventV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksCactusTransactionsEventV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_response_v1.go new file mode 100644 index 00000000000..8a39b7836a6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_cactus_transactions_response_v1.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksCactusTransactionsResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksCactusTransactionsResponseV1{} + +// WatchBlocksCactusTransactionsResponseV1 Custom response containing block transactions summary. Compatible with legacy fabric-socketio connector monitoring. +type WatchBlocksCactusTransactionsResponseV1 struct { + // List of transactions summary + CactusTransactionsEvents []WatchBlocksCactusTransactionsEventV1 `json:"cactusTransactionsEvents"` +} + +// NewWatchBlocksCactusTransactionsResponseV1 instantiates a new WatchBlocksCactusTransactionsResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksCactusTransactionsResponseV1(cactusTransactionsEvents []WatchBlocksCactusTransactionsEventV1) *WatchBlocksCactusTransactionsResponseV1 { + this := WatchBlocksCactusTransactionsResponseV1{} + this.CactusTransactionsEvents = cactusTransactionsEvents + return &this +} + +// NewWatchBlocksCactusTransactionsResponseV1WithDefaults instantiates a new WatchBlocksCactusTransactionsResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksCactusTransactionsResponseV1WithDefaults() *WatchBlocksCactusTransactionsResponseV1 { + this := WatchBlocksCactusTransactionsResponseV1{} + return &this +} + +// GetCactusTransactionsEvents returns the CactusTransactionsEvents field value +func (o *WatchBlocksCactusTransactionsResponseV1) GetCactusTransactionsEvents() []WatchBlocksCactusTransactionsEventV1 { + if o == nil { + var ret []WatchBlocksCactusTransactionsEventV1 + return ret + } + + return o.CactusTransactionsEvents +} + +// GetCactusTransactionsEventsOk returns a tuple with the CactusTransactionsEvents field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksCactusTransactionsResponseV1) GetCactusTransactionsEventsOk() ([]WatchBlocksCactusTransactionsEventV1, bool) { + if o == nil { + return nil, false + } + return o.CactusTransactionsEvents, true +} + +// SetCactusTransactionsEvents sets field value +func (o *WatchBlocksCactusTransactionsResponseV1) SetCactusTransactionsEvents(v []WatchBlocksCactusTransactionsEventV1) { + o.CactusTransactionsEvents = v +} + +func (o WatchBlocksCactusTransactionsResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksCactusTransactionsResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cactusTransactionsEvents"] = o.CactusTransactionsEvents + return toSerialize, nil +} + +type NullableWatchBlocksCactusTransactionsResponseV1 struct { + value *WatchBlocksCactusTransactionsResponseV1 + isSet bool +} + +func (v NullableWatchBlocksCactusTransactionsResponseV1) Get() *WatchBlocksCactusTransactionsResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksCactusTransactionsResponseV1) Set(val *WatchBlocksCactusTransactionsResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksCactusTransactionsResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksCactusTransactionsResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksCactusTransactionsResponseV1(val *WatchBlocksCactusTransactionsResponseV1) *NullableWatchBlocksCactusTransactionsResponseV1 { + return &NullableWatchBlocksCactusTransactionsResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksCactusTransactionsResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksCactusTransactionsResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_filtered_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_filtered_response_v1.go new file mode 100644 index 00000000000..b7036c2d7d2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_filtered_response_v1.go @@ -0,0 +1,122 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksFilteredResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksFilteredResponseV1{} + +// WatchBlocksFilteredResponseV1 Response that corresponds to Fabric SDK 'filtered' EventType. +type WatchBlocksFilteredResponseV1 struct { + // Filtered commited block. + FilteredBlock interface{} `json:"filteredBlock"` +} + +// NewWatchBlocksFilteredResponseV1 instantiates a new WatchBlocksFilteredResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksFilteredResponseV1(filteredBlock interface{}) *WatchBlocksFilteredResponseV1 { + this := WatchBlocksFilteredResponseV1{} + this.FilteredBlock = filteredBlock + return &this +} + +// NewWatchBlocksFilteredResponseV1WithDefaults instantiates a new WatchBlocksFilteredResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksFilteredResponseV1WithDefaults() *WatchBlocksFilteredResponseV1 { + this := WatchBlocksFilteredResponseV1{} + return &this +} + +// GetFilteredBlock returns the FilteredBlock field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *WatchBlocksFilteredResponseV1) GetFilteredBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.FilteredBlock +} + +// GetFilteredBlockOk returns a tuple with the FilteredBlock field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WatchBlocksFilteredResponseV1) GetFilteredBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.FilteredBlock) { + return nil, false + } + return &o.FilteredBlock, true +} + +// SetFilteredBlock sets field value +func (o *WatchBlocksFilteredResponseV1) SetFilteredBlock(v interface{}) { + o.FilteredBlock = v +} + +func (o WatchBlocksFilteredResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksFilteredResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.FilteredBlock != nil { + toSerialize["filteredBlock"] = o.FilteredBlock + } + return toSerialize, nil +} + +type NullableWatchBlocksFilteredResponseV1 struct { + value *WatchBlocksFilteredResponseV1 + isSet bool +} + +func (v NullableWatchBlocksFilteredResponseV1) Get() *WatchBlocksFilteredResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksFilteredResponseV1) Set(val *WatchBlocksFilteredResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksFilteredResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksFilteredResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksFilteredResponseV1(val *WatchBlocksFilteredResponseV1) *NullableWatchBlocksFilteredResponseV1 { + return &NullableWatchBlocksFilteredResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksFilteredResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksFilteredResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_full_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_full_response_v1.go new file mode 100644 index 00000000000..416b2a2dceb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_full_response_v1.go @@ -0,0 +1,122 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksFullResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksFullResponseV1{} + +// WatchBlocksFullResponseV1 Response that corresponds to Fabric SDK 'full' EventType. +type WatchBlocksFullResponseV1 struct { + // Full commited block. + FullBlock interface{} `json:"fullBlock"` +} + +// NewWatchBlocksFullResponseV1 instantiates a new WatchBlocksFullResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksFullResponseV1(fullBlock interface{}) *WatchBlocksFullResponseV1 { + this := WatchBlocksFullResponseV1{} + this.FullBlock = fullBlock + return &this +} + +// NewWatchBlocksFullResponseV1WithDefaults instantiates a new WatchBlocksFullResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksFullResponseV1WithDefaults() *WatchBlocksFullResponseV1 { + this := WatchBlocksFullResponseV1{} + return &this +} + +// GetFullBlock returns the FullBlock field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *WatchBlocksFullResponseV1) GetFullBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.FullBlock +} + +// GetFullBlockOk returns a tuple with the FullBlock field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WatchBlocksFullResponseV1) GetFullBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.FullBlock) { + return nil, false + } + return &o.FullBlock, true +} + +// SetFullBlock sets field value +func (o *WatchBlocksFullResponseV1) SetFullBlock(v interface{}) { + o.FullBlock = v +} + +func (o WatchBlocksFullResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksFullResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.FullBlock != nil { + toSerialize["fullBlock"] = o.FullBlock + } + return toSerialize, nil +} + +type NullableWatchBlocksFullResponseV1 struct { + value *WatchBlocksFullResponseV1 + isSet bool +} + +func (v NullableWatchBlocksFullResponseV1) Get() *WatchBlocksFullResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksFullResponseV1) Set(val *WatchBlocksFullResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksFullResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksFullResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksFullResponseV1(val *WatchBlocksFullResponseV1) *NullableWatchBlocksFullResponseV1 { + return &NullableWatchBlocksFullResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksFullResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksFullResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_listener_type_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_listener_type_v1.go new file mode 100644 index 00000000000..f1a5f4f6ed7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_listener_type_v1.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksListenerTypeV1 Response type from WatchBlocks. 'Cactus*' are custom views, others correspond to fabric SDK call. +type WatchBlocksListenerTypeV1 string + +// List of WatchBlocksListenerTypeV1 +const ( + Filtered WatchBlocksListenerTypeV1 = "filtered" + Full WatchBlocksListenerTypeV1 = "full" + Private WatchBlocksListenerTypeV1 = "private" + CactusTransactions WatchBlocksListenerTypeV1 = "cactus:transactions" +) + +// All allowed values of WatchBlocksListenerTypeV1 enum +var AllowedWatchBlocksListenerTypeV1EnumValues = []WatchBlocksListenerTypeV1{ + "filtered", + "full", + "private", + "cactus:transactions", +} + +func (v *WatchBlocksListenerTypeV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksListenerTypeV1(value) + for _, existing := range AllowedWatchBlocksListenerTypeV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksListenerTypeV1", value) +} + +// NewWatchBlocksListenerTypeV1FromValue returns a pointer to a valid WatchBlocksListenerTypeV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksListenerTypeV1FromValue(v string) (*WatchBlocksListenerTypeV1, error) { + ev := WatchBlocksListenerTypeV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksListenerTypeV1: valid values are %v", v, AllowedWatchBlocksListenerTypeV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksListenerTypeV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksListenerTypeV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksListenerTypeV1 value +func (v WatchBlocksListenerTypeV1) Ptr() *WatchBlocksListenerTypeV1 { + return &v +} + +type NullableWatchBlocksListenerTypeV1 struct { + value *WatchBlocksListenerTypeV1 + isSet bool +} + +func (v NullableWatchBlocksListenerTypeV1) Get() *WatchBlocksListenerTypeV1 { + return v.value +} + +func (v *NullableWatchBlocksListenerTypeV1) Set(val *WatchBlocksListenerTypeV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksListenerTypeV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksListenerTypeV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksListenerTypeV1(val *WatchBlocksListenerTypeV1) *NullableWatchBlocksListenerTypeV1 { + return &NullableWatchBlocksListenerTypeV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksListenerTypeV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksListenerTypeV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go new file mode 100644 index 00000000000..5fcba36e534 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go @@ -0,0 +1,209 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksOptionsV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksOptionsV1{} + +// WatchBlocksOptionsV1 Options passed when subscribing to block monitoring. +type WatchBlocksOptionsV1 struct { + // Hyperledger Fabric channel to connect to. + ChannelName string `json:"channelName"` + GatewayOptions GatewayOptions `json:"gatewayOptions"` + Type WatchBlocksListenerTypeV1 `json:"type"` + // From which block start monitoring. Defaults to latest. + StartBlock *string `json:"startBlock,omitempty"` +} + +// NewWatchBlocksOptionsV1 instantiates a new WatchBlocksOptionsV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksOptionsV1(channelName string, gatewayOptions GatewayOptions, type_ WatchBlocksListenerTypeV1) *WatchBlocksOptionsV1 { + this := WatchBlocksOptionsV1{} + this.ChannelName = channelName + this.GatewayOptions = gatewayOptions + this.Type = type_ + return &this +} + +// NewWatchBlocksOptionsV1WithDefaults instantiates a new WatchBlocksOptionsV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksOptionsV1WithDefaults() *WatchBlocksOptionsV1 { + this := WatchBlocksOptionsV1{} + return &this +} + +// GetChannelName returns the ChannelName field value +func (o *WatchBlocksOptionsV1) GetChannelName() string { + if o == nil { + var ret string + return ret + } + + return o.ChannelName +} + +// GetChannelNameOk returns a tuple with the ChannelName field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetChannelNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChannelName, true +} + +// SetChannelName sets field value +func (o *WatchBlocksOptionsV1) SetChannelName(v string) { + o.ChannelName = v +} + +// GetGatewayOptions returns the GatewayOptions field value +func (o *WatchBlocksOptionsV1) GetGatewayOptions() GatewayOptions { + if o == nil { + var ret GatewayOptions + return ret + } + + return o.GatewayOptions +} + +// GetGatewayOptionsOk returns a tuple with the GatewayOptions field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetGatewayOptionsOk() (*GatewayOptions, bool) { + if o == nil { + return nil, false + } + return &o.GatewayOptions, true +} + +// SetGatewayOptions sets field value +func (o *WatchBlocksOptionsV1) SetGatewayOptions(v GatewayOptions) { + o.GatewayOptions = v +} + +// GetType returns the Type field value +func (o *WatchBlocksOptionsV1) GetType() WatchBlocksListenerTypeV1 { + if o == nil { + var ret WatchBlocksListenerTypeV1 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetTypeOk() (*WatchBlocksListenerTypeV1, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *WatchBlocksOptionsV1) SetType(v WatchBlocksListenerTypeV1) { + o.Type = v +} + +// GetStartBlock returns the StartBlock field value if set, zero value otherwise. +func (o *WatchBlocksOptionsV1) GetStartBlock() string { + if o == nil || IsNil(o.StartBlock) { + var ret string + return ret + } + return *o.StartBlock +} + +// GetStartBlockOk returns a tuple with the StartBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetStartBlockOk() (*string, bool) { + if o == nil || IsNil(o.StartBlock) { + return nil, false + } + return o.StartBlock, true +} + +// HasStartBlock returns a boolean if a field has been set. +func (o *WatchBlocksOptionsV1) HasStartBlock() bool { + if o != nil && !IsNil(o.StartBlock) { + return true + } + + return false +} + +// SetStartBlock gets a reference to the given string and assigns it to the StartBlock field. +func (o *WatchBlocksOptionsV1) SetStartBlock(v string) { + o.StartBlock = &v +} + +func (o WatchBlocksOptionsV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksOptionsV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["channelName"] = o.ChannelName + toSerialize["gatewayOptions"] = o.GatewayOptions + toSerialize["type"] = o.Type + if !IsNil(o.StartBlock) { + toSerialize["startBlock"] = o.StartBlock + } + return toSerialize, nil +} + +type NullableWatchBlocksOptionsV1 struct { + value *WatchBlocksOptionsV1 + isSet bool +} + +func (v NullableWatchBlocksOptionsV1) Get() *WatchBlocksOptionsV1 { + return v.value +} + +func (v *NullableWatchBlocksOptionsV1) Set(val *WatchBlocksOptionsV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksOptionsV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksOptionsV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksOptionsV1(val *WatchBlocksOptionsV1) *NullableWatchBlocksOptionsV1 { + return &NullableWatchBlocksOptionsV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksOptionsV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksOptionsV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_private_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_private_response_v1.go new file mode 100644 index 00000000000..ae7d4b1fc7c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_private_response_v1.go @@ -0,0 +1,122 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WatchBlocksPrivateResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksPrivateResponseV1{} + +// WatchBlocksPrivateResponseV1 Response that corresponds to Fabric SDK 'private' EventType. +type WatchBlocksPrivateResponseV1 struct { + // Private commited block. + PrivateBlock interface{} `json:"privateBlock"` +} + +// NewWatchBlocksPrivateResponseV1 instantiates a new WatchBlocksPrivateResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksPrivateResponseV1(privateBlock interface{}) *WatchBlocksPrivateResponseV1 { + this := WatchBlocksPrivateResponseV1{} + this.PrivateBlock = privateBlock + return &this +} + +// NewWatchBlocksPrivateResponseV1WithDefaults instantiates a new WatchBlocksPrivateResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksPrivateResponseV1WithDefaults() *WatchBlocksPrivateResponseV1 { + this := WatchBlocksPrivateResponseV1{} + return &this +} + +// GetPrivateBlock returns the PrivateBlock field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *WatchBlocksPrivateResponseV1) GetPrivateBlock() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.PrivateBlock +} + +// GetPrivateBlockOk returns a tuple with the PrivateBlock field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WatchBlocksPrivateResponseV1) GetPrivateBlockOk() (*interface{}, bool) { + if o == nil || IsNil(o.PrivateBlock) { + return nil, false + } + return &o.PrivateBlock, true +} + +// SetPrivateBlock sets field value +func (o *WatchBlocksPrivateResponseV1) SetPrivateBlock(v interface{}) { + o.PrivateBlock = v +} + +func (o WatchBlocksPrivateResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksPrivateResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.PrivateBlock != nil { + toSerialize["privateBlock"] = o.PrivateBlock + } + return toSerialize, nil +} + +type NullableWatchBlocksPrivateResponseV1 struct { + value *WatchBlocksPrivateResponseV1 + isSet bool +} + +func (v NullableWatchBlocksPrivateResponseV1) Get() *WatchBlocksPrivateResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksPrivateResponseV1) Set(val *WatchBlocksPrivateResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksPrivateResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksPrivateResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksPrivateResponseV1(val *WatchBlocksPrivateResponseV1) *NullableWatchBlocksPrivateResponseV1 { + return &NullableWatchBlocksPrivateResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksPrivateResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksPrivateResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go new file mode 100644 index 00000000000..be32747b477 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go @@ -0,0 +1,238 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksResponseV1 - Response block from WatchBlocks endpoint. Depends on 'type' passed in subscription options. +type WatchBlocksResponseV1 struct { + WatchBlocksCactusErrorResponseV1 *WatchBlocksCactusErrorResponseV1 + WatchBlocksCactusTransactionsResponseV1 *WatchBlocksCactusTransactionsResponseV1 + WatchBlocksFilteredResponseV1 *WatchBlocksFilteredResponseV1 + WatchBlocksFullResponseV1 *WatchBlocksFullResponseV1 + WatchBlocksPrivateResponseV1 *WatchBlocksPrivateResponseV1 +} + +// WatchBlocksCactusErrorResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksCactusErrorResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksCactusErrorResponseV1AsWatchBlocksResponseV1(v *WatchBlocksCactusErrorResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksCactusErrorResponseV1: v, + } +} + +// WatchBlocksCactusTransactionsResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksCactusTransactionsResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksCactusTransactionsResponseV1AsWatchBlocksResponseV1(v *WatchBlocksCactusTransactionsResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksCactusTransactionsResponseV1: v, + } +} + +// WatchBlocksFilteredResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksFilteredResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksFilteredResponseV1AsWatchBlocksResponseV1(v *WatchBlocksFilteredResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksFilteredResponseV1: v, + } +} + +// WatchBlocksFullResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksFullResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksFullResponseV1AsWatchBlocksResponseV1(v *WatchBlocksFullResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksFullResponseV1: v, + } +} + +// WatchBlocksPrivateResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksPrivateResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksPrivateResponseV1AsWatchBlocksResponseV1(v *WatchBlocksPrivateResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksPrivateResponseV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *WatchBlocksResponseV1) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into WatchBlocksCactusErrorResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksCactusErrorResponseV1) + if err == nil { + jsonWatchBlocksCactusErrorResponseV1, _ := json.Marshal(dst.WatchBlocksCactusErrorResponseV1) + if string(jsonWatchBlocksCactusErrorResponseV1) == "{}" { // empty struct + dst.WatchBlocksCactusErrorResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksCactusErrorResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksCactusTransactionsResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksCactusTransactionsResponseV1) + if err == nil { + jsonWatchBlocksCactusTransactionsResponseV1, _ := json.Marshal(dst.WatchBlocksCactusTransactionsResponseV1) + if string(jsonWatchBlocksCactusTransactionsResponseV1) == "{}" { // empty struct + dst.WatchBlocksCactusTransactionsResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksCactusTransactionsResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksFilteredResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksFilteredResponseV1) + if err == nil { + jsonWatchBlocksFilteredResponseV1, _ := json.Marshal(dst.WatchBlocksFilteredResponseV1) + if string(jsonWatchBlocksFilteredResponseV1) == "{}" { // empty struct + dst.WatchBlocksFilteredResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksFilteredResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksFullResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksFullResponseV1) + if err == nil { + jsonWatchBlocksFullResponseV1, _ := json.Marshal(dst.WatchBlocksFullResponseV1) + if string(jsonWatchBlocksFullResponseV1) == "{}" { // empty struct + dst.WatchBlocksFullResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksFullResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksPrivateResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksPrivateResponseV1) + if err == nil { + jsonWatchBlocksPrivateResponseV1, _ := json.Marshal(dst.WatchBlocksPrivateResponseV1) + if string(jsonWatchBlocksPrivateResponseV1) == "{}" { // empty struct + dst.WatchBlocksPrivateResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksPrivateResponseV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.WatchBlocksCactusErrorResponseV1 = nil + dst.WatchBlocksCactusTransactionsResponseV1 = nil + dst.WatchBlocksFilteredResponseV1 = nil + dst.WatchBlocksFullResponseV1 = nil + dst.WatchBlocksPrivateResponseV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(WatchBlocksResponseV1)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(WatchBlocksResponseV1)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src WatchBlocksResponseV1) MarshalJSON() ([]byte, error) { + if src.WatchBlocksCactusErrorResponseV1 != nil { + return json.Marshal(&src.WatchBlocksCactusErrorResponseV1) + } + + if src.WatchBlocksCactusTransactionsResponseV1 != nil { + return json.Marshal(&src.WatchBlocksCactusTransactionsResponseV1) + } + + if src.WatchBlocksFilteredResponseV1 != nil { + return json.Marshal(&src.WatchBlocksFilteredResponseV1) + } + + if src.WatchBlocksFullResponseV1 != nil { + return json.Marshal(&src.WatchBlocksFullResponseV1) + } + + if src.WatchBlocksPrivateResponseV1 != nil { + return json.Marshal(&src.WatchBlocksPrivateResponseV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *WatchBlocksResponseV1) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.WatchBlocksCactusErrorResponseV1 != nil { + return obj.WatchBlocksCactusErrorResponseV1 + } + + if obj.WatchBlocksCactusTransactionsResponseV1 != nil { + return obj.WatchBlocksCactusTransactionsResponseV1 + } + + if obj.WatchBlocksFilteredResponseV1 != nil { + return obj.WatchBlocksFilteredResponseV1 + } + + if obj.WatchBlocksFullResponseV1 != nil { + return obj.WatchBlocksFullResponseV1 + } + + if obj.WatchBlocksPrivateResponseV1 != nil { + return obj.WatchBlocksPrivateResponseV1 + } + + // all schemas are nil + return nil +} + +type NullableWatchBlocksResponseV1 struct { + value *WatchBlocksResponseV1 + isSet bool +} + +func (v NullableWatchBlocksResponseV1) Get() *WatchBlocksResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksResponseV1) Set(val *WatchBlocksResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksResponseV1(val *WatchBlocksResponseV1) *NullableWatchBlocksResponseV1 { + return &NullableWatchBlocksResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..361a5039227 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 Websocket requests for monitoring new blocks. +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.hlfabric.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_web_socket_key.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_web_socket_key.go new file mode 100644 index 00000000000..5804d0db0dd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/model_web_socket_key.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" +) + +// checks if the WebSocketKey type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebSocketKey{} + +// WebSocketKey web-socket key details for signing fabric message with private key stored with external client +type WebSocketKey struct { + // session Id to access client + SessionId string `json:"sessionId"` + // signature of the session ID + Signature string `json:"signature"` +} + +// NewWebSocketKey instantiates a new WebSocketKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWebSocketKey(sessionId string, signature string) *WebSocketKey { + this := WebSocketKey{} + this.SessionId = sessionId + this.Signature = signature + return &this +} + +// NewWebSocketKeyWithDefaults instantiates a new WebSocketKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWebSocketKeyWithDefaults() *WebSocketKey { + this := WebSocketKey{} + return &this +} + +// GetSessionId returns the SessionId field value +func (o *WebSocketKey) GetSessionId() string { + if o == nil { + var ret string + return ret + } + + return o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value +// and a boolean to check if the value has been set. +func (o *WebSocketKey) GetSessionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionId, true +} + +// SetSessionId sets field value +func (o *WebSocketKey) SetSessionId(v string) { + o.SessionId = v +} + +// GetSignature returns the Signature field value +func (o *WebSocketKey) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *WebSocketKey) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *WebSocketKey) SetSignature(v string) { + o.Signature = v +} + +func (o WebSocketKey) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebSocketKey) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionId"] = o.SessionId + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableWebSocketKey struct { + value *WebSocketKey + isSet bool +} + +func (v NullableWebSocketKey) Get() *WebSocketKey { + return v.value +} + +func (v *NullableWebSocketKey) Set(val *WebSocketKey) { + v.value = val + v.isSet = true +} + +func (v NullableWebSocketKey) IsSet() bool { + return v.isSet +} + +func (v *NullableWebSocketKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebSocketKey(val *WebSocketKey) *NullableWebSocketKey { + return &NullableWebSocketKey{value: val, isSet: true} +} + +func (v NullableWebSocketKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebSocketKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..642db89c945 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..e1a0fd3cddb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,97 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-fabric_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeployContractGoSourceV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractGoSourceV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DeployContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetBlockV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetBlockV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetTransactionReceiptByTxIDV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetTransactionReceiptByTxIDV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..ded2841c0a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Fabric + +Can perform basic tasks on a fabric ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-fabric + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/README.md index 437073451a7..5c809681429 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Fabric - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata] Can perform basic tasks on a fabric ledger diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 0123ab14aa2..6790859396f 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 926c2682ac8..805741a9282 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 5c4a523a938..377c66a23af 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 84140e4734c..5a8d9246302 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index c8c929b24bd..c71b865cac7 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 11573514c38..3b2f1580958 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index b051f34f7b1..9dc4b54928a 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ChainCodeLifeCycleCommandResponses.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ChainCodeLifeCycleCommandResponses.java index cd634d8b3a5..0c56bb0b244 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ChainCodeLifeCycleCommandResponses.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ChainCodeLifeCycleCommandResponses.java @@ -53,7 +53,7 @@ /** * ChainCodeLifeCycleCommandResponses */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ChainCodeLifeCycleCommandResponses { public static final String SERIALIZED_NAME_PACKAGING = "packaging"; @SerializedName(SERIALIZED_NAME_PACKAGING) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfile.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfile.java index 96011aa23f1..93ab2eb5a0f 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfile.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfile.java @@ -53,7 +53,7 @@ /** * ConnectionProfile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ConnectionProfile { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfileClient.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfileClient.java index f23f7edd07d..7826b227108 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfileClient.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConnectionProfileClient.java @@ -50,7 +50,7 @@ /** * ConnectionProfileClient */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ConnectionProfileClient { public static final String SERIALIZED_NAME_ORGANIZATION = "organization"; @SerializedName(SERIALIZED_NAME_ORGANIZATION) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1501Response.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1501Response.java index 507e5a5d21b..9f11bf745a7 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1501Response.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1501Response.java @@ -50,7 +50,7 @@ /** * DeployContractGoSourceV1501Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractGoSourceV1501Response { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Request.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Request.java index 788adad61dc..987f83d03ac 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Request.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Request.java @@ -56,7 +56,7 @@ /** * DeployContractGoSourceV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractGoSourceV1Request { public static final String SERIALIZED_NAME_POLICY_DSL_SOURCE = "policyDslSource"; @SerializedName(SERIALIZED_NAME_POLICY_DSL_SOURCE) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1RequestConstructorArgs.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1RequestConstructorArgs.java index a2ec650a253..555c94c2348 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1RequestConstructorArgs.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1RequestConstructorArgs.java @@ -52,7 +52,7 @@ /** * DeployContractGoSourceV1RequestConstructorArgs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractGoSourceV1RequestConstructorArgs { public static final String SERIALIZED_NAME_ARGS = "Args"; @SerializedName(SERIALIZED_NAME_ARGS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Response.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Response.java index 7e5aeb7bfb6..646488f8cd7 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Response.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractGoSourceV1Response.java @@ -53,7 +53,7 @@ /** * DeployContractGoSourceV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractGoSourceV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java index 82d6d34fc6f..6306e7ff0ea 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java @@ -57,7 +57,7 @@ /** * DeployContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractV1Request { public static final String SERIALIZED_NAME_CC_LANG = "ccLang"; @SerializedName(SERIALIZED_NAME_CC_LANG) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java index 1eb445450e4..6cdbd32649f 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java @@ -53,7 +53,7 @@ /** * DeployContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeployContractV1Response { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrgFabric2x.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrgFabric2x.java index aadbadbdb98..2d4679be780 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrgFabric2x.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrgFabric2x.java @@ -50,7 +50,7 @@ /** * DeploymentTargetOrgFabric2x */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeploymentTargetOrgFabric2x { public static final String SERIALIZED_NAME_TRANSIENT = "transient"; @SerializedName(SERIALIZED_NAME_TRANSIENT) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrganization.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrganization.java index 2ff9be3d6aa..473f5a7602b 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrganization.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeploymentTargetOrganization.java @@ -50,7 +50,7 @@ /** * DeploymentTargetOrganization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class DeploymentTargetOrganization { public static final String SERIALIZED_NAME_C_O_R_E_P_E_E_R_L_O_C_A_L_M_S_P_I_D = "CORE_PEER_LOCALMSPID"; @SerializedName(SERIALIZED_NAME_C_O_R_E_P_E_E_R_L_O_C_A_L_M_S_P_I_D) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java index cd556c84c07..7cfcf0850fd 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java @@ -50,7 +50,7 @@ /** * ErrorExceptionResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class ErrorExceptionResponseV1 { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FabricSigningCredential.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FabricSigningCredential.java index 1efd7e37ebd..30e57b18359 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FabricSigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FabricSigningCredential.java @@ -53,7 +53,7 @@ /** * FabricSigningCredential */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class FabricSigningCredential { public static final String SERIALIZED_NAME_KEYCHAIN_ID = "keychainId"; @SerializedName(SERIALIZED_NAME_KEYCHAIN_ID) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FileBase64.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FileBase64.java index c87df4bb746..217c9c26fac 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FileBase64.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/FileBase64.java @@ -50,7 +50,7 @@ /** * Represents a file-system file that has a name and a body which holds the file contents as a Base64 encoded string */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class FileBase64 { public static final String SERIALIZED_NAME_BODY = "body"; @SerializedName(SERIALIZED_NAME_BODY) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayDiscoveryOptions.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayDiscoveryOptions.java index 58fc33884c6..cb23aff405f 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayDiscoveryOptions.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayDiscoveryOptions.java @@ -50,7 +50,7 @@ /** * GatewayDiscoveryOptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GatewayDiscoveryOptions { public static final String SERIALIZED_NAME_AS_LOCALHOST = "asLocalhost"; @SerializedName(SERIALIZED_NAME_AS_LOCALHOST) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayEventHandlerOptions.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayEventHandlerOptions.java index 582fd73c64c..c6bee7946ba 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayEventHandlerOptions.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayEventHandlerOptions.java @@ -52,7 +52,7 @@ /** * GatewayEventHandlerOptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GatewayEventHandlerOptions { public static final String SERIALIZED_NAME_COMMIT_TIMEOUT = "commitTimeout"; @SerializedName(SERIALIZED_NAME_COMMIT_TIMEOUT) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptions.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptions.java index a97aa85b52b..96ec7a22a7a 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptions.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptions.java @@ -54,7 +54,7 @@ /** * GatewayOptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GatewayOptions { public static final String SERIALIZED_NAME_CONNECTION_PROFILE = "connectionProfile"; @SerializedName(SERIALIZED_NAME_CONNECTION_PROFILE) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptionsWallet.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptionsWallet.java index 063b7112975..43b69cba5ab 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptionsWallet.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GatewayOptionsWallet.java @@ -51,7 +51,7 @@ /** * GatewayOptionsWallet */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GatewayOptionsWallet { public static final String SERIALIZED_NAME_KEYCHAIN = "keychain"; @SerializedName(SERIALIZED_NAME_KEYCHAIN) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1.java index 51556d52e4b..373463c4d52 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1.java @@ -52,7 +52,7 @@ /** * Request for GetBlock endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockRequestV1 { public static final String SERIALIZED_NAME_CHANNEL_NAME = "channelName"; @SerializedName(SERIALIZED_NAME_CHANNEL_NAME) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1Query.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1Query.java index 6852fb99321..2fed391fbf7 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1Query.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1Query.java @@ -51,7 +51,7 @@ /** * Query selector, caller must provide at least one of them. First found will be used, rest will be ignored, so it's recommended to pass single selector. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockRequestV1Query { public static final String SERIALIZED_NAME_BLOCK_NUMBER = "blockNumber"; @SerializedName(SERIALIZED_NAME_BLOCK_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1QueryBlockHash.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1QueryBlockHash.java index 3da1975fe17..117d394a1ab 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1QueryBlockHash.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestV1QueryBlockHash.java @@ -50,7 +50,7 @@ /** * Select block by it's hash. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockRequestV1QueryBlockHash { public static final String SERIALIZED_NAME_ENCODING = "encoding"; @SerializedName(SERIALIZED_NAME_ENCODING) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseDecodedV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseDecodedV1.java index 6dd44d142d7..3219599d3ba 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseDecodedV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseDecodedV1.java @@ -50,7 +50,7 @@ /** * When skipDecode is false (default) then decoded block object is returned. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockResponseDecodedV1 { public static final String SERIALIZED_NAME_DECODED_BLOCK = "decodedBlock"; @SerializedName(SERIALIZED_NAME_DECODED_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseEncodedV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseEncodedV1.java index 1a8734886b3..a949b1f9607 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseEncodedV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseEncodedV1.java @@ -50,7 +50,7 @@ /** * When skipDecode is true then encoded block Buffer is returned. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockResponseEncodedV1 { public static final String SERIALIZED_NAME_ENCODED_BLOCK = "encodedBlock"; @SerializedName(SERIALIZED_NAME_ENCODED_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseV1.java index 7cb856a8112..e720484c4f8 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockResponseV1.java @@ -57,7 +57,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetBlockResponseV1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(GetBlockResponseV1.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionReceiptResponse.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionReceiptResponse.java index 70c3c8990ba..b212e3a1960 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionReceiptResponse.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionReceiptResponse.java @@ -55,7 +55,7 @@ /** * GetTransactionReceiptResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class GetTransactionReceiptResponse { public static final String SERIALIZED_NAME_BLOCK_NUMBER = "blockNumber"; @SerializedName(SERIALIZED_NAME_BLOCK_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java index c81d260ec86..9e0998e5f38 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java @@ -56,7 +56,7 @@ /** * RunTransactionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class RunTransactionRequest { public static final String SERIALIZED_NAME_ENDORSING_PEERS = "endorsingPeers"; @SerializedName(SERIALIZED_NAME_ENDORSING_PEERS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 71a164c0c53..32ebf30ac01 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -50,7 +50,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_FUNCTION_OUTPUT = "functionOutput"; @SerializedName(SERIALIZED_NAME_FUNCTION_OUTPUT) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SSHExecCommandResponse.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SSHExecCommandResponse.java index 02c85b46308..517f196ef4f 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SSHExecCommandResponse.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SSHExecCommandResponse.java @@ -50,7 +50,7 @@ /** * SSHExecCommandResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class SSHExecCommandResponse { public static final String SERIALIZED_NAME_STDOUT = "stdout"; @SerializedName(SERIALIZED_NAME_STDOUT) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptBlockMetaData.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptBlockMetaData.java index 420fe37a940..17eb9b9107c 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptBlockMetaData.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptBlockMetaData.java @@ -50,7 +50,7 @@ /** * TransactReceiptBlockMetaData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class TransactReceiptBlockMetaData { public static final String SERIALIZED_NAME_MSPID = "mspid"; @SerializedName(SERIALIZED_NAME_MSPID) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionCreator.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionCreator.java index 32cbc233125..1c13ee4a07c 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionCreator.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionCreator.java @@ -50,7 +50,7 @@ /** * TransactReceiptTransactionCreator */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class TransactReceiptTransactionCreator { public static final String SERIALIZED_NAME_MSPID = "mspid"; @SerializedName(SERIALIZED_NAME_MSPID) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionEndorsement.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionEndorsement.java index a1fe4b1864d..60bcbbafe9b 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionEndorsement.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactReceiptTransactionEndorsement.java @@ -50,7 +50,7 @@ /** * TransactReceiptTransactionEndorsement */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class TransactReceiptTransactionEndorsement { public static final String SERIALIZED_NAME_MSPID = "mspid"; @SerializedName(SERIALIZED_NAME_MSPID) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/VaultTransitKey.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/VaultTransitKey.java index c6673af5d7f..d121a389b44 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/VaultTransitKey.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/VaultTransitKey.java @@ -50,7 +50,7 @@ /** * vault key details for signing fabric message with private key stored with transit engine. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class VaultTransitKey { public static final String SERIALIZED_NAME_KEY_NAME = "keyName"; @SerializedName(SERIALIZED_NAME_KEY_NAME) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusErrorResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusErrorResponseV1.java index db86c55433b..2ae1a71aab1 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusErrorResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusErrorResponseV1.java @@ -51,7 +51,7 @@ /** * Error response from WatchBlocks operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksCactusErrorResponseV1 { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsEventV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsEventV1.java index 2a05bd607a6..25a995e0233 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsEventV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsEventV1.java @@ -52,7 +52,7 @@ /** * Transaction summary from commited block. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksCactusTransactionsEventV1 { public static final String SERIALIZED_NAME_CHAINCODE_ID = "chaincodeId"; @SerializedName(SERIALIZED_NAME_CHAINCODE_ID) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsResponseV1.java index a05055b0474..f36cddb6ec8 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksCactusTransactionsResponseV1.java @@ -53,7 +53,7 @@ /** * Custom response containing block transactions summary. Compatible with legacy fabric-socketio connector monitoring. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksCactusTransactionsResponseV1 { public static final String SERIALIZED_NAME_CACTUS_TRANSACTIONS_EVENTS = "cactusTransactionsEvents"; @SerializedName(SERIALIZED_NAME_CACTUS_TRANSACTIONS_EVENTS) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFilteredResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFilteredResponseV1.java index 4e6ec7f613a..5fe0c38435c 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFilteredResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFilteredResponseV1.java @@ -50,7 +50,7 @@ /** * Response that corresponds to Fabric SDK 'filtered' EventType. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksFilteredResponseV1 { public static final String SERIALIZED_NAME_FILTERED_BLOCK = "filteredBlock"; @SerializedName(SERIALIZED_NAME_FILTERED_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFullResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFullResponseV1.java index 37b0478dbf7..b09ac2006a9 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFullResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksFullResponseV1.java @@ -50,7 +50,7 @@ /** * Response that corresponds to Fabric SDK 'full' EventType. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksFullResponseV1 { public static final String SERIALIZED_NAME_FULL_BLOCK = "fullBlock"; @SerializedName(SERIALIZED_NAME_FULL_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java index d1fac977fb2..82b5674f8d6 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java @@ -52,7 +52,7 @@ /** * Options passed when subscribing to block monitoring. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksOptionsV1 { public static final String SERIALIZED_NAME_CHANNEL_NAME = "channelName"; @SerializedName(SERIALIZED_NAME_CHANNEL_NAME) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksPrivateResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksPrivateResponseV1.java index b54016f496d..72915e540a0 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksPrivateResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksPrivateResponseV1.java @@ -50,7 +50,7 @@ /** * Response that corresponds to Fabric SDK 'private' EventType. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksPrivateResponseV1 { public static final String SERIALIZED_NAME_PRIVATE_BLOCK = "privateBlock"; @SerializedName(SERIALIZED_NAME_PRIVATE_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java index c94e90b2b4d..63aa914c497 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java @@ -64,7 +64,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WatchBlocksResponseV1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(WatchBlocksResponseV1.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WebSocketKey.java b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WebSocketKey.java index 41f8ffdd02b..a0fce948595 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WebSocketKey.java +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WebSocketKey.java @@ -50,7 +50,7 @@ /** * web-socket key details for signing fabric message with private key stored with external client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:24.077334429+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:32.675340422+05:30[Asia/Kolkata]") public class WebSocketKey { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..1b6e67e9149 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,111 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/AddAssetQuantityRequestParameters.md +docs/AddPeerRequestParameters.md +docs/AddSignatoryRequestParameters.md +docs/AppendRoleRequestParameters.md +docs/CallEngineRequestParameters.md +docs/CompareAndSetAccountDetailRequestParameters.md +docs/CreateAccountRequestParameters.md +docs/CreateAssetRequestParameters.md +docs/CreateDomainRequestParameters.md +docs/CreateRoleRequestParameters.md +docs/DefaultApi.md +docs/DetachRoleRequestParameters.md +docs/ErrorExceptionJsonResponseV1.md +docs/ErrorExceptionResponseV1.md +docs/GenerateTransactionRequestV1.md +docs/GetAccountAssetTransactionsRequestParameters.md +docs/GetAccountAssetsRequestParameters.md +docs/GetAccountDetailRequestParameters.md +docs/GetAccountRequestParameters.md +docs/GetAccountTransactionsRequestParameters.md +docs/GetAssetInfoRequestParameters.md +docs/GetBlockRequestParameters.md +docs/GetEngineReceiptsRequestParameters.md +docs/GetPendingTransactionsRequestParameters.md +docs/GetRolePermissionsRequestParameters.md +docs/GetSignatoriesRequestParameters.md +docs/GetTransactionsRequestParameters.md +docs/GrantPermissionRequestParameters.md +docs/IrohaBaseConfig.md +docs/IrohaBlockProgress.md +docs/IrohaBlockResponse.md +docs/IrohaBlockResponsePayload.md +docs/IrohaCommand.md +docs/IrohaQuery.md +docs/IrohaSocketIOTransactV1.md +docs/KeyPair.md +docs/RemovePeerRequestParameters.md +docs/RemoveSignatoryRequestParameters.md +docs/RevokePermissionRequestParameters.md +docs/RunTransactionRequestV1.md +docs/RunTransactionRequestV1Body.md +docs/RunTransactionRequestV1Params.md +docs/RunTransactionResponse.md +docs/RunTransactionSignedRequestV1.md +docs/SetAccountDetailRequestParameters.md +docs/SetAccountQuorumRequestParameters.md +docs/SubtractAssetQuantityRequestParameters.md +docs/TransferAssetRequestParameters.md +docs/WatchBlocksV1.md +git_push.sh +go.mod +go.sum +model_add_asset_quantity_request_parameters.go +model_add_peer_request_parameters.go +model_add_signatory_request_parameters.go +model_append_role_request_parameters.go +model_call_engine_request_parameters.go +model_compare_and_set_account_detail_request_parameters.go +model_create_account_request_parameters.go +model_create_asset_request_parameters.go +model_create_domain_request_parameters.go +model_create_role_request_parameters.go +model_detach_role_request_parameters.go +model_error_exception_json_response_v1.go +model_error_exception_response_v1.go +model_generate_transaction_request_v1.go +model_get_account_asset_transactions_request_parameters.go +model_get_account_assets_request_parameters.go +model_get_account_detail_request_parameters.go +model_get_account_request_parameters.go +model_get_account_transactions_request_parameters.go +model_get_asset_info_request_parameters.go +model_get_block_request_parameters.go +model_get_engine_receipts_request_parameters.go +model_get_pending_transactions_request_parameters.go +model_get_role_permissions_request_parameters.go +model_get_signatories_request_parameters.go +model_get_transactions_request_parameters.go +model_grant_permission_request_parameters.go +model_iroha_base_config.go +model_iroha_block_progress.go +model_iroha_block_response.go +model_iroha_block_response_payload.go +model_iroha_command.go +model_iroha_query.go +model_iroha_socket_io_transact_v1.go +model_key_pair.go +model_remove_peer_request_parameters.go +model_remove_signatory_request_parameters.go +model_revoke_permission_request_parameters.go +model_run_transaction_request_v1.go +model_run_transaction_request_v1_body.go +model_run_transaction_request_v1_params.go +model_run_transaction_response.go +model_run_transaction_signed_request_v1.go +model_set_account_detail_request_parameters.go +model_set_account_quorum_request_parameters.go +model_subtract_asset_quantity_request_parameters.go +model_transfer_asset_request_parameters.go +model_watch_blocks_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..62e99df88f0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,161 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-iroha + +Can perform basic tasks on a Iroha ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-iroha "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GenerateTransactionV1**](docs/DefaultApi.md#generatetransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/generate-transaction | Generate transaction that can be signed locally. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/run-transaction | Executes a transaction on a Iroha ledger + + +## Documentation For Models + + - [AddAssetQuantityRequestParameters](docs/AddAssetQuantityRequestParameters.md) + - [AddPeerRequestParameters](docs/AddPeerRequestParameters.md) + - [AddSignatoryRequestParameters](docs/AddSignatoryRequestParameters.md) + - [AppendRoleRequestParameters](docs/AppendRoleRequestParameters.md) + - [CallEngineRequestParameters](docs/CallEngineRequestParameters.md) + - [CompareAndSetAccountDetailRequestParameters](docs/CompareAndSetAccountDetailRequestParameters.md) + - [CreateAccountRequestParameters](docs/CreateAccountRequestParameters.md) + - [CreateAssetRequestParameters](docs/CreateAssetRequestParameters.md) + - [CreateDomainRequestParameters](docs/CreateDomainRequestParameters.md) + - [CreateRoleRequestParameters](docs/CreateRoleRequestParameters.md) + - [DetachRoleRequestParameters](docs/DetachRoleRequestParameters.md) + - [ErrorExceptionJsonResponseV1](docs/ErrorExceptionJsonResponseV1.md) + - [ErrorExceptionResponseV1](docs/ErrorExceptionResponseV1.md) + - [GenerateTransactionRequestV1](docs/GenerateTransactionRequestV1.md) + - [GetAccountAssetTransactionsRequestParameters](docs/GetAccountAssetTransactionsRequestParameters.md) + - [GetAccountAssetsRequestParameters](docs/GetAccountAssetsRequestParameters.md) + - [GetAccountDetailRequestParameters](docs/GetAccountDetailRequestParameters.md) + - [GetAccountRequestParameters](docs/GetAccountRequestParameters.md) + - [GetAccountTransactionsRequestParameters](docs/GetAccountTransactionsRequestParameters.md) + - [GetAssetInfoRequestParameters](docs/GetAssetInfoRequestParameters.md) + - [GetBlockRequestParameters](docs/GetBlockRequestParameters.md) + - [GetEngineReceiptsRequestParameters](docs/GetEngineReceiptsRequestParameters.md) + - [GetPendingTransactionsRequestParameters](docs/GetPendingTransactionsRequestParameters.md) + - [GetRolePermissionsRequestParameters](docs/GetRolePermissionsRequestParameters.md) + - [GetSignatoriesRequestParameters](docs/GetSignatoriesRequestParameters.md) + - [GetTransactionsRequestParameters](docs/GetTransactionsRequestParameters.md) + - [GrantPermissionRequestParameters](docs/GrantPermissionRequestParameters.md) + - [IrohaBaseConfig](docs/IrohaBaseConfig.md) + - [IrohaBlockProgress](docs/IrohaBlockProgress.md) + - [IrohaBlockResponse](docs/IrohaBlockResponse.md) + - [IrohaBlockResponsePayload](docs/IrohaBlockResponsePayload.md) + - [IrohaCommand](docs/IrohaCommand.md) + - [IrohaQuery](docs/IrohaQuery.md) + - [IrohaSocketIOTransactV1](docs/IrohaSocketIOTransactV1.md) + - [KeyPair](docs/KeyPair.md) + - [RemovePeerRequestParameters](docs/RemovePeerRequestParameters.md) + - [RemoveSignatoryRequestParameters](docs/RemoveSignatoryRequestParameters.md) + - [RevokePermissionRequestParameters](docs/RevokePermissionRequestParameters.md) + - [RunTransactionRequestV1](docs/RunTransactionRequestV1.md) + - [RunTransactionRequestV1Body](docs/RunTransactionRequestV1Body.md) + - [RunTransactionRequestV1Params](docs/RunTransactionRequestV1Params.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [RunTransactionSignedRequestV1](docs/RunTransactionSignedRequestV1.md) + - [SetAccountDetailRequestParameters](docs/SetAccountDetailRequestParameters.md) + - [SetAccountQuorumRequestParameters](docs/SetAccountQuorumRequestParameters.md) + - [SubtractAssetQuantityRequestParameters](docs/SubtractAssetQuantityRequestParameters.md) + - [TransferAssetRequestParameters](docs/TransferAssetRequestParameters.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..08cab9c1857 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,897 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Iroha ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Iroha + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/run-transaction: + post: + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequestV1Body' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionJsonResponseV1' + description: Bad Request error. + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionJsonResponseV1' + description: Method Not Allowed error. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionJsonResponseV1' + description: Internal Server Error. + summary: Executes a transaction on a Iroha ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/generate-transaction: + post: + operationId: generateTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateTransactionRequestV1' + responses: + "200": + content: + application/octet-stream: + schema: + type: string + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Bad Request Error + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error + summary: Generate transaction that can be signed locally. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/generate-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/get-prometheus-exporter-metrics +components: + schemas: + IrohaCommand: + enum: + - createAccount + - setAccountDetail + - setAccountQuorum + - compareAndSetAccountDetail + - createAsset + - addAssetQuantity + - subtractAssetQuantity + - transferAsset + - createDomain + - createRole + - detachRole + - appendRole + - addSignatory + - removeSignatory + - grantPermission + - revokePermission + - addPeer + - removePeer + - setSettingValue + - callEngine + type: string + x-enum-descriptions: + - "Make entity in the system, capable of sending transactions or queries, storing\ + \ signatories, personal data and identifiers." + - Set key-value information for a given account. + - "Set the number of signatories required to confirm the identity of a user,\ + \ who creates the transaction." + - Set key-value information for a given account if the old value matches the + value passed. + - "Create a new type of asset, unique in a domain. An asset is a countable representation\ + \ of a commodity." + - Increase the quantity of an asset on account of transaction creator. + - Decrease the number of assets on account of transaction creator. + - "Share assets within the account in peer network: in the way that source account\ + \ transfers assets to the target account." + - "Make new domain in Iroha network, which is a group of accounts." + - Create a new role in the system from the set of permissions. + - Detach a role from the set of roles of an account. + - "Promote an account to some created role in the system, where a role is a\ + \ set of permissions account has to perform an action (command or query)." + - Add an identifier to the account. Such identifier is a public key of another + device or a public key of another user. + - "Remove a public key, associated with an identity, from an account" + - Give another account rights to perform actions on the account of transaction + sender (give someone right to do something with my account). + - Revoke or dismiss given granted permission from another account in the network. + - Write into ledger the fact of peer addition into the peer network. + - Write into ledger the fact of peer removal from the network. + - "This command is not available for use, it was added for backward compatibility\ + \ with Iroha." + - This command is not availalbe for use because it is related to smart contract. + x-enum-varnames: + - CreateAccount + - SetAccountDetail + - SetAccountQuorum + - CompareAndSetAccountDetail + - CreateAsset + - AddAssetQuantity + - SubtractAssetQuantity + - TransferAsset + - CreateDomain + - CreateRole + - DetachRole + - AppendRole + - AddSignatory + - RemoveSignatory + - GrantPermission + - RevokePermission + - AddPeer + - RemovePeer + - SetSettingValue + - CallEngine + IrohaQuery: + enum: + - getAccount + - getAccountDetail + - getAssetInfo + - getAccountAssets + - getTransactions + - getPendingTransactions + - getAccountTransactions + - getAccountAssetTransactions + - getRoles + - getSignatories + - getRolePermissions + - getBlock + - getEngineReceipts + - fetchCommits + - getPeers + type: string + x-enum-descriptions: + - To get the state of an account + - To get details of the account. + - To get information on the given asset (as for now - its precision). + - To get the state of all assets in an account (a balance). + - "To retrieve information about transactions, based on their hashes." + - To retrieve a list of pending (not fully signed) multisignature transactions + or batches of transactions issued by account of query creator. + - To retrieve a list of transactions per account. + - To retrieve all transactions associated with given account and asset. + - To get existing roles in the system. + - "To get signatories, which act as an identity of the account." + - To get available permissions per role in the system. + - "To get a specific block, using its height as an identifier." + - To retrieve a receipt of a CallEngine command. Allows to access the event + log created during computations inside the EVM. + - "To get new blocks as soon as they are committed, a user can invoke FetchCommits\ + \ RPC call to Iroha network." + - A query that returns a list of peers in Iroha network. + x-enum-varnames: + - GetAccount + - GetAccountDetail + - GetAssetInfo + - GetAccountAssets + - GetTransactions + - GetPendingTransactions + - GetAccountTransactions + - GetAccountAssetTransactions + - GetRoles + - GetSignatories + - GetRolePermissions + - GetBlock + - GetEngineReceipts + - FetchCommits + - GetPeers + KeyPair: + properties: + publicKey: + description: SHA-3 ed25519 public keys of length 64 are recommended. + example: 313a07e6384776ed95447710d15e59148473ccfc052a681317a72a69f2a49910 + nullable: false + type: string + privateKey: + description: SHA-3 ed25519 private keys of length 64 are recommended. + example: f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70 + nullable: false + type: string + required: + - privateKey + - publicKey + type: object + RunTransactionRequestV1Params: + oneOf: + - items: {} + type: array + - $ref: '#/components/schemas/AddAssetQuantityRequestParameters' + - $ref: '#/components/schemas/AddPeerRequestParameters' + - $ref: '#/components/schemas/AddSignatoryRequestParameters' + - $ref: '#/components/schemas/AppendRoleRequestParameters' + - $ref: '#/components/schemas/CallEngineRequestParameters' + - $ref: '#/components/schemas/CreateAccountRequestParameters' + - $ref: '#/components/schemas/CreateAssetRequestParameters' + - $ref: '#/components/schemas/CreateDomainRequestParameters' + - $ref: '#/components/schemas/CreateRoleRequestParameters' + - $ref: '#/components/schemas/DetachRoleRequestParameters' + - $ref: '#/components/schemas/GrantPermissionRequestParameters' + - $ref: '#/components/schemas/RemovePeerRequestParameters' + - $ref: '#/components/schemas/RemoveSignatoryRequestParameters' + - $ref: '#/components/schemas/RevokePermissionRequestParameters' + - $ref: '#/components/schemas/SetAccountDetailRequestParameters' + - $ref: '#/components/schemas/SetAccountQuorumRequestParameters' + - $ref: '#/components/schemas/SubtractAssetQuantityRequestParameters' + - $ref: '#/components/schemas/TransferAssetRequestParameters' + - $ref: '#/components/schemas/CompareAndSetAccountDetailRequestParameters' + - $ref: '#/components/schemas/GetAccountRequestParameters' + - $ref: '#/components/schemas/GetBlockRequestParameters' + - $ref: '#/components/schemas/GetSignatoriesRequestParameters' + - $ref: '#/components/schemas/GetTransactionsRequestParameters' + - $ref: '#/components/schemas/GetPendingTransactionsRequestParameters' + - $ref: '#/components/schemas/GetAccountTransactionsRequestParameters' + - $ref: '#/components/schemas/GetAccountAssetTransactionsRequestParameters' + - $ref: '#/components/schemas/GetAccountAssetsRequestParameters' + - $ref: '#/components/schemas/GetAccountDetailRequestParameters' + - $ref: '#/components/schemas/GetAssetInfoRequestParameters' + - $ref: '#/components/schemas/GetRolePermissionsRequestParameters' + - $ref: '#/components/schemas/GetEngineReceiptsRequestParameters' + RunTransactionRequestV1Body: + oneOf: + - $ref: '#/components/schemas/RunTransactionRequestV1' + - $ref: '#/components/schemas/RunTransactionSignedRequestV1' + RunTransactionRequestV1: + additionalProperties: false + properties: + commandName: + nullable: false + type: string + baseConfig: + $ref: '#/components/schemas/IrohaBaseConfig' + params: + $ref: '#/components/schemas/RunTransactionRequestV1Params' + required: + - baseConfig + - commandName + - params + type: object + AddAssetQuantityRequestParameters: + description: The list of arguments to pass in to the transaction request to + Add Asset Quantity. + properties: + assetId: + type: string + amount: + type: number + required: + - amount + - assetId + type: object + AddPeerRequestParameters: + description: The list of arguments to pass in to the transaction request to + Add Peer. + properties: + address: + type: string + peerKey: + type: string + tlsCertificate: + type: string + syncingPeer: + type: boolean + required: + - address + - peerKey + type: object + AddSignatoryRequestParameters: + description: The list of arguments to pass in to the transaction request to + Add Signatory. + properties: + accountId: + type: string + publicKey: + type: string + required: + - accountId + - publicKey + type: object + AppendRoleRequestParameters: + description: The list of arguments to pass in to the transaction request to + Append Role. + properties: + accountId: + type: string + roleName: + type: string + required: + - accountId + - roleName + type: object + CallEngineRequestParameters: + description: The list of arguments to pass in to the transaction request to + Call Engine. + properties: + caller: + type: string + callee: + type: string + input: + type: string + required: + - callee + - caller + - input + type: object + CreateAccountRequestParameters: + description: The list of arguments to pass in to the transaction request to + Create Account. + properties: + accountName: + type: string + domainId: + type: string + publicKey: + type: string + required: + - accountName + - domainId + - publicKey + type: object + CreateAssetRequestParameters: + description: The list of arguments to pass in to the transaction request to + Create Asset. + properties: + assetName: + type: string + domainId: + type: string + precision: + type: integer + required: + - assetName + - domainId + - precision + type: object + CreateDomainRequestParameters: + description: The list of arguments to pass in to the transaction request to + Create Domain. + properties: + domainId: + type: string + defaultRole: + type: string + required: + - defaultRole + - domainId + type: object + CreateRoleRequestParameters: + description: The list of arguments to pass in to the transaction request to + Create Role. + properties: + roleName: + type: string + permissionsList: + items: + type: number + type: array + required: + - permissionsList + - roleName + type: object + DetachRoleRequestParameters: + description: The list of arguments to pass in to the transaction request to + Detach Role. + properties: + accountId: + type: string + roleName: + type: string + required: + - accountId + - roleName + type: object + GrantPermissionRequestParameters: + description: The list of arguments to pass in to the transaction request to + Grant Permission. + properties: + accountId: + type: string + permission: + type: string + required: + - accountId + - permission + type: object + RemovePeerRequestParameters: + description: The list of arguments to pass in to the transaction request to + Remove Peer. + properties: + publicKey: + type: string + required: + - publicKey + type: object + RemoveSignatoryRequestParameters: + description: The list of arguments to pass in to the transaction request to + Remove Signatory. + properties: + accountId: + type: string + publicKey: + type: string + required: + - accountId + - publicKey + type: object + RevokePermissionRequestParameters: + description: The list of arguments to pass in to the transaction request to + Revoke Permission. + properties: + accountId: + type: string + permission: + type: number + required: + - accountId + - permission + type: object + SetAccountDetailRequestParameters: + description: The list of arguments to pass in to the transaction request to + Set Account Detail. + properties: + accountId: + type: string + key: + type: string + value: + type: string + required: + - accountId + - key + - value + type: object + SetAccountQuorumRequestParameters: + description: The list of arguments to pass in to the transaction request to + Set Account Quorum. + properties: + accountId: + type: string + quorum: + type: integer + required: + - accountId + - quorum + type: object + SubtractAssetQuantityRequestParameters: + description: The list of arguments to pass in to the transaction request to + Subtract Asset Quantity. + properties: + assetId: + type: string + amount: + type: number + required: + - amount + - assetId + type: object + TransferAssetRequestParameters: + description: The list of arguments to pass in to the transaction request to + Transfer Asset. + properties: + srcAccountId: + type: string + destAccountId: + type: string + assetId: + type: string + description: + type: string + amount: + type: number + required: + - amount + - assetId + - description + - destAccountId + - srcAccountId + type: object + CompareAndSetAccountDetailRequestParameters: + description: The list of arguments to pass in to the transaction request to + Compare And Set Account Detail. + properties: + accountId: + type: string + key: + type: string + value: + type: string + oldValue: + type: string + check_empty: + type: boolean + required: + - accountId + - check_empty + - key + - value + type: object + GetAccountRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Account. + properties: + accountId: + type: string + required: + - accountId + type: object + GetBlockRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Block. + properties: + height: + type: integer + required: + - height + type: object + GetSignatoriesRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Signatories. + properties: + accountId: + type: string + required: + - accountId + type: object + GetTransactionsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Transactions. + properties: + txHashesList: + items: + type: string + type: array + required: + - txHashesList + type: object + GetPendingTransactionsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Pending Transactions. + properties: + pageSize: + type: integer + firstTxHash: + type: string + firstTxTime: + type: object + lastTxTime: + type: object + required: + - pageSize + type: object + GetAccountTransactionsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Account Transactions. + properties: + accountId: + type: string + pageSize: + type: integer + firstTxHash: + type: string + firstTxTime: + type: object + lastTxTime: + type: object + firstTxHeight: + type: integer + lastTxHeight: + type: integer + required: + - accountId + - firstTxHash + - pageSize + type: object + GetAccountAssetTransactionsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Account Asset Transactions. + properties: + accountId: + type: string + assetId: + type: string + pageSize: + type: integer + firstTxHash: + type: string + required: + - accountId + - assetId + - firstTxHash + - pageSize + type: object + GetAccountAssetsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Account Assets. + properties: + accountId: + type: string + pageSize: + type: number + firstAssetId: + type: string + required: + - accountId + - pageSize + type: object + GetAccountDetailRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Account Detail. + properties: + accountId: + type: string + key: + type: string + writer: + type: string + pageSize: + type: integer + paginationKey: + type: string + paginationWriter: + type: string + required: + - pageSize + - paginationKey + - paginationWriter + type: object + GetAssetInfoRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Asset Info. + properties: + assetId: + type: string + required: + - assetId + type: object + GetRolePermissionsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Role Permissions. + properties: + roleId: + type: string + required: + - roleId + type: object + GetEngineReceiptsRequestParameters: + description: The list of arguments to pass in to the transaction request to + Get Engine Receipts. + properties: + txHash: + type: string + required: + - txHash + type: object + RunTransactionSignedRequestV1: + properties: + signedTransaction: + description: Signed transaction binary data received from generate-transaction + endpoint. + type: string + baseConfig: + $ref: '#/components/schemas/IrohaBaseConfig' + required: + - signedTransaction + type: object + GenerateTransactionRequestV1: + additionalProperties: false + example: + creatorAccountId: creatorAccountId + commandName: "" + commandParams: "{}" + quorum: 0.8008281904610115 + properties: + commandName: + description: Iroha command name. + nullable: false + type: IrohaCommand + commandParams: + description: Parameters for iroha command specified in commandName + type: object + creatorAccountId: + description: Sender account id + nullable: false + type: string + quorum: + default: 1 + description: Requested transaction quorum + nullable: false + type: number + required: + - commandName + - commandParams + - creatorAccountId + type: object + IrohaBaseConfig: + additionalProperties: true + properties: + irohaHost: + nullable: false + type: string + irohaPort: + nullable: false + type: number + creatorAccountId: + nullable: false + type: string + privKey: + default: [] + items: {} + nullable: false + type: array + quorum: + nullable: false + type: number + timeoutLimit: + nullable: false + type: number + tls: + description: Can only be set to false for an insecure grpc connection. + nullable: false + type: boolean + monitorMode: + description: Flag used for monitoring. It changes default beahviour of transaction + wrapper so it return error to caller instead of throwing RuntimeError + straight away. + nullable: true + type: boolean + type: object + RunTransactionResponse: + example: + transactionReceipt: "" + properties: + transactionReceipt: {} + required: + - transactionReceipt + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + ErrorExceptionJsonResponseV1: + properties: + message: + nullable: false + type: string + name: + nullable: false + type: string + error: + nullable: false + type: string + stack: + nullable: false + type: string + cause: + nullable: false + type: string + required: + - message + type: object + ErrorExceptionResponseV1: + properties: + message: + nullable: false + type: string + error: + nullable: false + type: string + required: + - error + - message + type: object + WatchBlocksV1: + enum: + - org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + - SendAsyncRequest + - SendSyncRequest + IrohaSocketIOTransactV1: + enum: + - org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendAsyncRequest + - org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendSyncRequest + type: string + x-enum-varnames: + - SendAsyncRequest + - SendSyncRequest + IrohaBlockResponse: + properties: + payload: + $ref: '#/components/schemas/IrohaBlockResponse_payload' + signaturesList: + items: {} + type: array + required: + - payload + - signaturesList + type: object + IrohaBlockProgress: + properties: + transactionReceipt: + $ref: '#/components/schemas/IrohaBlockResponse' + required: + - transactionReceipt + type: object + IrohaBlockResponse_payload: + properties: + transactionsList: + items: {} + type: array + txNumber: + type: number + height: + type: number + prevBlockHash: + type: string + createdTime: + type: number + rejectedTransactionsHashesList: + items: {} + type: array + required: + - createdTime + - height + - prevBlockHash + - rejectedTransactionsHashesList + - transactionsList + - txNumber + type: object diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..d9c302786a6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,383 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGenerateTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + generateTransactionRequestV1 *GenerateTransactionRequestV1 +} + +func (r ApiGenerateTransactionV1Request) GenerateTransactionRequestV1(generateTransactionRequestV1 GenerateTransactionRequestV1) ApiGenerateTransactionV1Request { + r.generateTransactionRequestV1 = &generateTransactionRequestV1 + return r +} + +func (r ApiGenerateTransactionV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GenerateTransactionV1Execute(r) +} + +/* +GenerateTransactionV1 Generate transaction that can be signed locally. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTransactionV1Request +*/ +func (a *DefaultApiService) GenerateTransactionV1(ctx context.Context) ApiGenerateTransactionV1Request { + return ApiGenerateTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GenerateTransactionV1Execute(r ApiGenerateTransactionV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GenerateTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/generate-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/octet-stream", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.generateTransactionRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequestV1Body *RunTransactionRequestV1Body +} + +func (r ApiRunTransactionV1Request) RunTransactionRequestV1Body(runTransactionRequestV1Body RunTransactionRequestV1Body) ApiRunTransactionV1Request { + r.runTransactionRequestV1Body = &runTransactionRequestV1Body + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Executes a transaction on a Iroha ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequestV1Body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorExceptionJsonResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorExceptionJsonResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionJsonResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..02dfb0d0b89 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Iroha API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..5904955e378 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddAssetQuantityRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddAssetQuantityRequestParameters.md new file mode 100644 index 00000000000..09652006bc0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddAssetQuantityRequestParameters.md @@ -0,0 +1,72 @@ +# AddAssetQuantityRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **string** | | +**Amount** | **float32** | | + +## Methods + +### NewAddAssetQuantityRequestParameters + +`func NewAddAssetQuantityRequestParameters(assetId string, amount float32, ) *AddAssetQuantityRequestParameters` + +NewAddAssetQuantityRequestParameters instantiates a new AddAssetQuantityRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddAssetQuantityRequestParametersWithDefaults + +`func NewAddAssetQuantityRequestParametersWithDefaults() *AddAssetQuantityRequestParameters` + +NewAddAssetQuantityRequestParametersWithDefaults instantiates a new AddAssetQuantityRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetId + +`func (o *AddAssetQuantityRequestParameters) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *AddAssetQuantityRequestParameters) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *AddAssetQuantityRequestParameters) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + +### GetAmount + +`func (o *AddAssetQuantityRequestParameters) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *AddAssetQuantityRequestParameters) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *AddAssetQuantityRequestParameters) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddPeerRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddPeerRequestParameters.md new file mode 100644 index 00000000000..5d993684965 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddPeerRequestParameters.md @@ -0,0 +1,124 @@ +# AddPeerRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**PeerKey** | **string** | | +**TlsCertificate** | Pointer to **string** | | [optional] +**SyncingPeer** | Pointer to **bool** | | [optional] + +## Methods + +### NewAddPeerRequestParameters + +`func NewAddPeerRequestParameters(address string, peerKey string, ) *AddPeerRequestParameters` + +NewAddPeerRequestParameters instantiates a new AddPeerRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddPeerRequestParametersWithDefaults + +`func NewAddPeerRequestParametersWithDefaults() *AddPeerRequestParameters` + +NewAddPeerRequestParametersWithDefaults instantiates a new AddPeerRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *AddPeerRequestParameters) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *AddPeerRequestParameters) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *AddPeerRequestParameters) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetPeerKey + +`func (o *AddPeerRequestParameters) GetPeerKey() string` + +GetPeerKey returns the PeerKey field if non-nil, zero value otherwise. + +### GetPeerKeyOk + +`func (o *AddPeerRequestParameters) GetPeerKeyOk() (*string, bool)` + +GetPeerKeyOk returns a tuple with the PeerKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerKey + +`func (o *AddPeerRequestParameters) SetPeerKey(v string)` + +SetPeerKey sets PeerKey field to given value. + + +### GetTlsCertificate + +`func (o *AddPeerRequestParameters) GetTlsCertificate() string` + +GetTlsCertificate returns the TlsCertificate field if non-nil, zero value otherwise. + +### GetTlsCertificateOk + +`func (o *AddPeerRequestParameters) GetTlsCertificateOk() (*string, bool)` + +GetTlsCertificateOk returns a tuple with the TlsCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTlsCertificate + +`func (o *AddPeerRequestParameters) SetTlsCertificate(v string)` + +SetTlsCertificate sets TlsCertificate field to given value. + +### HasTlsCertificate + +`func (o *AddPeerRequestParameters) HasTlsCertificate() bool` + +HasTlsCertificate returns a boolean if a field has been set. + +### GetSyncingPeer + +`func (o *AddPeerRequestParameters) GetSyncingPeer() bool` + +GetSyncingPeer returns the SyncingPeer field if non-nil, zero value otherwise. + +### GetSyncingPeerOk + +`func (o *AddPeerRequestParameters) GetSyncingPeerOk() (*bool, bool)` + +GetSyncingPeerOk returns a tuple with the SyncingPeer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncingPeer + +`func (o *AddPeerRequestParameters) SetSyncingPeer(v bool)` + +SetSyncingPeer sets SyncingPeer field to given value. + +### HasSyncingPeer + +`func (o *AddPeerRequestParameters) HasSyncingPeer() bool` + +HasSyncingPeer returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddSignatoryRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddSignatoryRequestParameters.md new file mode 100644 index 00000000000..7793a8c3906 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AddSignatoryRequestParameters.md @@ -0,0 +1,72 @@ +# AddSignatoryRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**PublicKey** | **string** | | + +## Methods + +### NewAddSignatoryRequestParameters + +`func NewAddSignatoryRequestParameters(accountId string, publicKey string, ) *AddSignatoryRequestParameters` + +NewAddSignatoryRequestParameters instantiates a new AddSignatoryRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddSignatoryRequestParametersWithDefaults + +`func NewAddSignatoryRequestParametersWithDefaults() *AddSignatoryRequestParameters` + +NewAddSignatoryRequestParametersWithDefaults instantiates a new AddSignatoryRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *AddSignatoryRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *AddSignatoryRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *AddSignatoryRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPublicKey + +`func (o *AddSignatoryRequestParameters) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *AddSignatoryRequestParameters) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *AddSignatoryRequestParameters) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AppendRoleRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AppendRoleRequestParameters.md new file mode 100644 index 00000000000..e91695016ee --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/AppendRoleRequestParameters.md @@ -0,0 +1,72 @@ +# AppendRoleRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**RoleName** | **string** | | + +## Methods + +### NewAppendRoleRequestParameters + +`func NewAppendRoleRequestParameters(accountId string, roleName string, ) *AppendRoleRequestParameters` + +NewAppendRoleRequestParameters instantiates a new AppendRoleRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppendRoleRequestParametersWithDefaults + +`func NewAppendRoleRequestParametersWithDefaults() *AppendRoleRequestParameters` + +NewAppendRoleRequestParametersWithDefaults instantiates a new AppendRoleRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *AppendRoleRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *AppendRoleRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *AppendRoleRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetRoleName + +`func (o *AppendRoleRequestParameters) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *AppendRoleRequestParameters) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *AppendRoleRequestParameters) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CallEngineRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CallEngineRequestParameters.md new file mode 100644 index 00000000000..f96c2be57fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CallEngineRequestParameters.md @@ -0,0 +1,93 @@ +# CallEngineRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Caller** | **string** | | +**Callee** | **string** | | +**Input** | **string** | | + +## Methods + +### NewCallEngineRequestParameters + +`func NewCallEngineRequestParameters(caller string, callee string, input string, ) *CallEngineRequestParameters` + +NewCallEngineRequestParameters instantiates a new CallEngineRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCallEngineRequestParametersWithDefaults + +`func NewCallEngineRequestParametersWithDefaults() *CallEngineRequestParameters` + +NewCallEngineRequestParametersWithDefaults instantiates a new CallEngineRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCaller + +`func (o *CallEngineRequestParameters) GetCaller() string` + +GetCaller returns the Caller field if non-nil, zero value otherwise. + +### GetCallerOk + +`func (o *CallEngineRequestParameters) GetCallerOk() (*string, bool)` + +GetCallerOk returns a tuple with the Caller field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaller + +`func (o *CallEngineRequestParameters) SetCaller(v string)` + +SetCaller sets Caller field to given value. + + +### GetCallee + +`func (o *CallEngineRequestParameters) GetCallee() string` + +GetCallee returns the Callee field if non-nil, zero value otherwise. + +### GetCalleeOk + +`func (o *CallEngineRequestParameters) GetCalleeOk() (*string, bool)` + +GetCalleeOk returns a tuple with the Callee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallee + +`func (o *CallEngineRequestParameters) SetCallee(v string)` + +SetCallee sets Callee field to given value. + + +### GetInput + +`func (o *CallEngineRequestParameters) GetInput() string` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *CallEngineRequestParameters) GetInputOk() (*string, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *CallEngineRequestParameters) SetInput(v string)` + +SetInput sets Input field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CompareAndSetAccountDetailRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CompareAndSetAccountDetailRequestParameters.md new file mode 100644 index 00000000000..8abbe624db3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CompareAndSetAccountDetailRequestParameters.md @@ -0,0 +1,140 @@ +# CompareAndSetAccountDetailRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**Key** | **string** | | +**Value** | **string** | | +**OldValue** | Pointer to **string** | | [optional] +**CheckEmpty** | **bool** | | + +## Methods + +### NewCompareAndSetAccountDetailRequestParameters + +`func NewCompareAndSetAccountDetailRequestParameters(accountId string, key string, value string, checkEmpty bool, ) *CompareAndSetAccountDetailRequestParameters` + +NewCompareAndSetAccountDetailRequestParameters instantiates a new CompareAndSetAccountDetailRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCompareAndSetAccountDetailRequestParametersWithDefaults + +`func NewCompareAndSetAccountDetailRequestParametersWithDefaults() *CompareAndSetAccountDetailRequestParameters` + +NewCompareAndSetAccountDetailRequestParametersWithDefaults instantiates a new CompareAndSetAccountDetailRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *CompareAndSetAccountDetailRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *CompareAndSetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *CompareAndSetAccountDetailRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetKey + +`func (o *CompareAndSetAccountDetailRequestParameters) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CompareAndSetAccountDetailRequestParameters) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CompareAndSetAccountDetailRequestParameters) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *CompareAndSetAccountDetailRequestParameters) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CompareAndSetAccountDetailRequestParameters) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CompareAndSetAccountDetailRequestParameters) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetOldValue + +`func (o *CompareAndSetAccountDetailRequestParameters) GetOldValue() string` + +GetOldValue returns the OldValue field if non-nil, zero value otherwise. + +### GetOldValueOk + +`func (o *CompareAndSetAccountDetailRequestParameters) GetOldValueOk() (*string, bool)` + +GetOldValueOk returns a tuple with the OldValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOldValue + +`func (o *CompareAndSetAccountDetailRequestParameters) SetOldValue(v string)` + +SetOldValue sets OldValue field to given value. + +### HasOldValue + +`func (o *CompareAndSetAccountDetailRequestParameters) HasOldValue() bool` + +HasOldValue returns a boolean if a field has been set. + +### GetCheckEmpty + +`func (o *CompareAndSetAccountDetailRequestParameters) GetCheckEmpty() bool` + +GetCheckEmpty returns the CheckEmpty field if non-nil, zero value otherwise. + +### GetCheckEmptyOk + +`func (o *CompareAndSetAccountDetailRequestParameters) GetCheckEmptyOk() (*bool, bool)` + +GetCheckEmptyOk returns a tuple with the CheckEmpty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckEmpty + +`func (o *CompareAndSetAccountDetailRequestParameters) SetCheckEmpty(v bool)` + +SetCheckEmpty sets CheckEmpty field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAccountRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAccountRequestParameters.md new file mode 100644 index 00000000000..fca08c6d031 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAccountRequestParameters.md @@ -0,0 +1,93 @@ +# CreateAccountRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | **string** | | +**DomainId** | **string** | | +**PublicKey** | **string** | | + +## Methods + +### NewCreateAccountRequestParameters + +`func NewCreateAccountRequestParameters(accountName string, domainId string, publicKey string, ) *CreateAccountRequestParameters` + +NewCreateAccountRequestParameters instantiates a new CreateAccountRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateAccountRequestParametersWithDefaults + +`func NewCreateAccountRequestParametersWithDefaults() *CreateAccountRequestParameters` + +NewCreateAccountRequestParametersWithDefaults instantiates a new CreateAccountRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *CreateAccountRequestParameters) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *CreateAccountRequestParameters) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *CreateAccountRequestParameters) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + + +### GetDomainId + +`func (o *CreateAccountRequestParameters) GetDomainId() string` + +GetDomainId returns the DomainId field if non-nil, zero value otherwise. + +### GetDomainIdOk + +`func (o *CreateAccountRequestParameters) GetDomainIdOk() (*string, bool)` + +GetDomainIdOk returns a tuple with the DomainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainId + +`func (o *CreateAccountRequestParameters) SetDomainId(v string)` + +SetDomainId sets DomainId field to given value. + + +### GetPublicKey + +`func (o *CreateAccountRequestParameters) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *CreateAccountRequestParameters) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *CreateAccountRequestParameters) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAssetRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAssetRequestParameters.md new file mode 100644 index 00000000000..bb6b651509d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateAssetRequestParameters.md @@ -0,0 +1,93 @@ +# CreateAssetRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetName** | **string** | | +**DomainId** | **string** | | +**Precision** | **int32** | | + +## Methods + +### NewCreateAssetRequestParameters + +`func NewCreateAssetRequestParameters(assetName string, domainId string, precision int32, ) *CreateAssetRequestParameters` + +NewCreateAssetRequestParameters instantiates a new CreateAssetRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateAssetRequestParametersWithDefaults + +`func NewCreateAssetRequestParametersWithDefaults() *CreateAssetRequestParameters` + +NewCreateAssetRequestParametersWithDefaults instantiates a new CreateAssetRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetName + +`func (o *CreateAssetRequestParameters) GetAssetName() string` + +GetAssetName returns the AssetName field if non-nil, zero value otherwise. + +### GetAssetNameOk + +`func (o *CreateAssetRequestParameters) GetAssetNameOk() (*string, bool)` + +GetAssetNameOk returns a tuple with the AssetName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetName + +`func (o *CreateAssetRequestParameters) SetAssetName(v string)` + +SetAssetName sets AssetName field to given value. + + +### GetDomainId + +`func (o *CreateAssetRequestParameters) GetDomainId() string` + +GetDomainId returns the DomainId field if non-nil, zero value otherwise. + +### GetDomainIdOk + +`func (o *CreateAssetRequestParameters) GetDomainIdOk() (*string, bool)` + +GetDomainIdOk returns a tuple with the DomainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainId + +`func (o *CreateAssetRequestParameters) SetDomainId(v string)` + +SetDomainId sets DomainId field to given value. + + +### GetPrecision + +`func (o *CreateAssetRequestParameters) GetPrecision() int32` + +GetPrecision returns the Precision field if non-nil, zero value otherwise. + +### GetPrecisionOk + +`func (o *CreateAssetRequestParameters) GetPrecisionOk() (*int32, bool)` + +GetPrecisionOk returns a tuple with the Precision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrecision + +`func (o *CreateAssetRequestParameters) SetPrecision(v int32)` + +SetPrecision sets Precision field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateDomainRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateDomainRequestParameters.md new file mode 100644 index 00000000000..e949a1f66c0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateDomainRequestParameters.md @@ -0,0 +1,72 @@ +# CreateDomainRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainId** | **string** | | +**DefaultRole** | **string** | | + +## Methods + +### NewCreateDomainRequestParameters + +`func NewCreateDomainRequestParameters(domainId string, defaultRole string, ) *CreateDomainRequestParameters` + +NewCreateDomainRequestParameters instantiates a new CreateDomainRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateDomainRequestParametersWithDefaults + +`func NewCreateDomainRequestParametersWithDefaults() *CreateDomainRequestParameters` + +NewCreateDomainRequestParametersWithDefaults instantiates a new CreateDomainRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDomainId + +`func (o *CreateDomainRequestParameters) GetDomainId() string` + +GetDomainId returns the DomainId field if non-nil, zero value otherwise. + +### GetDomainIdOk + +`func (o *CreateDomainRequestParameters) GetDomainIdOk() (*string, bool)` + +GetDomainIdOk returns a tuple with the DomainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainId + +`func (o *CreateDomainRequestParameters) SetDomainId(v string)` + +SetDomainId sets DomainId field to given value. + + +### GetDefaultRole + +`func (o *CreateDomainRequestParameters) GetDefaultRole() string` + +GetDefaultRole returns the DefaultRole field if non-nil, zero value otherwise. + +### GetDefaultRoleOk + +`func (o *CreateDomainRequestParameters) GetDefaultRoleOk() (*string, bool)` + +GetDefaultRoleOk returns a tuple with the DefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRole + +`func (o *CreateDomainRequestParameters) SetDefaultRole(v string)` + +SetDefaultRole sets DefaultRole field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateRoleRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateRoleRequestParameters.md new file mode 100644 index 00000000000..0b42f61189f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/CreateRoleRequestParameters.md @@ -0,0 +1,72 @@ +# CreateRoleRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleName** | **string** | | +**PermissionsList** | **[]float32** | | + +## Methods + +### NewCreateRoleRequestParameters + +`func NewCreateRoleRequestParameters(roleName string, permissionsList []float32, ) *CreateRoleRequestParameters` + +NewCreateRoleRequestParameters instantiates a new CreateRoleRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateRoleRequestParametersWithDefaults + +`func NewCreateRoleRequestParametersWithDefaults() *CreateRoleRequestParameters` + +NewCreateRoleRequestParametersWithDefaults instantiates a new CreateRoleRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleName + +`func (o *CreateRoleRequestParameters) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *CreateRoleRequestParameters) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *CreateRoleRequestParameters) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + + +### GetPermissionsList + +`func (o *CreateRoleRequestParameters) GetPermissionsList() []float32` + +GetPermissionsList returns the PermissionsList field if non-nil, zero value otherwise. + +### GetPermissionsListOk + +`func (o *CreateRoleRequestParameters) GetPermissionsListOk() (*[]float32, bool)` + +GetPermissionsListOk returns a tuple with the PermissionsList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionsList + +`func (o *CreateRoleRequestParameters) SetPermissionsList(v []float32)` + +SetPermissionsList sets PermissionsList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..037de71ef23 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,198 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GenerateTransactionV1**](DefaultApi.md#GenerateTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/generate-transaction | Generate transaction that can be signed locally. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha/run-transaction | Executes a transaction on a Iroha ledger + + + +## GenerateTransactionV1 + +> string GenerateTransactionV1(ctx).GenerateTransactionRequestV1(generateTransactionRequestV1).Execute() + +Generate transaction that can be signed locally. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" +) + +func main() { + generateTransactionRequestV1 := *openapiclient.NewGenerateTransactionRequestV1(openapiclient.IrohaCommand("createAccount"), map[string]interface{}(123), "CreatorAccountId_example") // GenerateTransactionRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GenerateTransactionV1(context.Background()).GenerateTransactionRequestV1(generateTransactionRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GenerateTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenerateTransactionV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GenerateTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenerateTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **generateTransactionRequestV1** | [**GenerateTransactionRequestV1**](GenerateTransactionRequestV1.md) | | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/octet-stream, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionResponse RunTransactionV1(ctx).RunTransactionRequestV1Body(runTransactionRequestV1Body).Execute() + +Executes a transaction on a Iroha ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionRequestV1Body := openapiclient.RunTransactionRequestV1Body{RunTransactionRequestV1: openapiclient.NewRunTransactionRequestV1("CommandName_example", *openapiclient.NewIrohaBaseConfig(), openapiclient.RunTransactionRequestV1Params{AddAssetQuantityRequestParameters: openapiclient.NewAddAssetQuantityRequestParameters("AssetId_example", float32(123))})} // RunTransactionRequestV1Body | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionRequestV1Body(runTransactionRequestV1Body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequestV1Body** | [**RunTransactionRequestV1Body**](RunTransactionRequestV1Body.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DetachRoleRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DetachRoleRequestParameters.md new file mode 100644 index 00000000000..a1d6cff125c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/DetachRoleRequestParameters.md @@ -0,0 +1,72 @@ +# DetachRoleRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**RoleName** | **string** | | + +## Methods + +### NewDetachRoleRequestParameters + +`func NewDetachRoleRequestParameters(accountId string, roleName string, ) *DetachRoleRequestParameters` + +NewDetachRoleRequestParameters instantiates a new DetachRoleRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDetachRoleRequestParametersWithDefaults + +`func NewDetachRoleRequestParametersWithDefaults() *DetachRoleRequestParameters` + +NewDetachRoleRequestParametersWithDefaults instantiates a new DetachRoleRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *DetachRoleRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *DetachRoleRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *DetachRoleRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetRoleName + +`func (o *DetachRoleRequestParameters) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *DetachRoleRequestParameters) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *DetachRoleRequestParameters) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionJsonResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionJsonResponseV1.md new file mode 100644 index 00000000000..bd6ad3c2423 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionJsonResponseV1.md @@ -0,0 +1,155 @@ +# ErrorExceptionJsonResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] +**Stack** | Pointer to **string** | | [optional] +**Cause** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorExceptionJsonResponseV1 + +`func NewErrorExceptionJsonResponseV1(message string, ) *ErrorExceptionJsonResponseV1` + +NewErrorExceptionJsonResponseV1 instantiates a new ErrorExceptionJsonResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorExceptionJsonResponseV1WithDefaults + +`func NewErrorExceptionJsonResponseV1WithDefaults() *ErrorExceptionJsonResponseV1` + +NewErrorExceptionJsonResponseV1WithDefaults instantiates a new ErrorExceptionJsonResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ErrorExceptionJsonResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorExceptionJsonResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorExceptionJsonResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetName + +`func (o *ErrorExceptionJsonResponseV1) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ErrorExceptionJsonResponseV1) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ErrorExceptionJsonResponseV1) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ErrorExceptionJsonResponseV1) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetError + +`func (o *ErrorExceptionJsonResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ErrorExceptionJsonResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ErrorExceptionJsonResponseV1) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ErrorExceptionJsonResponseV1) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetStack + +`func (o *ErrorExceptionJsonResponseV1) GetStack() string` + +GetStack returns the Stack field if non-nil, zero value otherwise. + +### GetStackOk + +`func (o *ErrorExceptionJsonResponseV1) GetStackOk() (*string, bool)` + +GetStackOk returns a tuple with the Stack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStack + +`func (o *ErrorExceptionJsonResponseV1) SetStack(v string)` + +SetStack sets Stack field to given value. + +### HasStack + +`func (o *ErrorExceptionJsonResponseV1) HasStack() bool` + +HasStack returns a boolean if a field has been set. + +### GetCause + +`func (o *ErrorExceptionJsonResponseV1) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *ErrorExceptionJsonResponseV1) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *ErrorExceptionJsonResponseV1) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *ErrorExceptionJsonResponseV1) HasCause() bool` + +HasCause returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md new file mode 100644 index 00000000000..2757745a0df --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md @@ -0,0 +1,72 @@ +# ErrorExceptionResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | +**Error** | **string** | | + +## Methods + +### NewErrorExceptionResponseV1 + +`func NewErrorExceptionResponseV1(message string, error_ string, ) *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorExceptionResponseV1WithDefaults + +`func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ErrorExceptionResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorExceptionResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetError + +`func (o *ErrorExceptionResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ErrorExceptionResponseV1) SetError(v string)` + +SetError sets Error field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md new file mode 100644 index 00000000000..405478088b2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md @@ -0,0 +1,119 @@ +# GenerateTransactionRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommandName** | [**IrohaCommand**](IrohaCommand.md) | Iroha command name. | +**CommandParams** | **map[string]interface{}** | Parameters for iroha command specified in commandName | +**CreatorAccountId** | **string** | Sender account id | +**Quorum** | Pointer to **float32** | Requested transaction quorum | [optional] [default to 1] + +## Methods + +### NewGenerateTransactionRequestV1 + +`func NewGenerateTransactionRequestV1(commandName IrohaCommand, commandParams map[string]interface{}, creatorAccountId string, ) *GenerateTransactionRequestV1` + +NewGenerateTransactionRequestV1 instantiates a new GenerateTransactionRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGenerateTransactionRequestV1WithDefaults + +`func NewGenerateTransactionRequestV1WithDefaults() *GenerateTransactionRequestV1` + +NewGenerateTransactionRequestV1WithDefaults instantiates a new GenerateTransactionRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommandName + +`func (o *GenerateTransactionRequestV1) GetCommandName() IrohaCommand` + +GetCommandName returns the CommandName field if non-nil, zero value otherwise. + +### GetCommandNameOk + +`func (o *GenerateTransactionRequestV1) GetCommandNameOk() (*IrohaCommand, bool)` + +GetCommandNameOk returns a tuple with the CommandName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommandName + +`func (o *GenerateTransactionRequestV1) SetCommandName(v IrohaCommand)` + +SetCommandName sets CommandName field to given value. + + +### GetCommandParams + +`func (o *GenerateTransactionRequestV1) GetCommandParams() map[string]interface{}` + +GetCommandParams returns the CommandParams field if non-nil, zero value otherwise. + +### GetCommandParamsOk + +`func (o *GenerateTransactionRequestV1) GetCommandParamsOk() (*map[string]interface{}, bool)` + +GetCommandParamsOk returns a tuple with the CommandParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommandParams + +`func (o *GenerateTransactionRequestV1) SetCommandParams(v map[string]interface{})` + +SetCommandParams sets CommandParams field to given value. + + +### GetCreatorAccountId + +`func (o *GenerateTransactionRequestV1) GetCreatorAccountId() string` + +GetCreatorAccountId returns the CreatorAccountId field if non-nil, zero value otherwise. + +### GetCreatorAccountIdOk + +`func (o *GenerateTransactionRequestV1) GetCreatorAccountIdOk() (*string, bool)` + +GetCreatorAccountIdOk returns a tuple with the CreatorAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorAccountId + +`func (o *GenerateTransactionRequestV1) SetCreatorAccountId(v string)` + +SetCreatorAccountId sets CreatorAccountId field to given value. + + +### GetQuorum + +`func (o *GenerateTransactionRequestV1) GetQuorum() float32` + +GetQuorum returns the Quorum field if non-nil, zero value otherwise. + +### GetQuorumOk + +`func (o *GenerateTransactionRequestV1) GetQuorumOk() (*float32, bool)` + +GetQuorumOk returns a tuple with the Quorum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuorum + +`func (o *GenerateTransactionRequestV1) SetQuorum(v float32)` + +SetQuorum sets Quorum field to given value. + +### HasQuorum + +`func (o *GenerateTransactionRequestV1) HasQuorum() bool` + +HasQuorum returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetTransactionsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetTransactionsRequestParameters.md new file mode 100644 index 00000000000..4352c94cef7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetTransactionsRequestParameters.md @@ -0,0 +1,114 @@ +# GetAccountAssetTransactionsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**AssetId** | **string** | | +**PageSize** | **int32** | | +**FirstTxHash** | **string** | | + +## Methods + +### NewGetAccountAssetTransactionsRequestParameters + +`func NewGetAccountAssetTransactionsRequestParameters(accountId string, assetId string, pageSize int32, firstTxHash string, ) *GetAccountAssetTransactionsRequestParameters` + +NewGetAccountAssetTransactionsRequestParameters instantiates a new GetAccountAssetTransactionsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccountAssetTransactionsRequestParametersWithDefaults + +`func NewGetAccountAssetTransactionsRequestParametersWithDefaults() *GetAccountAssetTransactionsRequestParameters` + +NewGetAccountAssetTransactionsRequestParametersWithDefaults instantiates a new GetAccountAssetTransactionsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetAccountAssetTransactionsRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetAccountAssetTransactionsRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetAccountAssetTransactionsRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetAssetId + +`func (o *GetAccountAssetTransactionsRequestParameters) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *GetAccountAssetTransactionsRequestParameters) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *GetAccountAssetTransactionsRequestParameters) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + +### GetPageSize + +`func (o *GetAccountAssetTransactionsRequestParameters) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetAccountAssetTransactionsRequestParameters) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetAccountAssetTransactionsRequestParameters) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + + +### GetFirstTxHash + +`func (o *GetAccountAssetTransactionsRequestParameters) GetFirstTxHash() string` + +GetFirstTxHash returns the FirstTxHash field if non-nil, zero value otherwise. + +### GetFirstTxHashOk + +`func (o *GetAccountAssetTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool)` + +GetFirstTxHashOk returns a tuple with the FirstTxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHash + +`func (o *GetAccountAssetTransactionsRequestParameters) SetFirstTxHash(v string)` + +SetFirstTxHash sets FirstTxHash field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetsRequestParameters.md new file mode 100644 index 00000000000..4027d44d6ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountAssetsRequestParameters.md @@ -0,0 +1,98 @@ +# GetAccountAssetsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**PageSize** | **float32** | | +**FirstAssetId** | Pointer to **string** | | [optional] + +## Methods + +### NewGetAccountAssetsRequestParameters + +`func NewGetAccountAssetsRequestParameters(accountId string, pageSize float32, ) *GetAccountAssetsRequestParameters` + +NewGetAccountAssetsRequestParameters instantiates a new GetAccountAssetsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccountAssetsRequestParametersWithDefaults + +`func NewGetAccountAssetsRequestParametersWithDefaults() *GetAccountAssetsRequestParameters` + +NewGetAccountAssetsRequestParametersWithDefaults instantiates a new GetAccountAssetsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetAccountAssetsRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetAccountAssetsRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetAccountAssetsRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPageSize + +`func (o *GetAccountAssetsRequestParameters) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetAccountAssetsRequestParameters) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetAccountAssetsRequestParameters) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + + +### GetFirstAssetId + +`func (o *GetAccountAssetsRequestParameters) GetFirstAssetId() string` + +GetFirstAssetId returns the FirstAssetId field if non-nil, zero value otherwise. + +### GetFirstAssetIdOk + +`func (o *GetAccountAssetsRequestParameters) GetFirstAssetIdOk() (*string, bool)` + +GetFirstAssetIdOk returns a tuple with the FirstAssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstAssetId + +`func (o *GetAccountAssetsRequestParameters) SetFirstAssetId(v string)` + +SetFirstAssetId sets FirstAssetId field to given value. + +### HasFirstAssetId + +`func (o *GetAccountAssetsRequestParameters) HasFirstAssetId() bool` + +HasFirstAssetId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountDetailRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountDetailRequestParameters.md new file mode 100644 index 00000000000..9a044c786bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountDetailRequestParameters.md @@ -0,0 +1,171 @@ +# GetAccountDetailRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | | [optional] +**Key** | Pointer to **string** | | [optional] +**Writer** | Pointer to **string** | | [optional] +**PageSize** | **int32** | | +**PaginationKey** | **string** | | +**PaginationWriter** | **string** | | + +## Methods + +### NewGetAccountDetailRequestParameters + +`func NewGetAccountDetailRequestParameters(pageSize int32, paginationKey string, paginationWriter string, ) *GetAccountDetailRequestParameters` + +NewGetAccountDetailRequestParameters instantiates a new GetAccountDetailRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccountDetailRequestParametersWithDefaults + +`func NewGetAccountDetailRequestParametersWithDefaults() *GetAccountDetailRequestParameters` + +NewGetAccountDetailRequestParametersWithDefaults instantiates a new GetAccountDetailRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetAccountDetailRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetAccountDetailRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *GetAccountDetailRequestParameters) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetKey + +`func (o *GetAccountDetailRequestParameters) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *GetAccountDetailRequestParameters) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *GetAccountDetailRequestParameters) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *GetAccountDetailRequestParameters) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetWriter + +`func (o *GetAccountDetailRequestParameters) GetWriter() string` + +GetWriter returns the Writer field if non-nil, zero value otherwise. + +### GetWriterOk + +`func (o *GetAccountDetailRequestParameters) GetWriterOk() (*string, bool)` + +GetWriterOk returns a tuple with the Writer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWriter + +`func (o *GetAccountDetailRequestParameters) SetWriter(v string)` + +SetWriter sets Writer field to given value. + +### HasWriter + +`func (o *GetAccountDetailRequestParameters) HasWriter() bool` + +HasWriter returns a boolean if a field has been set. + +### GetPageSize + +`func (o *GetAccountDetailRequestParameters) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetAccountDetailRequestParameters) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetAccountDetailRequestParameters) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + + +### GetPaginationKey + +`func (o *GetAccountDetailRequestParameters) GetPaginationKey() string` + +GetPaginationKey returns the PaginationKey field if non-nil, zero value otherwise. + +### GetPaginationKeyOk + +`func (o *GetAccountDetailRequestParameters) GetPaginationKeyOk() (*string, bool)` + +GetPaginationKeyOk returns a tuple with the PaginationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaginationKey + +`func (o *GetAccountDetailRequestParameters) SetPaginationKey(v string)` + +SetPaginationKey sets PaginationKey field to given value. + + +### GetPaginationWriter + +`func (o *GetAccountDetailRequestParameters) GetPaginationWriter() string` + +GetPaginationWriter returns the PaginationWriter field if non-nil, zero value otherwise. + +### GetPaginationWriterOk + +`func (o *GetAccountDetailRequestParameters) GetPaginationWriterOk() (*string, bool)` + +GetPaginationWriterOk returns a tuple with the PaginationWriter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaginationWriter + +`func (o *GetAccountDetailRequestParameters) SetPaginationWriter(v string)` + +SetPaginationWriter sets PaginationWriter field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountRequestParameters.md new file mode 100644 index 00000000000..0b8a75c60a9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountRequestParameters.md @@ -0,0 +1,51 @@ +# GetAccountRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | + +## Methods + +### NewGetAccountRequestParameters + +`func NewGetAccountRequestParameters(accountId string, ) *GetAccountRequestParameters` + +NewGetAccountRequestParameters instantiates a new GetAccountRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccountRequestParametersWithDefaults + +`func NewGetAccountRequestParametersWithDefaults() *GetAccountRequestParameters` + +NewGetAccountRequestParametersWithDefaults instantiates a new GetAccountRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetAccountRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetAccountRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetAccountRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountTransactionsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountTransactionsRequestParameters.md new file mode 100644 index 00000000000..8fd40bdaf00 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAccountTransactionsRequestParameters.md @@ -0,0 +1,197 @@ +# GetAccountTransactionsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**PageSize** | **int32** | | +**FirstTxHash** | **string** | | +**FirstTxTime** | Pointer to **map[string]interface{}** | | [optional] +**LastTxTime** | Pointer to **map[string]interface{}** | | [optional] +**FirstTxHeight** | Pointer to **int32** | | [optional] +**LastTxHeight** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetAccountTransactionsRequestParameters + +`func NewGetAccountTransactionsRequestParameters(accountId string, pageSize int32, firstTxHash string, ) *GetAccountTransactionsRequestParameters` + +NewGetAccountTransactionsRequestParameters instantiates a new GetAccountTransactionsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccountTransactionsRequestParametersWithDefaults + +`func NewGetAccountTransactionsRequestParametersWithDefaults() *GetAccountTransactionsRequestParameters` + +NewGetAccountTransactionsRequestParametersWithDefaults instantiates a new GetAccountTransactionsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetAccountTransactionsRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetAccountTransactionsRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetAccountTransactionsRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPageSize + +`func (o *GetAccountTransactionsRequestParameters) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetAccountTransactionsRequestParameters) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetAccountTransactionsRequestParameters) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + + +### GetFirstTxHash + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxHash() string` + +GetFirstTxHash returns the FirstTxHash field if non-nil, zero value otherwise. + +### GetFirstTxHashOk + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool)` + +GetFirstTxHashOk returns a tuple with the FirstTxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHash + +`func (o *GetAccountTransactionsRequestParameters) SetFirstTxHash(v string)` + +SetFirstTxHash sets FirstTxHash field to given value. + + +### GetFirstTxTime + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxTime() map[string]interface{}` + +GetFirstTxTime returns the FirstTxTime field if non-nil, zero value otherwise. + +### GetFirstTxTimeOk + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxTimeOk() (*map[string]interface{}, bool)` + +GetFirstTxTimeOk returns a tuple with the FirstTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxTime + +`func (o *GetAccountTransactionsRequestParameters) SetFirstTxTime(v map[string]interface{})` + +SetFirstTxTime sets FirstTxTime field to given value. + +### HasFirstTxTime + +`func (o *GetAccountTransactionsRequestParameters) HasFirstTxTime() bool` + +HasFirstTxTime returns a boolean if a field has been set. + +### GetLastTxTime + +`func (o *GetAccountTransactionsRequestParameters) GetLastTxTime() map[string]interface{}` + +GetLastTxTime returns the LastTxTime field if non-nil, zero value otherwise. + +### GetLastTxTimeOk + +`func (o *GetAccountTransactionsRequestParameters) GetLastTxTimeOk() (*map[string]interface{}, bool)` + +GetLastTxTimeOk returns a tuple with the LastTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTxTime + +`func (o *GetAccountTransactionsRequestParameters) SetLastTxTime(v map[string]interface{})` + +SetLastTxTime sets LastTxTime field to given value. + +### HasLastTxTime + +`func (o *GetAccountTransactionsRequestParameters) HasLastTxTime() bool` + +HasLastTxTime returns a boolean if a field has been set. + +### GetFirstTxHeight + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxHeight() int32` + +GetFirstTxHeight returns the FirstTxHeight field if non-nil, zero value otherwise. + +### GetFirstTxHeightOk + +`func (o *GetAccountTransactionsRequestParameters) GetFirstTxHeightOk() (*int32, bool)` + +GetFirstTxHeightOk returns a tuple with the FirstTxHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHeight + +`func (o *GetAccountTransactionsRequestParameters) SetFirstTxHeight(v int32)` + +SetFirstTxHeight sets FirstTxHeight field to given value. + +### HasFirstTxHeight + +`func (o *GetAccountTransactionsRequestParameters) HasFirstTxHeight() bool` + +HasFirstTxHeight returns a boolean if a field has been set. + +### GetLastTxHeight + +`func (o *GetAccountTransactionsRequestParameters) GetLastTxHeight() int32` + +GetLastTxHeight returns the LastTxHeight field if non-nil, zero value otherwise. + +### GetLastTxHeightOk + +`func (o *GetAccountTransactionsRequestParameters) GetLastTxHeightOk() (*int32, bool)` + +GetLastTxHeightOk returns a tuple with the LastTxHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTxHeight + +`func (o *GetAccountTransactionsRequestParameters) SetLastTxHeight(v int32)` + +SetLastTxHeight sets LastTxHeight field to given value. + +### HasLastTxHeight + +`func (o *GetAccountTransactionsRequestParameters) HasLastTxHeight() bool` + +HasLastTxHeight returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAssetInfoRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAssetInfoRequestParameters.md new file mode 100644 index 00000000000..3e78f223075 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetAssetInfoRequestParameters.md @@ -0,0 +1,51 @@ +# GetAssetInfoRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **string** | | + +## Methods + +### NewGetAssetInfoRequestParameters + +`func NewGetAssetInfoRequestParameters(assetId string, ) *GetAssetInfoRequestParameters` + +NewGetAssetInfoRequestParameters instantiates a new GetAssetInfoRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAssetInfoRequestParametersWithDefaults + +`func NewGetAssetInfoRequestParametersWithDefaults() *GetAssetInfoRequestParameters` + +NewGetAssetInfoRequestParametersWithDefaults instantiates a new GetAssetInfoRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetId + +`func (o *GetAssetInfoRequestParameters) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *GetAssetInfoRequestParameters) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *GetAssetInfoRequestParameters) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetBlockRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetBlockRequestParameters.md new file mode 100644 index 00000000000..34901f4908d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetBlockRequestParameters.md @@ -0,0 +1,51 @@ +# GetBlockRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Height** | **int32** | | + +## Methods + +### NewGetBlockRequestParameters + +`func NewGetBlockRequestParameters(height int32, ) *GetBlockRequestParameters` + +NewGetBlockRequestParameters instantiates a new GetBlockRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBlockRequestParametersWithDefaults + +`func NewGetBlockRequestParametersWithDefaults() *GetBlockRequestParameters` + +NewGetBlockRequestParametersWithDefaults instantiates a new GetBlockRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHeight + +`func (o *GetBlockRequestParameters) GetHeight() int32` + +GetHeight returns the Height field if non-nil, zero value otherwise. + +### GetHeightOk + +`func (o *GetBlockRequestParameters) GetHeightOk() (*int32, bool)` + +GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeight + +`func (o *GetBlockRequestParameters) SetHeight(v int32)` + +SetHeight sets Height field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetEngineReceiptsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetEngineReceiptsRequestParameters.md new file mode 100644 index 00000000000..612f1dd3507 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetEngineReceiptsRequestParameters.md @@ -0,0 +1,51 @@ +# GetEngineReceiptsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TxHash** | **string** | | + +## Methods + +### NewGetEngineReceiptsRequestParameters + +`func NewGetEngineReceiptsRequestParameters(txHash string, ) *GetEngineReceiptsRequestParameters` + +NewGetEngineReceiptsRequestParameters instantiates a new GetEngineReceiptsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetEngineReceiptsRequestParametersWithDefaults + +`func NewGetEngineReceiptsRequestParametersWithDefaults() *GetEngineReceiptsRequestParameters` + +NewGetEngineReceiptsRequestParametersWithDefaults instantiates a new GetEngineReceiptsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTxHash + +`func (o *GetEngineReceiptsRequestParameters) GetTxHash() string` + +GetTxHash returns the TxHash field if non-nil, zero value otherwise. + +### GetTxHashOk + +`func (o *GetEngineReceiptsRequestParameters) GetTxHashOk() (*string, bool)` + +GetTxHashOk returns a tuple with the TxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxHash + +`func (o *GetEngineReceiptsRequestParameters) SetTxHash(v string)` + +SetTxHash sets TxHash field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetPendingTransactionsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetPendingTransactionsRequestParameters.md new file mode 100644 index 00000000000..1ded2703dbd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetPendingTransactionsRequestParameters.md @@ -0,0 +1,129 @@ +# GetPendingTransactionsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageSize** | **int32** | | +**FirstTxHash** | Pointer to **string** | | [optional] +**FirstTxTime** | Pointer to **map[string]interface{}** | | [optional] +**LastTxTime** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewGetPendingTransactionsRequestParameters + +`func NewGetPendingTransactionsRequestParameters(pageSize int32, ) *GetPendingTransactionsRequestParameters` + +NewGetPendingTransactionsRequestParameters instantiates a new GetPendingTransactionsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetPendingTransactionsRequestParametersWithDefaults + +`func NewGetPendingTransactionsRequestParametersWithDefaults() *GetPendingTransactionsRequestParameters` + +NewGetPendingTransactionsRequestParametersWithDefaults instantiates a new GetPendingTransactionsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageSize + +`func (o *GetPendingTransactionsRequestParameters) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetPendingTransactionsRequestParameters) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetPendingTransactionsRequestParameters) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + + +### GetFirstTxHash + +`func (o *GetPendingTransactionsRequestParameters) GetFirstTxHash() string` + +GetFirstTxHash returns the FirstTxHash field if non-nil, zero value otherwise. + +### GetFirstTxHashOk + +`func (o *GetPendingTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool)` + +GetFirstTxHashOk returns a tuple with the FirstTxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHash + +`func (o *GetPendingTransactionsRequestParameters) SetFirstTxHash(v string)` + +SetFirstTxHash sets FirstTxHash field to given value. + +### HasFirstTxHash + +`func (o *GetPendingTransactionsRequestParameters) HasFirstTxHash() bool` + +HasFirstTxHash returns a boolean if a field has been set. + +### GetFirstTxTime + +`func (o *GetPendingTransactionsRequestParameters) GetFirstTxTime() map[string]interface{}` + +GetFirstTxTime returns the FirstTxTime field if non-nil, zero value otherwise. + +### GetFirstTxTimeOk + +`func (o *GetPendingTransactionsRequestParameters) GetFirstTxTimeOk() (*map[string]interface{}, bool)` + +GetFirstTxTimeOk returns a tuple with the FirstTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxTime + +`func (o *GetPendingTransactionsRequestParameters) SetFirstTxTime(v map[string]interface{})` + +SetFirstTxTime sets FirstTxTime field to given value. + +### HasFirstTxTime + +`func (o *GetPendingTransactionsRequestParameters) HasFirstTxTime() bool` + +HasFirstTxTime returns a boolean if a field has been set. + +### GetLastTxTime + +`func (o *GetPendingTransactionsRequestParameters) GetLastTxTime() map[string]interface{}` + +GetLastTxTime returns the LastTxTime field if non-nil, zero value otherwise. + +### GetLastTxTimeOk + +`func (o *GetPendingTransactionsRequestParameters) GetLastTxTimeOk() (*map[string]interface{}, bool)` + +GetLastTxTimeOk returns a tuple with the LastTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTxTime + +`func (o *GetPendingTransactionsRequestParameters) SetLastTxTime(v map[string]interface{})` + +SetLastTxTime sets LastTxTime field to given value. + +### HasLastTxTime + +`func (o *GetPendingTransactionsRequestParameters) HasLastTxTime() bool` + +HasLastTxTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetRolePermissionsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetRolePermissionsRequestParameters.md new file mode 100644 index 00000000000..d79675674da --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetRolePermissionsRequestParameters.md @@ -0,0 +1,51 @@ +# GetRolePermissionsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | | + +## Methods + +### NewGetRolePermissionsRequestParameters + +`func NewGetRolePermissionsRequestParameters(roleId string, ) *GetRolePermissionsRequestParameters` + +NewGetRolePermissionsRequestParameters instantiates a new GetRolePermissionsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetRolePermissionsRequestParametersWithDefaults + +`func NewGetRolePermissionsRequestParametersWithDefaults() *GetRolePermissionsRequestParameters` + +NewGetRolePermissionsRequestParametersWithDefaults instantiates a new GetRolePermissionsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *GetRolePermissionsRequestParameters) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *GetRolePermissionsRequestParameters) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *GetRolePermissionsRequestParameters) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetSignatoriesRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetSignatoriesRequestParameters.md new file mode 100644 index 00000000000..b5b60dfb0b5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetSignatoriesRequestParameters.md @@ -0,0 +1,51 @@ +# GetSignatoriesRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | + +## Methods + +### NewGetSignatoriesRequestParameters + +`func NewGetSignatoriesRequestParameters(accountId string, ) *GetSignatoriesRequestParameters` + +NewGetSignatoriesRequestParameters instantiates a new GetSignatoriesRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetSignatoriesRequestParametersWithDefaults + +`func NewGetSignatoriesRequestParametersWithDefaults() *GetSignatoriesRequestParameters` + +NewGetSignatoriesRequestParametersWithDefaults instantiates a new GetSignatoriesRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GetSignatoriesRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GetSignatoriesRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GetSignatoriesRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetTransactionsRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetTransactionsRequestParameters.md new file mode 100644 index 00000000000..fd52e92168c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GetTransactionsRequestParameters.md @@ -0,0 +1,51 @@ +# GetTransactionsRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TxHashesList** | **[]string** | | + +## Methods + +### NewGetTransactionsRequestParameters + +`func NewGetTransactionsRequestParameters(txHashesList []string, ) *GetTransactionsRequestParameters` + +NewGetTransactionsRequestParameters instantiates a new GetTransactionsRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTransactionsRequestParametersWithDefaults + +`func NewGetTransactionsRequestParametersWithDefaults() *GetTransactionsRequestParameters` + +NewGetTransactionsRequestParametersWithDefaults instantiates a new GetTransactionsRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTxHashesList + +`func (o *GetTransactionsRequestParameters) GetTxHashesList() []string` + +GetTxHashesList returns the TxHashesList field if non-nil, zero value otherwise. + +### GetTxHashesListOk + +`func (o *GetTransactionsRequestParameters) GetTxHashesListOk() (*[]string, bool)` + +GetTxHashesListOk returns a tuple with the TxHashesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxHashesList + +`func (o *GetTransactionsRequestParameters) SetTxHashesList(v []string)` + +SetTxHashesList sets TxHashesList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GrantPermissionRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GrantPermissionRequestParameters.md new file mode 100644 index 00000000000..94da8304ad8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/GrantPermissionRequestParameters.md @@ -0,0 +1,72 @@ +# GrantPermissionRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**Permission** | **string** | | + +## Methods + +### NewGrantPermissionRequestParameters + +`func NewGrantPermissionRequestParameters(accountId string, permission string, ) *GrantPermissionRequestParameters` + +NewGrantPermissionRequestParameters instantiates a new GrantPermissionRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGrantPermissionRequestParametersWithDefaults + +`func NewGrantPermissionRequestParametersWithDefaults() *GrantPermissionRequestParameters` + +NewGrantPermissionRequestParametersWithDefaults instantiates a new GrantPermissionRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *GrantPermissionRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *GrantPermissionRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *GrantPermissionRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPermission + +`func (o *GrantPermissionRequestParameters) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *GrantPermissionRequestParameters) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *GrantPermissionRequestParameters) SetPermission(v string)` + +SetPermission sets Permission field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBaseConfig.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBaseConfig.md new file mode 100644 index 00000000000..1ff2f18a4f0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBaseConfig.md @@ -0,0 +1,248 @@ +# IrohaBaseConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IrohaHost** | Pointer to **string** | | [optional] +**IrohaPort** | Pointer to **float32** | | [optional] +**CreatorAccountId** | Pointer to **string** | | [optional] +**PrivKey** | Pointer to **[]interface{}** | | [optional] [default to []] +**Quorum** | Pointer to **float32** | | [optional] +**TimeoutLimit** | Pointer to **float32** | | [optional] +**Tls** | Pointer to **bool** | Can only be set to false for an insecure grpc connection. | [optional] +**MonitorMode** | Pointer to **NullableBool** | Flag used for monitoring. It changes default beahviour of transaction wrapper so it return error to caller instead of throwing RuntimeError straight away. | [optional] + +## Methods + +### NewIrohaBaseConfig + +`func NewIrohaBaseConfig() *IrohaBaseConfig` + +NewIrohaBaseConfig instantiates a new IrohaBaseConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaBaseConfigWithDefaults + +`func NewIrohaBaseConfigWithDefaults() *IrohaBaseConfig` + +NewIrohaBaseConfigWithDefaults instantiates a new IrohaBaseConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIrohaHost + +`func (o *IrohaBaseConfig) GetIrohaHost() string` + +GetIrohaHost returns the IrohaHost field if non-nil, zero value otherwise. + +### GetIrohaHostOk + +`func (o *IrohaBaseConfig) GetIrohaHostOk() (*string, bool)` + +GetIrohaHostOk returns a tuple with the IrohaHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIrohaHost + +`func (o *IrohaBaseConfig) SetIrohaHost(v string)` + +SetIrohaHost sets IrohaHost field to given value. + +### HasIrohaHost + +`func (o *IrohaBaseConfig) HasIrohaHost() bool` + +HasIrohaHost returns a boolean if a field has been set. + +### GetIrohaPort + +`func (o *IrohaBaseConfig) GetIrohaPort() float32` + +GetIrohaPort returns the IrohaPort field if non-nil, zero value otherwise. + +### GetIrohaPortOk + +`func (o *IrohaBaseConfig) GetIrohaPortOk() (*float32, bool)` + +GetIrohaPortOk returns a tuple with the IrohaPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIrohaPort + +`func (o *IrohaBaseConfig) SetIrohaPort(v float32)` + +SetIrohaPort sets IrohaPort field to given value. + +### HasIrohaPort + +`func (o *IrohaBaseConfig) HasIrohaPort() bool` + +HasIrohaPort returns a boolean if a field has been set. + +### GetCreatorAccountId + +`func (o *IrohaBaseConfig) GetCreatorAccountId() string` + +GetCreatorAccountId returns the CreatorAccountId field if non-nil, zero value otherwise. + +### GetCreatorAccountIdOk + +`func (o *IrohaBaseConfig) GetCreatorAccountIdOk() (*string, bool)` + +GetCreatorAccountIdOk returns a tuple with the CreatorAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorAccountId + +`func (o *IrohaBaseConfig) SetCreatorAccountId(v string)` + +SetCreatorAccountId sets CreatorAccountId field to given value. + +### HasCreatorAccountId + +`func (o *IrohaBaseConfig) HasCreatorAccountId() bool` + +HasCreatorAccountId returns a boolean if a field has been set. + +### GetPrivKey + +`func (o *IrohaBaseConfig) GetPrivKey() []interface{}` + +GetPrivKey returns the PrivKey field if non-nil, zero value otherwise. + +### GetPrivKeyOk + +`func (o *IrohaBaseConfig) GetPrivKeyOk() (*[]interface{}, bool)` + +GetPrivKeyOk returns a tuple with the PrivKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivKey + +`func (o *IrohaBaseConfig) SetPrivKey(v []interface{})` + +SetPrivKey sets PrivKey field to given value. + +### HasPrivKey + +`func (o *IrohaBaseConfig) HasPrivKey() bool` + +HasPrivKey returns a boolean if a field has been set. + +### GetQuorum + +`func (o *IrohaBaseConfig) GetQuorum() float32` + +GetQuorum returns the Quorum field if non-nil, zero value otherwise. + +### GetQuorumOk + +`func (o *IrohaBaseConfig) GetQuorumOk() (*float32, bool)` + +GetQuorumOk returns a tuple with the Quorum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuorum + +`func (o *IrohaBaseConfig) SetQuorum(v float32)` + +SetQuorum sets Quorum field to given value. + +### HasQuorum + +`func (o *IrohaBaseConfig) HasQuorum() bool` + +HasQuorum returns a boolean if a field has been set. + +### GetTimeoutLimit + +`func (o *IrohaBaseConfig) GetTimeoutLimit() float32` + +GetTimeoutLimit returns the TimeoutLimit field if non-nil, zero value otherwise. + +### GetTimeoutLimitOk + +`func (o *IrohaBaseConfig) GetTimeoutLimitOk() (*float32, bool)` + +GetTimeoutLimitOk returns a tuple with the TimeoutLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutLimit + +`func (o *IrohaBaseConfig) SetTimeoutLimit(v float32)` + +SetTimeoutLimit sets TimeoutLimit field to given value. + +### HasTimeoutLimit + +`func (o *IrohaBaseConfig) HasTimeoutLimit() bool` + +HasTimeoutLimit returns a boolean if a field has been set. + +### GetTls + +`func (o *IrohaBaseConfig) GetTls() bool` + +GetTls returns the Tls field if non-nil, zero value otherwise. + +### GetTlsOk + +`func (o *IrohaBaseConfig) GetTlsOk() (*bool, bool)` + +GetTlsOk returns a tuple with the Tls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTls + +`func (o *IrohaBaseConfig) SetTls(v bool)` + +SetTls sets Tls field to given value. + +### HasTls + +`func (o *IrohaBaseConfig) HasTls() bool` + +HasTls returns a boolean if a field has been set. + +### GetMonitorMode + +`func (o *IrohaBaseConfig) GetMonitorMode() bool` + +GetMonitorMode returns the MonitorMode field if non-nil, zero value otherwise. + +### GetMonitorModeOk + +`func (o *IrohaBaseConfig) GetMonitorModeOk() (*bool, bool)` + +GetMonitorModeOk returns a tuple with the MonitorMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorMode + +`func (o *IrohaBaseConfig) SetMonitorMode(v bool)` + +SetMonitorMode sets MonitorMode field to given value. + +### HasMonitorMode + +`func (o *IrohaBaseConfig) HasMonitorMode() bool` + +HasMonitorMode returns a boolean if a field has been set. + +### SetMonitorModeNil + +`func (o *IrohaBaseConfig) SetMonitorModeNil(b bool)` + + SetMonitorModeNil sets the value for MonitorMode to be an explicit nil + +### UnsetMonitorMode +`func (o *IrohaBaseConfig) UnsetMonitorMode()` + +UnsetMonitorMode ensures that no value is present for MonitorMode, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockProgress.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockProgress.md new file mode 100644 index 00000000000..21ca25e4f7b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockProgress.md @@ -0,0 +1,51 @@ +# IrohaBlockProgress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**IrohaBlockResponse**](IrohaBlockResponse.md) | | + +## Methods + +### NewIrohaBlockProgress + +`func NewIrohaBlockProgress(transactionReceipt IrohaBlockResponse, ) *IrohaBlockProgress` + +NewIrohaBlockProgress instantiates a new IrohaBlockProgress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaBlockProgressWithDefaults + +`func NewIrohaBlockProgressWithDefaults() *IrohaBlockProgress` + +NewIrohaBlockProgressWithDefaults instantiates a new IrohaBlockProgress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *IrohaBlockProgress) GetTransactionReceipt() IrohaBlockResponse` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *IrohaBlockProgress) GetTransactionReceiptOk() (*IrohaBlockResponse, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *IrohaBlockProgress) SetTransactionReceipt(v IrohaBlockResponse)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponse.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponse.md new file mode 100644 index 00000000000..ab8f76ed9b9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponse.md @@ -0,0 +1,72 @@ +# IrohaBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Payload** | [**IrohaBlockResponsePayload**](IrohaBlockResponsePayload.md) | | +**SignaturesList** | **[]interface{}** | | + +## Methods + +### NewIrohaBlockResponse + +`func NewIrohaBlockResponse(payload IrohaBlockResponsePayload, signaturesList []interface{}, ) *IrohaBlockResponse` + +NewIrohaBlockResponse instantiates a new IrohaBlockResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaBlockResponseWithDefaults + +`func NewIrohaBlockResponseWithDefaults() *IrohaBlockResponse` + +NewIrohaBlockResponseWithDefaults instantiates a new IrohaBlockResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPayload + +`func (o *IrohaBlockResponse) GetPayload() IrohaBlockResponsePayload` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *IrohaBlockResponse) GetPayloadOk() (*IrohaBlockResponsePayload, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *IrohaBlockResponse) SetPayload(v IrohaBlockResponsePayload)` + +SetPayload sets Payload field to given value. + + +### GetSignaturesList + +`func (o *IrohaBlockResponse) GetSignaturesList() []interface{}` + +GetSignaturesList returns the SignaturesList field if non-nil, zero value otherwise. + +### GetSignaturesListOk + +`func (o *IrohaBlockResponse) GetSignaturesListOk() (*[]interface{}, bool)` + +GetSignaturesListOk returns a tuple with the SignaturesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignaturesList + +`func (o *IrohaBlockResponse) SetSignaturesList(v []interface{})` + +SetSignaturesList sets SignaturesList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponsePayload.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponsePayload.md new file mode 100644 index 00000000000..897387e5f33 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaBlockResponsePayload.md @@ -0,0 +1,156 @@ +# IrohaBlockResponsePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionsList** | **[]interface{}** | | +**TxNumber** | **float32** | | +**Height** | **float32** | | +**PrevBlockHash** | **string** | | +**CreatedTime** | **float32** | | +**RejectedTransactionsHashesList** | **[]interface{}** | | + +## Methods + +### NewIrohaBlockResponsePayload + +`func NewIrohaBlockResponsePayload(transactionsList []interface{}, txNumber float32, height float32, prevBlockHash string, createdTime float32, rejectedTransactionsHashesList []interface{}, ) *IrohaBlockResponsePayload` + +NewIrohaBlockResponsePayload instantiates a new IrohaBlockResponsePayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaBlockResponsePayloadWithDefaults + +`func NewIrohaBlockResponsePayloadWithDefaults() *IrohaBlockResponsePayload` + +NewIrohaBlockResponsePayloadWithDefaults instantiates a new IrohaBlockResponsePayload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionsList + +`func (o *IrohaBlockResponsePayload) GetTransactionsList() []interface{}` + +GetTransactionsList returns the TransactionsList field if non-nil, zero value otherwise. + +### GetTransactionsListOk + +`func (o *IrohaBlockResponsePayload) GetTransactionsListOk() (*[]interface{}, bool)` + +GetTransactionsListOk returns a tuple with the TransactionsList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsList + +`func (o *IrohaBlockResponsePayload) SetTransactionsList(v []interface{})` + +SetTransactionsList sets TransactionsList field to given value. + + +### GetTxNumber + +`func (o *IrohaBlockResponsePayload) GetTxNumber() float32` + +GetTxNumber returns the TxNumber field if non-nil, zero value otherwise. + +### GetTxNumberOk + +`func (o *IrohaBlockResponsePayload) GetTxNumberOk() (*float32, bool)` + +GetTxNumberOk returns a tuple with the TxNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxNumber + +`func (o *IrohaBlockResponsePayload) SetTxNumber(v float32)` + +SetTxNumber sets TxNumber field to given value. + + +### GetHeight + +`func (o *IrohaBlockResponsePayload) GetHeight() float32` + +GetHeight returns the Height field if non-nil, zero value otherwise. + +### GetHeightOk + +`func (o *IrohaBlockResponsePayload) GetHeightOk() (*float32, bool)` + +GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeight + +`func (o *IrohaBlockResponsePayload) SetHeight(v float32)` + +SetHeight sets Height field to given value. + + +### GetPrevBlockHash + +`func (o *IrohaBlockResponsePayload) GetPrevBlockHash() string` + +GetPrevBlockHash returns the PrevBlockHash field if non-nil, zero value otherwise. + +### GetPrevBlockHashOk + +`func (o *IrohaBlockResponsePayload) GetPrevBlockHashOk() (*string, bool)` + +GetPrevBlockHashOk returns a tuple with the PrevBlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevBlockHash + +`func (o *IrohaBlockResponsePayload) SetPrevBlockHash(v string)` + +SetPrevBlockHash sets PrevBlockHash field to given value. + + +### GetCreatedTime + +`func (o *IrohaBlockResponsePayload) GetCreatedTime() float32` + +GetCreatedTime returns the CreatedTime field if non-nil, zero value otherwise. + +### GetCreatedTimeOk + +`func (o *IrohaBlockResponsePayload) GetCreatedTimeOk() (*float32, bool)` + +GetCreatedTimeOk returns a tuple with the CreatedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedTime + +`func (o *IrohaBlockResponsePayload) SetCreatedTime(v float32)` + +SetCreatedTime sets CreatedTime field to given value. + + +### GetRejectedTransactionsHashesList + +`func (o *IrohaBlockResponsePayload) GetRejectedTransactionsHashesList() []interface{}` + +GetRejectedTransactionsHashesList returns the RejectedTransactionsHashesList field if non-nil, zero value otherwise. + +### GetRejectedTransactionsHashesListOk + +`func (o *IrohaBlockResponsePayload) GetRejectedTransactionsHashesListOk() (*[]interface{}, bool)` + +GetRejectedTransactionsHashesListOk returns a tuple with the RejectedTransactionsHashesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRejectedTransactionsHashesList + +`func (o *IrohaBlockResponsePayload) SetRejectedTransactionsHashesList(v []interface{})` + +SetRejectedTransactionsHashesList sets RejectedTransactionsHashesList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaCommand.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaCommand.md new file mode 100644 index 00000000000..6e68edbe74a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaCommand.md @@ -0,0 +1,49 @@ +# IrohaCommand + +## Enum + + +* `CreateAccount` (value: `"createAccount"`) + +* `SetAccountDetail` (value: `"setAccountDetail"`) + +* `SetAccountQuorum` (value: `"setAccountQuorum"`) + +* `CompareAndSetAccountDetail` (value: `"compareAndSetAccountDetail"`) + +* `CreateAsset` (value: `"createAsset"`) + +* `AddAssetQuantity` (value: `"addAssetQuantity"`) + +* `SubtractAssetQuantity` (value: `"subtractAssetQuantity"`) + +* `TransferAsset` (value: `"transferAsset"`) + +* `CreateDomain` (value: `"createDomain"`) + +* `CreateRole` (value: `"createRole"`) + +* `DetachRole` (value: `"detachRole"`) + +* `AppendRole` (value: `"appendRole"`) + +* `AddSignatory` (value: `"addSignatory"`) + +* `RemoveSignatory` (value: `"removeSignatory"`) + +* `GrantPermission` (value: `"grantPermission"`) + +* `RevokePermission` (value: `"revokePermission"`) + +* `AddPeer` (value: `"addPeer"`) + +* `RemovePeer` (value: `"removePeer"`) + +* `SetSettingValue` (value: `"setSettingValue"`) + +* `CallEngine` (value: `"callEngine"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md new file mode 100644 index 00000000000..ce8a6dda1fc --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md @@ -0,0 +1,39 @@ +# IrohaQuery + +## Enum + + +* `GetAccount` (value: `"getAccount"`) + +* `GetAccountDetail` (value: `"getAccountDetail"`) + +* `GetAssetInfo` (value: `"getAssetInfo"`) + +* `GetAccountAssets` (value: `"getAccountAssets"`) + +* `GetTransactions` (value: `"getTransactions"`) + +* `GetPendingTransactions` (value: `"getPendingTransactions"`) + +* `GetAccountTransactions` (value: `"getAccountTransactions"`) + +* `GetAccountAssetTransactions` (value: `"getAccountAssetTransactions"`) + +* `GetRoles` (value: `"getRoles"`) + +* `GetSignatories` (value: `"getSignatories"`) + +* `GetRolePermissions` (value: `"getRolePermissions"`) + +* `GetBlock` (value: `"getBlock"`) + +* `GetEngineReceipts` (value: `"getEngineReceipts"`) + +* `FetchCommits` (value: `"fetchCommits"`) + +* `GetPeers` (value: `"getPeers"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaSocketIOTransactV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaSocketIOTransactV1.md new file mode 100644 index 00000000000..a8cce078848 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/IrohaSocketIOTransactV1.md @@ -0,0 +1,13 @@ +# IrohaSocketIOTransactV1 + +## Enum + + +* `SendAsyncRequest` (value: `"org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendAsyncRequest"`) + +* `SendSyncRequest` (value: `"org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendSyncRequest"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/KeyPair.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/KeyPair.md new file mode 100644 index 00000000000..69ec8ab4fc1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/KeyPair.md @@ -0,0 +1,72 @@ +# KeyPair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | SHA-3 ed25519 public keys of length 64 are recommended. | +**PrivateKey** | **string** | SHA-3 ed25519 private keys of length 64 are recommended. | + +## Methods + +### NewKeyPair + +`func NewKeyPair(publicKey string, privateKey string, ) *KeyPair` + +NewKeyPair instantiates a new KeyPair object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyPairWithDefaults + +`func NewKeyPairWithDefaults() *KeyPair` + +NewKeyPairWithDefaults instantiates a new KeyPair object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPublicKey + +`func (o *KeyPair) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *KeyPair) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *KeyPair) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + +### GetPrivateKey + +`func (o *KeyPair) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *KeyPair) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *KeyPair) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemovePeerRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemovePeerRequestParameters.md new file mode 100644 index 00000000000..d177c300855 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemovePeerRequestParameters.md @@ -0,0 +1,51 @@ +# RemovePeerRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | + +## Methods + +### NewRemovePeerRequestParameters + +`func NewRemovePeerRequestParameters(publicKey string, ) *RemovePeerRequestParameters` + +NewRemovePeerRequestParameters instantiates a new RemovePeerRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRemovePeerRequestParametersWithDefaults + +`func NewRemovePeerRequestParametersWithDefaults() *RemovePeerRequestParameters` + +NewRemovePeerRequestParametersWithDefaults instantiates a new RemovePeerRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPublicKey + +`func (o *RemovePeerRequestParameters) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *RemovePeerRequestParameters) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *RemovePeerRequestParameters) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemoveSignatoryRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemoveSignatoryRequestParameters.md new file mode 100644 index 00000000000..315ecf061db --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RemoveSignatoryRequestParameters.md @@ -0,0 +1,72 @@ +# RemoveSignatoryRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**PublicKey** | **string** | | + +## Methods + +### NewRemoveSignatoryRequestParameters + +`func NewRemoveSignatoryRequestParameters(accountId string, publicKey string, ) *RemoveSignatoryRequestParameters` + +NewRemoveSignatoryRequestParameters instantiates a new RemoveSignatoryRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRemoveSignatoryRequestParametersWithDefaults + +`func NewRemoveSignatoryRequestParametersWithDefaults() *RemoveSignatoryRequestParameters` + +NewRemoveSignatoryRequestParametersWithDefaults instantiates a new RemoveSignatoryRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *RemoveSignatoryRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RemoveSignatoryRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RemoveSignatoryRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPublicKey + +`func (o *RemoveSignatoryRequestParameters) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *RemoveSignatoryRequestParameters) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *RemoveSignatoryRequestParameters) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RevokePermissionRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RevokePermissionRequestParameters.md new file mode 100644 index 00000000000..b23758620c2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RevokePermissionRequestParameters.md @@ -0,0 +1,72 @@ +# RevokePermissionRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**Permission** | **float32** | | + +## Methods + +### NewRevokePermissionRequestParameters + +`func NewRevokePermissionRequestParameters(accountId string, permission float32, ) *RevokePermissionRequestParameters` + +NewRevokePermissionRequestParameters instantiates a new RevokePermissionRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevokePermissionRequestParametersWithDefaults + +`func NewRevokePermissionRequestParametersWithDefaults() *RevokePermissionRequestParameters` + +NewRevokePermissionRequestParametersWithDefaults instantiates a new RevokePermissionRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *RevokePermissionRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RevokePermissionRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RevokePermissionRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPermission + +`func (o *RevokePermissionRequestParameters) GetPermission() float32` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *RevokePermissionRequestParameters) GetPermissionOk() (*float32, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *RevokePermissionRequestParameters) SetPermission(v float32)` + +SetPermission sets Permission field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1.md new file mode 100644 index 00000000000..6de462afd17 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1.md @@ -0,0 +1,93 @@ +# RunTransactionRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommandName** | **string** | | +**BaseConfig** | [**IrohaBaseConfig**](IrohaBaseConfig.md) | | +**Params** | [**RunTransactionRequestV1Params**](RunTransactionRequestV1Params.md) | | + +## Methods + +### NewRunTransactionRequestV1 + +`func NewRunTransactionRequestV1(commandName string, baseConfig IrohaBaseConfig, params RunTransactionRequestV1Params, ) *RunTransactionRequestV1` + +NewRunTransactionRequestV1 instantiates a new RunTransactionRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestV1WithDefaults + +`func NewRunTransactionRequestV1WithDefaults() *RunTransactionRequestV1` + +NewRunTransactionRequestV1WithDefaults instantiates a new RunTransactionRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommandName + +`func (o *RunTransactionRequestV1) GetCommandName() string` + +GetCommandName returns the CommandName field if non-nil, zero value otherwise. + +### GetCommandNameOk + +`func (o *RunTransactionRequestV1) GetCommandNameOk() (*string, bool)` + +GetCommandNameOk returns a tuple with the CommandName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommandName + +`func (o *RunTransactionRequestV1) SetCommandName(v string)` + +SetCommandName sets CommandName field to given value. + + +### GetBaseConfig + +`func (o *RunTransactionRequestV1) GetBaseConfig() IrohaBaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *RunTransactionRequestV1) GetBaseConfigOk() (*IrohaBaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *RunTransactionRequestV1) SetBaseConfig(v IrohaBaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + + +### GetParams + +`func (o *RunTransactionRequestV1) GetParams() RunTransactionRequestV1Params` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *RunTransactionRequestV1) GetParamsOk() (*RunTransactionRequestV1Params, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *RunTransactionRequestV1) SetParams(v RunTransactionRequestV1Params)` + +SetParams sets Params field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Body.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Body.md new file mode 100644 index 00000000000..8768731ead4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Body.md @@ -0,0 +1,114 @@ +# RunTransactionRequestV1Body + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommandName** | **string** | | +**BaseConfig** | [**IrohaBaseConfig**](IrohaBaseConfig.md) | | +**Params** | [**RunTransactionRequestV1Params**](RunTransactionRequestV1Params.md) | | +**SignedTransaction** | **string** | Signed transaction binary data received from generate-transaction endpoint. | + +## Methods + +### NewRunTransactionRequestV1Body + +`func NewRunTransactionRequestV1Body(commandName string, baseConfig IrohaBaseConfig, params RunTransactionRequestV1Params, signedTransaction string, ) *RunTransactionRequestV1Body` + +NewRunTransactionRequestV1Body instantiates a new RunTransactionRequestV1Body object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestV1BodyWithDefaults + +`func NewRunTransactionRequestV1BodyWithDefaults() *RunTransactionRequestV1Body` + +NewRunTransactionRequestV1BodyWithDefaults instantiates a new RunTransactionRequestV1Body object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommandName + +`func (o *RunTransactionRequestV1Body) GetCommandName() string` + +GetCommandName returns the CommandName field if non-nil, zero value otherwise. + +### GetCommandNameOk + +`func (o *RunTransactionRequestV1Body) GetCommandNameOk() (*string, bool)` + +GetCommandNameOk returns a tuple with the CommandName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommandName + +`func (o *RunTransactionRequestV1Body) SetCommandName(v string)` + +SetCommandName sets CommandName field to given value. + + +### GetBaseConfig + +`func (o *RunTransactionRequestV1Body) GetBaseConfig() IrohaBaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *RunTransactionRequestV1Body) GetBaseConfigOk() (*IrohaBaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *RunTransactionRequestV1Body) SetBaseConfig(v IrohaBaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + + +### GetParams + +`func (o *RunTransactionRequestV1Body) GetParams() RunTransactionRequestV1Params` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *RunTransactionRequestV1Body) GetParamsOk() (*RunTransactionRequestV1Params, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *RunTransactionRequestV1Body) SetParams(v RunTransactionRequestV1Params)` + +SetParams sets Params field to given value. + + +### GetSignedTransaction + +`func (o *RunTransactionRequestV1Body) GetSignedTransaction() string` + +GetSignedTransaction returns the SignedTransaction field if non-nil, zero value otherwise. + +### GetSignedTransactionOk + +`func (o *RunTransactionRequestV1Body) GetSignedTransactionOk() (*string, bool)` + +GetSignedTransactionOk returns a tuple with the SignedTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignedTransaction + +`func (o *RunTransactionRequestV1Body) SetSignedTransaction(v string)` + +SetSignedTransaction sets SignedTransaction field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Params.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Params.md new file mode 100644 index 00000000000..28cd786b255 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionRequestV1Params.md @@ -0,0 +1,936 @@ +# RunTransactionRequestV1Params + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **string** | | +**Amount** | **float32** | | +**Address** | **string** | | +**PeerKey** | **string** | | +**TlsCertificate** | Pointer to **string** | | [optional] +**SyncingPeer** | Pointer to **bool** | | [optional] +**AccountId** | **string** | | +**PublicKey** | **string** | | +**RoleName** | **string** | | +**Caller** | **string** | | +**Callee** | **string** | | +**Input** | **string** | | +**AccountName** | **string** | | +**DomainId** | **string** | | +**AssetName** | **string** | | +**Precision** | **int32** | | +**DefaultRole** | **string** | | +**PermissionsList** | **[]float32** | | +**Permission** | **float32** | | +**Key** | **string** | | +**Value** | **string** | | +**Quorum** | **int32** | | +**SrcAccountId** | **string** | | +**DestAccountId** | **string** | | +**Description** | **string** | | +**OldValue** | Pointer to **string** | | [optional] +**CheckEmpty** | **bool** | | +**Height** | **int32** | | +**TxHashesList** | **[]string** | | +**PageSize** | **int32** | | +**FirstTxHash** | **string** | | +**FirstTxTime** | Pointer to **map[string]interface{}** | | [optional] +**LastTxTime** | Pointer to **map[string]interface{}** | | [optional] +**FirstTxHeight** | Pointer to **int32** | | [optional] +**LastTxHeight** | Pointer to **int32** | | [optional] +**FirstAssetId** | Pointer to **string** | | [optional] +**Writer** | Pointer to **string** | | [optional] +**PaginationKey** | **string** | | +**PaginationWriter** | **string** | | +**RoleId** | **string** | | +**TxHash** | **string** | | + +## Methods + +### NewRunTransactionRequestV1Params + +`func NewRunTransactionRequestV1Params(assetId string, amount float32, address string, peerKey string, accountId string, publicKey string, roleName string, caller string, callee string, input string, accountName string, domainId string, assetName string, precision int32, defaultRole string, permissionsList []float32, permission float32, key string, value string, quorum int32, srcAccountId string, destAccountId string, description string, checkEmpty bool, height int32, txHashesList []string, pageSize int32, firstTxHash string, paginationKey string, paginationWriter string, roleId string, txHash string, ) *RunTransactionRequestV1Params` + +NewRunTransactionRequestV1Params instantiates a new RunTransactionRequestV1Params object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestV1ParamsWithDefaults + +`func NewRunTransactionRequestV1ParamsWithDefaults() *RunTransactionRequestV1Params` + +NewRunTransactionRequestV1ParamsWithDefaults instantiates a new RunTransactionRequestV1Params object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetId + +`func (o *RunTransactionRequestV1Params) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *RunTransactionRequestV1Params) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *RunTransactionRequestV1Params) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + +### GetAmount + +`func (o *RunTransactionRequestV1Params) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *RunTransactionRequestV1Params) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *RunTransactionRequestV1Params) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + + +### GetAddress + +`func (o *RunTransactionRequestV1Params) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *RunTransactionRequestV1Params) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *RunTransactionRequestV1Params) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetPeerKey + +`func (o *RunTransactionRequestV1Params) GetPeerKey() string` + +GetPeerKey returns the PeerKey field if non-nil, zero value otherwise. + +### GetPeerKeyOk + +`func (o *RunTransactionRequestV1Params) GetPeerKeyOk() (*string, bool)` + +GetPeerKeyOk returns a tuple with the PeerKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerKey + +`func (o *RunTransactionRequestV1Params) SetPeerKey(v string)` + +SetPeerKey sets PeerKey field to given value. + + +### GetTlsCertificate + +`func (o *RunTransactionRequestV1Params) GetTlsCertificate() string` + +GetTlsCertificate returns the TlsCertificate field if non-nil, zero value otherwise. + +### GetTlsCertificateOk + +`func (o *RunTransactionRequestV1Params) GetTlsCertificateOk() (*string, bool)` + +GetTlsCertificateOk returns a tuple with the TlsCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTlsCertificate + +`func (o *RunTransactionRequestV1Params) SetTlsCertificate(v string)` + +SetTlsCertificate sets TlsCertificate field to given value. + +### HasTlsCertificate + +`func (o *RunTransactionRequestV1Params) HasTlsCertificate() bool` + +HasTlsCertificate returns a boolean if a field has been set. + +### GetSyncingPeer + +`func (o *RunTransactionRequestV1Params) GetSyncingPeer() bool` + +GetSyncingPeer returns the SyncingPeer field if non-nil, zero value otherwise. + +### GetSyncingPeerOk + +`func (o *RunTransactionRequestV1Params) GetSyncingPeerOk() (*bool, bool)` + +GetSyncingPeerOk returns a tuple with the SyncingPeer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncingPeer + +`func (o *RunTransactionRequestV1Params) SetSyncingPeer(v bool)` + +SetSyncingPeer sets SyncingPeer field to given value. + +### HasSyncingPeer + +`func (o *RunTransactionRequestV1Params) HasSyncingPeer() bool` + +HasSyncingPeer returns a boolean if a field has been set. + +### GetAccountId + +`func (o *RunTransactionRequestV1Params) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RunTransactionRequestV1Params) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RunTransactionRequestV1Params) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetPublicKey + +`func (o *RunTransactionRequestV1Params) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *RunTransactionRequestV1Params) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *RunTransactionRequestV1Params) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + +### GetRoleName + +`func (o *RunTransactionRequestV1Params) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *RunTransactionRequestV1Params) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *RunTransactionRequestV1Params) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + + +### GetCaller + +`func (o *RunTransactionRequestV1Params) GetCaller() string` + +GetCaller returns the Caller field if non-nil, zero value otherwise. + +### GetCallerOk + +`func (o *RunTransactionRequestV1Params) GetCallerOk() (*string, bool)` + +GetCallerOk returns a tuple with the Caller field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaller + +`func (o *RunTransactionRequestV1Params) SetCaller(v string)` + +SetCaller sets Caller field to given value. + + +### GetCallee + +`func (o *RunTransactionRequestV1Params) GetCallee() string` + +GetCallee returns the Callee field if non-nil, zero value otherwise. + +### GetCalleeOk + +`func (o *RunTransactionRequestV1Params) GetCalleeOk() (*string, bool)` + +GetCalleeOk returns a tuple with the Callee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallee + +`func (o *RunTransactionRequestV1Params) SetCallee(v string)` + +SetCallee sets Callee field to given value. + + +### GetInput + +`func (o *RunTransactionRequestV1Params) GetInput() string` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *RunTransactionRequestV1Params) GetInputOk() (*string, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *RunTransactionRequestV1Params) SetInput(v string)` + +SetInput sets Input field to given value. + + +### GetAccountName + +`func (o *RunTransactionRequestV1Params) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *RunTransactionRequestV1Params) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *RunTransactionRequestV1Params) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + + +### GetDomainId + +`func (o *RunTransactionRequestV1Params) GetDomainId() string` + +GetDomainId returns the DomainId field if non-nil, zero value otherwise. + +### GetDomainIdOk + +`func (o *RunTransactionRequestV1Params) GetDomainIdOk() (*string, bool)` + +GetDomainIdOk returns a tuple with the DomainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainId + +`func (o *RunTransactionRequestV1Params) SetDomainId(v string)` + +SetDomainId sets DomainId field to given value. + + +### GetAssetName + +`func (o *RunTransactionRequestV1Params) GetAssetName() string` + +GetAssetName returns the AssetName field if non-nil, zero value otherwise. + +### GetAssetNameOk + +`func (o *RunTransactionRequestV1Params) GetAssetNameOk() (*string, bool)` + +GetAssetNameOk returns a tuple with the AssetName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetName + +`func (o *RunTransactionRequestV1Params) SetAssetName(v string)` + +SetAssetName sets AssetName field to given value. + + +### GetPrecision + +`func (o *RunTransactionRequestV1Params) GetPrecision() int32` + +GetPrecision returns the Precision field if non-nil, zero value otherwise. + +### GetPrecisionOk + +`func (o *RunTransactionRequestV1Params) GetPrecisionOk() (*int32, bool)` + +GetPrecisionOk returns a tuple with the Precision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrecision + +`func (o *RunTransactionRequestV1Params) SetPrecision(v int32)` + +SetPrecision sets Precision field to given value. + + +### GetDefaultRole + +`func (o *RunTransactionRequestV1Params) GetDefaultRole() string` + +GetDefaultRole returns the DefaultRole field if non-nil, zero value otherwise. + +### GetDefaultRoleOk + +`func (o *RunTransactionRequestV1Params) GetDefaultRoleOk() (*string, bool)` + +GetDefaultRoleOk returns a tuple with the DefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultRole + +`func (o *RunTransactionRequestV1Params) SetDefaultRole(v string)` + +SetDefaultRole sets DefaultRole field to given value. + + +### GetPermissionsList + +`func (o *RunTransactionRequestV1Params) GetPermissionsList() []float32` + +GetPermissionsList returns the PermissionsList field if non-nil, zero value otherwise. + +### GetPermissionsListOk + +`func (o *RunTransactionRequestV1Params) GetPermissionsListOk() (*[]float32, bool)` + +GetPermissionsListOk returns a tuple with the PermissionsList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionsList + +`func (o *RunTransactionRequestV1Params) SetPermissionsList(v []float32)` + +SetPermissionsList sets PermissionsList field to given value. + + +### GetPermission + +`func (o *RunTransactionRequestV1Params) GetPermission() float32` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *RunTransactionRequestV1Params) GetPermissionOk() (*float32, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *RunTransactionRequestV1Params) SetPermission(v float32)` + +SetPermission sets Permission field to given value. + + +### GetKey + +`func (o *RunTransactionRequestV1Params) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *RunTransactionRequestV1Params) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *RunTransactionRequestV1Params) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *RunTransactionRequestV1Params) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RunTransactionRequestV1Params) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RunTransactionRequestV1Params) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetQuorum + +`func (o *RunTransactionRequestV1Params) GetQuorum() int32` + +GetQuorum returns the Quorum field if non-nil, zero value otherwise. + +### GetQuorumOk + +`func (o *RunTransactionRequestV1Params) GetQuorumOk() (*int32, bool)` + +GetQuorumOk returns a tuple with the Quorum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuorum + +`func (o *RunTransactionRequestV1Params) SetQuorum(v int32)` + +SetQuorum sets Quorum field to given value. + + +### GetSrcAccountId + +`func (o *RunTransactionRequestV1Params) GetSrcAccountId() string` + +GetSrcAccountId returns the SrcAccountId field if non-nil, zero value otherwise. + +### GetSrcAccountIdOk + +`func (o *RunTransactionRequestV1Params) GetSrcAccountIdOk() (*string, bool)` + +GetSrcAccountIdOk returns a tuple with the SrcAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrcAccountId + +`func (o *RunTransactionRequestV1Params) SetSrcAccountId(v string)` + +SetSrcAccountId sets SrcAccountId field to given value. + + +### GetDestAccountId + +`func (o *RunTransactionRequestV1Params) GetDestAccountId() string` + +GetDestAccountId returns the DestAccountId field if non-nil, zero value otherwise. + +### GetDestAccountIdOk + +`func (o *RunTransactionRequestV1Params) GetDestAccountIdOk() (*string, bool)` + +GetDestAccountIdOk returns a tuple with the DestAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestAccountId + +`func (o *RunTransactionRequestV1Params) SetDestAccountId(v string)` + +SetDestAccountId sets DestAccountId field to given value. + + +### GetDescription + +`func (o *RunTransactionRequestV1Params) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RunTransactionRequestV1Params) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RunTransactionRequestV1Params) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetOldValue + +`func (o *RunTransactionRequestV1Params) GetOldValue() string` + +GetOldValue returns the OldValue field if non-nil, zero value otherwise. + +### GetOldValueOk + +`func (o *RunTransactionRequestV1Params) GetOldValueOk() (*string, bool)` + +GetOldValueOk returns a tuple with the OldValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOldValue + +`func (o *RunTransactionRequestV1Params) SetOldValue(v string)` + +SetOldValue sets OldValue field to given value. + +### HasOldValue + +`func (o *RunTransactionRequestV1Params) HasOldValue() bool` + +HasOldValue returns a boolean if a field has been set. + +### GetCheckEmpty + +`func (o *RunTransactionRequestV1Params) GetCheckEmpty() bool` + +GetCheckEmpty returns the CheckEmpty field if non-nil, zero value otherwise. + +### GetCheckEmptyOk + +`func (o *RunTransactionRequestV1Params) GetCheckEmptyOk() (*bool, bool)` + +GetCheckEmptyOk returns a tuple with the CheckEmpty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckEmpty + +`func (o *RunTransactionRequestV1Params) SetCheckEmpty(v bool)` + +SetCheckEmpty sets CheckEmpty field to given value. + + +### GetHeight + +`func (o *RunTransactionRequestV1Params) GetHeight() int32` + +GetHeight returns the Height field if non-nil, zero value otherwise. + +### GetHeightOk + +`func (o *RunTransactionRequestV1Params) GetHeightOk() (*int32, bool)` + +GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeight + +`func (o *RunTransactionRequestV1Params) SetHeight(v int32)` + +SetHeight sets Height field to given value. + + +### GetTxHashesList + +`func (o *RunTransactionRequestV1Params) GetTxHashesList() []string` + +GetTxHashesList returns the TxHashesList field if non-nil, zero value otherwise. + +### GetTxHashesListOk + +`func (o *RunTransactionRequestV1Params) GetTxHashesListOk() (*[]string, bool)` + +GetTxHashesListOk returns a tuple with the TxHashesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxHashesList + +`func (o *RunTransactionRequestV1Params) SetTxHashesList(v []string)` + +SetTxHashesList sets TxHashesList field to given value. + + +### GetPageSize + +`func (o *RunTransactionRequestV1Params) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *RunTransactionRequestV1Params) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *RunTransactionRequestV1Params) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + + +### GetFirstTxHash + +`func (o *RunTransactionRequestV1Params) GetFirstTxHash() string` + +GetFirstTxHash returns the FirstTxHash field if non-nil, zero value otherwise. + +### GetFirstTxHashOk + +`func (o *RunTransactionRequestV1Params) GetFirstTxHashOk() (*string, bool)` + +GetFirstTxHashOk returns a tuple with the FirstTxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHash + +`func (o *RunTransactionRequestV1Params) SetFirstTxHash(v string)` + +SetFirstTxHash sets FirstTxHash field to given value. + + +### GetFirstTxTime + +`func (o *RunTransactionRequestV1Params) GetFirstTxTime() map[string]interface{}` + +GetFirstTxTime returns the FirstTxTime field if non-nil, zero value otherwise. + +### GetFirstTxTimeOk + +`func (o *RunTransactionRequestV1Params) GetFirstTxTimeOk() (*map[string]interface{}, bool)` + +GetFirstTxTimeOk returns a tuple with the FirstTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxTime + +`func (o *RunTransactionRequestV1Params) SetFirstTxTime(v map[string]interface{})` + +SetFirstTxTime sets FirstTxTime field to given value. + +### HasFirstTxTime + +`func (o *RunTransactionRequestV1Params) HasFirstTxTime() bool` + +HasFirstTxTime returns a boolean if a field has been set. + +### GetLastTxTime + +`func (o *RunTransactionRequestV1Params) GetLastTxTime() map[string]interface{}` + +GetLastTxTime returns the LastTxTime field if non-nil, zero value otherwise. + +### GetLastTxTimeOk + +`func (o *RunTransactionRequestV1Params) GetLastTxTimeOk() (*map[string]interface{}, bool)` + +GetLastTxTimeOk returns a tuple with the LastTxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTxTime + +`func (o *RunTransactionRequestV1Params) SetLastTxTime(v map[string]interface{})` + +SetLastTxTime sets LastTxTime field to given value. + +### HasLastTxTime + +`func (o *RunTransactionRequestV1Params) HasLastTxTime() bool` + +HasLastTxTime returns a boolean if a field has been set. + +### GetFirstTxHeight + +`func (o *RunTransactionRequestV1Params) GetFirstTxHeight() int32` + +GetFirstTxHeight returns the FirstTxHeight field if non-nil, zero value otherwise. + +### GetFirstTxHeightOk + +`func (o *RunTransactionRequestV1Params) GetFirstTxHeightOk() (*int32, bool)` + +GetFirstTxHeightOk returns a tuple with the FirstTxHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstTxHeight + +`func (o *RunTransactionRequestV1Params) SetFirstTxHeight(v int32)` + +SetFirstTxHeight sets FirstTxHeight field to given value. + +### HasFirstTxHeight + +`func (o *RunTransactionRequestV1Params) HasFirstTxHeight() bool` + +HasFirstTxHeight returns a boolean if a field has been set. + +### GetLastTxHeight + +`func (o *RunTransactionRequestV1Params) GetLastTxHeight() int32` + +GetLastTxHeight returns the LastTxHeight field if non-nil, zero value otherwise. + +### GetLastTxHeightOk + +`func (o *RunTransactionRequestV1Params) GetLastTxHeightOk() (*int32, bool)` + +GetLastTxHeightOk returns a tuple with the LastTxHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTxHeight + +`func (o *RunTransactionRequestV1Params) SetLastTxHeight(v int32)` + +SetLastTxHeight sets LastTxHeight field to given value. + +### HasLastTxHeight + +`func (o *RunTransactionRequestV1Params) HasLastTxHeight() bool` + +HasLastTxHeight returns a boolean if a field has been set. + +### GetFirstAssetId + +`func (o *RunTransactionRequestV1Params) GetFirstAssetId() string` + +GetFirstAssetId returns the FirstAssetId field if non-nil, zero value otherwise. + +### GetFirstAssetIdOk + +`func (o *RunTransactionRequestV1Params) GetFirstAssetIdOk() (*string, bool)` + +GetFirstAssetIdOk returns a tuple with the FirstAssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstAssetId + +`func (o *RunTransactionRequestV1Params) SetFirstAssetId(v string)` + +SetFirstAssetId sets FirstAssetId field to given value. + +### HasFirstAssetId + +`func (o *RunTransactionRequestV1Params) HasFirstAssetId() bool` + +HasFirstAssetId returns a boolean if a field has been set. + +### GetWriter + +`func (o *RunTransactionRequestV1Params) GetWriter() string` + +GetWriter returns the Writer field if non-nil, zero value otherwise. + +### GetWriterOk + +`func (o *RunTransactionRequestV1Params) GetWriterOk() (*string, bool)` + +GetWriterOk returns a tuple with the Writer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWriter + +`func (o *RunTransactionRequestV1Params) SetWriter(v string)` + +SetWriter sets Writer field to given value. + +### HasWriter + +`func (o *RunTransactionRequestV1Params) HasWriter() bool` + +HasWriter returns a boolean if a field has been set. + +### GetPaginationKey + +`func (o *RunTransactionRequestV1Params) GetPaginationKey() string` + +GetPaginationKey returns the PaginationKey field if non-nil, zero value otherwise. + +### GetPaginationKeyOk + +`func (o *RunTransactionRequestV1Params) GetPaginationKeyOk() (*string, bool)` + +GetPaginationKeyOk returns a tuple with the PaginationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaginationKey + +`func (o *RunTransactionRequestV1Params) SetPaginationKey(v string)` + +SetPaginationKey sets PaginationKey field to given value. + + +### GetPaginationWriter + +`func (o *RunTransactionRequestV1Params) GetPaginationWriter() string` + +GetPaginationWriter returns the PaginationWriter field if non-nil, zero value otherwise. + +### GetPaginationWriterOk + +`func (o *RunTransactionRequestV1Params) GetPaginationWriterOk() (*string, bool)` + +GetPaginationWriterOk returns a tuple with the PaginationWriter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaginationWriter + +`func (o *RunTransactionRequestV1Params) SetPaginationWriter(v string)` + +SetPaginationWriter sets PaginationWriter field to given value. + + +### GetRoleId + +`func (o *RunTransactionRequestV1Params) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *RunTransactionRequestV1Params) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *RunTransactionRequestV1Params) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + +### GetTxHash + +`func (o *RunTransactionRequestV1Params) GetTxHash() string` + +GetTxHash returns the TxHash field if non-nil, zero value otherwise. + +### GetTxHashOk + +`func (o *RunTransactionRequestV1Params) GetTxHashOk() (*string, bool)` + +GetTxHashOk returns a tuple with the TxHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxHash + +`func (o *RunTransactionRequestV1Params) SetTxHash(v string)` + +SetTxHash sets TxHash field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..d21d7c87d83 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,61 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | **interface{}** | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt interface{}, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() interface{}` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*interface{}, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v interface{})` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + +### SetTransactionReceiptNil + +`func (o *RunTransactionResponse) SetTransactionReceiptNil(b bool)` + + SetTransactionReceiptNil sets the value for TransactionReceipt to be an explicit nil + +### UnsetTransactionReceipt +`func (o *RunTransactionResponse) UnsetTransactionReceipt()` + +UnsetTransactionReceipt ensures that no value is present for TransactionReceipt, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionSignedRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionSignedRequestV1.md new file mode 100644 index 00000000000..26d66a38337 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/RunTransactionSignedRequestV1.md @@ -0,0 +1,77 @@ +# RunTransactionSignedRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignedTransaction** | **string** | Signed transaction binary data received from generate-transaction endpoint. | +**BaseConfig** | Pointer to [**IrohaBaseConfig**](IrohaBaseConfig.md) | | [optional] + +## Methods + +### NewRunTransactionSignedRequestV1 + +`func NewRunTransactionSignedRequestV1(signedTransaction string, ) *RunTransactionSignedRequestV1` + +NewRunTransactionSignedRequestV1 instantiates a new RunTransactionSignedRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionSignedRequestV1WithDefaults + +`func NewRunTransactionSignedRequestV1WithDefaults() *RunTransactionSignedRequestV1` + +NewRunTransactionSignedRequestV1WithDefaults instantiates a new RunTransactionSignedRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignedTransaction + +`func (o *RunTransactionSignedRequestV1) GetSignedTransaction() string` + +GetSignedTransaction returns the SignedTransaction field if non-nil, zero value otherwise. + +### GetSignedTransactionOk + +`func (o *RunTransactionSignedRequestV1) GetSignedTransactionOk() (*string, bool)` + +GetSignedTransactionOk returns a tuple with the SignedTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignedTransaction + +`func (o *RunTransactionSignedRequestV1) SetSignedTransaction(v string)` + +SetSignedTransaction sets SignedTransaction field to given value. + + +### GetBaseConfig + +`func (o *RunTransactionSignedRequestV1) GetBaseConfig() IrohaBaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *RunTransactionSignedRequestV1) GetBaseConfigOk() (*IrohaBaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *RunTransactionSignedRequestV1) SetBaseConfig(v IrohaBaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + +### HasBaseConfig + +`func (o *RunTransactionSignedRequestV1) HasBaseConfig() bool` + +HasBaseConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountDetailRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountDetailRequestParameters.md new file mode 100644 index 00000000000..4e0ef154dec --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountDetailRequestParameters.md @@ -0,0 +1,93 @@ +# SetAccountDetailRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**Key** | **string** | | +**Value** | **string** | | + +## Methods + +### NewSetAccountDetailRequestParameters + +`func NewSetAccountDetailRequestParameters(accountId string, key string, value string, ) *SetAccountDetailRequestParameters` + +NewSetAccountDetailRequestParameters instantiates a new SetAccountDetailRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetAccountDetailRequestParametersWithDefaults + +`func NewSetAccountDetailRequestParametersWithDefaults() *SetAccountDetailRequestParameters` + +NewSetAccountDetailRequestParametersWithDefaults instantiates a new SetAccountDetailRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *SetAccountDetailRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *SetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *SetAccountDetailRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetKey + +`func (o *SetAccountDetailRequestParameters) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SetAccountDetailRequestParameters) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SetAccountDetailRequestParameters) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *SetAccountDetailRequestParameters) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SetAccountDetailRequestParameters) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SetAccountDetailRequestParameters) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountQuorumRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountQuorumRequestParameters.md new file mode 100644 index 00000000000..bc768cf7e04 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SetAccountQuorumRequestParameters.md @@ -0,0 +1,72 @@ +# SetAccountQuorumRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**Quorum** | **int32** | | + +## Methods + +### NewSetAccountQuorumRequestParameters + +`func NewSetAccountQuorumRequestParameters(accountId string, quorum int32, ) *SetAccountQuorumRequestParameters` + +NewSetAccountQuorumRequestParameters instantiates a new SetAccountQuorumRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetAccountQuorumRequestParametersWithDefaults + +`func NewSetAccountQuorumRequestParametersWithDefaults() *SetAccountQuorumRequestParameters` + +NewSetAccountQuorumRequestParametersWithDefaults instantiates a new SetAccountQuorumRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *SetAccountQuorumRequestParameters) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *SetAccountQuorumRequestParameters) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *SetAccountQuorumRequestParameters) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetQuorum + +`func (o *SetAccountQuorumRequestParameters) GetQuorum() int32` + +GetQuorum returns the Quorum field if non-nil, zero value otherwise. + +### GetQuorumOk + +`func (o *SetAccountQuorumRequestParameters) GetQuorumOk() (*int32, bool)` + +GetQuorumOk returns a tuple with the Quorum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuorum + +`func (o *SetAccountQuorumRequestParameters) SetQuorum(v int32)` + +SetQuorum sets Quorum field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SubtractAssetQuantityRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SubtractAssetQuantityRequestParameters.md new file mode 100644 index 00000000000..32510950ef1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/SubtractAssetQuantityRequestParameters.md @@ -0,0 +1,72 @@ +# SubtractAssetQuantityRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **string** | | +**Amount** | **float32** | | + +## Methods + +### NewSubtractAssetQuantityRequestParameters + +`func NewSubtractAssetQuantityRequestParameters(assetId string, amount float32, ) *SubtractAssetQuantityRequestParameters` + +NewSubtractAssetQuantityRequestParameters instantiates a new SubtractAssetQuantityRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubtractAssetQuantityRequestParametersWithDefaults + +`func NewSubtractAssetQuantityRequestParametersWithDefaults() *SubtractAssetQuantityRequestParameters` + +NewSubtractAssetQuantityRequestParametersWithDefaults instantiates a new SubtractAssetQuantityRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetId + +`func (o *SubtractAssetQuantityRequestParameters) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *SubtractAssetQuantityRequestParameters) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *SubtractAssetQuantityRequestParameters) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + +### GetAmount + +`func (o *SubtractAssetQuantityRequestParameters) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *SubtractAssetQuantityRequestParameters) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *SubtractAssetQuantityRequestParameters) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/TransferAssetRequestParameters.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/TransferAssetRequestParameters.md new file mode 100644 index 00000000000..d97a1716316 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/TransferAssetRequestParameters.md @@ -0,0 +1,135 @@ +# TransferAssetRequestParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SrcAccountId** | **string** | | +**DestAccountId** | **string** | | +**AssetId** | **string** | | +**Description** | **string** | | +**Amount** | **float32** | | + +## Methods + +### NewTransferAssetRequestParameters + +`func NewTransferAssetRequestParameters(srcAccountId string, destAccountId string, assetId string, description string, amount float32, ) *TransferAssetRequestParameters` + +NewTransferAssetRequestParameters instantiates a new TransferAssetRequestParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferAssetRequestParametersWithDefaults + +`func NewTransferAssetRequestParametersWithDefaults() *TransferAssetRequestParameters` + +NewTransferAssetRequestParametersWithDefaults instantiates a new TransferAssetRequestParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSrcAccountId + +`func (o *TransferAssetRequestParameters) GetSrcAccountId() string` + +GetSrcAccountId returns the SrcAccountId field if non-nil, zero value otherwise. + +### GetSrcAccountIdOk + +`func (o *TransferAssetRequestParameters) GetSrcAccountIdOk() (*string, bool)` + +GetSrcAccountIdOk returns a tuple with the SrcAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrcAccountId + +`func (o *TransferAssetRequestParameters) SetSrcAccountId(v string)` + +SetSrcAccountId sets SrcAccountId field to given value. + + +### GetDestAccountId + +`func (o *TransferAssetRequestParameters) GetDestAccountId() string` + +GetDestAccountId returns the DestAccountId field if non-nil, zero value otherwise. + +### GetDestAccountIdOk + +`func (o *TransferAssetRequestParameters) GetDestAccountIdOk() (*string, bool)` + +GetDestAccountIdOk returns a tuple with the DestAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestAccountId + +`func (o *TransferAssetRequestParameters) SetDestAccountId(v string)` + +SetDestAccountId sets DestAccountId field to given value. + + +### GetAssetId + +`func (o *TransferAssetRequestParameters) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *TransferAssetRequestParameters) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *TransferAssetRequestParameters) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + + +### GetDescription + +`func (o *TransferAssetRequestParameters) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TransferAssetRequestParameters) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TransferAssetRequestParameters) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetAmount + +`func (o *TransferAssetRequestParameters) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *TransferAssetRequestParameters) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *TransferAssetRequestParameters) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..c255db717ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..618cd0ecd1e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..f4241f6071b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_asset_quantity_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_asset_quantity_request_parameters.go new file mode 100644 index 00000000000..86e554c2cb9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_asset_quantity_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the AddAssetQuantityRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddAssetQuantityRequestParameters{} + +// AddAssetQuantityRequestParameters The list of arguments to pass in to the transaction request to Add Asset Quantity. +type AddAssetQuantityRequestParameters struct { + AssetId string `json:"assetId"` + Amount float32 `json:"amount"` +} + +// NewAddAssetQuantityRequestParameters instantiates a new AddAssetQuantityRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddAssetQuantityRequestParameters(assetId string, amount float32) *AddAssetQuantityRequestParameters { + this := AddAssetQuantityRequestParameters{} + this.AssetId = assetId + this.Amount = amount + return &this +} + +// NewAddAssetQuantityRequestParametersWithDefaults instantiates a new AddAssetQuantityRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddAssetQuantityRequestParametersWithDefaults() *AddAssetQuantityRequestParameters { + this := AddAssetQuantityRequestParameters{} + return &this +} + +// GetAssetId returns the AssetId field value +func (o *AddAssetQuantityRequestParameters) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *AddAssetQuantityRequestParameters) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *AddAssetQuantityRequestParameters) SetAssetId(v string) { + o.AssetId = v +} + +// GetAmount returns the Amount field value +func (o *AddAssetQuantityRequestParameters) GetAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *AddAssetQuantityRequestParameters) GetAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *AddAssetQuantityRequestParameters) SetAmount(v float32) { + o.Amount = v +} + +func (o AddAssetQuantityRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddAssetQuantityRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetId"] = o.AssetId + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +type NullableAddAssetQuantityRequestParameters struct { + value *AddAssetQuantityRequestParameters + isSet bool +} + +func (v NullableAddAssetQuantityRequestParameters) Get() *AddAssetQuantityRequestParameters { + return v.value +} + +func (v *NullableAddAssetQuantityRequestParameters) Set(val *AddAssetQuantityRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableAddAssetQuantityRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableAddAssetQuantityRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddAssetQuantityRequestParameters(val *AddAssetQuantityRequestParameters) *NullableAddAssetQuantityRequestParameters { + return &NullableAddAssetQuantityRequestParameters{value: val, isSet: true} +} + +func (v NullableAddAssetQuantityRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddAssetQuantityRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_peer_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_peer_request_parameters.go new file mode 100644 index 00000000000..357bf62e750 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_peer_request_parameters.go @@ -0,0 +1,216 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the AddPeerRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddPeerRequestParameters{} + +// AddPeerRequestParameters The list of arguments to pass in to the transaction request to Add Peer. +type AddPeerRequestParameters struct { + Address string `json:"address"` + PeerKey string `json:"peerKey"` + TlsCertificate *string `json:"tlsCertificate,omitempty"` + SyncingPeer *bool `json:"syncingPeer,omitempty"` +} + +// NewAddPeerRequestParameters instantiates a new AddPeerRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddPeerRequestParameters(address string, peerKey string) *AddPeerRequestParameters { + this := AddPeerRequestParameters{} + this.Address = address + this.PeerKey = peerKey + return &this +} + +// NewAddPeerRequestParametersWithDefaults instantiates a new AddPeerRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddPeerRequestParametersWithDefaults() *AddPeerRequestParameters { + this := AddPeerRequestParameters{} + return &this +} + +// GetAddress returns the Address field value +func (o *AddPeerRequestParameters) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *AddPeerRequestParameters) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *AddPeerRequestParameters) SetAddress(v string) { + o.Address = v +} + +// GetPeerKey returns the PeerKey field value +func (o *AddPeerRequestParameters) GetPeerKey() string { + if o == nil { + var ret string + return ret + } + + return o.PeerKey +} + +// GetPeerKeyOk returns a tuple with the PeerKey field value +// and a boolean to check if the value has been set. +func (o *AddPeerRequestParameters) GetPeerKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerKey, true +} + +// SetPeerKey sets field value +func (o *AddPeerRequestParameters) SetPeerKey(v string) { + o.PeerKey = v +} + +// GetTlsCertificate returns the TlsCertificate field value if set, zero value otherwise. +func (o *AddPeerRequestParameters) GetTlsCertificate() string { + if o == nil || IsNil(o.TlsCertificate) { + var ret string + return ret + } + return *o.TlsCertificate +} + +// GetTlsCertificateOk returns a tuple with the TlsCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddPeerRequestParameters) GetTlsCertificateOk() (*string, bool) { + if o == nil || IsNil(o.TlsCertificate) { + return nil, false + } + return o.TlsCertificate, true +} + +// HasTlsCertificate returns a boolean if a field has been set. +func (o *AddPeerRequestParameters) HasTlsCertificate() bool { + if o != nil && !IsNil(o.TlsCertificate) { + return true + } + + return false +} + +// SetTlsCertificate gets a reference to the given string and assigns it to the TlsCertificate field. +func (o *AddPeerRequestParameters) SetTlsCertificate(v string) { + o.TlsCertificate = &v +} + +// GetSyncingPeer returns the SyncingPeer field value if set, zero value otherwise. +func (o *AddPeerRequestParameters) GetSyncingPeer() bool { + if o == nil || IsNil(o.SyncingPeer) { + var ret bool + return ret + } + return *o.SyncingPeer +} + +// GetSyncingPeerOk returns a tuple with the SyncingPeer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddPeerRequestParameters) GetSyncingPeerOk() (*bool, bool) { + if o == nil || IsNil(o.SyncingPeer) { + return nil, false + } + return o.SyncingPeer, true +} + +// HasSyncingPeer returns a boolean if a field has been set. +func (o *AddPeerRequestParameters) HasSyncingPeer() bool { + if o != nil && !IsNil(o.SyncingPeer) { + return true + } + + return false +} + +// SetSyncingPeer gets a reference to the given bool and assigns it to the SyncingPeer field. +func (o *AddPeerRequestParameters) SetSyncingPeer(v bool) { + o.SyncingPeer = &v +} + +func (o AddPeerRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddPeerRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + toSerialize["peerKey"] = o.PeerKey + if !IsNil(o.TlsCertificate) { + toSerialize["tlsCertificate"] = o.TlsCertificate + } + if !IsNil(o.SyncingPeer) { + toSerialize["syncingPeer"] = o.SyncingPeer + } + return toSerialize, nil +} + +type NullableAddPeerRequestParameters struct { + value *AddPeerRequestParameters + isSet bool +} + +func (v NullableAddPeerRequestParameters) Get() *AddPeerRequestParameters { + return v.value +} + +func (v *NullableAddPeerRequestParameters) Set(val *AddPeerRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableAddPeerRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableAddPeerRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddPeerRequestParameters(val *AddPeerRequestParameters) *NullableAddPeerRequestParameters { + return &NullableAddPeerRequestParameters{value: val, isSet: true} +} + +func (v NullableAddPeerRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddPeerRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_signatory_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_signatory_request_parameters.go new file mode 100644 index 00000000000..b16f1c3b5c0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_add_signatory_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the AddSignatoryRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddSignatoryRequestParameters{} + +// AddSignatoryRequestParameters The list of arguments to pass in to the transaction request to Add Signatory. +type AddSignatoryRequestParameters struct { + AccountId string `json:"accountId"` + PublicKey string `json:"publicKey"` +} + +// NewAddSignatoryRequestParameters instantiates a new AddSignatoryRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddSignatoryRequestParameters(accountId string, publicKey string) *AddSignatoryRequestParameters { + this := AddSignatoryRequestParameters{} + this.AccountId = accountId + this.PublicKey = publicKey + return &this +} + +// NewAddSignatoryRequestParametersWithDefaults instantiates a new AddSignatoryRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddSignatoryRequestParametersWithDefaults() *AddSignatoryRequestParameters { + this := AddSignatoryRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *AddSignatoryRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *AddSignatoryRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *AddSignatoryRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPublicKey returns the PublicKey field value +func (o *AddSignatoryRequestParameters) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *AddSignatoryRequestParameters) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *AddSignatoryRequestParameters) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o AddSignatoryRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddSignatoryRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["publicKey"] = o.PublicKey + return toSerialize, nil +} + +type NullableAddSignatoryRequestParameters struct { + value *AddSignatoryRequestParameters + isSet bool +} + +func (v NullableAddSignatoryRequestParameters) Get() *AddSignatoryRequestParameters { + return v.value +} + +func (v *NullableAddSignatoryRequestParameters) Set(val *AddSignatoryRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableAddSignatoryRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableAddSignatoryRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddSignatoryRequestParameters(val *AddSignatoryRequestParameters) *NullableAddSignatoryRequestParameters { + return &NullableAddSignatoryRequestParameters{value: val, isSet: true} +} + +func (v NullableAddSignatoryRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddSignatoryRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_append_role_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_append_role_request_parameters.go new file mode 100644 index 00000000000..1a8ca3c40a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_append_role_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the AppendRoleRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppendRoleRequestParameters{} + +// AppendRoleRequestParameters The list of arguments to pass in to the transaction request to Append Role. +type AppendRoleRequestParameters struct { + AccountId string `json:"accountId"` + RoleName string `json:"roleName"` +} + +// NewAppendRoleRequestParameters instantiates a new AppendRoleRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppendRoleRequestParameters(accountId string, roleName string) *AppendRoleRequestParameters { + this := AppendRoleRequestParameters{} + this.AccountId = accountId + this.RoleName = roleName + return &this +} + +// NewAppendRoleRequestParametersWithDefaults instantiates a new AppendRoleRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppendRoleRequestParametersWithDefaults() *AppendRoleRequestParameters { + this := AppendRoleRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *AppendRoleRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *AppendRoleRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *AppendRoleRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetRoleName returns the RoleName field value +func (o *AppendRoleRequestParameters) GetRoleName() string { + if o == nil { + var ret string + return ret + } + + return o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value +// and a boolean to check if the value has been set. +func (o *AppendRoleRequestParameters) GetRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleName, true +} + +// SetRoleName sets field value +func (o *AppendRoleRequestParameters) SetRoleName(v string) { + o.RoleName = v +} + +func (o AppendRoleRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppendRoleRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["roleName"] = o.RoleName + return toSerialize, nil +} + +type NullableAppendRoleRequestParameters struct { + value *AppendRoleRequestParameters + isSet bool +} + +func (v NullableAppendRoleRequestParameters) Get() *AppendRoleRequestParameters { + return v.value +} + +func (v *NullableAppendRoleRequestParameters) Set(val *AppendRoleRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableAppendRoleRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableAppendRoleRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppendRoleRequestParameters(val *AppendRoleRequestParameters) *NullableAppendRoleRequestParameters { + return &NullableAppendRoleRequestParameters{value: val, isSet: true} +} + +func (v NullableAppendRoleRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppendRoleRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_call_engine_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_call_engine_request_parameters.go new file mode 100644 index 00000000000..ed45fa697bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_call_engine_request_parameters.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CallEngineRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CallEngineRequestParameters{} + +// CallEngineRequestParameters The list of arguments to pass in to the transaction request to Call Engine. +type CallEngineRequestParameters struct { + Caller string `json:"caller"` + Callee string `json:"callee"` + Input string `json:"input"` +} + +// NewCallEngineRequestParameters instantiates a new CallEngineRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCallEngineRequestParameters(caller string, callee string, input string) *CallEngineRequestParameters { + this := CallEngineRequestParameters{} + this.Caller = caller + this.Callee = callee + this.Input = input + return &this +} + +// NewCallEngineRequestParametersWithDefaults instantiates a new CallEngineRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCallEngineRequestParametersWithDefaults() *CallEngineRequestParameters { + this := CallEngineRequestParameters{} + return &this +} + +// GetCaller returns the Caller field value +func (o *CallEngineRequestParameters) GetCaller() string { + if o == nil { + var ret string + return ret + } + + return o.Caller +} + +// GetCallerOk returns a tuple with the Caller field value +// and a boolean to check if the value has been set. +func (o *CallEngineRequestParameters) GetCallerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Caller, true +} + +// SetCaller sets field value +func (o *CallEngineRequestParameters) SetCaller(v string) { + o.Caller = v +} + +// GetCallee returns the Callee field value +func (o *CallEngineRequestParameters) GetCallee() string { + if o == nil { + var ret string + return ret + } + + return o.Callee +} + +// GetCalleeOk returns a tuple with the Callee field value +// and a boolean to check if the value has been set. +func (o *CallEngineRequestParameters) GetCalleeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Callee, true +} + +// SetCallee sets field value +func (o *CallEngineRequestParameters) SetCallee(v string) { + o.Callee = v +} + +// GetInput returns the Input field value +func (o *CallEngineRequestParameters) GetInput() string { + if o == nil { + var ret string + return ret + } + + return o.Input +} + +// GetInputOk returns a tuple with the Input field value +// and a boolean to check if the value has been set. +func (o *CallEngineRequestParameters) GetInputOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Input, true +} + +// SetInput sets field value +func (o *CallEngineRequestParameters) SetInput(v string) { + o.Input = v +} + +func (o CallEngineRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CallEngineRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["caller"] = o.Caller + toSerialize["callee"] = o.Callee + toSerialize["input"] = o.Input + return toSerialize, nil +} + +type NullableCallEngineRequestParameters struct { + value *CallEngineRequestParameters + isSet bool +} + +func (v NullableCallEngineRequestParameters) Get() *CallEngineRequestParameters { + return v.value +} + +func (v *NullableCallEngineRequestParameters) Set(val *CallEngineRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCallEngineRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCallEngineRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCallEngineRequestParameters(val *CallEngineRequestParameters) *NullableCallEngineRequestParameters { + return &NullableCallEngineRequestParameters{value: val, isSet: true} +} + +func (v NullableCallEngineRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCallEngineRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_compare_and_set_account_detail_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_compare_and_set_account_detail_request_parameters.go new file mode 100644 index 00000000000..7cab65cba0f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_compare_and_set_account_detail_request_parameters.go @@ -0,0 +1,234 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CompareAndSetAccountDetailRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CompareAndSetAccountDetailRequestParameters{} + +// CompareAndSetAccountDetailRequestParameters The list of arguments to pass in to the transaction request to Compare And Set Account Detail. +type CompareAndSetAccountDetailRequestParameters struct { + AccountId string `json:"accountId"` + Key string `json:"key"` + Value string `json:"value"` + OldValue *string `json:"oldValue,omitempty"` + CheckEmpty bool `json:"check_empty"` +} + +// NewCompareAndSetAccountDetailRequestParameters instantiates a new CompareAndSetAccountDetailRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCompareAndSetAccountDetailRequestParameters(accountId string, key string, value string, checkEmpty bool) *CompareAndSetAccountDetailRequestParameters { + this := CompareAndSetAccountDetailRequestParameters{} + this.AccountId = accountId + this.Key = key + this.Value = value + this.CheckEmpty = checkEmpty + return &this +} + +// NewCompareAndSetAccountDetailRequestParametersWithDefaults instantiates a new CompareAndSetAccountDetailRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCompareAndSetAccountDetailRequestParametersWithDefaults() *CompareAndSetAccountDetailRequestParameters { + this := CompareAndSetAccountDetailRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *CompareAndSetAccountDetailRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *CompareAndSetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *CompareAndSetAccountDetailRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetKey returns the Key field value +func (o *CompareAndSetAccountDetailRequestParameters) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *CompareAndSetAccountDetailRequestParameters) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *CompareAndSetAccountDetailRequestParameters) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *CompareAndSetAccountDetailRequestParameters) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *CompareAndSetAccountDetailRequestParameters) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *CompareAndSetAccountDetailRequestParameters) SetValue(v string) { + o.Value = v +} + +// GetOldValue returns the OldValue field value if set, zero value otherwise. +func (o *CompareAndSetAccountDetailRequestParameters) GetOldValue() string { + if o == nil || IsNil(o.OldValue) { + var ret string + return ret + } + return *o.OldValue +} + +// GetOldValueOk returns a tuple with the OldValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompareAndSetAccountDetailRequestParameters) GetOldValueOk() (*string, bool) { + if o == nil || IsNil(o.OldValue) { + return nil, false + } + return o.OldValue, true +} + +// HasOldValue returns a boolean if a field has been set. +func (o *CompareAndSetAccountDetailRequestParameters) HasOldValue() bool { + if o != nil && !IsNil(o.OldValue) { + return true + } + + return false +} + +// SetOldValue gets a reference to the given string and assigns it to the OldValue field. +func (o *CompareAndSetAccountDetailRequestParameters) SetOldValue(v string) { + o.OldValue = &v +} + +// GetCheckEmpty returns the CheckEmpty field value +func (o *CompareAndSetAccountDetailRequestParameters) GetCheckEmpty() bool { + if o == nil { + var ret bool + return ret + } + + return o.CheckEmpty +} + +// GetCheckEmptyOk returns a tuple with the CheckEmpty field value +// and a boolean to check if the value has been set. +func (o *CompareAndSetAccountDetailRequestParameters) GetCheckEmptyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.CheckEmpty, true +} + +// SetCheckEmpty sets field value +func (o *CompareAndSetAccountDetailRequestParameters) SetCheckEmpty(v bool) { + o.CheckEmpty = v +} + +func (o CompareAndSetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CompareAndSetAccountDetailRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + if !IsNil(o.OldValue) { + toSerialize["oldValue"] = o.OldValue + } + toSerialize["check_empty"] = o.CheckEmpty + return toSerialize, nil +} + +type NullableCompareAndSetAccountDetailRequestParameters struct { + value *CompareAndSetAccountDetailRequestParameters + isSet bool +} + +func (v NullableCompareAndSetAccountDetailRequestParameters) Get() *CompareAndSetAccountDetailRequestParameters { + return v.value +} + +func (v *NullableCompareAndSetAccountDetailRequestParameters) Set(val *CompareAndSetAccountDetailRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCompareAndSetAccountDetailRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCompareAndSetAccountDetailRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCompareAndSetAccountDetailRequestParameters(val *CompareAndSetAccountDetailRequestParameters) *NullableCompareAndSetAccountDetailRequestParameters { + return &NullableCompareAndSetAccountDetailRequestParameters{value: val, isSet: true} +} + +func (v NullableCompareAndSetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCompareAndSetAccountDetailRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_account_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_account_request_parameters.go new file mode 100644 index 00000000000..1ce1ceb987e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_account_request_parameters.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CreateAccountRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAccountRequestParameters{} + +// CreateAccountRequestParameters The list of arguments to pass in to the transaction request to Create Account. +type CreateAccountRequestParameters struct { + AccountName string `json:"accountName"` + DomainId string `json:"domainId"` + PublicKey string `json:"publicKey"` +} + +// NewCreateAccountRequestParameters instantiates a new CreateAccountRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAccountRequestParameters(accountName string, domainId string, publicKey string) *CreateAccountRequestParameters { + this := CreateAccountRequestParameters{} + this.AccountName = accountName + this.DomainId = domainId + this.PublicKey = publicKey + return &this +} + +// NewCreateAccountRequestParametersWithDefaults instantiates a new CreateAccountRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAccountRequestParametersWithDefaults() *CreateAccountRequestParameters { + this := CreateAccountRequestParameters{} + return &this +} + +// GetAccountName returns the AccountName field value +func (o *CreateAccountRequestParameters) GetAccountName() string { + if o == nil { + var ret string + return ret + } + + return o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value +// and a boolean to check if the value has been set. +func (o *CreateAccountRequestParameters) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountName, true +} + +// SetAccountName sets field value +func (o *CreateAccountRequestParameters) SetAccountName(v string) { + o.AccountName = v +} + +// GetDomainId returns the DomainId field value +func (o *CreateAccountRequestParameters) GetDomainId() string { + if o == nil { + var ret string + return ret + } + + return o.DomainId +} + +// GetDomainIdOk returns a tuple with the DomainId field value +// and a boolean to check if the value has been set. +func (o *CreateAccountRequestParameters) GetDomainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DomainId, true +} + +// SetDomainId sets field value +func (o *CreateAccountRequestParameters) SetDomainId(v string) { + o.DomainId = v +} + +// GetPublicKey returns the PublicKey field value +func (o *CreateAccountRequestParameters) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *CreateAccountRequestParameters) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *CreateAccountRequestParameters) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o CreateAccountRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAccountRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountName"] = o.AccountName + toSerialize["domainId"] = o.DomainId + toSerialize["publicKey"] = o.PublicKey + return toSerialize, nil +} + +type NullableCreateAccountRequestParameters struct { + value *CreateAccountRequestParameters + isSet bool +} + +func (v NullableCreateAccountRequestParameters) Get() *CreateAccountRequestParameters { + return v.value +} + +func (v *NullableCreateAccountRequestParameters) Set(val *CreateAccountRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAccountRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAccountRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAccountRequestParameters(val *CreateAccountRequestParameters) *NullableCreateAccountRequestParameters { + return &NullableCreateAccountRequestParameters{value: val, isSet: true} +} + +func (v NullableCreateAccountRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAccountRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_asset_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_asset_request_parameters.go new file mode 100644 index 00000000000..43161c68a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_asset_request_parameters.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CreateAssetRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetRequestParameters{} + +// CreateAssetRequestParameters The list of arguments to pass in to the transaction request to Create Asset. +type CreateAssetRequestParameters struct { + AssetName string `json:"assetName"` + DomainId string `json:"domainId"` + Precision int32 `json:"precision"` +} + +// NewCreateAssetRequestParameters instantiates a new CreateAssetRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAssetRequestParameters(assetName string, domainId string, precision int32) *CreateAssetRequestParameters { + this := CreateAssetRequestParameters{} + this.AssetName = assetName + this.DomainId = domainId + this.Precision = precision + return &this +} + +// NewCreateAssetRequestParametersWithDefaults instantiates a new CreateAssetRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAssetRequestParametersWithDefaults() *CreateAssetRequestParameters { + this := CreateAssetRequestParameters{} + return &this +} + +// GetAssetName returns the AssetName field value +func (o *CreateAssetRequestParameters) GetAssetName() string { + if o == nil { + var ret string + return ret + } + + return o.AssetName +} + +// GetAssetNameOk returns a tuple with the AssetName field value +// and a boolean to check if the value has been set. +func (o *CreateAssetRequestParameters) GetAssetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetName, true +} + +// SetAssetName sets field value +func (o *CreateAssetRequestParameters) SetAssetName(v string) { + o.AssetName = v +} + +// GetDomainId returns the DomainId field value +func (o *CreateAssetRequestParameters) GetDomainId() string { + if o == nil { + var ret string + return ret + } + + return o.DomainId +} + +// GetDomainIdOk returns a tuple with the DomainId field value +// and a boolean to check if the value has been set. +func (o *CreateAssetRequestParameters) GetDomainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DomainId, true +} + +// SetDomainId sets field value +func (o *CreateAssetRequestParameters) SetDomainId(v string) { + o.DomainId = v +} + +// GetPrecision returns the Precision field value +func (o *CreateAssetRequestParameters) GetPrecision() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Precision +} + +// GetPrecisionOk returns a tuple with the Precision field value +// and a boolean to check if the value has been set. +func (o *CreateAssetRequestParameters) GetPrecisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Precision, true +} + +// SetPrecision sets field value +func (o *CreateAssetRequestParameters) SetPrecision(v int32) { + o.Precision = v +} + +func (o CreateAssetRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetName"] = o.AssetName + toSerialize["domainId"] = o.DomainId + toSerialize["precision"] = o.Precision + return toSerialize, nil +} + +type NullableCreateAssetRequestParameters struct { + value *CreateAssetRequestParameters + isSet bool +} + +func (v NullableCreateAssetRequestParameters) Get() *CreateAssetRequestParameters { + return v.value +} + +func (v *NullableCreateAssetRequestParameters) Set(val *CreateAssetRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetRequestParameters(val *CreateAssetRequestParameters) *NullableCreateAssetRequestParameters { + return &NullableCreateAssetRequestParameters{value: val, isSet: true} +} + +func (v NullableCreateAssetRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_domain_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_domain_request_parameters.go new file mode 100644 index 00000000000..f752c1fe4f8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_domain_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CreateDomainRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateDomainRequestParameters{} + +// CreateDomainRequestParameters The list of arguments to pass in to the transaction request to Create Domain. +type CreateDomainRequestParameters struct { + DomainId string `json:"domainId"` + DefaultRole string `json:"defaultRole"` +} + +// NewCreateDomainRequestParameters instantiates a new CreateDomainRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateDomainRequestParameters(domainId string, defaultRole string) *CreateDomainRequestParameters { + this := CreateDomainRequestParameters{} + this.DomainId = domainId + this.DefaultRole = defaultRole + return &this +} + +// NewCreateDomainRequestParametersWithDefaults instantiates a new CreateDomainRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateDomainRequestParametersWithDefaults() *CreateDomainRequestParameters { + this := CreateDomainRequestParameters{} + return &this +} + +// GetDomainId returns the DomainId field value +func (o *CreateDomainRequestParameters) GetDomainId() string { + if o == nil { + var ret string + return ret + } + + return o.DomainId +} + +// GetDomainIdOk returns a tuple with the DomainId field value +// and a boolean to check if the value has been set. +func (o *CreateDomainRequestParameters) GetDomainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DomainId, true +} + +// SetDomainId sets field value +func (o *CreateDomainRequestParameters) SetDomainId(v string) { + o.DomainId = v +} + +// GetDefaultRole returns the DefaultRole field value +func (o *CreateDomainRequestParameters) GetDefaultRole() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultRole +} + +// GetDefaultRoleOk returns a tuple with the DefaultRole field value +// and a boolean to check if the value has been set. +func (o *CreateDomainRequestParameters) GetDefaultRoleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultRole, true +} + +// SetDefaultRole sets field value +func (o *CreateDomainRequestParameters) SetDefaultRole(v string) { + o.DefaultRole = v +} + +func (o CreateDomainRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateDomainRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["domainId"] = o.DomainId + toSerialize["defaultRole"] = o.DefaultRole + return toSerialize, nil +} + +type NullableCreateDomainRequestParameters struct { + value *CreateDomainRequestParameters + isSet bool +} + +func (v NullableCreateDomainRequestParameters) Get() *CreateDomainRequestParameters { + return v.value +} + +func (v *NullableCreateDomainRequestParameters) Set(val *CreateDomainRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateDomainRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateDomainRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateDomainRequestParameters(val *CreateDomainRequestParameters) *NullableCreateDomainRequestParameters { + return &NullableCreateDomainRequestParameters{value: val, isSet: true} +} + +func (v NullableCreateDomainRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateDomainRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_role_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_role_request_parameters.go new file mode 100644 index 00000000000..690e75c11c6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_create_role_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the CreateRoleRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateRoleRequestParameters{} + +// CreateRoleRequestParameters The list of arguments to pass in to the transaction request to Create Role. +type CreateRoleRequestParameters struct { + RoleName string `json:"roleName"` + PermissionsList []float32 `json:"permissionsList"` +} + +// NewCreateRoleRequestParameters instantiates a new CreateRoleRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateRoleRequestParameters(roleName string, permissionsList []float32) *CreateRoleRequestParameters { + this := CreateRoleRequestParameters{} + this.RoleName = roleName + this.PermissionsList = permissionsList + return &this +} + +// NewCreateRoleRequestParametersWithDefaults instantiates a new CreateRoleRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateRoleRequestParametersWithDefaults() *CreateRoleRequestParameters { + this := CreateRoleRequestParameters{} + return &this +} + +// GetRoleName returns the RoleName field value +func (o *CreateRoleRequestParameters) GetRoleName() string { + if o == nil { + var ret string + return ret + } + + return o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value +// and a boolean to check if the value has been set. +func (o *CreateRoleRequestParameters) GetRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleName, true +} + +// SetRoleName sets field value +func (o *CreateRoleRequestParameters) SetRoleName(v string) { + o.RoleName = v +} + +// GetPermissionsList returns the PermissionsList field value +func (o *CreateRoleRequestParameters) GetPermissionsList() []float32 { + if o == nil { + var ret []float32 + return ret + } + + return o.PermissionsList +} + +// GetPermissionsListOk returns a tuple with the PermissionsList field value +// and a boolean to check if the value has been set. +func (o *CreateRoleRequestParameters) GetPermissionsListOk() ([]float32, bool) { + if o == nil { + return nil, false + } + return o.PermissionsList, true +} + +// SetPermissionsList sets field value +func (o *CreateRoleRequestParameters) SetPermissionsList(v []float32) { + o.PermissionsList = v +} + +func (o CreateRoleRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateRoleRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["roleName"] = o.RoleName + toSerialize["permissionsList"] = o.PermissionsList + return toSerialize, nil +} + +type NullableCreateRoleRequestParameters struct { + value *CreateRoleRequestParameters + isSet bool +} + +func (v NullableCreateRoleRequestParameters) Get() *CreateRoleRequestParameters { + return v.value +} + +func (v *NullableCreateRoleRequestParameters) Set(val *CreateRoleRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRoleRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRoleRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRoleRequestParameters(val *CreateRoleRequestParameters) *NullableCreateRoleRequestParameters { + return &NullableCreateRoleRequestParameters{value: val, isSet: true} +} + +func (v NullableCreateRoleRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRoleRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_detach_role_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_detach_role_request_parameters.go new file mode 100644 index 00000000000..b531dd8f9c7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_detach_role_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the DetachRoleRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DetachRoleRequestParameters{} + +// DetachRoleRequestParameters The list of arguments to pass in to the transaction request to Detach Role. +type DetachRoleRequestParameters struct { + AccountId string `json:"accountId"` + RoleName string `json:"roleName"` +} + +// NewDetachRoleRequestParameters instantiates a new DetachRoleRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDetachRoleRequestParameters(accountId string, roleName string) *DetachRoleRequestParameters { + this := DetachRoleRequestParameters{} + this.AccountId = accountId + this.RoleName = roleName + return &this +} + +// NewDetachRoleRequestParametersWithDefaults instantiates a new DetachRoleRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDetachRoleRequestParametersWithDefaults() *DetachRoleRequestParameters { + this := DetachRoleRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *DetachRoleRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *DetachRoleRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *DetachRoleRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetRoleName returns the RoleName field value +func (o *DetachRoleRequestParameters) GetRoleName() string { + if o == nil { + var ret string + return ret + } + + return o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value +// and a boolean to check if the value has been set. +func (o *DetachRoleRequestParameters) GetRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleName, true +} + +// SetRoleName sets field value +func (o *DetachRoleRequestParameters) SetRoleName(v string) { + o.RoleName = v +} + +func (o DetachRoleRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DetachRoleRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["roleName"] = o.RoleName + return toSerialize, nil +} + +type NullableDetachRoleRequestParameters struct { + value *DetachRoleRequestParameters + isSet bool +} + +func (v NullableDetachRoleRequestParameters) Get() *DetachRoleRequestParameters { + return v.value +} + +func (v *NullableDetachRoleRequestParameters) Set(val *DetachRoleRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableDetachRoleRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableDetachRoleRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDetachRoleRequestParameters(val *DetachRoleRequestParameters) *NullableDetachRoleRequestParameters { + return &NullableDetachRoleRequestParameters{value: val, isSet: true} +} + +func (v NullableDetachRoleRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDetachRoleRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_json_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_json_response_v1.go new file mode 100644 index 00000000000..beb7b7cc86c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_json_response_v1.go @@ -0,0 +1,261 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the ErrorExceptionJsonResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorExceptionJsonResponseV1{} + +// ErrorExceptionJsonResponseV1 struct for ErrorExceptionJsonResponseV1 +type ErrorExceptionJsonResponseV1 struct { + Message string `json:"message"` + Name *string `json:"name,omitempty"` + Error *string `json:"error,omitempty"` + Stack *string `json:"stack,omitempty"` + Cause *string `json:"cause,omitempty"` +} + +// NewErrorExceptionJsonResponseV1 instantiates a new ErrorExceptionJsonResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorExceptionJsonResponseV1(message string) *ErrorExceptionJsonResponseV1 { + this := ErrorExceptionJsonResponseV1{} + this.Message = message + return &this +} + +// NewErrorExceptionJsonResponseV1WithDefaults instantiates a new ErrorExceptionJsonResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorExceptionJsonResponseV1WithDefaults() *ErrorExceptionJsonResponseV1 { + this := ErrorExceptionJsonResponseV1{} + return &this +} + +// GetMessage returns the Message field value +func (o *ErrorExceptionJsonResponseV1) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionJsonResponseV1) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorExceptionJsonResponseV1) SetMessage(v string) { + o.Message = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ErrorExceptionJsonResponseV1) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorExceptionJsonResponseV1) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ErrorExceptionJsonResponseV1) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ErrorExceptionJsonResponseV1) SetName(v string) { + o.Name = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ErrorExceptionJsonResponseV1) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorExceptionJsonResponseV1) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ErrorExceptionJsonResponseV1) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ErrorExceptionJsonResponseV1) SetError(v string) { + o.Error = &v +} + +// GetStack returns the Stack field value if set, zero value otherwise. +func (o *ErrorExceptionJsonResponseV1) GetStack() string { + if o == nil || IsNil(o.Stack) { + var ret string + return ret + } + return *o.Stack +} + +// GetStackOk returns a tuple with the Stack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorExceptionJsonResponseV1) GetStackOk() (*string, bool) { + if o == nil || IsNil(o.Stack) { + return nil, false + } + return o.Stack, true +} + +// HasStack returns a boolean if a field has been set. +func (o *ErrorExceptionJsonResponseV1) HasStack() bool { + if o != nil && !IsNil(o.Stack) { + return true + } + + return false +} + +// SetStack gets a reference to the given string and assigns it to the Stack field. +func (o *ErrorExceptionJsonResponseV1) SetStack(v string) { + o.Stack = &v +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *ErrorExceptionJsonResponseV1) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorExceptionJsonResponseV1) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *ErrorExceptionJsonResponseV1) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *ErrorExceptionJsonResponseV1) SetCause(v string) { + o.Cause = &v +} + +func (o ErrorExceptionJsonResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorExceptionJsonResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Stack) { + toSerialize["stack"] = o.Stack + } + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + return toSerialize, nil +} + +type NullableErrorExceptionJsonResponseV1 struct { + value *ErrorExceptionJsonResponseV1 + isSet bool +} + +func (v NullableErrorExceptionJsonResponseV1) Get() *ErrorExceptionJsonResponseV1 { + return v.value +} + +func (v *NullableErrorExceptionJsonResponseV1) Set(val *ErrorExceptionJsonResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableErrorExceptionJsonResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorExceptionJsonResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorExceptionJsonResponseV1(val *ErrorExceptionJsonResponseV1) *NullableErrorExceptionJsonResponseV1 { + return &NullableErrorExceptionJsonResponseV1{value: val, isSet: true} +} + +func (v NullableErrorExceptionJsonResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorExceptionJsonResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go new file mode 100644 index 00000000000..6f43e6bd0d6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the ErrorExceptionResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorExceptionResponseV1{} + +// ErrorExceptionResponseV1 struct for ErrorExceptionResponseV1 +type ErrorExceptionResponseV1 struct { + Message string `json:"message"` + Error string `json:"error"` +} + +// NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorExceptionResponseV1(message string, error_ string) *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + this.Message = message + this.Error = error_ + return &this +} + +// NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + return &this +} + +// GetMessage returns the Message field value +func (o *ErrorExceptionResponseV1) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorExceptionResponseV1) SetMessage(v string) { + o.Message = v +} + +// GetError returns the Error field value +func (o *ErrorExceptionResponseV1) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *ErrorExceptionResponseV1) SetError(v string) { + o.Error = v +} + +func (o ErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorExceptionResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["error"] = o.Error + return toSerialize, nil +} + +type NullableErrorExceptionResponseV1 struct { + value *ErrorExceptionResponseV1 + isSet bool +} + +func (v NullableErrorExceptionResponseV1) Get() *ErrorExceptionResponseV1 { + return v.value +} + +func (v *NullableErrorExceptionResponseV1) Set(val *ErrorExceptionResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableErrorExceptionResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorExceptionResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorExceptionResponseV1(val *ErrorExceptionResponseV1) *NullableErrorExceptionResponseV1 { + return &NullableErrorExceptionResponseV1{value: val, isSet: true} +} + +func (v NullableErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorExceptionResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go new file mode 100644 index 00000000000..bc74054afe3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GenerateTransactionRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenerateTransactionRequestV1{} + +// GenerateTransactionRequestV1 struct for GenerateTransactionRequestV1 +type GenerateTransactionRequestV1 struct { + // Iroha command name. + CommandName IrohaCommand `json:"commandName"` + // Parameters for iroha command specified in commandName + CommandParams map[string]interface{} `json:"commandParams"` + // Sender account id + CreatorAccountId string `json:"creatorAccountId"` + // Requested transaction quorum + Quorum *float32 `json:"quorum,omitempty"` +} + +// NewGenerateTransactionRequestV1 instantiates a new GenerateTransactionRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGenerateTransactionRequestV1(commandName IrohaCommand, commandParams map[string]interface{}, creatorAccountId string) *GenerateTransactionRequestV1 { + this := GenerateTransactionRequestV1{} + this.CommandName = commandName + this.CommandParams = commandParams + this.CreatorAccountId = creatorAccountId + var quorum float32 = 1 + this.Quorum = &quorum + return &this +} + +// NewGenerateTransactionRequestV1WithDefaults instantiates a new GenerateTransactionRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGenerateTransactionRequestV1WithDefaults() *GenerateTransactionRequestV1 { + this := GenerateTransactionRequestV1{} + var quorum float32 = 1 + this.Quorum = &quorum + return &this +} + +// GetCommandName returns the CommandName field value +func (o *GenerateTransactionRequestV1) GetCommandName() IrohaCommand { + if o == nil { + var ret IrohaCommand + return ret + } + + return o.CommandName +} + +// GetCommandNameOk returns a tuple with the CommandName field value +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetCommandNameOk() (*IrohaCommand, bool) { + if o == nil { + return nil, false + } + return &o.CommandName, true +} + +// SetCommandName sets field value +func (o *GenerateTransactionRequestV1) SetCommandName(v IrohaCommand) { + o.CommandName = v +} + +// GetCommandParams returns the CommandParams field value +func (o *GenerateTransactionRequestV1) GetCommandParams() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.CommandParams +} + +// GetCommandParamsOk returns a tuple with the CommandParams field value +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetCommandParamsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.CommandParams, true +} + +// SetCommandParams sets field value +func (o *GenerateTransactionRequestV1) SetCommandParams(v map[string]interface{}) { + o.CommandParams = v +} + +// GetCreatorAccountId returns the CreatorAccountId field value +func (o *GenerateTransactionRequestV1) GetCreatorAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.CreatorAccountId +} + +// GetCreatorAccountIdOk returns a tuple with the CreatorAccountId field value +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetCreatorAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatorAccountId, true +} + +// SetCreatorAccountId sets field value +func (o *GenerateTransactionRequestV1) SetCreatorAccountId(v string) { + o.CreatorAccountId = v +} + +// GetQuorum returns the Quorum field value if set, zero value otherwise. +func (o *GenerateTransactionRequestV1) GetQuorum() float32 { + if o == nil || IsNil(o.Quorum) { + var ret float32 + return ret + } + return *o.Quorum +} + +// GetQuorumOk returns a tuple with the Quorum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetQuorumOk() (*float32, bool) { + if o == nil || IsNil(o.Quorum) { + return nil, false + } + return o.Quorum, true +} + +// HasQuorum returns a boolean if a field has been set. +func (o *GenerateTransactionRequestV1) HasQuorum() bool { + if o != nil && !IsNil(o.Quorum) { + return true + } + + return false +} + +// SetQuorum gets a reference to the given float32 and assigns it to the Quorum field. +func (o *GenerateTransactionRequestV1) SetQuorum(v float32) { + o.Quorum = &v +} + +func (o GenerateTransactionRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenerateTransactionRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commandName"] = o.CommandName + toSerialize["commandParams"] = o.CommandParams + toSerialize["creatorAccountId"] = o.CreatorAccountId + if !IsNil(o.Quorum) { + toSerialize["quorum"] = o.Quorum + } + return toSerialize, nil +} + +type NullableGenerateTransactionRequestV1 struct { + value *GenerateTransactionRequestV1 + isSet bool +} + +func (v NullableGenerateTransactionRequestV1) Get() *GenerateTransactionRequestV1 { + return v.value +} + +func (v *NullableGenerateTransactionRequestV1) Set(val *GenerateTransactionRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGenerateTransactionRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGenerateTransactionRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenerateTransactionRequestV1(val *GenerateTransactionRequestV1) *NullableGenerateTransactionRequestV1 { + return &NullableGenerateTransactionRequestV1{value: val, isSet: true} +} + +func (v NullableGenerateTransactionRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenerateTransactionRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_asset_transactions_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_asset_transactions_request_parameters.go new file mode 100644 index 00000000000..193db032cbd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_asset_transactions_request_parameters.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAccountAssetTransactionsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccountAssetTransactionsRequestParameters{} + +// GetAccountAssetTransactionsRequestParameters The list of arguments to pass in to the transaction request to Get Account Asset Transactions. +type GetAccountAssetTransactionsRequestParameters struct { + AccountId string `json:"accountId"` + AssetId string `json:"assetId"` + PageSize int32 `json:"pageSize"` + FirstTxHash string `json:"firstTxHash"` +} + +// NewGetAccountAssetTransactionsRequestParameters instantiates a new GetAccountAssetTransactionsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccountAssetTransactionsRequestParameters(accountId string, assetId string, pageSize int32, firstTxHash string) *GetAccountAssetTransactionsRequestParameters { + this := GetAccountAssetTransactionsRequestParameters{} + this.AccountId = accountId + this.AssetId = assetId + this.PageSize = pageSize + this.FirstTxHash = firstTxHash + return &this +} + +// NewGetAccountAssetTransactionsRequestParametersWithDefaults instantiates a new GetAccountAssetTransactionsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccountAssetTransactionsRequestParametersWithDefaults() *GetAccountAssetTransactionsRequestParameters { + this := GetAccountAssetTransactionsRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GetAccountAssetTransactionsRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetTransactionsRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GetAccountAssetTransactionsRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetAssetId returns the AssetId field value +func (o *GetAccountAssetTransactionsRequestParameters) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetTransactionsRequestParameters) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *GetAccountAssetTransactionsRequestParameters) SetAssetId(v string) { + o.AssetId = v +} + +// GetPageSize returns the PageSize field value +func (o *GetAccountAssetTransactionsRequestParameters) GetPageSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetTransactionsRequestParameters) GetPageSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PageSize, true +} + +// SetPageSize sets field value +func (o *GetAccountAssetTransactionsRequestParameters) SetPageSize(v int32) { + o.PageSize = v +} + +// GetFirstTxHash returns the FirstTxHash field value +func (o *GetAccountAssetTransactionsRequestParameters) GetFirstTxHash() string { + if o == nil { + var ret string + return ret + } + + return o.FirstTxHash +} + +// GetFirstTxHashOk returns a tuple with the FirstTxHash field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FirstTxHash, true +} + +// SetFirstTxHash sets field value +func (o *GetAccountAssetTransactionsRequestParameters) SetFirstTxHash(v string) { + o.FirstTxHash = v +} + +func (o GetAccountAssetTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccountAssetTransactionsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["assetId"] = o.AssetId + toSerialize["pageSize"] = o.PageSize + toSerialize["firstTxHash"] = o.FirstTxHash + return toSerialize, nil +} + +type NullableGetAccountAssetTransactionsRequestParameters struct { + value *GetAccountAssetTransactionsRequestParameters + isSet bool +} + +func (v NullableGetAccountAssetTransactionsRequestParameters) Get() *GetAccountAssetTransactionsRequestParameters { + return v.value +} + +func (v *NullableGetAccountAssetTransactionsRequestParameters) Set(val *GetAccountAssetTransactionsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccountAssetTransactionsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccountAssetTransactionsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccountAssetTransactionsRequestParameters(val *GetAccountAssetTransactionsRequestParameters) *NullableGetAccountAssetTransactionsRequestParameters { + return &NullableGetAccountAssetTransactionsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAccountAssetTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccountAssetTransactionsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_assets_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_assets_request_parameters.go new file mode 100644 index 00000000000..4bb2e9b947d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_assets_request_parameters.go @@ -0,0 +1,180 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAccountAssetsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccountAssetsRequestParameters{} + +// GetAccountAssetsRequestParameters The list of arguments to pass in to the transaction request to Get Account Assets. +type GetAccountAssetsRequestParameters struct { + AccountId string `json:"accountId"` + PageSize float32 `json:"pageSize"` + FirstAssetId *string `json:"firstAssetId,omitempty"` +} + +// NewGetAccountAssetsRequestParameters instantiates a new GetAccountAssetsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccountAssetsRequestParameters(accountId string, pageSize float32) *GetAccountAssetsRequestParameters { + this := GetAccountAssetsRequestParameters{} + this.AccountId = accountId + this.PageSize = pageSize + return &this +} + +// NewGetAccountAssetsRequestParametersWithDefaults instantiates a new GetAccountAssetsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccountAssetsRequestParametersWithDefaults() *GetAccountAssetsRequestParameters { + this := GetAccountAssetsRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GetAccountAssetsRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetsRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GetAccountAssetsRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPageSize returns the PageSize field value +func (o *GetAccountAssetsRequestParameters) GetPageSize() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value +// and a boolean to check if the value has been set. +func (o *GetAccountAssetsRequestParameters) GetPageSizeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.PageSize, true +} + +// SetPageSize sets field value +func (o *GetAccountAssetsRequestParameters) SetPageSize(v float32) { + o.PageSize = v +} + +// GetFirstAssetId returns the FirstAssetId field value if set, zero value otherwise. +func (o *GetAccountAssetsRequestParameters) GetFirstAssetId() string { + if o == nil || IsNil(o.FirstAssetId) { + var ret string + return ret + } + return *o.FirstAssetId +} + +// GetFirstAssetIdOk returns a tuple with the FirstAssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountAssetsRequestParameters) GetFirstAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.FirstAssetId) { + return nil, false + } + return o.FirstAssetId, true +} + +// HasFirstAssetId returns a boolean if a field has been set. +func (o *GetAccountAssetsRequestParameters) HasFirstAssetId() bool { + if o != nil && !IsNil(o.FirstAssetId) { + return true + } + + return false +} + +// SetFirstAssetId gets a reference to the given string and assigns it to the FirstAssetId field. +func (o *GetAccountAssetsRequestParameters) SetFirstAssetId(v string) { + o.FirstAssetId = &v +} + +func (o GetAccountAssetsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccountAssetsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["pageSize"] = o.PageSize + if !IsNil(o.FirstAssetId) { + toSerialize["firstAssetId"] = o.FirstAssetId + } + return toSerialize, nil +} + +type NullableGetAccountAssetsRequestParameters struct { + value *GetAccountAssetsRequestParameters + isSet bool +} + +func (v NullableGetAccountAssetsRequestParameters) Get() *GetAccountAssetsRequestParameters { + return v.value +} + +func (v *NullableGetAccountAssetsRequestParameters) Set(val *GetAccountAssetsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccountAssetsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccountAssetsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccountAssetsRequestParameters(val *GetAccountAssetsRequestParameters) *NullableGetAccountAssetsRequestParameters { + return &NullableGetAccountAssetsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAccountAssetsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccountAssetsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_detail_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_detail_request_parameters.go new file mode 100644 index 00000000000..56d9d0072b1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_detail_request_parameters.go @@ -0,0 +1,279 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAccountDetailRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccountDetailRequestParameters{} + +// GetAccountDetailRequestParameters The list of arguments to pass in to the transaction request to Get Account Detail. +type GetAccountDetailRequestParameters struct { + AccountId *string `json:"accountId,omitempty"` + Key *string `json:"key,omitempty"` + Writer *string `json:"writer,omitempty"` + PageSize int32 `json:"pageSize"` + PaginationKey string `json:"paginationKey"` + PaginationWriter string `json:"paginationWriter"` +} + +// NewGetAccountDetailRequestParameters instantiates a new GetAccountDetailRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccountDetailRequestParameters(pageSize int32, paginationKey string, paginationWriter string) *GetAccountDetailRequestParameters { + this := GetAccountDetailRequestParameters{} + this.PageSize = pageSize + this.PaginationKey = paginationKey + this.PaginationWriter = paginationWriter + return &this +} + +// NewGetAccountDetailRequestParametersWithDefaults instantiates a new GetAccountDetailRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccountDetailRequestParametersWithDefaults() *GetAccountDetailRequestParameters { + this := GetAccountDetailRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *GetAccountDetailRequestParameters) GetAccountId() string { + if o == nil || IsNil(o.AccountId) { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil || IsNil(o.AccountId) { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *GetAccountDetailRequestParameters) HasAccountId() bool { + if o != nil && !IsNil(o.AccountId) { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *GetAccountDetailRequestParameters) SetAccountId(v string) { + o.AccountId = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *GetAccountDetailRequestParameters) GetKey() string { + if o == nil || IsNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetKeyOk() (*string, bool) { + if o == nil || IsNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *GetAccountDetailRequestParameters) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *GetAccountDetailRequestParameters) SetKey(v string) { + o.Key = &v +} + +// GetWriter returns the Writer field value if set, zero value otherwise. +func (o *GetAccountDetailRequestParameters) GetWriter() string { + if o == nil || IsNil(o.Writer) { + var ret string + return ret + } + return *o.Writer +} + +// GetWriterOk returns a tuple with the Writer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetWriterOk() (*string, bool) { + if o == nil || IsNil(o.Writer) { + return nil, false + } + return o.Writer, true +} + +// HasWriter returns a boolean if a field has been set. +func (o *GetAccountDetailRequestParameters) HasWriter() bool { + if o != nil && !IsNil(o.Writer) { + return true + } + + return false +} + +// SetWriter gets a reference to the given string and assigns it to the Writer field. +func (o *GetAccountDetailRequestParameters) SetWriter(v string) { + o.Writer = &v +} + +// GetPageSize returns the PageSize field value +func (o *GetAccountDetailRequestParameters) GetPageSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetPageSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PageSize, true +} + +// SetPageSize sets field value +func (o *GetAccountDetailRequestParameters) SetPageSize(v int32) { + o.PageSize = v +} + +// GetPaginationKey returns the PaginationKey field value +func (o *GetAccountDetailRequestParameters) GetPaginationKey() string { + if o == nil { + var ret string + return ret + } + + return o.PaginationKey +} + +// GetPaginationKeyOk returns a tuple with the PaginationKey field value +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetPaginationKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PaginationKey, true +} + +// SetPaginationKey sets field value +func (o *GetAccountDetailRequestParameters) SetPaginationKey(v string) { + o.PaginationKey = v +} + +// GetPaginationWriter returns the PaginationWriter field value +func (o *GetAccountDetailRequestParameters) GetPaginationWriter() string { + if o == nil { + var ret string + return ret + } + + return o.PaginationWriter +} + +// GetPaginationWriterOk returns a tuple with the PaginationWriter field value +// and a boolean to check if the value has been set. +func (o *GetAccountDetailRequestParameters) GetPaginationWriterOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PaginationWriter, true +} + +// SetPaginationWriter sets field value +func (o *GetAccountDetailRequestParameters) SetPaginationWriter(v string) { + o.PaginationWriter = v +} + +func (o GetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccountDetailRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountId) { + toSerialize["accountId"] = o.AccountId + } + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + if !IsNil(o.Writer) { + toSerialize["writer"] = o.Writer + } + toSerialize["pageSize"] = o.PageSize + toSerialize["paginationKey"] = o.PaginationKey + toSerialize["paginationWriter"] = o.PaginationWriter + return toSerialize, nil +} + +type NullableGetAccountDetailRequestParameters struct { + value *GetAccountDetailRequestParameters + isSet bool +} + +func (v NullableGetAccountDetailRequestParameters) Get() *GetAccountDetailRequestParameters { + return v.value +} + +func (v *NullableGetAccountDetailRequestParameters) Set(val *GetAccountDetailRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccountDetailRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccountDetailRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccountDetailRequestParameters(val *GetAccountDetailRequestParameters) *NullableGetAccountDetailRequestParameters { + return &NullableGetAccountDetailRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccountDetailRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_request_parameters.go new file mode 100644 index 00000000000..0d0baed2b0e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAccountRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccountRequestParameters{} + +// GetAccountRequestParameters The list of arguments to pass in to the transaction request to Get Account. +type GetAccountRequestParameters struct { + AccountId string `json:"accountId"` +} + +// NewGetAccountRequestParameters instantiates a new GetAccountRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccountRequestParameters(accountId string) *GetAccountRequestParameters { + this := GetAccountRequestParameters{} + this.AccountId = accountId + return &this +} + +// NewGetAccountRequestParametersWithDefaults instantiates a new GetAccountRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccountRequestParametersWithDefaults() *GetAccountRequestParameters { + this := GetAccountRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GetAccountRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GetAccountRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GetAccountRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +func (o GetAccountRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccountRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + return toSerialize, nil +} + +type NullableGetAccountRequestParameters struct { + value *GetAccountRequestParameters + isSet bool +} + +func (v NullableGetAccountRequestParameters) Get() *GetAccountRequestParameters { + return v.value +} + +func (v *NullableGetAccountRequestParameters) Set(val *GetAccountRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccountRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccountRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccountRequestParameters(val *GetAccountRequestParameters) *NullableGetAccountRequestParameters { + return &NullableGetAccountRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAccountRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccountRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_transactions_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_transactions_request_parameters.go new file mode 100644 index 00000000000..cc722942d7a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_account_transactions_request_parameters.go @@ -0,0 +1,315 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAccountTransactionsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccountTransactionsRequestParameters{} + +// GetAccountTransactionsRequestParameters The list of arguments to pass in to the transaction request to Get Account Transactions. +type GetAccountTransactionsRequestParameters struct { + AccountId string `json:"accountId"` + PageSize int32 `json:"pageSize"` + FirstTxHash string `json:"firstTxHash"` + FirstTxTime map[string]interface{} `json:"firstTxTime,omitempty"` + LastTxTime map[string]interface{} `json:"lastTxTime,omitempty"` + FirstTxHeight *int32 `json:"firstTxHeight,omitempty"` + LastTxHeight *int32 `json:"lastTxHeight,omitempty"` +} + +// NewGetAccountTransactionsRequestParameters instantiates a new GetAccountTransactionsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccountTransactionsRequestParameters(accountId string, pageSize int32, firstTxHash string) *GetAccountTransactionsRequestParameters { + this := GetAccountTransactionsRequestParameters{} + this.AccountId = accountId + this.PageSize = pageSize + this.FirstTxHash = firstTxHash + return &this +} + +// NewGetAccountTransactionsRequestParametersWithDefaults instantiates a new GetAccountTransactionsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccountTransactionsRequestParametersWithDefaults() *GetAccountTransactionsRequestParameters { + this := GetAccountTransactionsRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GetAccountTransactionsRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GetAccountTransactionsRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPageSize returns the PageSize field value +func (o *GetAccountTransactionsRequestParameters) GetPageSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetPageSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PageSize, true +} + +// SetPageSize sets field value +func (o *GetAccountTransactionsRequestParameters) SetPageSize(v int32) { + o.PageSize = v +} + +// GetFirstTxHash returns the FirstTxHash field value +func (o *GetAccountTransactionsRequestParameters) GetFirstTxHash() string { + if o == nil { + var ret string + return ret + } + + return o.FirstTxHash +} + +// GetFirstTxHashOk returns a tuple with the FirstTxHash field value +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FirstTxHash, true +} + +// SetFirstTxHash sets field value +func (o *GetAccountTransactionsRequestParameters) SetFirstTxHash(v string) { + o.FirstTxHash = v +} + +// GetFirstTxTime returns the FirstTxTime field value if set, zero value otherwise. +func (o *GetAccountTransactionsRequestParameters) GetFirstTxTime() map[string]interface{} { + if o == nil || IsNil(o.FirstTxTime) { + var ret map[string]interface{} + return ret + } + return o.FirstTxTime +} + +// GetFirstTxTimeOk returns a tuple with the FirstTxTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetFirstTxTimeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FirstTxTime) { + return map[string]interface{}{}, false + } + return o.FirstTxTime, true +} + +// HasFirstTxTime returns a boolean if a field has been set. +func (o *GetAccountTransactionsRequestParameters) HasFirstTxTime() bool { + if o != nil && !IsNil(o.FirstTxTime) { + return true + } + + return false +} + +// SetFirstTxTime gets a reference to the given map[string]interface{} and assigns it to the FirstTxTime field. +func (o *GetAccountTransactionsRequestParameters) SetFirstTxTime(v map[string]interface{}) { + o.FirstTxTime = v +} + +// GetLastTxTime returns the LastTxTime field value if set, zero value otherwise. +func (o *GetAccountTransactionsRequestParameters) GetLastTxTime() map[string]interface{} { + if o == nil || IsNil(o.LastTxTime) { + var ret map[string]interface{} + return ret + } + return o.LastTxTime +} + +// GetLastTxTimeOk returns a tuple with the LastTxTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetLastTxTimeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.LastTxTime) { + return map[string]interface{}{}, false + } + return o.LastTxTime, true +} + +// HasLastTxTime returns a boolean if a field has been set. +func (o *GetAccountTransactionsRequestParameters) HasLastTxTime() bool { + if o != nil && !IsNil(o.LastTxTime) { + return true + } + + return false +} + +// SetLastTxTime gets a reference to the given map[string]interface{} and assigns it to the LastTxTime field. +func (o *GetAccountTransactionsRequestParameters) SetLastTxTime(v map[string]interface{}) { + o.LastTxTime = v +} + +// GetFirstTxHeight returns the FirstTxHeight field value if set, zero value otherwise. +func (o *GetAccountTransactionsRequestParameters) GetFirstTxHeight() int32 { + if o == nil || IsNil(o.FirstTxHeight) { + var ret int32 + return ret + } + return *o.FirstTxHeight +} + +// GetFirstTxHeightOk returns a tuple with the FirstTxHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetFirstTxHeightOk() (*int32, bool) { + if o == nil || IsNil(o.FirstTxHeight) { + return nil, false + } + return o.FirstTxHeight, true +} + +// HasFirstTxHeight returns a boolean if a field has been set. +func (o *GetAccountTransactionsRequestParameters) HasFirstTxHeight() bool { + if o != nil && !IsNil(o.FirstTxHeight) { + return true + } + + return false +} + +// SetFirstTxHeight gets a reference to the given int32 and assigns it to the FirstTxHeight field. +func (o *GetAccountTransactionsRequestParameters) SetFirstTxHeight(v int32) { + o.FirstTxHeight = &v +} + +// GetLastTxHeight returns the LastTxHeight field value if set, zero value otherwise. +func (o *GetAccountTransactionsRequestParameters) GetLastTxHeight() int32 { + if o == nil || IsNil(o.LastTxHeight) { + var ret int32 + return ret + } + return *o.LastTxHeight +} + +// GetLastTxHeightOk returns a tuple with the LastTxHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccountTransactionsRequestParameters) GetLastTxHeightOk() (*int32, bool) { + if o == nil || IsNil(o.LastTxHeight) { + return nil, false + } + return o.LastTxHeight, true +} + +// HasLastTxHeight returns a boolean if a field has been set. +func (o *GetAccountTransactionsRequestParameters) HasLastTxHeight() bool { + if o != nil && !IsNil(o.LastTxHeight) { + return true + } + + return false +} + +// SetLastTxHeight gets a reference to the given int32 and assigns it to the LastTxHeight field. +func (o *GetAccountTransactionsRequestParameters) SetLastTxHeight(v int32) { + o.LastTxHeight = &v +} + +func (o GetAccountTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccountTransactionsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["pageSize"] = o.PageSize + toSerialize["firstTxHash"] = o.FirstTxHash + if !IsNil(o.FirstTxTime) { + toSerialize["firstTxTime"] = o.FirstTxTime + } + if !IsNil(o.LastTxTime) { + toSerialize["lastTxTime"] = o.LastTxTime + } + if !IsNil(o.FirstTxHeight) { + toSerialize["firstTxHeight"] = o.FirstTxHeight + } + if !IsNil(o.LastTxHeight) { + toSerialize["lastTxHeight"] = o.LastTxHeight + } + return toSerialize, nil +} + +type NullableGetAccountTransactionsRequestParameters struct { + value *GetAccountTransactionsRequestParameters + isSet bool +} + +func (v NullableGetAccountTransactionsRequestParameters) Get() *GetAccountTransactionsRequestParameters { + return v.value +} + +func (v *NullableGetAccountTransactionsRequestParameters) Set(val *GetAccountTransactionsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccountTransactionsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccountTransactionsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccountTransactionsRequestParameters(val *GetAccountTransactionsRequestParameters) *NullableGetAccountTransactionsRequestParameters { + return &NullableGetAccountTransactionsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAccountTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccountTransactionsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_asset_info_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_asset_info_request_parameters.go new file mode 100644 index 00000000000..ee218f5791b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_asset_info_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetAssetInfoRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAssetInfoRequestParameters{} + +// GetAssetInfoRequestParameters The list of arguments to pass in to the transaction request to Get Asset Info. +type GetAssetInfoRequestParameters struct { + AssetId string `json:"assetId"` +} + +// NewGetAssetInfoRequestParameters instantiates a new GetAssetInfoRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAssetInfoRequestParameters(assetId string) *GetAssetInfoRequestParameters { + this := GetAssetInfoRequestParameters{} + this.AssetId = assetId + return &this +} + +// NewGetAssetInfoRequestParametersWithDefaults instantiates a new GetAssetInfoRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAssetInfoRequestParametersWithDefaults() *GetAssetInfoRequestParameters { + this := GetAssetInfoRequestParameters{} + return &this +} + +// GetAssetId returns the AssetId field value +func (o *GetAssetInfoRequestParameters) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *GetAssetInfoRequestParameters) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *GetAssetInfoRequestParameters) SetAssetId(v string) { + o.AssetId = v +} + +func (o GetAssetInfoRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAssetInfoRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetId"] = o.AssetId + return toSerialize, nil +} + +type NullableGetAssetInfoRequestParameters struct { + value *GetAssetInfoRequestParameters + isSet bool +} + +func (v NullableGetAssetInfoRequestParameters) Get() *GetAssetInfoRequestParameters { + return v.value +} + +func (v *NullableGetAssetInfoRequestParameters) Set(val *GetAssetInfoRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetAssetInfoRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAssetInfoRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAssetInfoRequestParameters(val *GetAssetInfoRequestParameters) *NullableGetAssetInfoRequestParameters { + return &NullableGetAssetInfoRequestParameters{value: val, isSet: true} +} + +func (v NullableGetAssetInfoRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAssetInfoRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_block_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_block_request_parameters.go new file mode 100644 index 00000000000..32f2b550e19 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_block_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetBlockRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBlockRequestParameters{} + +// GetBlockRequestParameters The list of arguments to pass in to the transaction request to Get Block. +type GetBlockRequestParameters struct { + Height int32 `json:"height"` +} + +// NewGetBlockRequestParameters instantiates a new GetBlockRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBlockRequestParameters(height int32) *GetBlockRequestParameters { + this := GetBlockRequestParameters{} + this.Height = height + return &this +} + +// NewGetBlockRequestParametersWithDefaults instantiates a new GetBlockRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBlockRequestParametersWithDefaults() *GetBlockRequestParameters { + this := GetBlockRequestParameters{} + return &this +} + +// GetHeight returns the Height field value +func (o *GetBlockRequestParameters) GetHeight() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Height +} + +// GetHeightOk returns a tuple with the Height field value +// and a boolean to check if the value has been set. +func (o *GetBlockRequestParameters) GetHeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Height, true +} + +// SetHeight sets field value +func (o *GetBlockRequestParameters) SetHeight(v int32) { + o.Height = v +} + +func (o GetBlockRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBlockRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["height"] = o.Height + return toSerialize, nil +} + +type NullableGetBlockRequestParameters struct { + value *GetBlockRequestParameters + isSet bool +} + +func (v NullableGetBlockRequestParameters) Get() *GetBlockRequestParameters { + return v.value +} + +func (v *NullableGetBlockRequestParameters) Set(val *GetBlockRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetBlockRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBlockRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBlockRequestParameters(val *GetBlockRequestParameters) *NullableGetBlockRequestParameters { + return &NullableGetBlockRequestParameters{value: val, isSet: true} +} + +func (v NullableGetBlockRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBlockRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_engine_receipts_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_engine_receipts_request_parameters.go new file mode 100644 index 00000000000..471c7354cb5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_engine_receipts_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetEngineReceiptsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetEngineReceiptsRequestParameters{} + +// GetEngineReceiptsRequestParameters The list of arguments to pass in to the transaction request to Get Engine Receipts. +type GetEngineReceiptsRequestParameters struct { + TxHash string `json:"txHash"` +} + +// NewGetEngineReceiptsRequestParameters instantiates a new GetEngineReceiptsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetEngineReceiptsRequestParameters(txHash string) *GetEngineReceiptsRequestParameters { + this := GetEngineReceiptsRequestParameters{} + this.TxHash = txHash + return &this +} + +// NewGetEngineReceiptsRequestParametersWithDefaults instantiates a new GetEngineReceiptsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetEngineReceiptsRequestParametersWithDefaults() *GetEngineReceiptsRequestParameters { + this := GetEngineReceiptsRequestParameters{} + return &this +} + +// GetTxHash returns the TxHash field value +func (o *GetEngineReceiptsRequestParameters) GetTxHash() string { + if o == nil { + var ret string + return ret + } + + return o.TxHash +} + +// GetTxHashOk returns a tuple with the TxHash field value +// and a boolean to check if the value has been set. +func (o *GetEngineReceiptsRequestParameters) GetTxHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TxHash, true +} + +// SetTxHash sets field value +func (o *GetEngineReceiptsRequestParameters) SetTxHash(v string) { + o.TxHash = v +} + +func (o GetEngineReceiptsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetEngineReceiptsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["txHash"] = o.TxHash + return toSerialize, nil +} + +type NullableGetEngineReceiptsRequestParameters struct { + value *GetEngineReceiptsRequestParameters + isSet bool +} + +func (v NullableGetEngineReceiptsRequestParameters) Get() *GetEngineReceiptsRequestParameters { + return v.value +} + +func (v *NullableGetEngineReceiptsRequestParameters) Set(val *GetEngineReceiptsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetEngineReceiptsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetEngineReceiptsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetEngineReceiptsRequestParameters(val *GetEngineReceiptsRequestParameters) *NullableGetEngineReceiptsRequestParameters { + return &NullableGetEngineReceiptsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetEngineReceiptsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetEngineReceiptsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_pending_transactions_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_pending_transactions_request_parameters.go new file mode 100644 index 00000000000..c21564e310b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_pending_transactions_request_parameters.go @@ -0,0 +1,225 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetPendingTransactionsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetPendingTransactionsRequestParameters{} + +// GetPendingTransactionsRequestParameters The list of arguments to pass in to the transaction request to Get Pending Transactions. +type GetPendingTransactionsRequestParameters struct { + PageSize int32 `json:"pageSize"` + FirstTxHash *string `json:"firstTxHash,omitempty"` + FirstTxTime map[string]interface{} `json:"firstTxTime,omitempty"` + LastTxTime map[string]interface{} `json:"lastTxTime,omitempty"` +} + +// NewGetPendingTransactionsRequestParameters instantiates a new GetPendingTransactionsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetPendingTransactionsRequestParameters(pageSize int32) *GetPendingTransactionsRequestParameters { + this := GetPendingTransactionsRequestParameters{} + this.PageSize = pageSize + return &this +} + +// NewGetPendingTransactionsRequestParametersWithDefaults instantiates a new GetPendingTransactionsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetPendingTransactionsRequestParametersWithDefaults() *GetPendingTransactionsRequestParameters { + this := GetPendingTransactionsRequestParameters{} + return &this +} + +// GetPageSize returns the PageSize field value +func (o *GetPendingTransactionsRequestParameters) GetPageSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value +// and a boolean to check if the value has been set. +func (o *GetPendingTransactionsRequestParameters) GetPageSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PageSize, true +} + +// SetPageSize sets field value +func (o *GetPendingTransactionsRequestParameters) SetPageSize(v int32) { + o.PageSize = v +} + +// GetFirstTxHash returns the FirstTxHash field value if set, zero value otherwise. +func (o *GetPendingTransactionsRequestParameters) GetFirstTxHash() string { + if o == nil || IsNil(o.FirstTxHash) { + var ret string + return ret + } + return *o.FirstTxHash +} + +// GetFirstTxHashOk returns a tuple with the FirstTxHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetPendingTransactionsRequestParameters) GetFirstTxHashOk() (*string, bool) { + if o == nil || IsNil(o.FirstTxHash) { + return nil, false + } + return o.FirstTxHash, true +} + +// HasFirstTxHash returns a boolean if a field has been set. +func (o *GetPendingTransactionsRequestParameters) HasFirstTxHash() bool { + if o != nil && !IsNil(o.FirstTxHash) { + return true + } + + return false +} + +// SetFirstTxHash gets a reference to the given string and assigns it to the FirstTxHash field. +func (o *GetPendingTransactionsRequestParameters) SetFirstTxHash(v string) { + o.FirstTxHash = &v +} + +// GetFirstTxTime returns the FirstTxTime field value if set, zero value otherwise. +func (o *GetPendingTransactionsRequestParameters) GetFirstTxTime() map[string]interface{} { + if o == nil || IsNil(o.FirstTxTime) { + var ret map[string]interface{} + return ret + } + return o.FirstTxTime +} + +// GetFirstTxTimeOk returns a tuple with the FirstTxTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetPendingTransactionsRequestParameters) GetFirstTxTimeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FirstTxTime) { + return map[string]interface{}{}, false + } + return o.FirstTxTime, true +} + +// HasFirstTxTime returns a boolean if a field has been set. +func (o *GetPendingTransactionsRequestParameters) HasFirstTxTime() bool { + if o != nil && !IsNil(o.FirstTxTime) { + return true + } + + return false +} + +// SetFirstTxTime gets a reference to the given map[string]interface{} and assigns it to the FirstTxTime field. +func (o *GetPendingTransactionsRequestParameters) SetFirstTxTime(v map[string]interface{}) { + o.FirstTxTime = v +} + +// GetLastTxTime returns the LastTxTime field value if set, zero value otherwise. +func (o *GetPendingTransactionsRequestParameters) GetLastTxTime() map[string]interface{} { + if o == nil || IsNil(o.LastTxTime) { + var ret map[string]interface{} + return ret + } + return o.LastTxTime +} + +// GetLastTxTimeOk returns a tuple with the LastTxTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetPendingTransactionsRequestParameters) GetLastTxTimeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.LastTxTime) { + return map[string]interface{}{}, false + } + return o.LastTxTime, true +} + +// HasLastTxTime returns a boolean if a field has been set. +func (o *GetPendingTransactionsRequestParameters) HasLastTxTime() bool { + if o != nil && !IsNil(o.LastTxTime) { + return true + } + + return false +} + +// SetLastTxTime gets a reference to the given map[string]interface{} and assigns it to the LastTxTime field. +func (o *GetPendingTransactionsRequestParameters) SetLastTxTime(v map[string]interface{}) { + o.LastTxTime = v +} + +func (o GetPendingTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetPendingTransactionsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["pageSize"] = o.PageSize + if !IsNil(o.FirstTxHash) { + toSerialize["firstTxHash"] = o.FirstTxHash + } + if !IsNil(o.FirstTxTime) { + toSerialize["firstTxTime"] = o.FirstTxTime + } + if !IsNil(o.LastTxTime) { + toSerialize["lastTxTime"] = o.LastTxTime + } + return toSerialize, nil +} + +type NullableGetPendingTransactionsRequestParameters struct { + value *GetPendingTransactionsRequestParameters + isSet bool +} + +func (v NullableGetPendingTransactionsRequestParameters) Get() *GetPendingTransactionsRequestParameters { + return v.value +} + +func (v *NullableGetPendingTransactionsRequestParameters) Set(val *GetPendingTransactionsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetPendingTransactionsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetPendingTransactionsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetPendingTransactionsRequestParameters(val *GetPendingTransactionsRequestParameters) *NullableGetPendingTransactionsRequestParameters { + return &NullableGetPendingTransactionsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetPendingTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetPendingTransactionsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_role_permissions_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_role_permissions_request_parameters.go new file mode 100644 index 00000000000..54aa8102862 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_role_permissions_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetRolePermissionsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetRolePermissionsRequestParameters{} + +// GetRolePermissionsRequestParameters The list of arguments to pass in to the transaction request to Get Role Permissions. +type GetRolePermissionsRequestParameters struct { + RoleId string `json:"roleId"` +} + +// NewGetRolePermissionsRequestParameters instantiates a new GetRolePermissionsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetRolePermissionsRequestParameters(roleId string) *GetRolePermissionsRequestParameters { + this := GetRolePermissionsRequestParameters{} + this.RoleId = roleId + return &this +} + +// NewGetRolePermissionsRequestParametersWithDefaults instantiates a new GetRolePermissionsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetRolePermissionsRequestParametersWithDefaults() *GetRolePermissionsRequestParameters { + this := GetRolePermissionsRequestParameters{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *GetRolePermissionsRequestParameters) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *GetRolePermissionsRequestParameters) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *GetRolePermissionsRequestParameters) SetRoleId(v string) { + o.RoleId = v +} + +func (o GetRolePermissionsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetRolePermissionsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["roleId"] = o.RoleId + return toSerialize, nil +} + +type NullableGetRolePermissionsRequestParameters struct { + value *GetRolePermissionsRequestParameters + isSet bool +} + +func (v NullableGetRolePermissionsRequestParameters) Get() *GetRolePermissionsRequestParameters { + return v.value +} + +func (v *NullableGetRolePermissionsRequestParameters) Set(val *GetRolePermissionsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetRolePermissionsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetRolePermissionsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetRolePermissionsRequestParameters(val *GetRolePermissionsRequestParameters) *NullableGetRolePermissionsRequestParameters { + return &NullableGetRolePermissionsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetRolePermissionsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetRolePermissionsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_signatories_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_signatories_request_parameters.go new file mode 100644 index 00000000000..7fd1a136eff --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_signatories_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetSignatoriesRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSignatoriesRequestParameters{} + +// GetSignatoriesRequestParameters The list of arguments to pass in to the transaction request to Get Signatories. +type GetSignatoriesRequestParameters struct { + AccountId string `json:"accountId"` +} + +// NewGetSignatoriesRequestParameters instantiates a new GetSignatoriesRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetSignatoriesRequestParameters(accountId string) *GetSignatoriesRequestParameters { + this := GetSignatoriesRequestParameters{} + this.AccountId = accountId + return &this +} + +// NewGetSignatoriesRequestParametersWithDefaults instantiates a new GetSignatoriesRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetSignatoriesRequestParametersWithDefaults() *GetSignatoriesRequestParameters { + this := GetSignatoriesRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GetSignatoriesRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GetSignatoriesRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GetSignatoriesRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +func (o GetSignatoriesRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSignatoriesRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + return toSerialize, nil +} + +type NullableGetSignatoriesRequestParameters struct { + value *GetSignatoriesRequestParameters + isSet bool +} + +func (v NullableGetSignatoriesRequestParameters) Get() *GetSignatoriesRequestParameters { + return v.value +} + +func (v *NullableGetSignatoriesRequestParameters) Set(val *GetSignatoriesRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetSignatoriesRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSignatoriesRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSignatoriesRequestParameters(val *GetSignatoriesRequestParameters) *NullableGetSignatoriesRequestParameters { + return &NullableGetSignatoriesRequestParameters{value: val, isSet: true} +} + +func (v NullableGetSignatoriesRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSignatoriesRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_transactions_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_transactions_request_parameters.go new file mode 100644 index 00000000000..1e68454991e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_get_transactions_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GetTransactionsRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTransactionsRequestParameters{} + +// GetTransactionsRequestParameters The list of arguments to pass in to the transaction request to Get Transactions. +type GetTransactionsRequestParameters struct { + TxHashesList []string `json:"txHashesList"` +} + +// NewGetTransactionsRequestParameters instantiates a new GetTransactionsRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTransactionsRequestParameters(txHashesList []string) *GetTransactionsRequestParameters { + this := GetTransactionsRequestParameters{} + this.TxHashesList = txHashesList + return &this +} + +// NewGetTransactionsRequestParametersWithDefaults instantiates a new GetTransactionsRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTransactionsRequestParametersWithDefaults() *GetTransactionsRequestParameters { + this := GetTransactionsRequestParameters{} + return &this +} + +// GetTxHashesList returns the TxHashesList field value +func (o *GetTransactionsRequestParameters) GetTxHashesList() []string { + if o == nil { + var ret []string + return ret + } + + return o.TxHashesList +} + +// GetTxHashesListOk returns a tuple with the TxHashesList field value +// and a boolean to check if the value has been set. +func (o *GetTransactionsRequestParameters) GetTxHashesListOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TxHashesList, true +} + +// SetTxHashesList sets field value +func (o *GetTransactionsRequestParameters) SetTxHashesList(v []string) { + o.TxHashesList = v +} + +func (o GetTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTransactionsRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["txHashesList"] = o.TxHashesList + return toSerialize, nil +} + +type NullableGetTransactionsRequestParameters struct { + value *GetTransactionsRequestParameters + isSet bool +} + +func (v NullableGetTransactionsRequestParameters) Get() *GetTransactionsRequestParameters { + return v.value +} + +func (v *NullableGetTransactionsRequestParameters) Set(val *GetTransactionsRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetTransactionsRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTransactionsRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTransactionsRequestParameters(val *GetTransactionsRequestParameters) *NullableGetTransactionsRequestParameters { + return &NullableGetTransactionsRequestParameters{value: val, isSet: true} +} + +func (v NullableGetTransactionsRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTransactionsRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_grant_permission_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_grant_permission_request_parameters.go new file mode 100644 index 00000000000..84cc44d3c40 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_grant_permission_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the GrantPermissionRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GrantPermissionRequestParameters{} + +// GrantPermissionRequestParameters The list of arguments to pass in to the transaction request to Grant Permission. +type GrantPermissionRequestParameters struct { + AccountId string `json:"accountId"` + Permission string `json:"permission"` +} + +// NewGrantPermissionRequestParameters instantiates a new GrantPermissionRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGrantPermissionRequestParameters(accountId string, permission string) *GrantPermissionRequestParameters { + this := GrantPermissionRequestParameters{} + this.AccountId = accountId + this.Permission = permission + return &this +} + +// NewGrantPermissionRequestParametersWithDefaults instantiates a new GrantPermissionRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGrantPermissionRequestParametersWithDefaults() *GrantPermissionRequestParameters { + this := GrantPermissionRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *GrantPermissionRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *GrantPermissionRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *GrantPermissionRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPermission returns the Permission field value +func (o *GrantPermissionRequestParameters) GetPermission() string { + if o == nil { + var ret string + return ret + } + + return o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value +// and a boolean to check if the value has been set. +func (o *GrantPermissionRequestParameters) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Permission, true +} + +// SetPermission sets field value +func (o *GrantPermissionRequestParameters) SetPermission(v string) { + o.Permission = v +} + +func (o GrantPermissionRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GrantPermissionRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["permission"] = o.Permission + return toSerialize, nil +} + +type NullableGrantPermissionRequestParameters struct { + value *GrantPermissionRequestParameters + isSet bool +} + +func (v NullableGrantPermissionRequestParameters) Get() *GrantPermissionRequestParameters { + return v.value +} + +func (v *NullableGrantPermissionRequestParameters) Set(val *GrantPermissionRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGrantPermissionRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGrantPermissionRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGrantPermissionRequestParameters(val *GrantPermissionRequestParameters) *NullableGrantPermissionRequestParameters { + return &NullableGrantPermissionRequestParameters{value: val, isSet: true} +} + +func (v NullableGrantPermissionRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGrantPermissionRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_base_config.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_base_config.go new file mode 100644 index 00000000000..cb33f2efb4c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_base_config.go @@ -0,0 +1,422 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the IrohaBaseConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaBaseConfig{} + +// IrohaBaseConfig struct for IrohaBaseConfig +type IrohaBaseConfig struct { + IrohaHost *string `json:"irohaHost,omitempty"` + IrohaPort *float32 `json:"irohaPort,omitempty"` + CreatorAccountId *string `json:"creatorAccountId,omitempty"` + PrivKey []interface{} `json:"privKey,omitempty"` + Quorum *float32 `json:"quorum,omitempty"` + TimeoutLimit *float32 `json:"timeoutLimit,omitempty"` + // Can only be set to false for an insecure grpc connection. + Tls *bool `json:"tls,omitempty"` + // Flag used for monitoring. It changes default beahviour of transaction wrapper so it return error to caller instead of throwing RuntimeError straight away. + MonitorMode NullableBool `json:"monitorMode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IrohaBaseConfig IrohaBaseConfig + +// NewIrohaBaseConfig instantiates a new IrohaBaseConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaBaseConfig() *IrohaBaseConfig { + this := IrohaBaseConfig{} + return &this +} + +// NewIrohaBaseConfigWithDefaults instantiates a new IrohaBaseConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaBaseConfigWithDefaults() *IrohaBaseConfig { + this := IrohaBaseConfig{} + return &this +} + +// GetIrohaHost returns the IrohaHost field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetIrohaHost() string { + if o == nil || IsNil(o.IrohaHost) { + var ret string + return ret + } + return *o.IrohaHost +} + +// GetIrohaHostOk returns a tuple with the IrohaHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetIrohaHostOk() (*string, bool) { + if o == nil || IsNil(o.IrohaHost) { + return nil, false + } + return o.IrohaHost, true +} + +// HasIrohaHost returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasIrohaHost() bool { + if o != nil && !IsNil(o.IrohaHost) { + return true + } + + return false +} + +// SetIrohaHost gets a reference to the given string and assigns it to the IrohaHost field. +func (o *IrohaBaseConfig) SetIrohaHost(v string) { + o.IrohaHost = &v +} + +// GetIrohaPort returns the IrohaPort field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetIrohaPort() float32 { + if o == nil || IsNil(o.IrohaPort) { + var ret float32 + return ret + } + return *o.IrohaPort +} + +// GetIrohaPortOk returns a tuple with the IrohaPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetIrohaPortOk() (*float32, bool) { + if o == nil || IsNil(o.IrohaPort) { + return nil, false + } + return o.IrohaPort, true +} + +// HasIrohaPort returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasIrohaPort() bool { + if o != nil && !IsNil(o.IrohaPort) { + return true + } + + return false +} + +// SetIrohaPort gets a reference to the given float32 and assigns it to the IrohaPort field. +func (o *IrohaBaseConfig) SetIrohaPort(v float32) { + o.IrohaPort = &v +} + +// GetCreatorAccountId returns the CreatorAccountId field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetCreatorAccountId() string { + if o == nil || IsNil(o.CreatorAccountId) { + var ret string + return ret + } + return *o.CreatorAccountId +} + +// GetCreatorAccountIdOk returns a tuple with the CreatorAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetCreatorAccountIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatorAccountId) { + return nil, false + } + return o.CreatorAccountId, true +} + +// HasCreatorAccountId returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasCreatorAccountId() bool { + if o != nil && !IsNil(o.CreatorAccountId) { + return true + } + + return false +} + +// SetCreatorAccountId gets a reference to the given string and assigns it to the CreatorAccountId field. +func (o *IrohaBaseConfig) SetCreatorAccountId(v string) { + o.CreatorAccountId = &v +} + +// GetPrivKey returns the PrivKey field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetPrivKey() []interface{} { + if o == nil || IsNil(o.PrivKey) { + var ret []interface{} + return ret + } + return o.PrivKey +} + +// GetPrivKeyOk returns a tuple with the PrivKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetPrivKeyOk() ([]interface{}, bool) { + if o == nil || IsNil(o.PrivKey) { + return nil, false + } + return o.PrivKey, true +} + +// HasPrivKey returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasPrivKey() bool { + if o != nil && !IsNil(o.PrivKey) { + return true + } + + return false +} + +// SetPrivKey gets a reference to the given []interface{} and assigns it to the PrivKey field. +func (o *IrohaBaseConfig) SetPrivKey(v []interface{}) { + o.PrivKey = v +} + +// GetQuorum returns the Quorum field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetQuorum() float32 { + if o == nil || IsNil(o.Quorum) { + var ret float32 + return ret + } + return *o.Quorum +} + +// GetQuorumOk returns a tuple with the Quorum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetQuorumOk() (*float32, bool) { + if o == nil || IsNil(o.Quorum) { + return nil, false + } + return o.Quorum, true +} + +// HasQuorum returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasQuorum() bool { + if o != nil && !IsNil(o.Quorum) { + return true + } + + return false +} + +// SetQuorum gets a reference to the given float32 and assigns it to the Quorum field. +func (o *IrohaBaseConfig) SetQuorum(v float32) { + o.Quorum = &v +} + +// GetTimeoutLimit returns the TimeoutLimit field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetTimeoutLimit() float32 { + if o == nil || IsNil(o.TimeoutLimit) { + var ret float32 + return ret + } + return *o.TimeoutLimit +} + +// GetTimeoutLimitOk returns a tuple with the TimeoutLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetTimeoutLimitOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutLimit) { + return nil, false + } + return o.TimeoutLimit, true +} + +// HasTimeoutLimit returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasTimeoutLimit() bool { + if o != nil && !IsNil(o.TimeoutLimit) { + return true + } + + return false +} + +// SetTimeoutLimit gets a reference to the given float32 and assigns it to the TimeoutLimit field. +func (o *IrohaBaseConfig) SetTimeoutLimit(v float32) { + o.TimeoutLimit = &v +} + +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *IrohaBaseConfig) GetTls() bool { + if o == nil || IsNil(o.Tls) { + var ret bool + return ret + } + return *o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaBaseConfig) GetTlsOk() (*bool, bool) { + if o == nil || IsNil(o.Tls) { + return nil, false + } + return o.Tls, true +} + +// HasTls returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasTls() bool { + if o != nil && !IsNil(o.Tls) { + return true + } + + return false +} + +// SetTls gets a reference to the given bool and assigns it to the Tls field. +func (o *IrohaBaseConfig) SetTls(v bool) { + o.Tls = &v +} + +// GetMonitorMode returns the MonitorMode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IrohaBaseConfig) GetMonitorMode() bool { + if o == nil || IsNil(o.MonitorMode.Get()) { + var ret bool + return ret + } + return *o.MonitorMode.Get() +} + +// GetMonitorModeOk returns a tuple with the MonitorMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IrohaBaseConfig) GetMonitorModeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.MonitorMode.Get(), o.MonitorMode.IsSet() +} + +// HasMonitorMode returns a boolean if a field has been set. +func (o *IrohaBaseConfig) HasMonitorMode() bool { + if o != nil && o.MonitorMode.IsSet() { + return true + } + + return false +} + +// SetMonitorMode gets a reference to the given NullableBool and assigns it to the MonitorMode field. +func (o *IrohaBaseConfig) SetMonitorMode(v bool) { + o.MonitorMode.Set(&v) +} +// SetMonitorModeNil sets the value for MonitorMode to be an explicit nil +func (o *IrohaBaseConfig) SetMonitorModeNil() { + o.MonitorMode.Set(nil) +} + +// UnsetMonitorMode ensures that no value is present for MonitorMode, not even an explicit nil +func (o *IrohaBaseConfig) UnsetMonitorMode() { + o.MonitorMode.Unset() +} + +func (o IrohaBaseConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaBaseConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IrohaHost) { + toSerialize["irohaHost"] = o.IrohaHost + } + if !IsNil(o.IrohaPort) { + toSerialize["irohaPort"] = o.IrohaPort + } + if !IsNil(o.CreatorAccountId) { + toSerialize["creatorAccountId"] = o.CreatorAccountId + } + if !IsNil(o.PrivKey) { + toSerialize["privKey"] = o.PrivKey + } + if !IsNil(o.Quorum) { + toSerialize["quorum"] = o.Quorum + } + if !IsNil(o.TimeoutLimit) { + toSerialize["timeoutLimit"] = o.TimeoutLimit + } + if !IsNil(o.Tls) { + toSerialize["tls"] = o.Tls + } + if o.MonitorMode.IsSet() { + toSerialize["monitorMode"] = o.MonitorMode.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IrohaBaseConfig) UnmarshalJSON(bytes []byte) (err error) { + varIrohaBaseConfig := _IrohaBaseConfig{} + + if err = json.Unmarshal(bytes, &varIrohaBaseConfig); err == nil { + *o = IrohaBaseConfig(varIrohaBaseConfig) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "irohaHost") + delete(additionalProperties, "irohaPort") + delete(additionalProperties, "creatorAccountId") + delete(additionalProperties, "privKey") + delete(additionalProperties, "quorum") + delete(additionalProperties, "timeoutLimit") + delete(additionalProperties, "tls") + delete(additionalProperties, "monitorMode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIrohaBaseConfig struct { + value *IrohaBaseConfig + isSet bool +} + +func (v NullableIrohaBaseConfig) Get() *IrohaBaseConfig { + return v.value +} + +func (v *NullableIrohaBaseConfig) Set(val *IrohaBaseConfig) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaBaseConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaBaseConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaBaseConfig(val *IrohaBaseConfig) *NullableIrohaBaseConfig { + return &NullableIrohaBaseConfig{value: val, isSet: true} +} + +func (v NullableIrohaBaseConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaBaseConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_progress.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_progress.go new file mode 100644 index 00000000000..1c714a180e2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_progress.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the IrohaBlockProgress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaBlockProgress{} + +// IrohaBlockProgress struct for IrohaBlockProgress +type IrohaBlockProgress struct { + TransactionReceipt IrohaBlockResponse `json:"transactionReceipt"` +} + +// NewIrohaBlockProgress instantiates a new IrohaBlockProgress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaBlockProgress(transactionReceipt IrohaBlockResponse) *IrohaBlockProgress { + this := IrohaBlockProgress{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewIrohaBlockProgressWithDefaults instantiates a new IrohaBlockProgress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaBlockProgressWithDefaults() *IrohaBlockProgress { + this := IrohaBlockProgress{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *IrohaBlockProgress) GetTransactionReceipt() IrohaBlockResponse { + if o == nil { + var ret IrohaBlockResponse + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockProgress) GetTransactionReceiptOk() (*IrohaBlockResponse, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *IrohaBlockProgress) SetTransactionReceipt(v IrohaBlockResponse) { + o.TransactionReceipt = v +} + +func (o IrohaBlockProgress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaBlockProgress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableIrohaBlockProgress struct { + value *IrohaBlockProgress + isSet bool +} + +func (v NullableIrohaBlockProgress) Get() *IrohaBlockProgress { + return v.value +} + +func (v *NullableIrohaBlockProgress) Set(val *IrohaBlockProgress) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaBlockProgress) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaBlockProgress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaBlockProgress(val *IrohaBlockProgress) *NullableIrohaBlockProgress { + return &NullableIrohaBlockProgress{value: val, isSet: true} +} + +func (v NullableIrohaBlockProgress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaBlockProgress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response.go new file mode 100644 index 00000000000..6bc168f9005 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the IrohaBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaBlockResponse{} + +// IrohaBlockResponse struct for IrohaBlockResponse +type IrohaBlockResponse struct { + Payload IrohaBlockResponsePayload `json:"payload"` + SignaturesList []interface{} `json:"signaturesList"` +} + +// NewIrohaBlockResponse instantiates a new IrohaBlockResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaBlockResponse(payload IrohaBlockResponsePayload, signaturesList []interface{}) *IrohaBlockResponse { + this := IrohaBlockResponse{} + this.Payload = payload + this.SignaturesList = signaturesList + return &this +} + +// NewIrohaBlockResponseWithDefaults instantiates a new IrohaBlockResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaBlockResponseWithDefaults() *IrohaBlockResponse { + this := IrohaBlockResponse{} + return &this +} + +// GetPayload returns the Payload field value +func (o *IrohaBlockResponse) GetPayload() IrohaBlockResponsePayload { + if o == nil { + var ret IrohaBlockResponsePayload + return ret + } + + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponse) GetPayloadOk() (*IrohaBlockResponsePayload, bool) { + if o == nil { + return nil, false + } + return &o.Payload, true +} + +// SetPayload sets field value +func (o *IrohaBlockResponse) SetPayload(v IrohaBlockResponsePayload) { + o.Payload = v +} + +// GetSignaturesList returns the SignaturesList field value +func (o *IrohaBlockResponse) GetSignaturesList() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.SignaturesList +} + +// GetSignaturesListOk returns a tuple with the SignaturesList field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponse) GetSignaturesListOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.SignaturesList, true +} + +// SetSignaturesList sets field value +func (o *IrohaBlockResponse) SetSignaturesList(v []interface{}) { + o.SignaturesList = v +} + +func (o IrohaBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["payload"] = o.Payload + toSerialize["signaturesList"] = o.SignaturesList + return toSerialize, nil +} + +type NullableIrohaBlockResponse struct { + value *IrohaBlockResponse + isSet bool +} + +func (v NullableIrohaBlockResponse) Get() *IrohaBlockResponse { + return v.value +} + +func (v *NullableIrohaBlockResponse) Set(val *IrohaBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaBlockResponse(val *IrohaBlockResponse) *NullableIrohaBlockResponse { + return &NullableIrohaBlockResponse{value: val, isSet: true} +} + +func (v NullableIrohaBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response_payload.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response_payload.go new file mode 100644 index 00000000000..d5e114fa4c3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_block_response_payload.go @@ -0,0 +1,252 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the IrohaBlockResponsePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaBlockResponsePayload{} + +// IrohaBlockResponsePayload struct for IrohaBlockResponsePayload +type IrohaBlockResponsePayload struct { + TransactionsList []interface{} `json:"transactionsList"` + TxNumber float32 `json:"txNumber"` + Height float32 `json:"height"` + PrevBlockHash string `json:"prevBlockHash"` + CreatedTime float32 `json:"createdTime"` + RejectedTransactionsHashesList []interface{} `json:"rejectedTransactionsHashesList"` +} + +// NewIrohaBlockResponsePayload instantiates a new IrohaBlockResponsePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaBlockResponsePayload(transactionsList []interface{}, txNumber float32, height float32, prevBlockHash string, createdTime float32, rejectedTransactionsHashesList []interface{}) *IrohaBlockResponsePayload { + this := IrohaBlockResponsePayload{} + this.TransactionsList = transactionsList + this.TxNumber = txNumber + this.Height = height + this.PrevBlockHash = prevBlockHash + this.CreatedTime = createdTime + this.RejectedTransactionsHashesList = rejectedTransactionsHashesList + return &this +} + +// NewIrohaBlockResponsePayloadWithDefaults instantiates a new IrohaBlockResponsePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaBlockResponsePayloadWithDefaults() *IrohaBlockResponsePayload { + this := IrohaBlockResponsePayload{} + return &this +} + +// GetTransactionsList returns the TransactionsList field value +func (o *IrohaBlockResponsePayload) GetTransactionsList() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.TransactionsList +} + +// GetTransactionsListOk returns a tuple with the TransactionsList field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetTransactionsListOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.TransactionsList, true +} + +// SetTransactionsList sets field value +func (o *IrohaBlockResponsePayload) SetTransactionsList(v []interface{}) { + o.TransactionsList = v +} + +// GetTxNumber returns the TxNumber field value +func (o *IrohaBlockResponsePayload) GetTxNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TxNumber +} + +// GetTxNumberOk returns a tuple with the TxNumber field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetTxNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TxNumber, true +} + +// SetTxNumber sets field value +func (o *IrohaBlockResponsePayload) SetTxNumber(v float32) { + o.TxNumber = v +} + +// GetHeight returns the Height field value +func (o *IrohaBlockResponsePayload) GetHeight() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Height +} + +// GetHeightOk returns a tuple with the Height field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetHeightOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Height, true +} + +// SetHeight sets field value +func (o *IrohaBlockResponsePayload) SetHeight(v float32) { + o.Height = v +} + +// GetPrevBlockHash returns the PrevBlockHash field value +func (o *IrohaBlockResponsePayload) GetPrevBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.PrevBlockHash +} + +// GetPrevBlockHashOk returns a tuple with the PrevBlockHash field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetPrevBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrevBlockHash, true +} + +// SetPrevBlockHash sets field value +func (o *IrohaBlockResponsePayload) SetPrevBlockHash(v string) { + o.PrevBlockHash = v +} + +// GetCreatedTime returns the CreatedTime field value +func (o *IrohaBlockResponsePayload) GetCreatedTime() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.CreatedTime +} + +// GetCreatedTimeOk returns a tuple with the CreatedTime field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetCreatedTimeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.CreatedTime, true +} + +// SetCreatedTime sets field value +func (o *IrohaBlockResponsePayload) SetCreatedTime(v float32) { + o.CreatedTime = v +} + +// GetRejectedTransactionsHashesList returns the RejectedTransactionsHashesList field value +func (o *IrohaBlockResponsePayload) GetRejectedTransactionsHashesList() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.RejectedTransactionsHashesList +} + +// GetRejectedTransactionsHashesListOk returns a tuple with the RejectedTransactionsHashesList field value +// and a boolean to check if the value has been set. +func (o *IrohaBlockResponsePayload) GetRejectedTransactionsHashesListOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.RejectedTransactionsHashesList, true +} + +// SetRejectedTransactionsHashesList sets field value +func (o *IrohaBlockResponsePayload) SetRejectedTransactionsHashesList(v []interface{}) { + o.RejectedTransactionsHashesList = v +} + +func (o IrohaBlockResponsePayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaBlockResponsePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionsList"] = o.TransactionsList + toSerialize["txNumber"] = o.TxNumber + toSerialize["height"] = o.Height + toSerialize["prevBlockHash"] = o.PrevBlockHash + toSerialize["createdTime"] = o.CreatedTime + toSerialize["rejectedTransactionsHashesList"] = o.RejectedTransactionsHashesList + return toSerialize, nil +} + +type NullableIrohaBlockResponsePayload struct { + value *IrohaBlockResponsePayload + isSet bool +} + +func (v NullableIrohaBlockResponsePayload) Get() *IrohaBlockResponsePayload { + return v.value +} + +func (v *NullableIrohaBlockResponsePayload) Set(val *IrohaBlockResponsePayload) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaBlockResponsePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaBlockResponsePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaBlockResponsePayload(val *IrohaBlockResponsePayload) *NullableIrohaBlockResponsePayload { + return &NullableIrohaBlockResponsePayload{value: val, isSet: true} +} + +func (v NullableIrohaBlockResponsePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaBlockResponsePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_command.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_command.go new file mode 100644 index 00000000000..034a41ea9c0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_command.go @@ -0,0 +1,147 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// IrohaCommand the model 'IrohaCommand' +type IrohaCommand string + +// List of IrohaCommand +const ( + CreateAccount IrohaCommand = "createAccount" + SetAccountDetail IrohaCommand = "setAccountDetail" + SetAccountQuorum IrohaCommand = "setAccountQuorum" + CompareAndSetAccountDetail IrohaCommand = "compareAndSetAccountDetail" + CreateAsset IrohaCommand = "createAsset" + AddAssetQuantity IrohaCommand = "addAssetQuantity" + SubtractAssetQuantity IrohaCommand = "subtractAssetQuantity" + TransferAsset IrohaCommand = "transferAsset" + CreateDomain IrohaCommand = "createDomain" + CreateRole IrohaCommand = "createRole" + DetachRole IrohaCommand = "detachRole" + AppendRole IrohaCommand = "appendRole" + AddSignatory IrohaCommand = "addSignatory" + RemoveSignatory IrohaCommand = "removeSignatory" + GrantPermission IrohaCommand = "grantPermission" + RevokePermission IrohaCommand = "revokePermission" + AddPeer IrohaCommand = "addPeer" + RemovePeer IrohaCommand = "removePeer" + SetSettingValue IrohaCommand = "setSettingValue" + CallEngine IrohaCommand = "callEngine" +) + +// All allowed values of IrohaCommand enum +var AllowedIrohaCommandEnumValues = []IrohaCommand{ + "createAccount", + "setAccountDetail", + "setAccountQuorum", + "compareAndSetAccountDetail", + "createAsset", + "addAssetQuantity", + "subtractAssetQuantity", + "transferAsset", + "createDomain", + "createRole", + "detachRole", + "appendRole", + "addSignatory", + "removeSignatory", + "grantPermission", + "revokePermission", + "addPeer", + "removePeer", + "setSettingValue", + "callEngine", +} + +func (v *IrohaCommand) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IrohaCommand(value) + for _, existing := range AllowedIrohaCommandEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IrohaCommand", value) +} + +// NewIrohaCommandFromValue returns a pointer to a valid IrohaCommand +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIrohaCommandFromValue(v string) (*IrohaCommand, error) { + ev := IrohaCommand(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IrohaCommand: valid values are %v", v, AllowedIrohaCommandEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IrohaCommand) IsValid() bool { + for _, existing := range AllowedIrohaCommandEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IrohaCommand value +func (v IrohaCommand) Ptr() *IrohaCommand { + return &v +} + +type NullableIrohaCommand struct { + value *IrohaCommand + isSet bool +} + +func (v NullableIrohaCommand) Get() *IrohaCommand { + return v.value +} + +func (v *NullableIrohaCommand) Set(val *IrohaCommand) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaCommand) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaCommand) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaCommand(val *IrohaCommand) *NullableIrohaCommand { + return &NullableIrohaCommand{value: val, isSet: true} +} + +func (v NullableIrohaCommand) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaCommand) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_query.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_query.go new file mode 100644 index 00000000000..043cef75c8c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_query.go @@ -0,0 +1,137 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// IrohaQuery the model 'IrohaQuery' +type IrohaQuery string + +// List of IrohaQuery +const ( + GetAccount IrohaQuery = "getAccount" + GetAccountDetail IrohaQuery = "getAccountDetail" + GetAssetInfo IrohaQuery = "getAssetInfo" + GetAccountAssets IrohaQuery = "getAccountAssets" + GetTransactions IrohaQuery = "getTransactions" + GetPendingTransactions IrohaQuery = "getPendingTransactions" + GetAccountTransactions IrohaQuery = "getAccountTransactions" + GetAccountAssetTransactions IrohaQuery = "getAccountAssetTransactions" + GetRoles IrohaQuery = "getRoles" + GetSignatories IrohaQuery = "getSignatories" + GetRolePermissions IrohaQuery = "getRolePermissions" + GetBlock IrohaQuery = "getBlock" + GetEngineReceipts IrohaQuery = "getEngineReceipts" + FetchCommits IrohaQuery = "fetchCommits" + GetPeers IrohaQuery = "getPeers" +) + +// All allowed values of IrohaQuery enum +var AllowedIrohaQueryEnumValues = []IrohaQuery{ + "getAccount", + "getAccountDetail", + "getAssetInfo", + "getAccountAssets", + "getTransactions", + "getPendingTransactions", + "getAccountTransactions", + "getAccountAssetTransactions", + "getRoles", + "getSignatories", + "getRolePermissions", + "getBlock", + "getEngineReceipts", + "fetchCommits", + "getPeers", +} + +func (v *IrohaQuery) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IrohaQuery(value) + for _, existing := range AllowedIrohaQueryEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IrohaQuery", value) +} + +// NewIrohaQueryFromValue returns a pointer to a valid IrohaQuery +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIrohaQueryFromValue(v string) (*IrohaQuery, error) { + ev := IrohaQuery(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IrohaQuery: valid values are %v", v, AllowedIrohaQueryEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IrohaQuery) IsValid() bool { + for _, existing := range AllowedIrohaQueryEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IrohaQuery value +func (v IrohaQuery) Ptr() *IrohaQuery { + return &v +} + +type NullableIrohaQuery struct { + value *IrohaQuery + isSet bool +} + +func (v NullableIrohaQuery) Get() *IrohaQuery { + return v.value +} + +func (v *NullableIrohaQuery) Set(val *IrohaQuery) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaQuery(val *IrohaQuery) *NullableIrohaQuery { + return &NullableIrohaQuery{value: val, isSet: true} +} + +func (v NullableIrohaQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_socket_io_transact_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_socket_io_transact_v1.go new file mode 100644 index 00000000000..c366e8ab62d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_iroha_socket_io_transact_v1.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// IrohaSocketIOTransactV1 the model 'IrohaSocketIOTransactV1' +type IrohaSocketIOTransactV1 string + +// List of IrohaSocketIOTransactV1 +const ( + SendAsyncRequest IrohaSocketIOTransactV1 = "org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendAsyncRequest" + SendSyncRequest IrohaSocketIOTransactV1 = "org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendSyncRequest" +) + +// All allowed values of IrohaSocketIOTransactV1 enum +var AllowedIrohaSocketIOTransactV1EnumValues = []IrohaSocketIOTransactV1{ + "org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendAsyncRequest", + "org.hyperledger.cactus.api.async.iroha.IrohaSocketIOTransactV1.SendSyncRequest", +} + +func (v *IrohaSocketIOTransactV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IrohaSocketIOTransactV1(value) + for _, existing := range AllowedIrohaSocketIOTransactV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IrohaSocketIOTransactV1", value) +} + +// NewIrohaSocketIOTransactV1FromValue returns a pointer to a valid IrohaSocketIOTransactV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIrohaSocketIOTransactV1FromValue(v string) (*IrohaSocketIOTransactV1, error) { + ev := IrohaSocketIOTransactV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IrohaSocketIOTransactV1: valid values are %v", v, AllowedIrohaSocketIOTransactV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IrohaSocketIOTransactV1) IsValid() bool { + for _, existing := range AllowedIrohaSocketIOTransactV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IrohaSocketIOTransactV1 value +func (v IrohaSocketIOTransactV1) Ptr() *IrohaSocketIOTransactV1 { + return &v +} + +type NullableIrohaSocketIOTransactV1 struct { + value *IrohaSocketIOTransactV1 + isSet bool +} + +func (v NullableIrohaSocketIOTransactV1) Get() *IrohaSocketIOTransactV1 { + return v.value +} + +func (v *NullableIrohaSocketIOTransactV1) Set(val *IrohaSocketIOTransactV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaSocketIOTransactV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaSocketIOTransactV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaSocketIOTransactV1(val *IrohaSocketIOTransactV1) *NullableIrohaSocketIOTransactV1 { + return &NullableIrohaSocketIOTransactV1{value: val, isSet: true} +} + +func (v NullableIrohaSocketIOTransactV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaSocketIOTransactV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_key_pair.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_key_pair.go new file mode 100644 index 00000000000..82d939f9a89 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_key_pair.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the KeyPair type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyPair{} + +// KeyPair struct for KeyPair +type KeyPair struct { + // SHA-3 ed25519 public keys of length 64 are recommended. + PublicKey string `json:"publicKey"` + // SHA-3 ed25519 private keys of length 64 are recommended. + PrivateKey string `json:"privateKey"` +} + +// NewKeyPair instantiates a new KeyPair object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyPair(publicKey string, privateKey string) *KeyPair { + this := KeyPair{} + this.PublicKey = publicKey + this.PrivateKey = privateKey + return &this +} + +// NewKeyPairWithDefaults instantiates a new KeyPair object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyPairWithDefaults() *KeyPair { + this := KeyPair{} + return &this +} + +// GetPublicKey returns the PublicKey field value +func (o *KeyPair) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *KeyPair) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *KeyPair) SetPublicKey(v string) { + o.PublicKey = v +} + +// GetPrivateKey returns the PrivateKey field value +func (o *KeyPair) GetPrivateKey() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value +// and a boolean to check if the value has been set. +func (o *KeyPair) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKey, true +} + +// SetPrivateKey sets field value +func (o *KeyPair) SetPrivateKey(v string) { + o.PrivateKey = v +} + +func (o KeyPair) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyPair) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["publicKey"] = o.PublicKey + toSerialize["privateKey"] = o.PrivateKey + return toSerialize, nil +} + +type NullableKeyPair struct { + value *KeyPair + isSet bool +} + +func (v NullableKeyPair) Get() *KeyPair { + return v.value +} + +func (v *NullableKeyPair) Set(val *KeyPair) { + v.value = val + v.isSet = true +} + +func (v NullableKeyPair) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyPair) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyPair(val *KeyPair) *NullableKeyPair { + return &NullableKeyPair{value: val, isSet: true} +} + +func (v NullableKeyPair) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyPair) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_peer_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_peer_request_parameters.go new file mode 100644 index 00000000000..6208552dc97 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_peer_request_parameters.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RemovePeerRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RemovePeerRequestParameters{} + +// RemovePeerRequestParameters The list of arguments to pass in to the transaction request to Remove Peer. +type RemovePeerRequestParameters struct { + PublicKey string `json:"publicKey"` +} + +// NewRemovePeerRequestParameters instantiates a new RemovePeerRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRemovePeerRequestParameters(publicKey string) *RemovePeerRequestParameters { + this := RemovePeerRequestParameters{} + this.PublicKey = publicKey + return &this +} + +// NewRemovePeerRequestParametersWithDefaults instantiates a new RemovePeerRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRemovePeerRequestParametersWithDefaults() *RemovePeerRequestParameters { + this := RemovePeerRequestParameters{} + return &this +} + +// GetPublicKey returns the PublicKey field value +func (o *RemovePeerRequestParameters) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *RemovePeerRequestParameters) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *RemovePeerRequestParameters) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o RemovePeerRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RemovePeerRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["publicKey"] = o.PublicKey + return toSerialize, nil +} + +type NullableRemovePeerRequestParameters struct { + value *RemovePeerRequestParameters + isSet bool +} + +func (v NullableRemovePeerRequestParameters) Get() *RemovePeerRequestParameters { + return v.value +} + +func (v *NullableRemovePeerRequestParameters) Set(val *RemovePeerRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableRemovePeerRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableRemovePeerRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRemovePeerRequestParameters(val *RemovePeerRequestParameters) *NullableRemovePeerRequestParameters { + return &NullableRemovePeerRequestParameters{value: val, isSet: true} +} + +func (v NullableRemovePeerRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRemovePeerRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_signatory_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_signatory_request_parameters.go new file mode 100644 index 00000000000..0e190a01dcb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_remove_signatory_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RemoveSignatoryRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RemoveSignatoryRequestParameters{} + +// RemoveSignatoryRequestParameters The list of arguments to pass in to the transaction request to Remove Signatory. +type RemoveSignatoryRequestParameters struct { + AccountId string `json:"accountId"` + PublicKey string `json:"publicKey"` +} + +// NewRemoveSignatoryRequestParameters instantiates a new RemoveSignatoryRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRemoveSignatoryRequestParameters(accountId string, publicKey string) *RemoveSignatoryRequestParameters { + this := RemoveSignatoryRequestParameters{} + this.AccountId = accountId + this.PublicKey = publicKey + return &this +} + +// NewRemoveSignatoryRequestParametersWithDefaults instantiates a new RemoveSignatoryRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRemoveSignatoryRequestParametersWithDefaults() *RemoveSignatoryRequestParameters { + this := RemoveSignatoryRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *RemoveSignatoryRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *RemoveSignatoryRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *RemoveSignatoryRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPublicKey returns the PublicKey field value +func (o *RemoveSignatoryRequestParameters) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *RemoveSignatoryRequestParameters) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *RemoveSignatoryRequestParameters) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o RemoveSignatoryRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RemoveSignatoryRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["publicKey"] = o.PublicKey + return toSerialize, nil +} + +type NullableRemoveSignatoryRequestParameters struct { + value *RemoveSignatoryRequestParameters + isSet bool +} + +func (v NullableRemoveSignatoryRequestParameters) Get() *RemoveSignatoryRequestParameters { + return v.value +} + +func (v *NullableRemoveSignatoryRequestParameters) Set(val *RemoveSignatoryRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableRemoveSignatoryRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableRemoveSignatoryRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRemoveSignatoryRequestParameters(val *RemoveSignatoryRequestParameters) *NullableRemoveSignatoryRequestParameters { + return &NullableRemoveSignatoryRequestParameters{value: val, isSet: true} +} + +func (v NullableRemoveSignatoryRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRemoveSignatoryRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_revoke_permission_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_revoke_permission_request_parameters.go new file mode 100644 index 00000000000..735c078e48e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_revoke_permission_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RevokePermissionRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RevokePermissionRequestParameters{} + +// RevokePermissionRequestParameters The list of arguments to pass in to the transaction request to Revoke Permission. +type RevokePermissionRequestParameters struct { + AccountId string `json:"accountId"` + Permission float32 `json:"permission"` +} + +// NewRevokePermissionRequestParameters instantiates a new RevokePermissionRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevokePermissionRequestParameters(accountId string, permission float32) *RevokePermissionRequestParameters { + this := RevokePermissionRequestParameters{} + this.AccountId = accountId + this.Permission = permission + return &this +} + +// NewRevokePermissionRequestParametersWithDefaults instantiates a new RevokePermissionRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevokePermissionRequestParametersWithDefaults() *RevokePermissionRequestParameters { + this := RevokePermissionRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *RevokePermissionRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *RevokePermissionRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *RevokePermissionRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetPermission returns the Permission field value +func (o *RevokePermissionRequestParameters) GetPermission() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value +// and a boolean to check if the value has been set. +func (o *RevokePermissionRequestParameters) GetPermissionOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Permission, true +} + +// SetPermission sets field value +func (o *RevokePermissionRequestParameters) SetPermission(v float32) { + o.Permission = v +} + +func (o RevokePermissionRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RevokePermissionRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["permission"] = o.Permission + return toSerialize, nil +} + +type NullableRevokePermissionRequestParameters struct { + value *RevokePermissionRequestParameters + isSet bool +} + +func (v NullableRevokePermissionRequestParameters) Get() *RevokePermissionRequestParameters { + return v.value +} + +func (v *NullableRevokePermissionRequestParameters) Set(val *RevokePermissionRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableRevokePermissionRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableRevokePermissionRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevokePermissionRequestParameters(val *RevokePermissionRequestParameters) *NullableRevokePermissionRequestParameters { + return &NullableRevokePermissionRequestParameters{value: val, isSet: true} +} + +func (v NullableRevokePermissionRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevokePermissionRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1.go new file mode 100644 index 00000000000..389871d2a72 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RunTransactionRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionRequestV1{} + +// RunTransactionRequestV1 struct for RunTransactionRequestV1 +type RunTransactionRequestV1 struct { + CommandName string `json:"commandName"` + BaseConfig IrohaBaseConfig `json:"baseConfig"` + Params RunTransactionRequestV1Params `json:"params"` +} + +// NewRunTransactionRequestV1 instantiates a new RunTransactionRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionRequestV1(commandName string, baseConfig IrohaBaseConfig, params RunTransactionRequestV1Params) *RunTransactionRequestV1 { + this := RunTransactionRequestV1{} + this.CommandName = commandName + this.BaseConfig = baseConfig + this.Params = params + return &this +} + +// NewRunTransactionRequestV1WithDefaults instantiates a new RunTransactionRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionRequestV1WithDefaults() *RunTransactionRequestV1 { + this := RunTransactionRequestV1{} + return &this +} + +// GetCommandName returns the CommandName field value +func (o *RunTransactionRequestV1) GetCommandName() string { + if o == nil { + var ret string + return ret + } + + return o.CommandName +} + +// GetCommandNameOk returns a tuple with the CommandName field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequestV1) GetCommandNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommandName, true +} + +// SetCommandName sets field value +func (o *RunTransactionRequestV1) SetCommandName(v string) { + o.CommandName = v +} + +// GetBaseConfig returns the BaseConfig field value +func (o *RunTransactionRequestV1) GetBaseConfig() IrohaBaseConfig { + if o == nil { + var ret IrohaBaseConfig + return ret + } + + return o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequestV1) GetBaseConfigOk() (*IrohaBaseConfig, bool) { + if o == nil { + return nil, false + } + return &o.BaseConfig, true +} + +// SetBaseConfig sets field value +func (o *RunTransactionRequestV1) SetBaseConfig(v IrohaBaseConfig) { + o.BaseConfig = v +} + +// GetParams returns the Params field value +func (o *RunTransactionRequestV1) GetParams() RunTransactionRequestV1Params { + if o == nil { + var ret RunTransactionRequestV1Params + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequestV1) GetParamsOk() (*RunTransactionRequestV1Params, bool) { + if o == nil { + return nil, false + } + return &o.Params, true +} + +// SetParams sets field value +func (o *RunTransactionRequestV1) SetParams(v RunTransactionRequestV1Params) { + o.Params = v +} + +func (o RunTransactionRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commandName"] = o.CommandName + toSerialize["baseConfig"] = o.BaseConfig + toSerialize["params"] = o.Params + return toSerialize, nil +} + +type NullableRunTransactionRequestV1 struct { + value *RunTransactionRequestV1 + isSet bool +} + +func (v NullableRunTransactionRequestV1) Get() *RunTransactionRequestV1 { + return v.value +} + +func (v *NullableRunTransactionRequestV1) Set(val *RunTransactionRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequestV1(val *RunTransactionRequestV1) *NullableRunTransactionRequestV1 { + return &NullableRunTransactionRequestV1{value: val, isSet: true} +} + +func (v NullableRunTransactionRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_body.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_body.go new file mode 100644 index 00000000000..a5e920416c4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_body.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// RunTransactionRequestV1Body - struct for RunTransactionRequestV1Body +type RunTransactionRequestV1Body struct { + RunTransactionRequestV1 *RunTransactionRequestV1 + RunTransactionSignedRequestV1 *RunTransactionSignedRequestV1 +} + +// RunTransactionRequestV1AsRunTransactionRequestV1Body is a convenience function that returns RunTransactionRequestV1 wrapped in RunTransactionRequestV1Body +func RunTransactionRequestV1AsRunTransactionRequestV1Body(v *RunTransactionRequestV1) RunTransactionRequestV1Body { + return RunTransactionRequestV1Body{ + RunTransactionRequestV1: v, + } +} + +// RunTransactionSignedRequestV1AsRunTransactionRequestV1Body is a convenience function that returns RunTransactionSignedRequestV1 wrapped in RunTransactionRequestV1Body +func RunTransactionSignedRequestV1AsRunTransactionRequestV1Body(v *RunTransactionSignedRequestV1) RunTransactionRequestV1Body { + return RunTransactionRequestV1Body{ + RunTransactionSignedRequestV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunTransactionRequestV1Body) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into RunTransactionRequestV1 + err = newStrictDecoder(data).Decode(&dst.RunTransactionRequestV1) + if err == nil { + jsonRunTransactionRequestV1, _ := json.Marshal(dst.RunTransactionRequestV1) + if string(jsonRunTransactionRequestV1) == "{}" { // empty struct + dst.RunTransactionRequestV1 = nil + } else { + match++ + } + } else { + dst.RunTransactionRequestV1 = nil + } + + // try to unmarshal data into RunTransactionSignedRequestV1 + err = newStrictDecoder(data).Decode(&dst.RunTransactionSignedRequestV1) + if err == nil { + jsonRunTransactionSignedRequestV1, _ := json.Marshal(dst.RunTransactionSignedRequestV1) + if string(jsonRunTransactionSignedRequestV1) == "{}" { // empty struct + dst.RunTransactionSignedRequestV1 = nil + } else { + match++ + } + } else { + dst.RunTransactionSignedRequestV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.RunTransactionRequestV1 = nil + dst.RunTransactionSignedRequestV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunTransactionRequestV1Body)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunTransactionRequestV1Body)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunTransactionRequestV1Body) MarshalJSON() ([]byte, error) { + if src.RunTransactionRequestV1 != nil { + return json.Marshal(&src.RunTransactionRequestV1) + } + + if src.RunTransactionSignedRequestV1 != nil { + return json.Marshal(&src.RunTransactionSignedRequestV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunTransactionRequestV1Body) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.RunTransactionRequestV1 != nil { + return obj.RunTransactionRequestV1 + } + + if obj.RunTransactionSignedRequestV1 != nil { + return obj.RunTransactionSignedRequestV1 + } + + // all schemas are nil + return nil +} + +type NullableRunTransactionRequestV1Body struct { + value *RunTransactionRequestV1Body + isSet bool +} + +func (v NullableRunTransactionRequestV1Body) Get() *RunTransactionRequestV1Body { + return v.value +} + +func (v *NullableRunTransactionRequestV1Body) Set(val *RunTransactionRequestV1Body) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequestV1Body) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequestV1Body) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequestV1Body(val *RunTransactionRequestV1Body) *NullableRunTransactionRequestV1Body { + return &NullableRunTransactionRequestV1Body{value: val, isSet: true} +} + +func (v NullableRunTransactionRequestV1Body) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequestV1Body) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_params.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_params.go new file mode 100644 index 00000000000..066aa182e36 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_request_v1_params.go @@ -0,0 +1,1048 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// RunTransactionRequestV1Params - struct for RunTransactionRequestV1Params +type RunTransactionRequestV1Params struct { + AddAssetQuantityRequestParameters *AddAssetQuantityRequestParameters + AddPeerRequestParameters *AddPeerRequestParameters + AddSignatoryRequestParameters *AddSignatoryRequestParameters + AppendRoleRequestParameters *AppendRoleRequestParameters + CallEngineRequestParameters *CallEngineRequestParameters + CompareAndSetAccountDetailRequestParameters *CompareAndSetAccountDetailRequestParameters + CreateAccountRequestParameters *CreateAccountRequestParameters + CreateAssetRequestParameters *CreateAssetRequestParameters + CreateDomainRequestParameters *CreateDomainRequestParameters + CreateRoleRequestParameters *CreateRoleRequestParameters + DetachRoleRequestParameters *DetachRoleRequestParameters + GetAccountAssetTransactionsRequestParameters *GetAccountAssetTransactionsRequestParameters + GetAccountAssetsRequestParameters *GetAccountAssetsRequestParameters + GetAccountDetailRequestParameters *GetAccountDetailRequestParameters + GetAccountRequestParameters *GetAccountRequestParameters + GetAccountTransactionsRequestParameters *GetAccountTransactionsRequestParameters + GetAssetInfoRequestParameters *GetAssetInfoRequestParameters + GetBlockRequestParameters *GetBlockRequestParameters + GetEngineReceiptsRequestParameters *GetEngineReceiptsRequestParameters + GetPendingTransactionsRequestParameters *GetPendingTransactionsRequestParameters + GetRolePermissionsRequestParameters *GetRolePermissionsRequestParameters + GetSignatoriesRequestParameters *GetSignatoriesRequestParameters + GetTransactionsRequestParameters *GetTransactionsRequestParameters + GrantPermissionRequestParameters *GrantPermissionRequestParameters + RemovePeerRequestParameters *RemovePeerRequestParameters + RemoveSignatoryRequestParameters *RemoveSignatoryRequestParameters + RevokePermissionRequestParameters *RevokePermissionRequestParameters + SetAccountDetailRequestParameters *SetAccountDetailRequestParameters + SetAccountQuorumRequestParameters *SetAccountQuorumRequestParameters + SubtractAssetQuantityRequestParameters *SubtractAssetQuantityRequestParameters + TransferAssetRequestParameters *TransferAssetRequestParameters + ArrayOfInterface{} *[]interface{} +} + +// AddAssetQuantityRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns AddAssetQuantityRequestParameters wrapped in RunTransactionRequestV1Params +func AddAssetQuantityRequestParametersAsRunTransactionRequestV1Params(v *AddAssetQuantityRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + AddAssetQuantityRequestParameters: v, + } +} + +// AddPeerRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns AddPeerRequestParameters wrapped in RunTransactionRequestV1Params +func AddPeerRequestParametersAsRunTransactionRequestV1Params(v *AddPeerRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + AddPeerRequestParameters: v, + } +} + +// AddSignatoryRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns AddSignatoryRequestParameters wrapped in RunTransactionRequestV1Params +func AddSignatoryRequestParametersAsRunTransactionRequestV1Params(v *AddSignatoryRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + AddSignatoryRequestParameters: v, + } +} + +// AppendRoleRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns AppendRoleRequestParameters wrapped in RunTransactionRequestV1Params +func AppendRoleRequestParametersAsRunTransactionRequestV1Params(v *AppendRoleRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + AppendRoleRequestParameters: v, + } +} + +// CallEngineRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CallEngineRequestParameters wrapped in RunTransactionRequestV1Params +func CallEngineRequestParametersAsRunTransactionRequestV1Params(v *CallEngineRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CallEngineRequestParameters: v, + } +} + +// CompareAndSetAccountDetailRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CompareAndSetAccountDetailRequestParameters wrapped in RunTransactionRequestV1Params +func CompareAndSetAccountDetailRequestParametersAsRunTransactionRequestV1Params(v *CompareAndSetAccountDetailRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CompareAndSetAccountDetailRequestParameters: v, + } +} + +// CreateAccountRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CreateAccountRequestParameters wrapped in RunTransactionRequestV1Params +func CreateAccountRequestParametersAsRunTransactionRequestV1Params(v *CreateAccountRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CreateAccountRequestParameters: v, + } +} + +// CreateAssetRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CreateAssetRequestParameters wrapped in RunTransactionRequestV1Params +func CreateAssetRequestParametersAsRunTransactionRequestV1Params(v *CreateAssetRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CreateAssetRequestParameters: v, + } +} + +// CreateDomainRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CreateDomainRequestParameters wrapped in RunTransactionRequestV1Params +func CreateDomainRequestParametersAsRunTransactionRequestV1Params(v *CreateDomainRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CreateDomainRequestParameters: v, + } +} + +// CreateRoleRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns CreateRoleRequestParameters wrapped in RunTransactionRequestV1Params +func CreateRoleRequestParametersAsRunTransactionRequestV1Params(v *CreateRoleRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + CreateRoleRequestParameters: v, + } +} + +// DetachRoleRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns DetachRoleRequestParameters wrapped in RunTransactionRequestV1Params +func DetachRoleRequestParametersAsRunTransactionRequestV1Params(v *DetachRoleRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + DetachRoleRequestParameters: v, + } +} + +// GetAccountAssetTransactionsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAccountAssetTransactionsRequestParameters wrapped in RunTransactionRequestV1Params +func GetAccountAssetTransactionsRequestParametersAsRunTransactionRequestV1Params(v *GetAccountAssetTransactionsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAccountAssetTransactionsRequestParameters: v, + } +} + +// GetAccountAssetsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAccountAssetsRequestParameters wrapped in RunTransactionRequestV1Params +func GetAccountAssetsRequestParametersAsRunTransactionRequestV1Params(v *GetAccountAssetsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAccountAssetsRequestParameters: v, + } +} + +// GetAccountDetailRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAccountDetailRequestParameters wrapped in RunTransactionRequestV1Params +func GetAccountDetailRequestParametersAsRunTransactionRequestV1Params(v *GetAccountDetailRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAccountDetailRequestParameters: v, + } +} + +// GetAccountRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAccountRequestParameters wrapped in RunTransactionRequestV1Params +func GetAccountRequestParametersAsRunTransactionRequestV1Params(v *GetAccountRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAccountRequestParameters: v, + } +} + +// GetAccountTransactionsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAccountTransactionsRequestParameters wrapped in RunTransactionRequestV1Params +func GetAccountTransactionsRequestParametersAsRunTransactionRequestV1Params(v *GetAccountTransactionsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAccountTransactionsRequestParameters: v, + } +} + +// GetAssetInfoRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetAssetInfoRequestParameters wrapped in RunTransactionRequestV1Params +func GetAssetInfoRequestParametersAsRunTransactionRequestV1Params(v *GetAssetInfoRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetAssetInfoRequestParameters: v, + } +} + +// GetBlockRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetBlockRequestParameters wrapped in RunTransactionRequestV1Params +func GetBlockRequestParametersAsRunTransactionRequestV1Params(v *GetBlockRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetBlockRequestParameters: v, + } +} + +// GetEngineReceiptsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetEngineReceiptsRequestParameters wrapped in RunTransactionRequestV1Params +func GetEngineReceiptsRequestParametersAsRunTransactionRequestV1Params(v *GetEngineReceiptsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetEngineReceiptsRequestParameters: v, + } +} + +// GetPendingTransactionsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetPendingTransactionsRequestParameters wrapped in RunTransactionRequestV1Params +func GetPendingTransactionsRequestParametersAsRunTransactionRequestV1Params(v *GetPendingTransactionsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetPendingTransactionsRequestParameters: v, + } +} + +// GetRolePermissionsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetRolePermissionsRequestParameters wrapped in RunTransactionRequestV1Params +func GetRolePermissionsRequestParametersAsRunTransactionRequestV1Params(v *GetRolePermissionsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetRolePermissionsRequestParameters: v, + } +} + +// GetSignatoriesRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetSignatoriesRequestParameters wrapped in RunTransactionRequestV1Params +func GetSignatoriesRequestParametersAsRunTransactionRequestV1Params(v *GetSignatoriesRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetSignatoriesRequestParameters: v, + } +} + +// GetTransactionsRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GetTransactionsRequestParameters wrapped in RunTransactionRequestV1Params +func GetTransactionsRequestParametersAsRunTransactionRequestV1Params(v *GetTransactionsRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GetTransactionsRequestParameters: v, + } +} + +// GrantPermissionRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns GrantPermissionRequestParameters wrapped in RunTransactionRequestV1Params +func GrantPermissionRequestParametersAsRunTransactionRequestV1Params(v *GrantPermissionRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + GrantPermissionRequestParameters: v, + } +} + +// RemovePeerRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns RemovePeerRequestParameters wrapped in RunTransactionRequestV1Params +func RemovePeerRequestParametersAsRunTransactionRequestV1Params(v *RemovePeerRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + RemovePeerRequestParameters: v, + } +} + +// RemoveSignatoryRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns RemoveSignatoryRequestParameters wrapped in RunTransactionRequestV1Params +func RemoveSignatoryRequestParametersAsRunTransactionRequestV1Params(v *RemoveSignatoryRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + RemoveSignatoryRequestParameters: v, + } +} + +// RevokePermissionRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns RevokePermissionRequestParameters wrapped in RunTransactionRequestV1Params +func RevokePermissionRequestParametersAsRunTransactionRequestV1Params(v *RevokePermissionRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + RevokePermissionRequestParameters: v, + } +} + +// SetAccountDetailRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns SetAccountDetailRequestParameters wrapped in RunTransactionRequestV1Params +func SetAccountDetailRequestParametersAsRunTransactionRequestV1Params(v *SetAccountDetailRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + SetAccountDetailRequestParameters: v, + } +} + +// SetAccountQuorumRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns SetAccountQuorumRequestParameters wrapped in RunTransactionRequestV1Params +func SetAccountQuorumRequestParametersAsRunTransactionRequestV1Params(v *SetAccountQuorumRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + SetAccountQuorumRequestParameters: v, + } +} + +// SubtractAssetQuantityRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns SubtractAssetQuantityRequestParameters wrapped in RunTransactionRequestV1Params +func SubtractAssetQuantityRequestParametersAsRunTransactionRequestV1Params(v *SubtractAssetQuantityRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + SubtractAssetQuantityRequestParameters: v, + } +} + +// TransferAssetRequestParametersAsRunTransactionRequestV1Params is a convenience function that returns TransferAssetRequestParameters wrapped in RunTransactionRequestV1Params +func TransferAssetRequestParametersAsRunTransactionRequestV1Params(v *TransferAssetRequestParameters) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + TransferAssetRequestParameters: v, + } +} + +// []interface{}AsRunTransactionRequestV1Params is a convenience function that returns []interface{} wrapped in RunTransactionRequestV1Params +func ArrayOfInterface{}AsRunTransactionRequestV1Params(v *[]interface{}) RunTransactionRequestV1Params { + return RunTransactionRequestV1Params{ + ArrayOfInterface{}: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunTransactionRequestV1Params) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into AddAssetQuantityRequestParameters + err = newStrictDecoder(data).Decode(&dst.AddAssetQuantityRequestParameters) + if err == nil { + jsonAddAssetQuantityRequestParameters, _ := json.Marshal(dst.AddAssetQuantityRequestParameters) + if string(jsonAddAssetQuantityRequestParameters) == "{}" { // empty struct + dst.AddAssetQuantityRequestParameters = nil + } else { + match++ + } + } else { + dst.AddAssetQuantityRequestParameters = nil + } + + // try to unmarshal data into AddPeerRequestParameters + err = newStrictDecoder(data).Decode(&dst.AddPeerRequestParameters) + if err == nil { + jsonAddPeerRequestParameters, _ := json.Marshal(dst.AddPeerRequestParameters) + if string(jsonAddPeerRequestParameters) == "{}" { // empty struct + dst.AddPeerRequestParameters = nil + } else { + match++ + } + } else { + dst.AddPeerRequestParameters = nil + } + + // try to unmarshal data into AddSignatoryRequestParameters + err = newStrictDecoder(data).Decode(&dst.AddSignatoryRequestParameters) + if err == nil { + jsonAddSignatoryRequestParameters, _ := json.Marshal(dst.AddSignatoryRequestParameters) + if string(jsonAddSignatoryRequestParameters) == "{}" { // empty struct + dst.AddSignatoryRequestParameters = nil + } else { + match++ + } + } else { + dst.AddSignatoryRequestParameters = nil + } + + // try to unmarshal data into AppendRoleRequestParameters + err = newStrictDecoder(data).Decode(&dst.AppendRoleRequestParameters) + if err == nil { + jsonAppendRoleRequestParameters, _ := json.Marshal(dst.AppendRoleRequestParameters) + if string(jsonAppendRoleRequestParameters) == "{}" { // empty struct + dst.AppendRoleRequestParameters = nil + } else { + match++ + } + } else { + dst.AppendRoleRequestParameters = nil + } + + // try to unmarshal data into CallEngineRequestParameters + err = newStrictDecoder(data).Decode(&dst.CallEngineRequestParameters) + if err == nil { + jsonCallEngineRequestParameters, _ := json.Marshal(dst.CallEngineRequestParameters) + if string(jsonCallEngineRequestParameters) == "{}" { // empty struct + dst.CallEngineRequestParameters = nil + } else { + match++ + } + } else { + dst.CallEngineRequestParameters = nil + } + + // try to unmarshal data into CompareAndSetAccountDetailRequestParameters + err = newStrictDecoder(data).Decode(&dst.CompareAndSetAccountDetailRequestParameters) + if err == nil { + jsonCompareAndSetAccountDetailRequestParameters, _ := json.Marshal(dst.CompareAndSetAccountDetailRequestParameters) + if string(jsonCompareAndSetAccountDetailRequestParameters) == "{}" { // empty struct + dst.CompareAndSetAccountDetailRequestParameters = nil + } else { + match++ + } + } else { + dst.CompareAndSetAccountDetailRequestParameters = nil + } + + // try to unmarshal data into CreateAccountRequestParameters + err = newStrictDecoder(data).Decode(&dst.CreateAccountRequestParameters) + if err == nil { + jsonCreateAccountRequestParameters, _ := json.Marshal(dst.CreateAccountRequestParameters) + if string(jsonCreateAccountRequestParameters) == "{}" { // empty struct + dst.CreateAccountRequestParameters = nil + } else { + match++ + } + } else { + dst.CreateAccountRequestParameters = nil + } + + // try to unmarshal data into CreateAssetRequestParameters + err = newStrictDecoder(data).Decode(&dst.CreateAssetRequestParameters) + if err == nil { + jsonCreateAssetRequestParameters, _ := json.Marshal(dst.CreateAssetRequestParameters) + if string(jsonCreateAssetRequestParameters) == "{}" { // empty struct + dst.CreateAssetRequestParameters = nil + } else { + match++ + } + } else { + dst.CreateAssetRequestParameters = nil + } + + // try to unmarshal data into CreateDomainRequestParameters + err = newStrictDecoder(data).Decode(&dst.CreateDomainRequestParameters) + if err == nil { + jsonCreateDomainRequestParameters, _ := json.Marshal(dst.CreateDomainRequestParameters) + if string(jsonCreateDomainRequestParameters) == "{}" { // empty struct + dst.CreateDomainRequestParameters = nil + } else { + match++ + } + } else { + dst.CreateDomainRequestParameters = nil + } + + // try to unmarshal data into CreateRoleRequestParameters + err = newStrictDecoder(data).Decode(&dst.CreateRoleRequestParameters) + if err == nil { + jsonCreateRoleRequestParameters, _ := json.Marshal(dst.CreateRoleRequestParameters) + if string(jsonCreateRoleRequestParameters) == "{}" { // empty struct + dst.CreateRoleRequestParameters = nil + } else { + match++ + } + } else { + dst.CreateRoleRequestParameters = nil + } + + // try to unmarshal data into DetachRoleRequestParameters + err = newStrictDecoder(data).Decode(&dst.DetachRoleRequestParameters) + if err == nil { + jsonDetachRoleRequestParameters, _ := json.Marshal(dst.DetachRoleRequestParameters) + if string(jsonDetachRoleRequestParameters) == "{}" { // empty struct + dst.DetachRoleRequestParameters = nil + } else { + match++ + } + } else { + dst.DetachRoleRequestParameters = nil + } + + // try to unmarshal data into GetAccountAssetTransactionsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAccountAssetTransactionsRequestParameters) + if err == nil { + jsonGetAccountAssetTransactionsRequestParameters, _ := json.Marshal(dst.GetAccountAssetTransactionsRequestParameters) + if string(jsonGetAccountAssetTransactionsRequestParameters) == "{}" { // empty struct + dst.GetAccountAssetTransactionsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAccountAssetTransactionsRequestParameters = nil + } + + // try to unmarshal data into GetAccountAssetsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAccountAssetsRequestParameters) + if err == nil { + jsonGetAccountAssetsRequestParameters, _ := json.Marshal(dst.GetAccountAssetsRequestParameters) + if string(jsonGetAccountAssetsRequestParameters) == "{}" { // empty struct + dst.GetAccountAssetsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAccountAssetsRequestParameters = nil + } + + // try to unmarshal data into GetAccountDetailRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAccountDetailRequestParameters) + if err == nil { + jsonGetAccountDetailRequestParameters, _ := json.Marshal(dst.GetAccountDetailRequestParameters) + if string(jsonGetAccountDetailRequestParameters) == "{}" { // empty struct + dst.GetAccountDetailRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAccountDetailRequestParameters = nil + } + + // try to unmarshal data into GetAccountRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAccountRequestParameters) + if err == nil { + jsonGetAccountRequestParameters, _ := json.Marshal(dst.GetAccountRequestParameters) + if string(jsonGetAccountRequestParameters) == "{}" { // empty struct + dst.GetAccountRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAccountRequestParameters = nil + } + + // try to unmarshal data into GetAccountTransactionsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAccountTransactionsRequestParameters) + if err == nil { + jsonGetAccountTransactionsRequestParameters, _ := json.Marshal(dst.GetAccountTransactionsRequestParameters) + if string(jsonGetAccountTransactionsRequestParameters) == "{}" { // empty struct + dst.GetAccountTransactionsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAccountTransactionsRequestParameters = nil + } + + // try to unmarshal data into GetAssetInfoRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetAssetInfoRequestParameters) + if err == nil { + jsonGetAssetInfoRequestParameters, _ := json.Marshal(dst.GetAssetInfoRequestParameters) + if string(jsonGetAssetInfoRequestParameters) == "{}" { // empty struct + dst.GetAssetInfoRequestParameters = nil + } else { + match++ + } + } else { + dst.GetAssetInfoRequestParameters = nil + } + + // try to unmarshal data into GetBlockRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetBlockRequestParameters) + if err == nil { + jsonGetBlockRequestParameters, _ := json.Marshal(dst.GetBlockRequestParameters) + if string(jsonGetBlockRequestParameters) == "{}" { // empty struct + dst.GetBlockRequestParameters = nil + } else { + match++ + } + } else { + dst.GetBlockRequestParameters = nil + } + + // try to unmarshal data into GetEngineReceiptsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetEngineReceiptsRequestParameters) + if err == nil { + jsonGetEngineReceiptsRequestParameters, _ := json.Marshal(dst.GetEngineReceiptsRequestParameters) + if string(jsonGetEngineReceiptsRequestParameters) == "{}" { // empty struct + dst.GetEngineReceiptsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetEngineReceiptsRequestParameters = nil + } + + // try to unmarshal data into GetPendingTransactionsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetPendingTransactionsRequestParameters) + if err == nil { + jsonGetPendingTransactionsRequestParameters, _ := json.Marshal(dst.GetPendingTransactionsRequestParameters) + if string(jsonGetPendingTransactionsRequestParameters) == "{}" { // empty struct + dst.GetPendingTransactionsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetPendingTransactionsRequestParameters = nil + } + + // try to unmarshal data into GetRolePermissionsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetRolePermissionsRequestParameters) + if err == nil { + jsonGetRolePermissionsRequestParameters, _ := json.Marshal(dst.GetRolePermissionsRequestParameters) + if string(jsonGetRolePermissionsRequestParameters) == "{}" { // empty struct + dst.GetRolePermissionsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetRolePermissionsRequestParameters = nil + } + + // try to unmarshal data into GetSignatoriesRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetSignatoriesRequestParameters) + if err == nil { + jsonGetSignatoriesRequestParameters, _ := json.Marshal(dst.GetSignatoriesRequestParameters) + if string(jsonGetSignatoriesRequestParameters) == "{}" { // empty struct + dst.GetSignatoriesRequestParameters = nil + } else { + match++ + } + } else { + dst.GetSignatoriesRequestParameters = nil + } + + // try to unmarshal data into GetTransactionsRequestParameters + err = newStrictDecoder(data).Decode(&dst.GetTransactionsRequestParameters) + if err == nil { + jsonGetTransactionsRequestParameters, _ := json.Marshal(dst.GetTransactionsRequestParameters) + if string(jsonGetTransactionsRequestParameters) == "{}" { // empty struct + dst.GetTransactionsRequestParameters = nil + } else { + match++ + } + } else { + dst.GetTransactionsRequestParameters = nil + } + + // try to unmarshal data into GrantPermissionRequestParameters + err = newStrictDecoder(data).Decode(&dst.GrantPermissionRequestParameters) + if err == nil { + jsonGrantPermissionRequestParameters, _ := json.Marshal(dst.GrantPermissionRequestParameters) + if string(jsonGrantPermissionRequestParameters) == "{}" { // empty struct + dst.GrantPermissionRequestParameters = nil + } else { + match++ + } + } else { + dst.GrantPermissionRequestParameters = nil + } + + // try to unmarshal data into RemovePeerRequestParameters + err = newStrictDecoder(data).Decode(&dst.RemovePeerRequestParameters) + if err == nil { + jsonRemovePeerRequestParameters, _ := json.Marshal(dst.RemovePeerRequestParameters) + if string(jsonRemovePeerRequestParameters) == "{}" { // empty struct + dst.RemovePeerRequestParameters = nil + } else { + match++ + } + } else { + dst.RemovePeerRequestParameters = nil + } + + // try to unmarshal data into RemoveSignatoryRequestParameters + err = newStrictDecoder(data).Decode(&dst.RemoveSignatoryRequestParameters) + if err == nil { + jsonRemoveSignatoryRequestParameters, _ := json.Marshal(dst.RemoveSignatoryRequestParameters) + if string(jsonRemoveSignatoryRequestParameters) == "{}" { // empty struct + dst.RemoveSignatoryRequestParameters = nil + } else { + match++ + } + } else { + dst.RemoveSignatoryRequestParameters = nil + } + + // try to unmarshal data into RevokePermissionRequestParameters + err = newStrictDecoder(data).Decode(&dst.RevokePermissionRequestParameters) + if err == nil { + jsonRevokePermissionRequestParameters, _ := json.Marshal(dst.RevokePermissionRequestParameters) + if string(jsonRevokePermissionRequestParameters) == "{}" { // empty struct + dst.RevokePermissionRequestParameters = nil + } else { + match++ + } + } else { + dst.RevokePermissionRequestParameters = nil + } + + // try to unmarshal data into SetAccountDetailRequestParameters + err = newStrictDecoder(data).Decode(&dst.SetAccountDetailRequestParameters) + if err == nil { + jsonSetAccountDetailRequestParameters, _ := json.Marshal(dst.SetAccountDetailRequestParameters) + if string(jsonSetAccountDetailRequestParameters) == "{}" { // empty struct + dst.SetAccountDetailRequestParameters = nil + } else { + match++ + } + } else { + dst.SetAccountDetailRequestParameters = nil + } + + // try to unmarshal data into SetAccountQuorumRequestParameters + err = newStrictDecoder(data).Decode(&dst.SetAccountQuorumRequestParameters) + if err == nil { + jsonSetAccountQuorumRequestParameters, _ := json.Marshal(dst.SetAccountQuorumRequestParameters) + if string(jsonSetAccountQuorumRequestParameters) == "{}" { // empty struct + dst.SetAccountQuorumRequestParameters = nil + } else { + match++ + } + } else { + dst.SetAccountQuorumRequestParameters = nil + } + + // try to unmarshal data into SubtractAssetQuantityRequestParameters + err = newStrictDecoder(data).Decode(&dst.SubtractAssetQuantityRequestParameters) + if err == nil { + jsonSubtractAssetQuantityRequestParameters, _ := json.Marshal(dst.SubtractAssetQuantityRequestParameters) + if string(jsonSubtractAssetQuantityRequestParameters) == "{}" { // empty struct + dst.SubtractAssetQuantityRequestParameters = nil + } else { + match++ + } + } else { + dst.SubtractAssetQuantityRequestParameters = nil + } + + // try to unmarshal data into TransferAssetRequestParameters + err = newStrictDecoder(data).Decode(&dst.TransferAssetRequestParameters) + if err == nil { + jsonTransferAssetRequestParameters, _ := json.Marshal(dst.TransferAssetRequestParameters) + if string(jsonTransferAssetRequestParameters) == "{}" { // empty struct + dst.TransferAssetRequestParameters = nil + } else { + match++ + } + } else { + dst.TransferAssetRequestParameters = nil + } + + // try to unmarshal data into ArrayOfInterface{} + err = newStrictDecoder(data).Decode(&dst.ArrayOfInterface{}) + if err == nil { + jsonArrayOfInterface{}, _ := json.Marshal(dst.ArrayOfInterface{}) + if string(jsonArrayOfInterface{}) == "{}" { // empty struct + dst.ArrayOfInterface{} = nil + } else { + match++ + } + } else { + dst.ArrayOfInterface{} = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.AddAssetQuantityRequestParameters = nil + dst.AddPeerRequestParameters = nil + dst.AddSignatoryRequestParameters = nil + dst.AppendRoleRequestParameters = nil + dst.CallEngineRequestParameters = nil + dst.CompareAndSetAccountDetailRequestParameters = nil + dst.CreateAccountRequestParameters = nil + dst.CreateAssetRequestParameters = nil + dst.CreateDomainRequestParameters = nil + dst.CreateRoleRequestParameters = nil + dst.DetachRoleRequestParameters = nil + dst.GetAccountAssetTransactionsRequestParameters = nil + dst.GetAccountAssetsRequestParameters = nil + dst.GetAccountDetailRequestParameters = nil + dst.GetAccountRequestParameters = nil + dst.GetAccountTransactionsRequestParameters = nil + dst.GetAssetInfoRequestParameters = nil + dst.GetBlockRequestParameters = nil + dst.GetEngineReceiptsRequestParameters = nil + dst.GetPendingTransactionsRequestParameters = nil + dst.GetRolePermissionsRequestParameters = nil + dst.GetSignatoriesRequestParameters = nil + dst.GetTransactionsRequestParameters = nil + dst.GrantPermissionRequestParameters = nil + dst.RemovePeerRequestParameters = nil + dst.RemoveSignatoryRequestParameters = nil + dst.RevokePermissionRequestParameters = nil + dst.SetAccountDetailRequestParameters = nil + dst.SetAccountQuorumRequestParameters = nil + dst.SubtractAssetQuantityRequestParameters = nil + dst.TransferAssetRequestParameters = nil + dst.ArrayOfInterface{} = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunTransactionRequestV1Params)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunTransactionRequestV1Params)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunTransactionRequestV1Params) MarshalJSON() ([]byte, error) { + if src.AddAssetQuantityRequestParameters != nil { + return json.Marshal(&src.AddAssetQuantityRequestParameters) + } + + if src.AddPeerRequestParameters != nil { + return json.Marshal(&src.AddPeerRequestParameters) + } + + if src.AddSignatoryRequestParameters != nil { + return json.Marshal(&src.AddSignatoryRequestParameters) + } + + if src.AppendRoleRequestParameters != nil { + return json.Marshal(&src.AppendRoleRequestParameters) + } + + if src.CallEngineRequestParameters != nil { + return json.Marshal(&src.CallEngineRequestParameters) + } + + if src.CompareAndSetAccountDetailRequestParameters != nil { + return json.Marshal(&src.CompareAndSetAccountDetailRequestParameters) + } + + if src.CreateAccountRequestParameters != nil { + return json.Marshal(&src.CreateAccountRequestParameters) + } + + if src.CreateAssetRequestParameters != nil { + return json.Marshal(&src.CreateAssetRequestParameters) + } + + if src.CreateDomainRequestParameters != nil { + return json.Marshal(&src.CreateDomainRequestParameters) + } + + if src.CreateRoleRequestParameters != nil { + return json.Marshal(&src.CreateRoleRequestParameters) + } + + if src.DetachRoleRequestParameters != nil { + return json.Marshal(&src.DetachRoleRequestParameters) + } + + if src.GetAccountAssetTransactionsRequestParameters != nil { + return json.Marshal(&src.GetAccountAssetTransactionsRequestParameters) + } + + if src.GetAccountAssetsRequestParameters != nil { + return json.Marshal(&src.GetAccountAssetsRequestParameters) + } + + if src.GetAccountDetailRequestParameters != nil { + return json.Marshal(&src.GetAccountDetailRequestParameters) + } + + if src.GetAccountRequestParameters != nil { + return json.Marshal(&src.GetAccountRequestParameters) + } + + if src.GetAccountTransactionsRequestParameters != nil { + return json.Marshal(&src.GetAccountTransactionsRequestParameters) + } + + if src.GetAssetInfoRequestParameters != nil { + return json.Marshal(&src.GetAssetInfoRequestParameters) + } + + if src.GetBlockRequestParameters != nil { + return json.Marshal(&src.GetBlockRequestParameters) + } + + if src.GetEngineReceiptsRequestParameters != nil { + return json.Marshal(&src.GetEngineReceiptsRequestParameters) + } + + if src.GetPendingTransactionsRequestParameters != nil { + return json.Marshal(&src.GetPendingTransactionsRequestParameters) + } + + if src.GetRolePermissionsRequestParameters != nil { + return json.Marshal(&src.GetRolePermissionsRequestParameters) + } + + if src.GetSignatoriesRequestParameters != nil { + return json.Marshal(&src.GetSignatoriesRequestParameters) + } + + if src.GetTransactionsRequestParameters != nil { + return json.Marshal(&src.GetTransactionsRequestParameters) + } + + if src.GrantPermissionRequestParameters != nil { + return json.Marshal(&src.GrantPermissionRequestParameters) + } + + if src.RemovePeerRequestParameters != nil { + return json.Marshal(&src.RemovePeerRequestParameters) + } + + if src.RemoveSignatoryRequestParameters != nil { + return json.Marshal(&src.RemoveSignatoryRequestParameters) + } + + if src.RevokePermissionRequestParameters != nil { + return json.Marshal(&src.RevokePermissionRequestParameters) + } + + if src.SetAccountDetailRequestParameters != nil { + return json.Marshal(&src.SetAccountDetailRequestParameters) + } + + if src.SetAccountQuorumRequestParameters != nil { + return json.Marshal(&src.SetAccountQuorumRequestParameters) + } + + if src.SubtractAssetQuantityRequestParameters != nil { + return json.Marshal(&src.SubtractAssetQuantityRequestParameters) + } + + if src.TransferAssetRequestParameters != nil { + return json.Marshal(&src.TransferAssetRequestParameters) + } + + if src.ArrayOfInterface{} != nil { + return json.Marshal(&src.ArrayOfInterface{}) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunTransactionRequestV1Params) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.AddAssetQuantityRequestParameters != nil { + return obj.AddAssetQuantityRequestParameters + } + + if obj.AddPeerRequestParameters != nil { + return obj.AddPeerRequestParameters + } + + if obj.AddSignatoryRequestParameters != nil { + return obj.AddSignatoryRequestParameters + } + + if obj.AppendRoleRequestParameters != nil { + return obj.AppendRoleRequestParameters + } + + if obj.CallEngineRequestParameters != nil { + return obj.CallEngineRequestParameters + } + + if obj.CompareAndSetAccountDetailRequestParameters != nil { + return obj.CompareAndSetAccountDetailRequestParameters + } + + if obj.CreateAccountRequestParameters != nil { + return obj.CreateAccountRequestParameters + } + + if obj.CreateAssetRequestParameters != nil { + return obj.CreateAssetRequestParameters + } + + if obj.CreateDomainRequestParameters != nil { + return obj.CreateDomainRequestParameters + } + + if obj.CreateRoleRequestParameters != nil { + return obj.CreateRoleRequestParameters + } + + if obj.DetachRoleRequestParameters != nil { + return obj.DetachRoleRequestParameters + } + + if obj.GetAccountAssetTransactionsRequestParameters != nil { + return obj.GetAccountAssetTransactionsRequestParameters + } + + if obj.GetAccountAssetsRequestParameters != nil { + return obj.GetAccountAssetsRequestParameters + } + + if obj.GetAccountDetailRequestParameters != nil { + return obj.GetAccountDetailRequestParameters + } + + if obj.GetAccountRequestParameters != nil { + return obj.GetAccountRequestParameters + } + + if obj.GetAccountTransactionsRequestParameters != nil { + return obj.GetAccountTransactionsRequestParameters + } + + if obj.GetAssetInfoRequestParameters != nil { + return obj.GetAssetInfoRequestParameters + } + + if obj.GetBlockRequestParameters != nil { + return obj.GetBlockRequestParameters + } + + if obj.GetEngineReceiptsRequestParameters != nil { + return obj.GetEngineReceiptsRequestParameters + } + + if obj.GetPendingTransactionsRequestParameters != nil { + return obj.GetPendingTransactionsRequestParameters + } + + if obj.GetRolePermissionsRequestParameters != nil { + return obj.GetRolePermissionsRequestParameters + } + + if obj.GetSignatoriesRequestParameters != nil { + return obj.GetSignatoriesRequestParameters + } + + if obj.GetTransactionsRequestParameters != nil { + return obj.GetTransactionsRequestParameters + } + + if obj.GrantPermissionRequestParameters != nil { + return obj.GrantPermissionRequestParameters + } + + if obj.RemovePeerRequestParameters != nil { + return obj.RemovePeerRequestParameters + } + + if obj.RemoveSignatoryRequestParameters != nil { + return obj.RemoveSignatoryRequestParameters + } + + if obj.RevokePermissionRequestParameters != nil { + return obj.RevokePermissionRequestParameters + } + + if obj.SetAccountDetailRequestParameters != nil { + return obj.SetAccountDetailRequestParameters + } + + if obj.SetAccountQuorumRequestParameters != nil { + return obj.SetAccountQuorumRequestParameters + } + + if obj.SubtractAssetQuantityRequestParameters != nil { + return obj.SubtractAssetQuantityRequestParameters + } + + if obj.TransferAssetRequestParameters != nil { + return obj.TransferAssetRequestParameters + } + + if obj.ArrayOfInterface{} != nil { + return obj.ArrayOfInterface{} + } + + // all schemas are nil + return nil +} + +type NullableRunTransactionRequestV1Params struct { + value *RunTransactionRequestV1Params + isSet bool +} + +func (v NullableRunTransactionRequestV1Params) Get() *RunTransactionRequestV1Params { + return v.value +} + +func (v *NullableRunTransactionRequestV1Params) Set(val *RunTransactionRequestV1Params) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequestV1Params) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequestV1Params) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequestV1Params(val *RunTransactionRequestV1Params) *NullableRunTransactionRequestV1Params { + return &NullableRunTransactionRequestV1Params{value: val, isSet: true} +} + +func (v NullableRunTransactionRequestV1Params) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequestV1Params) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..7d63fad2976 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,121 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt interface{} `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt interface{}) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *RunTransactionResponse) GetTransactionReceipt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*interface{}, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v interface{}) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TransactionReceipt != nil { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_signed_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_signed_request_v1.go new file mode 100644 index 00000000000..a5247de30e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_run_transaction_signed_request_v1.go @@ -0,0 +1,154 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the RunTransactionSignedRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionSignedRequestV1{} + +// RunTransactionSignedRequestV1 struct for RunTransactionSignedRequestV1 +type RunTransactionSignedRequestV1 struct { + // Signed transaction binary data received from generate-transaction endpoint. + SignedTransaction string `json:"signedTransaction"` + BaseConfig *IrohaBaseConfig `json:"baseConfig,omitempty"` +} + +// NewRunTransactionSignedRequestV1 instantiates a new RunTransactionSignedRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionSignedRequestV1(signedTransaction string) *RunTransactionSignedRequestV1 { + this := RunTransactionSignedRequestV1{} + this.SignedTransaction = signedTransaction + return &this +} + +// NewRunTransactionSignedRequestV1WithDefaults instantiates a new RunTransactionSignedRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionSignedRequestV1WithDefaults() *RunTransactionSignedRequestV1 { + this := RunTransactionSignedRequestV1{} + return &this +} + +// GetSignedTransaction returns the SignedTransaction field value +func (o *RunTransactionSignedRequestV1) GetSignedTransaction() string { + if o == nil { + var ret string + return ret + } + + return o.SignedTransaction +} + +// GetSignedTransactionOk returns a tuple with the SignedTransaction field value +// and a boolean to check if the value has been set. +func (o *RunTransactionSignedRequestV1) GetSignedTransactionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SignedTransaction, true +} + +// SetSignedTransaction sets field value +func (o *RunTransactionSignedRequestV1) SetSignedTransaction(v string) { + o.SignedTransaction = v +} + +// GetBaseConfig returns the BaseConfig field value if set, zero value otherwise. +func (o *RunTransactionSignedRequestV1) GetBaseConfig() IrohaBaseConfig { + if o == nil || IsNil(o.BaseConfig) { + var ret IrohaBaseConfig + return ret + } + return *o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionSignedRequestV1) GetBaseConfigOk() (*IrohaBaseConfig, bool) { + if o == nil || IsNil(o.BaseConfig) { + return nil, false + } + return o.BaseConfig, true +} + +// HasBaseConfig returns a boolean if a field has been set. +func (o *RunTransactionSignedRequestV1) HasBaseConfig() bool { + if o != nil && !IsNil(o.BaseConfig) { + return true + } + + return false +} + +// SetBaseConfig gets a reference to the given IrohaBaseConfig and assigns it to the BaseConfig field. +func (o *RunTransactionSignedRequestV1) SetBaseConfig(v IrohaBaseConfig) { + o.BaseConfig = &v +} + +func (o RunTransactionSignedRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionSignedRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["signedTransaction"] = o.SignedTransaction + if !IsNil(o.BaseConfig) { + toSerialize["baseConfig"] = o.BaseConfig + } + return toSerialize, nil +} + +type NullableRunTransactionSignedRequestV1 struct { + value *RunTransactionSignedRequestV1 + isSet bool +} + +func (v NullableRunTransactionSignedRequestV1) Get() *RunTransactionSignedRequestV1 { + return v.value +} + +func (v *NullableRunTransactionSignedRequestV1) Set(val *RunTransactionSignedRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionSignedRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionSignedRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionSignedRequestV1(val *RunTransactionSignedRequestV1) *NullableRunTransactionSignedRequestV1 { + return &NullableRunTransactionSignedRequestV1{value: val, isSet: true} +} + +func (v NullableRunTransactionSignedRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionSignedRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_detail_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_detail_request_parameters.go new file mode 100644 index 00000000000..0ca0670c9bf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_detail_request_parameters.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the SetAccountDetailRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetAccountDetailRequestParameters{} + +// SetAccountDetailRequestParameters The list of arguments to pass in to the transaction request to Set Account Detail. +type SetAccountDetailRequestParameters struct { + AccountId string `json:"accountId"` + Key string `json:"key"` + Value string `json:"value"` +} + +// NewSetAccountDetailRequestParameters instantiates a new SetAccountDetailRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetAccountDetailRequestParameters(accountId string, key string, value string) *SetAccountDetailRequestParameters { + this := SetAccountDetailRequestParameters{} + this.AccountId = accountId + this.Key = key + this.Value = value + return &this +} + +// NewSetAccountDetailRequestParametersWithDefaults instantiates a new SetAccountDetailRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetAccountDetailRequestParametersWithDefaults() *SetAccountDetailRequestParameters { + this := SetAccountDetailRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *SetAccountDetailRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *SetAccountDetailRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *SetAccountDetailRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetKey returns the Key field value +func (o *SetAccountDetailRequestParameters) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SetAccountDetailRequestParameters) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SetAccountDetailRequestParameters) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *SetAccountDetailRequestParameters) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *SetAccountDetailRequestParameters) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *SetAccountDetailRequestParameters) SetValue(v string) { + o.Value = v +} + +func (o SetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetAccountDetailRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableSetAccountDetailRequestParameters struct { + value *SetAccountDetailRequestParameters + isSet bool +} + +func (v NullableSetAccountDetailRequestParameters) Get() *SetAccountDetailRequestParameters { + return v.value +} + +func (v *NullableSetAccountDetailRequestParameters) Set(val *SetAccountDetailRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableSetAccountDetailRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableSetAccountDetailRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetAccountDetailRequestParameters(val *SetAccountDetailRequestParameters) *NullableSetAccountDetailRequestParameters { + return &NullableSetAccountDetailRequestParameters{value: val, isSet: true} +} + +func (v NullableSetAccountDetailRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetAccountDetailRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_quorum_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_quorum_request_parameters.go new file mode 100644 index 00000000000..8f6507429da --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_set_account_quorum_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the SetAccountQuorumRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetAccountQuorumRequestParameters{} + +// SetAccountQuorumRequestParameters The list of arguments to pass in to the transaction request to Set Account Quorum. +type SetAccountQuorumRequestParameters struct { + AccountId string `json:"accountId"` + Quorum int32 `json:"quorum"` +} + +// NewSetAccountQuorumRequestParameters instantiates a new SetAccountQuorumRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetAccountQuorumRequestParameters(accountId string, quorum int32) *SetAccountQuorumRequestParameters { + this := SetAccountQuorumRequestParameters{} + this.AccountId = accountId + this.Quorum = quorum + return &this +} + +// NewSetAccountQuorumRequestParametersWithDefaults instantiates a new SetAccountQuorumRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetAccountQuorumRequestParametersWithDefaults() *SetAccountQuorumRequestParameters { + this := SetAccountQuorumRequestParameters{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *SetAccountQuorumRequestParameters) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *SetAccountQuorumRequestParameters) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *SetAccountQuorumRequestParameters) SetAccountId(v string) { + o.AccountId = v +} + +// GetQuorum returns the Quorum field value +func (o *SetAccountQuorumRequestParameters) GetQuorum() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Quorum +} + +// GetQuorumOk returns a tuple with the Quorum field value +// and a boolean to check if the value has been set. +func (o *SetAccountQuorumRequestParameters) GetQuorumOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Quorum, true +} + +// SetQuorum sets field value +func (o *SetAccountQuorumRequestParameters) SetQuorum(v int32) { + o.Quorum = v +} + +func (o SetAccountQuorumRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetAccountQuorumRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountId"] = o.AccountId + toSerialize["quorum"] = o.Quorum + return toSerialize, nil +} + +type NullableSetAccountQuorumRequestParameters struct { + value *SetAccountQuorumRequestParameters + isSet bool +} + +func (v NullableSetAccountQuorumRequestParameters) Get() *SetAccountQuorumRequestParameters { + return v.value +} + +func (v *NullableSetAccountQuorumRequestParameters) Set(val *SetAccountQuorumRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableSetAccountQuorumRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableSetAccountQuorumRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetAccountQuorumRequestParameters(val *SetAccountQuorumRequestParameters) *NullableSetAccountQuorumRequestParameters { + return &NullableSetAccountQuorumRequestParameters{value: val, isSet: true} +} + +func (v NullableSetAccountQuorumRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetAccountQuorumRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_subtract_asset_quantity_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_subtract_asset_quantity_request_parameters.go new file mode 100644 index 00000000000..895c8bb995b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_subtract_asset_quantity_request_parameters.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the SubtractAssetQuantityRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubtractAssetQuantityRequestParameters{} + +// SubtractAssetQuantityRequestParameters The list of arguments to pass in to the transaction request to Subtract Asset Quantity. +type SubtractAssetQuantityRequestParameters struct { + AssetId string `json:"assetId"` + Amount float32 `json:"amount"` +} + +// NewSubtractAssetQuantityRequestParameters instantiates a new SubtractAssetQuantityRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubtractAssetQuantityRequestParameters(assetId string, amount float32) *SubtractAssetQuantityRequestParameters { + this := SubtractAssetQuantityRequestParameters{} + this.AssetId = assetId + this.Amount = amount + return &this +} + +// NewSubtractAssetQuantityRequestParametersWithDefaults instantiates a new SubtractAssetQuantityRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubtractAssetQuantityRequestParametersWithDefaults() *SubtractAssetQuantityRequestParameters { + this := SubtractAssetQuantityRequestParameters{} + return &this +} + +// GetAssetId returns the AssetId field value +func (o *SubtractAssetQuantityRequestParameters) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *SubtractAssetQuantityRequestParameters) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *SubtractAssetQuantityRequestParameters) SetAssetId(v string) { + o.AssetId = v +} + +// GetAmount returns the Amount field value +func (o *SubtractAssetQuantityRequestParameters) GetAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *SubtractAssetQuantityRequestParameters) GetAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *SubtractAssetQuantityRequestParameters) SetAmount(v float32) { + o.Amount = v +} + +func (o SubtractAssetQuantityRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubtractAssetQuantityRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetId"] = o.AssetId + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +type NullableSubtractAssetQuantityRequestParameters struct { + value *SubtractAssetQuantityRequestParameters + isSet bool +} + +func (v NullableSubtractAssetQuantityRequestParameters) Get() *SubtractAssetQuantityRequestParameters { + return v.value +} + +func (v *NullableSubtractAssetQuantityRequestParameters) Set(val *SubtractAssetQuantityRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableSubtractAssetQuantityRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableSubtractAssetQuantityRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubtractAssetQuantityRequestParameters(val *SubtractAssetQuantityRequestParameters) *NullableSubtractAssetQuantityRequestParameters { + return &NullableSubtractAssetQuantityRequestParameters{value: val, isSet: true} +} + +func (v NullableSubtractAssetQuantityRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubtractAssetQuantityRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_transfer_asset_request_parameters.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_transfer_asset_request_parameters.go new file mode 100644 index 00000000000..45de0607d57 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_transfer_asset_request_parameters.go @@ -0,0 +1,225 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" +) + +// checks if the TransferAssetRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferAssetRequestParameters{} + +// TransferAssetRequestParameters The list of arguments to pass in to the transaction request to Transfer Asset. +type TransferAssetRequestParameters struct { + SrcAccountId string `json:"srcAccountId"` + DestAccountId string `json:"destAccountId"` + AssetId string `json:"assetId"` + Description string `json:"description"` + Amount float32 `json:"amount"` +} + +// NewTransferAssetRequestParameters instantiates a new TransferAssetRequestParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferAssetRequestParameters(srcAccountId string, destAccountId string, assetId string, description string, amount float32) *TransferAssetRequestParameters { + this := TransferAssetRequestParameters{} + this.SrcAccountId = srcAccountId + this.DestAccountId = destAccountId + this.AssetId = assetId + this.Description = description + this.Amount = amount + return &this +} + +// NewTransferAssetRequestParametersWithDefaults instantiates a new TransferAssetRequestParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferAssetRequestParametersWithDefaults() *TransferAssetRequestParameters { + this := TransferAssetRequestParameters{} + return &this +} + +// GetSrcAccountId returns the SrcAccountId field value +func (o *TransferAssetRequestParameters) GetSrcAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.SrcAccountId +} + +// GetSrcAccountIdOk returns a tuple with the SrcAccountId field value +// and a boolean to check if the value has been set. +func (o *TransferAssetRequestParameters) GetSrcAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SrcAccountId, true +} + +// SetSrcAccountId sets field value +func (o *TransferAssetRequestParameters) SetSrcAccountId(v string) { + o.SrcAccountId = v +} + +// GetDestAccountId returns the DestAccountId field value +func (o *TransferAssetRequestParameters) GetDestAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.DestAccountId +} + +// GetDestAccountIdOk returns a tuple with the DestAccountId field value +// and a boolean to check if the value has been set. +func (o *TransferAssetRequestParameters) GetDestAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DestAccountId, true +} + +// SetDestAccountId sets field value +func (o *TransferAssetRequestParameters) SetDestAccountId(v string) { + o.DestAccountId = v +} + +// GetAssetId returns the AssetId field value +func (o *TransferAssetRequestParameters) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *TransferAssetRequestParameters) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *TransferAssetRequestParameters) SetAssetId(v string) { + o.AssetId = v +} + +// GetDescription returns the Description field value +func (o *TransferAssetRequestParameters) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *TransferAssetRequestParameters) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *TransferAssetRequestParameters) SetDescription(v string) { + o.Description = v +} + +// GetAmount returns the Amount field value +func (o *TransferAssetRequestParameters) GetAmount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *TransferAssetRequestParameters) GetAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *TransferAssetRequestParameters) SetAmount(v float32) { + o.Amount = v +} + +func (o TransferAssetRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferAssetRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["srcAccountId"] = o.SrcAccountId + toSerialize["destAccountId"] = o.DestAccountId + toSerialize["assetId"] = o.AssetId + toSerialize["description"] = o.Description + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +type NullableTransferAssetRequestParameters struct { + value *TransferAssetRequestParameters + isSet bool +} + +func (v NullableTransferAssetRequestParameters) Get() *TransferAssetRequestParameters { + return v.value +} + +func (v *NullableTransferAssetRequestParameters) Set(val *TransferAssetRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableTransferAssetRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferAssetRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferAssetRequestParameters(val *TransferAssetRequestParameters) *NullableTransferAssetRequestParameters { + return &NullableTransferAssetRequestParameters{value: val, isSet: true} +} + +func (v NullableTransferAssetRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferAssetRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..8d56a1d91f1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 the model 'WatchBlocksV1' +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.iroha.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..4cfbaa4a8eb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..a1d3b91d6d1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-iroha_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GenerateTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GenerateTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..c21b3c26631 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha + +Can perform basic tasks on a Iroha ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/README.md index 46b55d12d54..9e2ab5a11b2 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Iroha - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata] Can perform basic tasks on a Iroha ledger diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 22bf6792e29..5b434d76fc2 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 28fd1163cb1..b5250c1f663 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 74c11884a86..f28fb976304 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index fad80da4a67..6cfc56ef92d 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index b7faa5cd177..a29b3e32c93 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 8bee28caf24..753a18977c3 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 5510c7a35d3..7a1f901a434 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddAssetQuantityRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddAssetQuantityRequestParameters.java index e7b4345b05d..7753fba5621 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddAssetQuantityRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddAssetQuantityRequestParameters.java @@ -51,7 +51,7 @@ /** * The list of arguments to pass in to the transaction request to Add Asset Quantity. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class AddAssetQuantityRequestParameters { public static final String SERIALIZED_NAME_ASSET_ID = "assetId"; @SerializedName(SERIALIZED_NAME_ASSET_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddPeerRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddPeerRequestParameters.java index 74c7c8b6223..e87e4b26c65 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddPeerRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddPeerRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Add Peer. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class AddPeerRequestParameters { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddSignatoryRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddSignatoryRequestParameters.java index de5b7ff2ee0..00449f135dc 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddSignatoryRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AddSignatoryRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Add Signatory. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class AddSignatoryRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AppendRoleRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AppendRoleRequestParameters.java index 1cbe4043203..3ae0d780838 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AppendRoleRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AppendRoleRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Append Role. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class AppendRoleRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CallEngineRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CallEngineRequestParameters.java index a72aec5d0a5..b6512ce0863 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CallEngineRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CallEngineRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Call Engine. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CallEngineRequestParameters { public static final String SERIALIZED_NAME_CALLER = "caller"; @SerializedName(SERIALIZED_NAME_CALLER) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CompareAndSetAccountDetailRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CompareAndSetAccountDetailRequestParameters.java index a3822ba4711..93134347aac 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CompareAndSetAccountDetailRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CompareAndSetAccountDetailRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Compare And Set Account Detail. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CompareAndSetAccountDetailRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAccountRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAccountRequestParameters.java index 2fb661d8a76..432940001cf 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAccountRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAccountRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Create Account. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CreateAccountRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_NAME = "accountName"; @SerializedName(SERIALIZED_NAME_ACCOUNT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAssetRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAssetRequestParameters.java index a8c9d98f8a4..bb3e4bb9103 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAssetRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateAssetRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Create Asset. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CreateAssetRequestParameters { public static final String SERIALIZED_NAME_ASSET_NAME = "assetName"; @SerializedName(SERIALIZED_NAME_ASSET_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateDomainRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateDomainRequestParameters.java index 399cddddae5..4bf585d2e9e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateDomainRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateDomainRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Create Domain. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CreateDomainRequestParameters { public static final String SERIALIZED_NAME_DOMAIN_ID = "domainId"; @SerializedName(SERIALIZED_NAME_DOMAIN_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateRoleRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateRoleRequestParameters.java index 0a11f3eb05d..28d3e156608 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateRoleRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CreateRoleRequestParameters.java @@ -53,7 +53,7 @@ /** * The list of arguments to pass in to the transaction request to Create Role. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class CreateRoleRequestParameters { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; @SerializedName(SERIALIZED_NAME_ROLE_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DetachRoleRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DetachRoleRequestParameters.java index 4356c932775..3129b0bafa0 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DetachRoleRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DetachRoleRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Detach Role. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class DetachRoleRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionJsonResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionJsonResponseV1.java index f7b81681a63..a4a74938816 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionJsonResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionJsonResponseV1.java @@ -50,7 +50,7 @@ /** * ErrorExceptionJsonResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class ErrorExceptionJsonResponseV1 { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java index bf29f719249..316d51e86e4 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java @@ -50,7 +50,7 @@ /** * ErrorExceptionResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class ErrorExceptionResponseV1 { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java index d67e834430d..524ae442531 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java @@ -52,7 +52,7 @@ /** * GenerateTransactionRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GenerateTransactionRequestV1 { public static final String SERIALIZED_NAME_COMMAND_NAME = "commandName"; @SerializedName(SERIALIZED_NAME_COMMAND_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetTransactionsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetTransactionsRequestParameters.java index 2a3167a902e..2e03efb0c4a 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetTransactionsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetTransactionsRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Account Asset Transactions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAccountAssetTransactionsRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetsRequestParameters.java index 2ee25d88c27..b09efbf42f1 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountAssetsRequestParameters.java @@ -51,7 +51,7 @@ /** * The list of arguments to pass in to the transaction request to Get Account Assets. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAccountAssetsRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountDetailRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountDetailRequestParameters.java index 604a493427b..80f026f5f62 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountDetailRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountDetailRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Account Detail. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAccountDetailRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountRequestParameters.java index 5ef9cd7342c..53dbdbb6290 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Account. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAccountRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountTransactionsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountTransactionsRequestParameters.java index 1691b0e76a2..a7344e36bac 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountTransactionsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAccountTransactionsRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Account Transactions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAccountTransactionsRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAssetInfoRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAssetInfoRequestParameters.java index 6d72657a764..8f1d1d7c3c8 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAssetInfoRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetAssetInfoRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Asset Info. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetAssetInfoRequestParameters { public static final String SERIALIZED_NAME_ASSET_ID = "assetId"; @SerializedName(SERIALIZED_NAME_ASSET_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestParameters.java index 0c4d92cfcb1..f7e890a5093 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetBlockRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Block. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetBlockRequestParameters { public static final String SERIALIZED_NAME_HEIGHT = "height"; @SerializedName(SERIALIZED_NAME_HEIGHT) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetEngineReceiptsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetEngineReceiptsRequestParameters.java index 43d695f01e7..b42b97477c0 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetEngineReceiptsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetEngineReceiptsRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Engine Receipts. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetEngineReceiptsRequestParameters { public static final String SERIALIZED_NAME_TX_HASH = "txHash"; @SerializedName(SERIALIZED_NAME_TX_HASH) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPendingTransactionsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPendingTransactionsRequestParameters.java index 750c41460af..f5a557d7f43 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPendingTransactionsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetPendingTransactionsRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Pending Transactions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetPendingTransactionsRequestParameters { public static final String SERIALIZED_NAME_PAGE_SIZE = "pageSize"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetRolePermissionsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetRolePermissionsRequestParameters.java index 05316a449f8..98d0fd3b65b 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetRolePermissionsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetRolePermissionsRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Role Permissions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetRolePermissionsRequestParameters { public static final String SERIALIZED_NAME_ROLE_ID = "roleId"; @SerializedName(SERIALIZED_NAME_ROLE_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSignatoriesRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSignatoriesRequestParameters.java index 9ae39d2937d..9ef17ce11f6 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSignatoriesRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetSignatoriesRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Get Signatories. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetSignatoriesRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsRequestParameters.java index a8d612deeb1..9f8894721a8 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsRequestParameters.java @@ -52,7 +52,7 @@ /** * The list of arguments to pass in to the transaction request to Get Transactions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GetTransactionsRequestParameters { public static final String SERIALIZED_NAME_TX_HASHES_LIST = "txHashesList"; @SerializedName(SERIALIZED_NAME_TX_HASHES_LIST) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GrantPermissionRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GrantPermissionRequestParameters.java index cb9873e816e..798a0daa551 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GrantPermissionRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GrantPermissionRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Grant Permission. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class GrantPermissionRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBaseConfig.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBaseConfig.java index 1fa70062932..d4707bfcbf0 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBaseConfig.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBaseConfig.java @@ -54,7 +54,7 @@ /** * IrohaBaseConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class IrohaBaseConfig { public static final String SERIALIZED_NAME_IROHA_HOST = "irohaHost"; @SerializedName(SERIALIZED_NAME_IROHA_HOST) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockProgress.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockProgress.java index 154e0fb1529..1f64d98a22e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockProgress.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockProgress.java @@ -51,7 +51,7 @@ /** * IrohaBlockProgress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class IrohaBlockProgress { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponse.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponse.java index 3ace510c64d..2bebbf100ac 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponse.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponse.java @@ -53,7 +53,7 @@ /** * IrohaBlockResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class IrohaBlockResponse { public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponsePayload.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponsePayload.java index 829e34b7de9..42ab6320c53 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponsePayload.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaBlockResponsePayload.java @@ -53,7 +53,7 @@ /** * IrohaBlockResponsePayload */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class IrohaBlockResponsePayload { public static final String SERIALIZED_NAME_TRANSACTIONS_LIST = "transactionsList"; @SerializedName(SERIALIZED_NAME_TRANSACTIONS_LIST) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeyPair.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeyPair.java index b6a8af39890..d8a1759ce37 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeyPair.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeyPair.java @@ -50,7 +50,7 @@ /** * KeyPair */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class KeyPair { public static final String SERIALIZED_NAME_PUBLIC_KEY = "publicKey"; @SerializedName(SERIALIZED_NAME_PUBLIC_KEY) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemovePeerRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemovePeerRequestParameters.java index 91cefdff1cd..794fe733188 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemovePeerRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemovePeerRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Remove Peer. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RemovePeerRequestParameters { public static final String SERIALIZED_NAME_PUBLIC_KEY = "publicKey"; @SerializedName(SERIALIZED_NAME_PUBLIC_KEY) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemoveSignatoryRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemoveSignatoryRequestParameters.java index 1e7f787cb74..5fda752246e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemoveSignatoryRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RemoveSignatoryRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Remove Signatory. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RemoveSignatoryRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RevokePermissionRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RevokePermissionRequestParameters.java index a2fb1157d50..f4b4e85181a 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RevokePermissionRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RevokePermissionRequestParameters.java @@ -51,7 +51,7 @@ /** * The list of arguments to pass in to the transaction request to Revoke Permission. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RevokePermissionRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1.java index 94ae7789b1c..a674fa9f119 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1.java @@ -52,7 +52,7 @@ /** * RunTransactionRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RunTransactionRequestV1 { public static final String SERIALIZED_NAME_COMMAND_NAME = "commandName"; @SerializedName(SERIALIZED_NAME_COMMAND_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Body.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Body.java index 410ca866672..b22d28bb516 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Body.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Body.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RunTransactionRequestV1Body extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RunTransactionRequestV1Body.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Params.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Params.java index ab9c3d3710e..dd09945916d 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Params.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequestV1Params.java @@ -89,7 +89,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RunTransactionRequestV1Params extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RunTransactionRequestV1Params.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index 5462879afea..d48898cc5a5 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -50,7 +50,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionSignedRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionSignedRequestV1.java index 308c7a01c55..91636d034c8 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionSignedRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionSignedRequestV1.java @@ -51,7 +51,7 @@ /** * RunTransactionSignedRequestV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class RunTransactionSignedRequestV1 { public static final String SERIALIZED_NAME_SIGNED_TRANSACTION = "signedTransaction"; @SerializedName(SERIALIZED_NAME_SIGNED_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountDetailRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountDetailRequestParameters.java index e85d9716afa..f5fa0b99613 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountDetailRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountDetailRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Set Account Detail. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class SetAccountDetailRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountQuorumRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountQuorumRequestParameters.java index 6049a920ca0..9f94817656b 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountQuorumRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SetAccountQuorumRequestParameters.java @@ -50,7 +50,7 @@ /** * The list of arguments to pass in to the transaction request to Set Account Quorum. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class SetAccountQuorumRequestParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SubtractAssetQuantityRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SubtractAssetQuantityRequestParameters.java index 83d1e6e716f..6b92b5d2731 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SubtractAssetQuantityRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SubtractAssetQuantityRequestParameters.java @@ -51,7 +51,7 @@ /** * The list of arguments to pass in to the transaction request to Subtract Asset Quantity. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class SubtractAssetQuantityRequestParameters { public static final String SERIALIZED_NAME_ASSET_ID = "assetId"; @SerializedName(SERIALIZED_NAME_ASSET_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferAssetRequestParameters.java b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferAssetRequestParameters.java index ba1fdea0345..52adb17b121 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferAssetRequestParameters.java +++ b/packages/cactus-plugin-ledger-connector-iroha/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferAssetRequestParameters.java @@ -51,7 +51,7 @@ /** * The list of arguments to pass in to the transaction request to Transfer Asset. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:16.656230954+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:21.334299487+05:30[Asia/Kolkata]") public class TransferAssetRequestParameters { public static final String SERIALIZED_NAME_SRC_ACCOUNT_ID = "srcAccountId"; @SerializedName(SERIALIZED_NAME_SRC_ACCOUNT_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..50ab07113ad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,73 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/BlockTypeV1.md +docs/DefaultApi.md +docs/ErrorExceptionResponseV1.md +docs/GenerateTransactionRequestV1.md +docs/GenerateTransactionRequestV1Request.md +docs/Iroha2AccountId.md +docs/Iroha2BaseConfig.md +docs/Iroha2BaseConfigSigningCredential.md +docs/Iroha2BaseConfigTorii.md +docs/Iroha2KeyJson.md +docs/Iroha2KeyPair.md +docs/IrohaInstruction.md +docs/IrohaInstructionRequestV1.md +docs/IrohaQuery.md +docs/IrohaQueryDefinitionV1.md +docs/IrohaSignedQueryDefinitionV1.md +docs/IrohaTransactionDefinitionV1.md +docs/IrohaTransactionDefinitionV1Instruction.md +docs/IrohaTransactionParametersV1.md +docs/KeychainReference.md +docs/QueryRequestV1.md +docs/QueryResponseV1.md +docs/TransactRequestV1.md +docs/TransactResponseV1.md +docs/TransactionStatusV1.md +docs/WatchBlocksBinaryResponseV1.md +docs/WatchBlocksOptionsV1.md +docs/WatchBlocksRawResponseV1.md +docs/WatchBlocksResponseV1.md +docs/WatchBlocksV1.md +git_push.sh +go.mod +go.sum +model_block_type_v1.go +model_error_exception_response_v1.go +model_generate_transaction_request_v1.go +model_generate_transaction_request_v1_request.go +model_iroha2_account_id.go +model_iroha2_base_config.go +model_iroha2_base_config_signing_credential.go +model_iroha2_base_config_torii.go +model_iroha2_key_json.go +model_iroha2_key_pair.go +model_iroha_instruction.go +model_iroha_instruction_request_v1.go +model_iroha_query.go +model_iroha_query_definition_v1.go +model_iroha_signed_query_definition_v1.go +model_iroha_transaction_definition_v1.go +model_iroha_transaction_definition_v1_instruction.go +model_iroha_transaction_parameters_v1.go +model_keychain_reference.go +model_query_request_v1.go +model_query_response_v1.go +model_transact_request_v1.go +model_transact_response_v1.go +model_transaction_status_v1.go +model_watch_blocks_binary_response_v1.go +model_watch_blocks_options_v1.go +model_watch_blocks_raw_response_v1.go +model_watch_blocks_response_v1.go +model_watch_blocks_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..3a526b06ce9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,142 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-iroha2 + +Can perform basic tasks on a Iroha V2 ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-iroha2 "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha2.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha2.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha2.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-iroha2.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GenerateTransactionV1**](docs/DefaultApi.md#generatetransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/generate-transaction | Generate transaction that can be signed locally. +*DefaultApi* | [**QueryV1**](docs/DefaultApi.md#queryv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/query | Executes a query on a Iroha V2 ledger and returns it's results. +*DefaultApi* | [**TransactV1**](docs/DefaultApi.md#transactv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/transact | Executes a transaction on a Iroha V2 ledger (by sending some instructions) + + +## Documentation For Models + + - [BlockTypeV1](docs/BlockTypeV1.md) + - [ErrorExceptionResponseV1](docs/ErrorExceptionResponseV1.md) + - [GenerateTransactionRequestV1](docs/GenerateTransactionRequestV1.md) + - [GenerateTransactionRequestV1Request](docs/GenerateTransactionRequestV1Request.md) + - [Iroha2AccountId](docs/Iroha2AccountId.md) + - [Iroha2BaseConfig](docs/Iroha2BaseConfig.md) + - [Iroha2BaseConfigSigningCredential](docs/Iroha2BaseConfigSigningCredential.md) + - [Iroha2BaseConfigTorii](docs/Iroha2BaseConfigTorii.md) + - [Iroha2KeyJson](docs/Iroha2KeyJson.md) + - [Iroha2KeyPair](docs/Iroha2KeyPair.md) + - [IrohaInstruction](docs/IrohaInstruction.md) + - [IrohaInstructionRequestV1](docs/IrohaInstructionRequestV1.md) + - [IrohaQuery](docs/IrohaQuery.md) + - [IrohaQueryDefinitionV1](docs/IrohaQueryDefinitionV1.md) + - [IrohaSignedQueryDefinitionV1](docs/IrohaSignedQueryDefinitionV1.md) + - [IrohaTransactionDefinitionV1](docs/IrohaTransactionDefinitionV1.md) + - [IrohaTransactionDefinitionV1Instruction](docs/IrohaTransactionDefinitionV1Instruction.md) + - [IrohaTransactionParametersV1](docs/IrohaTransactionParametersV1.md) + - [KeychainReference](docs/KeychainReference.md) + - [QueryRequestV1](docs/QueryRequestV1.md) + - [QueryResponseV1](docs/QueryResponseV1.md) + - [TransactRequestV1](docs/TransactRequestV1.md) + - [TransactResponseV1](docs/TransactResponseV1.md) + - [TransactionStatusV1](docs/TransactionStatusV1.md) + - [WatchBlocksBinaryResponseV1](docs/WatchBlocksBinaryResponseV1.md) + - [WatchBlocksOptionsV1](docs/WatchBlocksOptionsV1.md) + - [WatchBlocksRawResponseV1](docs/WatchBlocksRawResponseV1.md) + - [WatchBlocksResponseV1](docs/WatchBlocksResponseV1.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..0f238dede4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,585 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Iroha V2 ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Iroha V2 + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/transact: + post: + operationId: TransactV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransactRequestV1' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TransactResponseV1' + description: OK + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error. + summary: Executes a transaction on a Iroha V2 ledger (by sending some instructions) + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/transact + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/generate-transaction: + post: + operationId: generateTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateTransactionRequestV1' + responses: + "200": + content: + text/plain: + schema: + type: string + description: OK + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error + summary: Generate transaction that can be signed locally. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/generate-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/query: + post: + operationId: QueryV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/QueryRequestV1' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QueryResponseV1' + description: OK + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error. + summary: Executes a query on a Iroha V2 ledger and returns it's results. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/query +components: + schemas: + IrohaInstruction: + description: Command names that correspond to Iroha Special Instructions (https://hyperledger.github.io/iroha-2-docs/guide/advanced/isi.html) + enum: + - registerDomain + - registerAssetDefinition + - registerAsset + - mintAsset + - burnAsset + - transferAsset + - registerAccount + type: string + x-enum-descriptions: + - Register new domain + - Register new asset definition + - Register new asset + - Mint asset value + - Burn asset value + - Transfer asset between accounts + - Register new account + x-enum-varnames: + - RegisterDomain + - RegisterAssetDefinition + - RegisterAsset + - MintAsset + - BurnAsset + - TransferAsset + - RegisterAccount + IrohaQuery: + description: Command names that correspond to Iroha queries (https://hyperledger.github.io/iroha-2-docs/guide/advanced/queries.html) + enum: + - findAllDomains + - findDomainById + - findAssetDefinitionById + - findAllAssetsDefinitions + - findAssetById + - findAllAssets + - findAllPeers + - findAllBlocks + - findAccountById + - findAllAccounts + - findAllTransactions + - findTransactionByHash + type: string + x-enum-descriptions: + - Get list of all registered domains + - Get domain with specified ID + - Get asset definition with specified ID + - Get list of all registered asset definition + - Get asset with specified ID + - Get list of all registered assets + - Get list of all ledger peers + - Get list of all ledger blocks + - Get account with specified ID + - Get list of all registered accounts + - Get list of all transactions + - Get transaction with specified hash + x-enum-varnames: + - FindAllDomains + - FindDomainById + - FindAssetDefinitionById + - FindAllAssetsDefinitions + - FindAssetById + - FindAllAssets + - FindAllPeers + - FindAllBlocks + - FindAccountById + - FindAllAccounts + - FindAllTransactions + - FindTransactionByHash + WatchBlocksV1: + description: Websocket requests for monitoring new blocks. + enum: + - org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + BlockTypeV1: + description: Iroha V2 block response type. + enum: + - raw + - binary + type: string + x-enum-descriptions: + - Default JSON-encoded string full block data. + - Encoded format that must be decoded with Iroha SDK on client side before use + x-enum-varnames: + - Raw + - Binary + TransactionStatusV1: + description: Status of Iroha V2 transaction. + enum: + - submitted + - committed + - rejected + type: string + x-enum-descriptions: + - Transaction was submitted to the ledger - use other tools to check if it was + accepted and committed. + - Transaction was committed to the ledger. + - Transaction was rejected. + x-enum-varnames: + - Submitted + - Committed + - Rejected + WatchBlocksOptionsV1: + description: Options passed when subscribing to block monitoring. + properties: + type: + $ref: '#/components/schemas/BlockTypeV1' + startBlock: + description: Number of block to start monitoring from. + minLength: 1 + nullable: false + type: string + baseConfig: + $ref: '#/components/schemas/Iroha2BaseConfig' + type: object + WatchBlocksRawResponseV1: + description: Default JSON-encoded string full block data. + properties: + blockData: + nullable: false + type: string + required: + - blockData + type: object + WatchBlocksBinaryResponseV1: + description: Binary encoded response of block data. + properties: + binaryBlock: + nullable: false + type: string + required: + - binaryBlock + type: object + WatchBlocksResponseV1: + oneOf: + - $ref: '#/components/schemas/WatchBlocksRawResponseV1' + - $ref: '#/components/schemas/WatchBlocksBinaryResponseV1' + - $ref: '#/components/schemas/ErrorExceptionResponseV1' + Iroha2AccountId: + additionalProperties: false + description: Iroha V2 account ID. + example: + name: name + domainId: domainId + nullable: false + properties: + name: + nullable: false + type: string + domainId: + nullable: false + type: string + required: + - domainId + - name + type: object + Iroha2KeyJson: + additionalProperties: false + description: Private/Public key JSON containing payload and digest function. + nullable: false + properties: + digestFunction: + nullable: false + type: string + payload: + nullable: false + type: string + required: + - digestFunction + - payload + type: object + KeychainReference: + description: Reference to entry stored in Cactus keychain plugin. + properties: + keychainId: + description: Keychain plugin ID. + maxLength: 100 + minLength: 1 + nullable: false + type: string + keychainRef: + description: Key reference name. + maxLength: 100 + minLength: 1 + nullable: false + type: string + required: + - keychainId + - keychainRef + type: object + Iroha2KeyPair: + description: Pair of Iroha account private and public keys. + properties: + privateKey: + $ref: '#/components/schemas/Iroha2KeyJson' + publicKey: + nullable: false + type: string + required: + - privateKey + - publicKey + type: object + Iroha2BaseConfigTorii: + additionalProperties: false + description: Iroha V2 peer connection information. + example: + apiURL: apiURL + telemetryURL: telemetryURL + nullable: false + properties: + apiURL: + nullable: false + type: string + telemetryURL: + nullable: false + type: string + type: object + Iroha2BaseConfig: + additionalProperties: false + description: Iroha V2 connection configuration. + example: + torii: + apiURL: apiURL + telemetryURL: telemetryURL + accountId: + name: name + domainId: domainId + signingCredential: null + properties: + torii: + $ref: '#/components/schemas/Iroha2BaseConfigTorii' + accountId: + $ref: '#/components/schemas/Iroha2AccountId' + signingCredential: + $ref: '#/components/schemas/Iroha2BaseConfig_signingCredential' + required: + - torii + type: object + IrohaInstructionRequestV1: + additionalProperties: false + description: Single Iroha V2 instruction to be executed request. + properties: + name: + description: Iroha V2 instruction name. + nullable: false + type: IrohaInstruction + params: + description: The list of arguments to pass with specified instruction. + items: {} + type: array + required: + - name + - params + type: object + IrohaTransactionParametersV1: + additionalProperties: true + description: Iroha V2 transaction payload parameters + example: + creationTime: creationTime + ttl: ttl + nonce: 0.8008281904610115 + properties: + ttl: + description: BigInt time to live. + nullable: false + type: string + creationTime: + description: BigInt creation time + nullable: false + type: string + nonce: + description: Transaction nonce + nullable: false + type: number + type: object + IrohaTransactionDefinitionV1: + additionalProperties: false + description: Iroha V2 transaction definition + example: + instruction: null + params: + creationTime: creationTime + ttl: ttl + nonce: 0.8008281904610115 + properties: + instruction: + $ref: '#/components/schemas/IrohaTransactionDefinitionV1_instruction' + params: + $ref: '#/components/schemas/IrohaTransactionParametersV1' + required: + - instruction + type: object + IrohaQueryDefinitionV1: + additionalProperties: false + description: Iroha V2 query definition. + example: + query: "" + params: + - "" + - "" + properties: + query: + description: Name of the query to be executed. + nullable: false + type: IrohaQuery + params: + description: The list of arguments to pass with the query. + items: {} + type: array + required: + - query + type: object + IrohaSignedQueryDefinitionV1: + additionalProperties: false + description: Iroha V2 signed query definition + example: + payload: payload + query: "" + properties: + query: + description: Name of the query to be executed. + nullable: false + type: IrohaQuery + payload: + description: Signed query transaction binary data received from generate-transaction + endpoint. + nullable: false + type: string + required: + - payload + - query + type: object + TransactRequestV1: + additionalProperties: false + description: Request to transact endpoint. + example: + waitForCommit: false + signedTransaction: signedTransaction + transaction: + instruction: null + params: + creationTime: creationTime + ttl: ttl + nonce: 0.8008281904610115 + baseConfig: + torii: + apiURL: apiURL + telemetryURL: telemetryURL + accountId: + name: name + domainId: domainId + signingCredential: null + properties: + signedTransaction: + description: Signed transaction binary data received from generate-transaction + endpoint. + nullable: false + type: string + transaction: + $ref: '#/components/schemas/IrohaTransactionDefinitionV1' + waitForCommit: + default: false + description: Wait unitl transaction is sent and return the final status + (committed / rejected) + nullable: false + type: boolean + baseConfig: + $ref: '#/components/schemas/Iroha2BaseConfig' + type: object + TransactResponseV1: + description: Response from transaction endpoint with operation status. + example: + rejectReason: rejectReason + hash: hash + status: null + properties: + hash: + description: Hexadecimal hash of the transaction sent to the ledger. + nullable: false + type: string + status: + $ref: '#/components/schemas/TransactionStatusV1' + rejectReason: + description: "When waitForCommit was suplied and the transaction was rejected,\ + \ contains the reason of the rejection." + nullable: false + type: string + required: + - hash + - status + type: object + QueryRequestV1: + additionalProperties: false + description: Request to query endpoint. + example: + query: + query: "" + params: + - "" + - "" + signedQuery: + payload: payload + query: "" + baseConfig: + torii: + apiURL: apiURL + telemetryURL: telemetryURL + accountId: + name: name + domainId: domainId + signingCredential: null + properties: + query: + $ref: '#/components/schemas/IrohaQueryDefinitionV1' + signedQuery: + $ref: '#/components/schemas/IrohaSignedQueryDefinitionV1' + baseConfig: + $ref: '#/components/schemas/Iroha2BaseConfig' + type: object + QueryResponseV1: + description: Response with the query results. + example: + response: "" + properties: + response: + description: Query response data that varies between different queries. + nullable: false + required: + - response + type: object + GenerateTransactionRequestV1: + additionalProperties: false + description: Request for generating transaction or query payload that can be + signed on the client side. + example: + request: null + baseConfig: + torii: + apiURL: apiURL + telemetryURL: telemetryURL + accountId: + name: name + domainId: domainId + signingCredential: null + properties: + request: + $ref: '#/components/schemas/GenerateTransactionRequestV1_request' + baseConfig: + $ref: '#/components/schemas/Iroha2BaseConfig' + required: + - request + type: object + ErrorExceptionResponseV1: + description: Error response from the connector. + properties: + message: + description: Short error description message. + nullable: false + type: string + error: + description: Detailed error information. + nullable: false + type: string + required: + - error + - message + type: object + Iroha2BaseConfig_signingCredential: + oneOf: + - $ref: '#/components/schemas/Iroha2KeyPair' + - $ref: '#/components/schemas/KeychainReference' + IrohaTransactionDefinitionV1_instruction: + oneOf: + - $ref: '#/components/schemas/IrohaInstructionRequestV1' + - items: + $ref: '#/components/schemas/IrohaInstructionRequestV1' + type: array + GenerateTransactionRequestV1_request: + oneOf: + - $ref: '#/components/schemas/IrohaTransactionDefinitionV1' + - $ref: '#/components/schemas/IrohaQueryDefinitionV1' diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..f7ca62d668e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,368 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGenerateTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + generateTransactionRequestV1 *GenerateTransactionRequestV1 +} + +func (r ApiGenerateTransactionV1Request) GenerateTransactionRequestV1(generateTransactionRequestV1 GenerateTransactionRequestV1) ApiGenerateTransactionV1Request { + r.generateTransactionRequestV1 = &generateTransactionRequestV1 + return r +} + +func (r ApiGenerateTransactionV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GenerateTransactionV1Execute(r) +} + +/* +GenerateTransactionV1 Generate transaction that can be signed locally. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTransactionV1Request +*/ +func (a *DefaultApiService) GenerateTransactionV1(ctx context.Context) ApiGenerateTransactionV1Request { + return ApiGenerateTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GenerateTransactionV1Execute(r ApiGenerateTransactionV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GenerateTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/generate-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.generateTransactionRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiQueryV1Request struct { + ctx context.Context + ApiService *DefaultApiService + queryRequestV1 *QueryRequestV1 +} + +func (r ApiQueryV1Request) QueryRequestV1(queryRequestV1 QueryRequestV1) ApiQueryV1Request { + r.queryRequestV1 = &queryRequestV1 + return r +} + +func (r ApiQueryV1Request) Execute() (*QueryResponseV1, *http.Response, error) { + return r.ApiService.QueryV1Execute(r) +} + +/* +QueryV1 Executes a query on a Iroha V2 ledger and returns it's results. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiQueryV1Request +*/ +func (a *DefaultApiService) QueryV1(ctx context.Context) ApiQueryV1Request { + return ApiQueryV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return QueryResponseV1 +func (a *DefaultApiService) QueryV1Execute(r ApiQueryV1Request) (*QueryResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *QueryResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.QueryV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/query" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.queryRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTransactV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transactRequestV1 *TransactRequestV1 +} + +func (r ApiTransactV1Request) TransactRequestV1(transactRequestV1 TransactRequestV1) ApiTransactV1Request { + r.transactRequestV1 = &transactRequestV1 + return r +} + +func (r ApiTransactV1Request) Execute() (*TransactResponseV1, *http.Response, error) { + return r.ApiService.TransactV1Execute(r) +} + +/* +TransactV1 Executes a transaction on a Iroha V2 ledger (by sending some instructions) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransactV1Request +*/ +func (a *DefaultApiService) TransactV1(ctx context.Context) ApiTransactV1Request { + return ApiTransactV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TransactResponseV1 +func (a *DefaultApiService) TransactV1Execute(r ApiTransactV1Request) (*TransactResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TransactResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TransactV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/transact" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transactRequestV1 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..cfabc125aec --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Iroha V2 API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..e128401ac12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/BlockTypeV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/BlockTypeV1.md new file mode 100644 index 00000000000..86a57e3c37e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/BlockTypeV1.md @@ -0,0 +1,13 @@ +# BlockTypeV1 + +## Enum + + +* `Raw` (value: `"raw"`) + +* `Binary` (value: `"binary"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..1dfbadf7d66 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,203 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GenerateTransactionV1**](DefaultApi.md#GenerateTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/generate-transaction | Generate transaction that can be signed locally. +[**QueryV1**](DefaultApi.md#QueryV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/query | Executes a query on a Iroha V2 ledger and returns it's results. +[**TransactV1**](DefaultApi.md#TransactV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-iroha2/transact | Executes a transaction on a Iroha V2 ledger (by sending some instructions) + + + +## GenerateTransactionV1 + +> string GenerateTransactionV1(ctx).GenerateTransactionRequestV1(generateTransactionRequestV1).Execute() + +Generate transaction that can be signed locally. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" +) + +func main() { + generateTransactionRequestV1 := *openapiclient.NewGenerateTransactionRequestV1(openapiclient.GenerateTransactionRequestV1_request{IrohaQueryDefinitionV1: openapiclient.NewIrohaQueryDefinitionV1(openapiclient.IrohaQuery("findAllDomains"))}) // GenerateTransactionRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GenerateTransactionV1(context.Background()).GenerateTransactionRequestV1(generateTransactionRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GenerateTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenerateTransactionV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GenerateTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenerateTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **generateTransactionRequestV1** | [**GenerateTransactionRequestV1**](GenerateTransactionRequestV1.md) | | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## QueryV1 + +> QueryResponseV1 QueryV1(ctx).QueryRequestV1(queryRequestV1).Execute() + +Executes a query on a Iroha V2 ledger and returns it's results. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" +) + +func main() { + queryRequestV1 := *openapiclient.NewQueryRequestV1() // QueryRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.QueryV1(context.Background()).QueryRequestV1(queryRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.QueryV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryV1`: QueryResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.QueryV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiQueryV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **queryRequestV1** | [**QueryRequestV1**](QueryRequestV1.md) | | + +### Return type + +[**QueryResponseV1**](QueryResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TransactV1 + +> TransactResponseV1 TransactV1(ctx).TransactRequestV1(transactRequestV1).Execute() + +Executes a transaction on a Iroha V2 ledger (by sending some instructions) + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" +) + +func main() { + transactRequestV1 := *openapiclient.NewTransactRequestV1() // TransactRequestV1 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.TransactV1(context.Background()).TransactRequestV1(transactRequestV1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.TransactV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TransactV1`: TransactResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.TransactV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTransactV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transactRequestV1** | [**TransactRequestV1**](TransactRequestV1.md) | | + +### Return type + +[**TransactResponseV1**](TransactResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md new file mode 100644 index 00000000000..ecebcbaa4db --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md @@ -0,0 +1,72 @@ +# ErrorExceptionResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Short error description message. | +**Error** | **string** | Detailed error information. | + +## Methods + +### NewErrorExceptionResponseV1 + +`func NewErrorExceptionResponseV1(message string, error_ string, ) *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorExceptionResponseV1WithDefaults + +`func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ErrorExceptionResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorExceptionResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetError + +`func (o *ErrorExceptionResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ErrorExceptionResponseV1) SetError(v string)` + +SetError sets Error field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md new file mode 100644 index 00000000000..ce571495e5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1.md @@ -0,0 +1,77 @@ +# GenerateTransactionRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Request** | [**GenerateTransactionRequestV1Request**](GenerateTransactionRequestV1Request.md) | | +**BaseConfig** | Pointer to [**Iroha2BaseConfig**](Iroha2BaseConfig.md) | | [optional] + +## Methods + +### NewGenerateTransactionRequestV1 + +`func NewGenerateTransactionRequestV1(request GenerateTransactionRequestV1Request, ) *GenerateTransactionRequestV1` + +NewGenerateTransactionRequestV1 instantiates a new GenerateTransactionRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGenerateTransactionRequestV1WithDefaults + +`func NewGenerateTransactionRequestV1WithDefaults() *GenerateTransactionRequestV1` + +NewGenerateTransactionRequestV1WithDefaults instantiates a new GenerateTransactionRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRequest + +`func (o *GenerateTransactionRequestV1) GetRequest() GenerateTransactionRequestV1Request` + +GetRequest returns the Request field if non-nil, zero value otherwise. + +### GetRequestOk + +`func (o *GenerateTransactionRequestV1) GetRequestOk() (*GenerateTransactionRequestV1Request, bool)` + +GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequest + +`func (o *GenerateTransactionRequestV1) SetRequest(v GenerateTransactionRequestV1Request)` + +SetRequest sets Request field to given value. + + +### GetBaseConfig + +`func (o *GenerateTransactionRequestV1) GetBaseConfig() Iroha2BaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *GenerateTransactionRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *GenerateTransactionRequestV1) SetBaseConfig(v Iroha2BaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + +### HasBaseConfig + +`func (o *GenerateTransactionRequestV1) HasBaseConfig() bool` + +HasBaseConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1Request.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1Request.md new file mode 100644 index 00000000000..9071be068d6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/GenerateTransactionRequestV1Request.md @@ -0,0 +1,98 @@ +# GenerateTransactionRequestV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Instruction** | [**IrohaTransactionDefinitionV1Instruction**](IrohaTransactionDefinitionV1Instruction.md) | | +**Params** | Pointer to **[]interface{}** | The list of arguments to pass with the query. | [optional] +**Query** | [**IrohaQuery**](IrohaQuery.md) | Name of the query to be executed. | + +## Methods + +### NewGenerateTransactionRequestV1Request + +`func NewGenerateTransactionRequestV1Request(instruction IrohaTransactionDefinitionV1Instruction, query IrohaQuery, ) *GenerateTransactionRequestV1Request` + +NewGenerateTransactionRequestV1Request instantiates a new GenerateTransactionRequestV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGenerateTransactionRequestV1RequestWithDefaults + +`func NewGenerateTransactionRequestV1RequestWithDefaults() *GenerateTransactionRequestV1Request` + +NewGenerateTransactionRequestV1RequestWithDefaults instantiates a new GenerateTransactionRequestV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInstruction + +`func (o *GenerateTransactionRequestV1Request) GetInstruction() IrohaTransactionDefinitionV1Instruction` + +GetInstruction returns the Instruction field if non-nil, zero value otherwise. + +### GetInstructionOk + +`func (o *GenerateTransactionRequestV1Request) GetInstructionOk() (*IrohaTransactionDefinitionV1Instruction, bool)` + +GetInstructionOk returns a tuple with the Instruction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstruction + +`func (o *GenerateTransactionRequestV1Request) SetInstruction(v IrohaTransactionDefinitionV1Instruction)` + +SetInstruction sets Instruction field to given value. + + +### GetParams + +`func (o *GenerateTransactionRequestV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *GenerateTransactionRequestV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *GenerateTransactionRequestV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *GenerateTransactionRequestV1Request) HasParams() bool` + +HasParams returns a boolean if a field has been set. + +### GetQuery + +`func (o *GenerateTransactionRequestV1Request) GetQuery() IrohaQuery` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *GenerateTransactionRequestV1Request) GetQueryOk() (*IrohaQuery, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *GenerateTransactionRequestV1Request) SetQuery(v IrohaQuery)` + +SetQuery sets Query field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2AccountId.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2AccountId.md new file mode 100644 index 00000000000..c9622743bee --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2AccountId.md @@ -0,0 +1,72 @@ +# Iroha2AccountId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**DomainId** | **string** | | + +## Methods + +### NewIroha2AccountId + +`func NewIroha2AccountId(name string, domainId string, ) *Iroha2AccountId` + +NewIroha2AccountId instantiates a new Iroha2AccountId object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2AccountIdWithDefaults + +`func NewIroha2AccountIdWithDefaults() *Iroha2AccountId` + +NewIroha2AccountIdWithDefaults instantiates a new Iroha2AccountId object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *Iroha2AccountId) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Iroha2AccountId) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Iroha2AccountId) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDomainId + +`func (o *Iroha2AccountId) GetDomainId() string` + +GetDomainId returns the DomainId field if non-nil, zero value otherwise. + +### GetDomainIdOk + +`func (o *Iroha2AccountId) GetDomainIdOk() (*string, bool)` + +GetDomainIdOk returns a tuple with the DomainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainId + +`func (o *Iroha2AccountId) SetDomainId(v string)` + +SetDomainId sets DomainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfig.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfig.md new file mode 100644 index 00000000000..97424c4f03e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfig.md @@ -0,0 +1,103 @@ +# Iroha2BaseConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Torii** | [**Iroha2BaseConfigTorii**](Iroha2BaseConfigTorii.md) | | +**AccountId** | Pointer to [**Iroha2AccountId**](Iroha2AccountId.md) | | [optional] +**SigningCredential** | Pointer to [**Iroha2BaseConfigSigningCredential**](Iroha2BaseConfigSigningCredential.md) | | [optional] + +## Methods + +### NewIroha2BaseConfig + +`func NewIroha2BaseConfig(torii Iroha2BaseConfigTorii, ) *Iroha2BaseConfig` + +NewIroha2BaseConfig instantiates a new Iroha2BaseConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2BaseConfigWithDefaults + +`func NewIroha2BaseConfigWithDefaults() *Iroha2BaseConfig` + +NewIroha2BaseConfigWithDefaults instantiates a new Iroha2BaseConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTorii + +`func (o *Iroha2BaseConfig) GetTorii() Iroha2BaseConfigTorii` + +GetTorii returns the Torii field if non-nil, zero value otherwise. + +### GetToriiOk + +`func (o *Iroha2BaseConfig) GetToriiOk() (*Iroha2BaseConfigTorii, bool)` + +GetToriiOk returns a tuple with the Torii field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTorii + +`func (o *Iroha2BaseConfig) SetTorii(v Iroha2BaseConfigTorii)` + +SetTorii sets Torii field to given value. + + +### GetAccountId + +`func (o *Iroha2BaseConfig) GetAccountId() Iroha2AccountId` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *Iroha2BaseConfig) GetAccountIdOk() (*Iroha2AccountId, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *Iroha2BaseConfig) SetAccountId(v Iroha2AccountId)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *Iroha2BaseConfig) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetSigningCredential + +`func (o *Iroha2BaseConfig) GetSigningCredential() Iroha2BaseConfigSigningCredential` + +GetSigningCredential returns the SigningCredential field if non-nil, zero value otherwise. + +### GetSigningCredentialOk + +`func (o *Iroha2BaseConfig) GetSigningCredentialOk() (*Iroha2BaseConfigSigningCredential, bool)` + +GetSigningCredentialOk returns a tuple with the SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningCredential + +`func (o *Iroha2BaseConfig) SetSigningCredential(v Iroha2BaseConfigSigningCredential)` + +SetSigningCredential sets SigningCredential field to given value. + +### HasSigningCredential + +`func (o *Iroha2BaseConfig) HasSigningCredential() bool` + +HasSigningCredential returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigSigningCredential.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigSigningCredential.md new file mode 100644 index 00000000000..ca7f98607be --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigSigningCredential.md @@ -0,0 +1,114 @@ +# Iroha2BaseConfigSigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateKey** | [**Iroha2KeyJson**](Iroha2KeyJson.md) | | +**PublicKey** | **string** | | +**KeychainId** | **string** | Keychain plugin ID. | +**KeychainRef** | **string** | Key reference name. | + +## Methods + +### NewIroha2BaseConfigSigningCredential + +`func NewIroha2BaseConfigSigningCredential(privateKey Iroha2KeyJson, publicKey string, keychainId string, keychainRef string, ) *Iroha2BaseConfigSigningCredential` + +NewIroha2BaseConfigSigningCredential instantiates a new Iroha2BaseConfigSigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2BaseConfigSigningCredentialWithDefaults + +`func NewIroha2BaseConfigSigningCredentialWithDefaults() *Iroha2BaseConfigSigningCredential` + +NewIroha2BaseConfigSigningCredentialWithDefaults instantiates a new Iroha2BaseConfigSigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateKey + +`func (o *Iroha2BaseConfigSigningCredential) GetPrivateKey() Iroha2KeyJson` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *Iroha2BaseConfigSigningCredential) GetPrivateKeyOk() (*Iroha2KeyJson, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *Iroha2BaseConfigSigningCredential) SetPrivateKey(v Iroha2KeyJson)` + +SetPrivateKey sets PrivateKey field to given value. + + +### GetPublicKey + +`func (o *Iroha2BaseConfigSigningCredential) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *Iroha2BaseConfigSigningCredential) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *Iroha2BaseConfigSigningCredential) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + +### GetKeychainId + +`func (o *Iroha2BaseConfigSigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Iroha2BaseConfigSigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Iroha2BaseConfigSigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetKeychainRef + +`func (o *Iroha2BaseConfigSigningCredential) GetKeychainRef() string` + +GetKeychainRef returns the KeychainRef field if non-nil, zero value otherwise. + +### GetKeychainRefOk + +`func (o *Iroha2BaseConfigSigningCredential) GetKeychainRefOk() (*string, bool)` + +GetKeychainRefOk returns a tuple with the KeychainRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainRef + +`func (o *Iroha2BaseConfigSigningCredential) SetKeychainRef(v string)` + +SetKeychainRef sets KeychainRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigTorii.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigTorii.md new file mode 100644 index 00000000000..146bef1ef70 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2BaseConfigTorii.md @@ -0,0 +1,82 @@ +# Iroha2BaseConfigTorii + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiURL** | Pointer to **string** | | [optional] +**TelemetryURL** | Pointer to **string** | | [optional] + +## Methods + +### NewIroha2BaseConfigTorii + +`func NewIroha2BaseConfigTorii() *Iroha2BaseConfigTorii` + +NewIroha2BaseConfigTorii instantiates a new Iroha2BaseConfigTorii object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2BaseConfigToriiWithDefaults + +`func NewIroha2BaseConfigToriiWithDefaults() *Iroha2BaseConfigTorii` + +NewIroha2BaseConfigToriiWithDefaults instantiates a new Iroha2BaseConfigTorii object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiURL + +`func (o *Iroha2BaseConfigTorii) GetApiURL() string` + +GetApiURL returns the ApiURL field if non-nil, zero value otherwise. + +### GetApiURLOk + +`func (o *Iroha2BaseConfigTorii) GetApiURLOk() (*string, bool)` + +GetApiURLOk returns a tuple with the ApiURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiURL + +`func (o *Iroha2BaseConfigTorii) SetApiURL(v string)` + +SetApiURL sets ApiURL field to given value. + +### HasApiURL + +`func (o *Iroha2BaseConfigTorii) HasApiURL() bool` + +HasApiURL returns a boolean if a field has been set. + +### GetTelemetryURL + +`func (o *Iroha2BaseConfigTorii) GetTelemetryURL() string` + +GetTelemetryURL returns the TelemetryURL field if non-nil, zero value otherwise. + +### GetTelemetryURLOk + +`func (o *Iroha2BaseConfigTorii) GetTelemetryURLOk() (*string, bool)` + +GetTelemetryURLOk returns a tuple with the TelemetryURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTelemetryURL + +`func (o *Iroha2BaseConfigTorii) SetTelemetryURL(v string)` + +SetTelemetryURL sets TelemetryURL field to given value. + +### HasTelemetryURL + +`func (o *Iroha2BaseConfigTorii) HasTelemetryURL() bool` + +HasTelemetryURL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyJson.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyJson.md new file mode 100644 index 00000000000..8c95415c18b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyJson.md @@ -0,0 +1,72 @@ +# Iroha2KeyJson + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DigestFunction** | **string** | | +**Payload** | **string** | | + +## Methods + +### NewIroha2KeyJson + +`func NewIroha2KeyJson(digestFunction string, payload string, ) *Iroha2KeyJson` + +NewIroha2KeyJson instantiates a new Iroha2KeyJson object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2KeyJsonWithDefaults + +`func NewIroha2KeyJsonWithDefaults() *Iroha2KeyJson` + +NewIroha2KeyJsonWithDefaults instantiates a new Iroha2KeyJson object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDigestFunction + +`func (o *Iroha2KeyJson) GetDigestFunction() string` + +GetDigestFunction returns the DigestFunction field if non-nil, zero value otherwise. + +### GetDigestFunctionOk + +`func (o *Iroha2KeyJson) GetDigestFunctionOk() (*string, bool)` + +GetDigestFunctionOk returns a tuple with the DigestFunction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigestFunction + +`func (o *Iroha2KeyJson) SetDigestFunction(v string)` + +SetDigestFunction sets DigestFunction field to given value. + + +### GetPayload + +`func (o *Iroha2KeyJson) GetPayload() string` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *Iroha2KeyJson) GetPayloadOk() (*string, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *Iroha2KeyJson) SetPayload(v string)` + +SetPayload sets Payload field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyPair.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyPair.md new file mode 100644 index 00000000000..4c90b634d54 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/Iroha2KeyPair.md @@ -0,0 +1,72 @@ +# Iroha2KeyPair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateKey** | [**Iroha2KeyJson**](Iroha2KeyJson.md) | | +**PublicKey** | **string** | | + +## Methods + +### NewIroha2KeyPair + +`func NewIroha2KeyPair(privateKey Iroha2KeyJson, publicKey string, ) *Iroha2KeyPair` + +NewIroha2KeyPair instantiates a new Iroha2KeyPair object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIroha2KeyPairWithDefaults + +`func NewIroha2KeyPairWithDefaults() *Iroha2KeyPair` + +NewIroha2KeyPairWithDefaults instantiates a new Iroha2KeyPair object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateKey + +`func (o *Iroha2KeyPair) GetPrivateKey() Iroha2KeyJson` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *Iroha2KeyPair) GetPrivateKeyOk() (*Iroha2KeyJson, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *Iroha2KeyPair) SetPrivateKey(v Iroha2KeyJson)` + +SetPrivateKey sets PrivateKey field to given value. + + +### GetPublicKey + +`func (o *Iroha2KeyPair) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *Iroha2KeyPair) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *Iroha2KeyPair) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstruction.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstruction.md new file mode 100644 index 00000000000..045fd4de040 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstruction.md @@ -0,0 +1,23 @@ +# IrohaInstruction + +## Enum + + +* `RegisterDomain` (value: `"registerDomain"`) + +* `RegisterAssetDefinition` (value: `"registerAssetDefinition"`) + +* `RegisterAsset` (value: `"registerAsset"`) + +* `MintAsset` (value: `"mintAsset"`) + +* `BurnAsset` (value: `"burnAsset"`) + +* `TransferAsset` (value: `"transferAsset"`) + +* `RegisterAccount` (value: `"registerAccount"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstructionRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstructionRequestV1.md new file mode 100644 index 00000000000..707039bb6f4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaInstructionRequestV1.md @@ -0,0 +1,72 @@ +# IrohaInstructionRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | [**IrohaInstruction**](IrohaInstruction.md) | Iroha V2 instruction name. | +**Params** | **[]interface{}** | The list of arguments to pass with specified instruction. | + +## Methods + +### NewIrohaInstructionRequestV1 + +`func NewIrohaInstructionRequestV1(name IrohaInstruction, params []interface{}, ) *IrohaInstructionRequestV1` + +NewIrohaInstructionRequestV1 instantiates a new IrohaInstructionRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaInstructionRequestV1WithDefaults + +`func NewIrohaInstructionRequestV1WithDefaults() *IrohaInstructionRequestV1` + +NewIrohaInstructionRequestV1WithDefaults instantiates a new IrohaInstructionRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *IrohaInstructionRequestV1) GetName() IrohaInstruction` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IrohaInstructionRequestV1) GetNameOk() (*IrohaInstruction, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IrohaInstructionRequestV1) SetName(v IrohaInstruction)` + +SetName sets Name field to given value. + + +### GetParams + +`func (o *IrohaInstructionRequestV1) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *IrohaInstructionRequestV1) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *IrohaInstructionRequestV1) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md new file mode 100644 index 00000000000..c4134b3f589 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQuery.md @@ -0,0 +1,33 @@ +# IrohaQuery + +## Enum + + +* `FindAllDomains` (value: `"findAllDomains"`) + +* `FindDomainById` (value: `"findDomainById"`) + +* `FindAssetDefinitionById` (value: `"findAssetDefinitionById"`) + +* `FindAllAssetsDefinitions` (value: `"findAllAssetsDefinitions"`) + +* `FindAssetById` (value: `"findAssetById"`) + +* `FindAllAssets` (value: `"findAllAssets"`) + +* `FindAllPeers` (value: `"findAllPeers"`) + +* `FindAllBlocks` (value: `"findAllBlocks"`) + +* `FindAccountById` (value: `"findAccountById"`) + +* `FindAllAccounts` (value: `"findAllAccounts"`) + +* `FindAllTransactions` (value: `"findAllTransactions"`) + +* `FindTransactionByHash` (value: `"findTransactionByHash"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQueryDefinitionV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQueryDefinitionV1.md new file mode 100644 index 00000000000..9a93748faa5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaQueryDefinitionV1.md @@ -0,0 +1,77 @@ +# IrohaQueryDefinitionV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | [**IrohaQuery**](IrohaQuery.md) | Name of the query to be executed. | +**Params** | Pointer to **[]interface{}** | The list of arguments to pass with the query. | [optional] + +## Methods + +### NewIrohaQueryDefinitionV1 + +`func NewIrohaQueryDefinitionV1(query IrohaQuery, ) *IrohaQueryDefinitionV1` + +NewIrohaQueryDefinitionV1 instantiates a new IrohaQueryDefinitionV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaQueryDefinitionV1WithDefaults + +`func NewIrohaQueryDefinitionV1WithDefaults() *IrohaQueryDefinitionV1` + +NewIrohaQueryDefinitionV1WithDefaults instantiates a new IrohaQueryDefinitionV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *IrohaQueryDefinitionV1) GetQuery() IrohaQuery` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *IrohaQueryDefinitionV1) GetQueryOk() (*IrohaQuery, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *IrohaQueryDefinitionV1) SetQuery(v IrohaQuery)` + +SetQuery sets Query field to given value. + + +### GetParams + +`func (o *IrohaQueryDefinitionV1) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *IrohaQueryDefinitionV1) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *IrohaQueryDefinitionV1) SetParams(v []interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *IrohaQueryDefinitionV1) HasParams() bool` + +HasParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaSignedQueryDefinitionV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaSignedQueryDefinitionV1.md new file mode 100644 index 00000000000..1fabbb69b24 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaSignedQueryDefinitionV1.md @@ -0,0 +1,72 @@ +# IrohaSignedQueryDefinitionV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | [**IrohaQuery**](IrohaQuery.md) | Name of the query to be executed. | +**Payload** | **string** | Signed query transaction binary data received from generate-transaction endpoint. | + +## Methods + +### NewIrohaSignedQueryDefinitionV1 + +`func NewIrohaSignedQueryDefinitionV1(query IrohaQuery, payload string, ) *IrohaSignedQueryDefinitionV1` + +NewIrohaSignedQueryDefinitionV1 instantiates a new IrohaSignedQueryDefinitionV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaSignedQueryDefinitionV1WithDefaults + +`func NewIrohaSignedQueryDefinitionV1WithDefaults() *IrohaSignedQueryDefinitionV1` + +NewIrohaSignedQueryDefinitionV1WithDefaults instantiates a new IrohaSignedQueryDefinitionV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *IrohaSignedQueryDefinitionV1) GetQuery() IrohaQuery` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *IrohaSignedQueryDefinitionV1) GetQueryOk() (*IrohaQuery, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *IrohaSignedQueryDefinitionV1) SetQuery(v IrohaQuery)` + +SetQuery sets Query field to given value. + + +### GetPayload + +`func (o *IrohaSignedQueryDefinitionV1) GetPayload() string` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *IrohaSignedQueryDefinitionV1) GetPayloadOk() (*string, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *IrohaSignedQueryDefinitionV1) SetPayload(v string)` + +SetPayload sets Payload field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1.md new file mode 100644 index 00000000000..a0a55c4d141 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1.md @@ -0,0 +1,77 @@ +# IrohaTransactionDefinitionV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Instruction** | [**IrohaTransactionDefinitionV1Instruction**](IrohaTransactionDefinitionV1Instruction.md) | | +**Params** | Pointer to [**IrohaTransactionParametersV1**](IrohaTransactionParametersV1.md) | | [optional] + +## Methods + +### NewIrohaTransactionDefinitionV1 + +`func NewIrohaTransactionDefinitionV1(instruction IrohaTransactionDefinitionV1Instruction, ) *IrohaTransactionDefinitionV1` + +NewIrohaTransactionDefinitionV1 instantiates a new IrohaTransactionDefinitionV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaTransactionDefinitionV1WithDefaults + +`func NewIrohaTransactionDefinitionV1WithDefaults() *IrohaTransactionDefinitionV1` + +NewIrohaTransactionDefinitionV1WithDefaults instantiates a new IrohaTransactionDefinitionV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInstruction + +`func (o *IrohaTransactionDefinitionV1) GetInstruction() IrohaTransactionDefinitionV1Instruction` + +GetInstruction returns the Instruction field if non-nil, zero value otherwise. + +### GetInstructionOk + +`func (o *IrohaTransactionDefinitionV1) GetInstructionOk() (*IrohaTransactionDefinitionV1Instruction, bool)` + +GetInstructionOk returns a tuple with the Instruction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstruction + +`func (o *IrohaTransactionDefinitionV1) SetInstruction(v IrohaTransactionDefinitionV1Instruction)` + +SetInstruction sets Instruction field to given value. + + +### GetParams + +`func (o *IrohaTransactionDefinitionV1) GetParams() IrohaTransactionParametersV1` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *IrohaTransactionDefinitionV1) GetParamsOk() (*IrohaTransactionParametersV1, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *IrohaTransactionDefinitionV1) SetParams(v IrohaTransactionParametersV1)` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *IrohaTransactionDefinitionV1) HasParams() bool` + +HasParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1Instruction.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1Instruction.md new file mode 100644 index 00000000000..c5e62e95146 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionDefinitionV1Instruction.md @@ -0,0 +1,72 @@ +# IrohaTransactionDefinitionV1Instruction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | [**IrohaInstruction**](IrohaInstruction.md) | Iroha V2 instruction name. | +**Params** | **[]interface{}** | The list of arguments to pass with specified instruction. | + +## Methods + +### NewIrohaTransactionDefinitionV1Instruction + +`func NewIrohaTransactionDefinitionV1Instruction(name IrohaInstruction, params []interface{}, ) *IrohaTransactionDefinitionV1Instruction` + +NewIrohaTransactionDefinitionV1Instruction instantiates a new IrohaTransactionDefinitionV1Instruction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaTransactionDefinitionV1InstructionWithDefaults + +`func NewIrohaTransactionDefinitionV1InstructionWithDefaults() *IrohaTransactionDefinitionV1Instruction` + +NewIrohaTransactionDefinitionV1InstructionWithDefaults instantiates a new IrohaTransactionDefinitionV1Instruction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *IrohaTransactionDefinitionV1Instruction) GetName() IrohaInstruction` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IrohaTransactionDefinitionV1Instruction) GetNameOk() (*IrohaInstruction, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IrohaTransactionDefinitionV1Instruction) SetName(v IrohaInstruction)` + +SetName sets Name field to given value. + + +### GetParams + +`func (o *IrohaTransactionDefinitionV1Instruction) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *IrohaTransactionDefinitionV1Instruction) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *IrohaTransactionDefinitionV1Instruction) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionParametersV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionParametersV1.md new file mode 100644 index 00000000000..5d1d726048c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/IrohaTransactionParametersV1.md @@ -0,0 +1,108 @@ +# IrohaTransactionParametersV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ttl** | Pointer to **string** | BigInt time to live. | [optional] +**CreationTime** | Pointer to **string** | BigInt creation time | [optional] +**Nonce** | Pointer to **float32** | Transaction nonce | [optional] + +## Methods + +### NewIrohaTransactionParametersV1 + +`func NewIrohaTransactionParametersV1() *IrohaTransactionParametersV1` + +NewIrohaTransactionParametersV1 instantiates a new IrohaTransactionParametersV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIrohaTransactionParametersV1WithDefaults + +`func NewIrohaTransactionParametersV1WithDefaults() *IrohaTransactionParametersV1` + +NewIrohaTransactionParametersV1WithDefaults instantiates a new IrohaTransactionParametersV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTtl + +`func (o *IrohaTransactionParametersV1) GetTtl() string` + +GetTtl returns the Ttl field if non-nil, zero value otherwise. + +### GetTtlOk + +`func (o *IrohaTransactionParametersV1) GetTtlOk() (*string, bool)` + +GetTtlOk returns a tuple with the Ttl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTtl + +`func (o *IrohaTransactionParametersV1) SetTtl(v string)` + +SetTtl sets Ttl field to given value. + +### HasTtl + +`func (o *IrohaTransactionParametersV1) HasTtl() bool` + +HasTtl returns a boolean if a field has been set. + +### GetCreationTime + +`func (o *IrohaTransactionParametersV1) GetCreationTime() string` + +GetCreationTime returns the CreationTime field if non-nil, zero value otherwise. + +### GetCreationTimeOk + +`func (o *IrohaTransactionParametersV1) GetCreationTimeOk() (*string, bool)` + +GetCreationTimeOk returns a tuple with the CreationTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreationTime + +`func (o *IrohaTransactionParametersV1) SetCreationTime(v string)` + +SetCreationTime sets CreationTime field to given value. + +### HasCreationTime + +`func (o *IrohaTransactionParametersV1) HasCreationTime() bool` + +HasCreationTime returns a boolean if a field has been set. + +### GetNonce + +`func (o *IrohaTransactionParametersV1) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *IrohaTransactionParametersV1) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *IrohaTransactionParametersV1) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *IrohaTransactionParametersV1) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/KeychainReference.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/KeychainReference.md new file mode 100644 index 00000000000..f3042e6cd91 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/KeychainReference.md @@ -0,0 +1,72 @@ +# KeychainReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeychainId** | **string** | Keychain plugin ID. | +**KeychainRef** | **string** | Key reference name. | + +## Methods + +### NewKeychainReference + +`func NewKeychainReference(keychainId string, keychainRef string, ) *KeychainReference` + +NewKeychainReference instantiates a new KeychainReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeychainReferenceWithDefaults + +`func NewKeychainReferenceWithDefaults() *KeychainReference` + +NewKeychainReferenceWithDefaults instantiates a new KeychainReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeychainId + +`func (o *KeychainReference) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *KeychainReference) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *KeychainReference) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetKeychainRef + +`func (o *KeychainReference) GetKeychainRef() string` + +GetKeychainRef returns the KeychainRef field if non-nil, zero value otherwise. + +### GetKeychainRefOk + +`func (o *KeychainReference) GetKeychainRefOk() (*string, bool)` + +GetKeychainRefOk returns a tuple with the KeychainRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainRef + +`func (o *KeychainReference) SetKeychainRef(v string)` + +SetKeychainRef sets KeychainRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryRequestV1.md new file mode 100644 index 00000000000..89cf543e99f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryRequestV1.md @@ -0,0 +1,108 @@ +# QueryRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | Pointer to [**IrohaQueryDefinitionV1**](IrohaQueryDefinitionV1.md) | | [optional] +**SignedQuery** | Pointer to [**IrohaSignedQueryDefinitionV1**](IrohaSignedQueryDefinitionV1.md) | | [optional] +**BaseConfig** | Pointer to [**Iroha2BaseConfig**](Iroha2BaseConfig.md) | | [optional] + +## Methods + +### NewQueryRequestV1 + +`func NewQueryRequestV1() *QueryRequestV1` + +NewQueryRequestV1 instantiates a new QueryRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQueryRequestV1WithDefaults + +`func NewQueryRequestV1WithDefaults() *QueryRequestV1` + +NewQueryRequestV1WithDefaults instantiates a new QueryRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *QueryRequestV1) GetQuery() IrohaQueryDefinitionV1` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *QueryRequestV1) GetQueryOk() (*IrohaQueryDefinitionV1, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *QueryRequestV1) SetQuery(v IrohaQueryDefinitionV1)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *QueryRequestV1) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetSignedQuery + +`func (o *QueryRequestV1) GetSignedQuery() IrohaSignedQueryDefinitionV1` + +GetSignedQuery returns the SignedQuery field if non-nil, zero value otherwise. + +### GetSignedQueryOk + +`func (o *QueryRequestV1) GetSignedQueryOk() (*IrohaSignedQueryDefinitionV1, bool)` + +GetSignedQueryOk returns a tuple with the SignedQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignedQuery + +`func (o *QueryRequestV1) SetSignedQuery(v IrohaSignedQueryDefinitionV1)` + +SetSignedQuery sets SignedQuery field to given value. + +### HasSignedQuery + +`func (o *QueryRequestV1) HasSignedQuery() bool` + +HasSignedQuery returns a boolean if a field has been set. + +### GetBaseConfig + +`func (o *QueryRequestV1) GetBaseConfig() Iroha2BaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *QueryRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *QueryRequestV1) SetBaseConfig(v Iroha2BaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + +### HasBaseConfig + +`func (o *QueryRequestV1) HasBaseConfig() bool` + +HasBaseConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryResponseV1.md new file mode 100644 index 00000000000..2257af90609 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/QueryResponseV1.md @@ -0,0 +1,61 @@ +# QueryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Response** | **interface{}** | Query response data that varies between different queries. | + +## Methods + +### NewQueryResponseV1 + +`func NewQueryResponseV1(response interface{}, ) *QueryResponseV1` + +NewQueryResponseV1 instantiates a new QueryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQueryResponseV1WithDefaults + +`func NewQueryResponseV1WithDefaults() *QueryResponseV1` + +NewQueryResponseV1WithDefaults instantiates a new QueryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResponse + +`func (o *QueryResponseV1) GetResponse() interface{}` + +GetResponse returns the Response field if non-nil, zero value otherwise. + +### GetResponseOk + +`func (o *QueryResponseV1) GetResponseOk() (*interface{}, bool)` + +GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponse + +`func (o *QueryResponseV1) SetResponse(v interface{})` + +SetResponse sets Response field to given value. + + +### SetResponseNil + +`func (o *QueryResponseV1) SetResponseNil(b bool)` + + SetResponseNil sets the value for Response to be an explicit nil + +### UnsetResponse +`func (o *QueryResponseV1) UnsetResponse()` + +UnsetResponse ensures that no value is present for Response, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactRequestV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactRequestV1.md new file mode 100644 index 00000000000..579e9a441fb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactRequestV1.md @@ -0,0 +1,134 @@ +# TransactRequestV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignedTransaction** | Pointer to **string** | Signed transaction binary data received from generate-transaction endpoint. | [optional] +**Transaction** | Pointer to [**IrohaTransactionDefinitionV1**](IrohaTransactionDefinitionV1.md) | | [optional] +**WaitForCommit** | Pointer to **bool** | Wait unitl transaction is sent and return the final status (committed / rejected) | [optional] [default to false] +**BaseConfig** | Pointer to [**Iroha2BaseConfig**](Iroha2BaseConfig.md) | | [optional] + +## Methods + +### NewTransactRequestV1 + +`func NewTransactRequestV1() *TransactRequestV1` + +NewTransactRequestV1 instantiates a new TransactRequestV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactRequestV1WithDefaults + +`func NewTransactRequestV1WithDefaults() *TransactRequestV1` + +NewTransactRequestV1WithDefaults instantiates a new TransactRequestV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignedTransaction + +`func (o *TransactRequestV1) GetSignedTransaction() string` + +GetSignedTransaction returns the SignedTransaction field if non-nil, zero value otherwise. + +### GetSignedTransactionOk + +`func (o *TransactRequestV1) GetSignedTransactionOk() (*string, bool)` + +GetSignedTransactionOk returns a tuple with the SignedTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignedTransaction + +`func (o *TransactRequestV1) SetSignedTransaction(v string)` + +SetSignedTransaction sets SignedTransaction field to given value. + +### HasSignedTransaction + +`func (o *TransactRequestV1) HasSignedTransaction() bool` + +HasSignedTransaction returns a boolean if a field has been set. + +### GetTransaction + +`func (o *TransactRequestV1) GetTransaction() IrohaTransactionDefinitionV1` + +GetTransaction returns the Transaction field if non-nil, zero value otherwise. + +### GetTransactionOk + +`func (o *TransactRequestV1) GetTransactionOk() (*IrohaTransactionDefinitionV1, bool)` + +GetTransactionOk returns a tuple with the Transaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransaction + +`func (o *TransactRequestV1) SetTransaction(v IrohaTransactionDefinitionV1)` + +SetTransaction sets Transaction field to given value. + +### HasTransaction + +`func (o *TransactRequestV1) HasTransaction() bool` + +HasTransaction returns a boolean if a field has been set. + +### GetWaitForCommit + +`func (o *TransactRequestV1) GetWaitForCommit() bool` + +GetWaitForCommit returns the WaitForCommit field if non-nil, zero value otherwise. + +### GetWaitForCommitOk + +`func (o *TransactRequestV1) GetWaitForCommitOk() (*bool, bool)` + +GetWaitForCommitOk returns a tuple with the WaitForCommit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWaitForCommit + +`func (o *TransactRequestV1) SetWaitForCommit(v bool)` + +SetWaitForCommit sets WaitForCommit field to given value. + +### HasWaitForCommit + +`func (o *TransactRequestV1) HasWaitForCommit() bool` + +HasWaitForCommit returns a boolean if a field has been set. + +### GetBaseConfig + +`func (o *TransactRequestV1) GetBaseConfig() Iroha2BaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *TransactRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *TransactRequestV1) SetBaseConfig(v Iroha2BaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + +### HasBaseConfig + +`func (o *TransactRequestV1) HasBaseConfig() bool` + +HasBaseConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactResponseV1.md new file mode 100644 index 00000000000..f61ebb6272c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactResponseV1.md @@ -0,0 +1,98 @@ +# TransactResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hash** | **string** | Hexadecimal hash of the transaction sent to the ledger. | +**Status** | [**TransactionStatusV1**](TransactionStatusV1.md) | | +**RejectReason** | Pointer to **string** | When waitForCommit was suplied and the transaction was rejected, contains the reason of the rejection. | [optional] + +## Methods + +### NewTransactResponseV1 + +`func NewTransactResponseV1(hash string, status TransactionStatusV1, ) *TransactResponseV1` + +NewTransactResponseV1 instantiates a new TransactResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactResponseV1WithDefaults + +`func NewTransactResponseV1WithDefaults() *TransactResponseV1` + +NewTransactResponseV1WithDefaults instantiates a new TransactResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHash + +`func (o *TransactResponseV1) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *TransactResponseV1) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *TransactResponseV1) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetStatus + +`func (o *TransactResponseV1) GetStatus() TransactionStatusV1` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TransactResponseV1) GetStatusOk() (*TransactionStatusV1, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *TransactResponseV1) SetStatus(v TransactionStatusV1)` + +SetStatus sets Status field to given value. + + +### GetRejectReason + +`func (o *TransactResponseV1) GetRejectReason() string` + +GetRejectReason returns the RejectReason field if non-nil, zero value otherwise. + +### GetRejectReasonOk + +`func (o *TransactResponseV1) GetRejectReasonOk() (*string, bool)` + +GetRejectReasonOk returns a tuple with the RejectReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRejectReason + +`func (o *TransactResponseV1) SetRejectReason(v string)` + +SetRejectReason sets RejectReason field to given value. + +### HasRejectReason + +`func (o *TransactResponseV1) HasRejectReason() bool` + +HasRejectReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactionStatusV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactionStatusV1.md new file mode 100644 index 00000000000..9349a4f0214 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/TransactionStatusV1.md @@ -0,0 +1,15 @@ +# TransactionStatusV1 + +## Enum + + +* `Submitted` (value: `"submitted"`) + +* `Committed` (value: `"committed"`) + +* `Rejected` (value: `"rejected"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksBinaryResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksBinaryResponseV1.md new file mode 100644 index 00000000000..3d7810ff7cc --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksBinaryResponseV1.md @@ -0,0 +1,51 @@ +# WatchBlocksBinaryResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BinaryBlock** | **string** | | + +## Methods + +### NewWatchBlocksBinaryResponseV1 + +`func NewWatchBlocksBinaryResponseV1(binaryBlock string, ) *WatchBlocksBinaryResponseV1` + +NewWatchBlocksBinaryResponseV1 instantiates a new WatchBlocksBinaryResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksBinaryResponseV1WithDefaults + +`func NewWatchBlocksBinaryResponseV1WithDefaults() *WatchBlocksBinaryResponseV1` + +NewWatchBlocksBinaryResponseV1WithDefaults instantiates a new WatchBlocksBinaryResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBinaryBlock + +`func (o *WatchBlocksBinaryResponseV1) GetBinaryBlock() string` + +GetBinaryBlock returns the BinaryBlock field if non-nil, zero value otherwise. + +### GetBinaryBlockOk + +`func (o *WatchBlocksBinaryResponseV1) GetBinaryBlockOk() (*string, bool)` + +GetBinaryBlockOk returns a tuple with the BinaryBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinaryBlock + +`func (o *WatchBlocksBinaryResponseV1) SetBinaryBlock(v string)` + +SetBinaryBlock sets BinaryBlock field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md new file mode 100644 index 00000000000..c08da549dc0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksOptionsV1.md @@ -0,0 +1,108 @@ +# WatchBlocksOptionsV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**BlockTypeV1**](BlockTypeV1.md) | | [optional] +**StartBlock** | Pointer to **string** | Number of block to start monitoring from. | [optional] +**BaseConfig** | Pointer to [**Iroha2BaseConfig**](Iroha2BaseConfig.md) | | [optional] + +## Methods + +### NewWatchBlocksOptionsV1 + +`func NewWatchBlocksOptionsV1() *WatchBlocksOptionsV1` + +NewWatchBlocksOptionsV1 instantiates a new WatchBlocksOptionsV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksOptionsV1WithDefaults + +`func NewWatchBlocksOptionsV1WithDefaults() *WatchBlocksOptionsV1` + +NewWatchBlocksOptionsV1WithDefaults instantiates a new WatchBlocksOptionsV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *WatchBlocksOptionsV1) GetType() BlockTypeV1` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *WatchBlocksOptionsV1) GetTypeOk() (*BlockTypeV1, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *WatchBlocksOptionsV1) SetType(v BlockTypeV1)` + +SetType sets Type field to given value. + +### HasType + +`func (o *WatchBlocksOptionsV1) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetStartBlock + +`func (o *WatchBlocksOptionsV1) GetStartBlock() string` + +GetStartBlock returns the StartBlock field if non-nil, zero value otherwise. + +### GetStartBlockOk + +`func (o *WatchBlocksOptionsV1) GetStartBlockOk() (*string, bool)` + +GetStartBlockOk returns a tuple with the StartBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartBlock + +`func (o *WatchBlocksOptionsV1) SetStartBlock(v string)` + +SetStartBlock sets StartBlock field to given value. + +### HasStartBlock + +`func (o *WatchBlocksOptionsV1) HasStartBlock() bool` + +HasStartBlock returns a boolean if a field has been set. + +### GetBaseConfig + +`func (o *WatchBlocksOptionsV1) GetBaseConfig() Iroha2BaseConfig` + +GetBaseConfig returns the BaseConfig field if non-nil, zero value otherwise. + +### GetBaseConfigOk + +`func (o *WatchBlocksOptionsV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool)` + +GetBaseConfigOk returns a tuple with the BaseConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseConfig + +`func (o *WatchBlocksOptionsV1) SetBaseConfig(v Iroha2BaseConfig)` + +SetBaseConfig sets BaseConfig field to given value. + +### HasBaseConfig + +`func (o *WatchBlocksOptionsV1) HasBaseConfig() bool` + +HasBaseConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksRawResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksRawResponseV1.md new file mode 100644 index 00000000000..79804acd1ba --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksRawResponseV1.md @@ -0,0 +1,51 @@ +# WatchBlocksRawResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockData** | **string** | | + +## Methods + +### NewWatchBlocksRawResponseV1 + +`func NewWatchBlocksRawResponseV1(blockData string, ) *WatchBlocksRawResponseV1` + +NewWatchBlocksRawResponseV1 instantiates a new WatchBlocksRawResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksRawResponseV1WithDefaults + +`func NewWatchBlocksRawResponseV1WithDefaults() *WatchBlocksRawResponseV1` + +NewWatchBlocksRawResponseV1WithDefaults instantiates a new WatchBlocksRawResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockData + +`func (o *WatchBlocksRawResponseV1) GetBlockData() string` + +GetBlockData returns the BlockData field if non-nil, zero value otherwise. + +### GetBlockDataOk + +`func (o *WatchBlocksRawResponseV1) GetBlockDataOk() (*string, bool)` + +GetBlockDataOk returns a tuple with the BlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockData + +`func (o *WatchBlocksRawResponseV1) SetBlockData(v string)` + +SetBlockData sets BlockData field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md new file mode 100644 index 00000000000..492681625d2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksResponseV1.md @@ -0,0 +1,114 @@ +# WatchBlocksResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockData** | **string** | | +**BinaryBlock** | **string** | | +**Message** | **string** | Short error description message. | +**Error** | **string** | Detailed error information. | + +## Methods + +### NewWatchBlocksResponseV1 + +`func NewWatchBlocksResponseV1(blockData string, binaryBlock string, message string, error_ string, ) *WatchBlocksResponseV1` + +NewWatchBlocksResponseV1 instantiates a new WatchBlocksResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksResponseV1WithDefaults + +`func NewWatchBlocksResponseV1WithDefaults() *WatchBlocksResponseV1` + +NewWatchBlocksResponseV1WithDefaults instantiates a new WatchBlocksResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockData + +`func (o *WatchBlocksResponseV1) GetBlockData() string` + +GetBlockData returns the BlockData field if non-nil, zero value otherwise. + +### GetBlockDataOk + +`func (o *WatchBlocksResponseV1) GetBlockDataOk() (*string, bool)` + +GetBlockDataOk returns a tuple with the BlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockData + +`func (o *WatchBlocksResponseV1) SetBlockData(v string)` + +SetBlockData sets BlockData field to given value. + + +### GetBinaryBlock + +`func (o *WatchBlocksResponseV1) GetBinaryBlock() string` + +GetBinaryBlock returns the BinaryBlock field if non-nil, zero value otherwise. + +### GetBinaryBlockOk + +`func (o *WatchBlocksResponseV1) GetBinaryBlockOk() (*string, bool)` + +GetBinaryBlockOk returns a tuple with the BinaryBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinaryBlock + +`func (o *WatchBlocksResponseV1) SetBinaryBlock(v string)` + +SetBinaryBlock sets BinaryBlock field to given value. + + +### GetMessage + +`func (o *WatchBlocksResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *WatchBlocksResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *WatchBlocksResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetError + +`func (o *WatchBlocksResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *WatchBlocksResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *WatchBlocksResponseV1) SetError(v string)` + +SetError sets Error field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..0a4f46c6f47 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..8264f983ca6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..32b2d2e1088 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_block_type_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_block_type_v1.go new file mode 100644 index 00000000000..31b9a5caa19 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_block_type_v1.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// BlockTypeV1 Iroha V2 block response type. +type BlockTypeV1 string + +// List of BlockTypeV1 +const ( + Raw BlockTypeV1 = "raw" + Binary BlockTypeV1 = "binary" +) + +// All allowed values of BlockTypeV1 enum +var AllowedBlockTypeV1EnumValues = []BlockTypeV1{ + "raw", + "binary", +} + +func (v *BlockTypeV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BlockTypeV1(value) + for _, existing := range AllowedBlockTypeV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BlockTypeV1", value) +} + +// NewBlockTypeV1FromValue returns a pointer to a valid BlockTypeV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBlockTypeV1FromValue(v string) (*BlockTypeV1, error) { + ev := BlockTypeV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BlockTypeV1: valid values are %v", v, AllowedBlockTypeV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BlockTypeV1) IsValid() bool { + for _, existing := range AllowedBlockTypeV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BlockTypeV1 value +func (v BlockTypeV1) Ptr() *BlockTypeV1 { + return &v +} + +type NullableBlockTypeV1 struct { + value *BlockTypeV1 + isSet bool +} + +func (v NullableBlockTypeV1) Get() *BlockTypeV1 { + return v.value +} + +func (v *NullableBlockTypeV1) Set(val *BlockTypeV1) { + v.value = val + v.isSet = true +} + +func (v NullableBlockTypeV1) IsSet() bool { + return v.isSet +} + +func (v *NullableBlockTypeV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBlockTypeV1(val *BlockTypeV1) *NullableBlockTypeV1 { + return &NullableBlockTypeV1{value: val, isSet: true} +} + +func (v NullableBlockTypeV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBlockTypeV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go new file mode 100644 index 00000000000..a0f29cdab36 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the ErrorExceptionResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorExceptionResponseV1{} + +// ErrorExceptionResponseV1 Error response from the connector. +type ErrorExceptionResponseV1 struct { + // Short error description message. + Message string `json:"message"` + // Detailed error information. + Error string `json:"error"` +} + +// NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorExceptionResponseV1(message string, error_ string) *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + this.Message = message + this.Error = error_ + return &this +} + +// NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + return &this +} + +// GetMessage returns the Message field value +func (o *ErrorExceptionResponseV1) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorExceptionResponseV1) SetMessage(v string) { + o.Message = v +} + +// GetError returns the Error field value +func (o *ErrorExceptionResponseV1) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *ErrorExceptionResponseV1) SetError(v string) { + o.Error = v +} + +func (o ErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorExceptionResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["error"] = o.Error + return toSerialize, nil +} + +type NullableErrorExceptionResponseV1 struct { + value *ErrorExceptionResponseV1 + isSet bool +} + +func (v NullableErrorExceptionResponseV1) Get() *ErrorExceptionResponseV1 { + return v.value +} + +func (v *NullableErrorExceptionResponseV1) Set(val *ErrorExceptionResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableErrorExceptionResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorExceptionResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorExceptionResponseV1(val *ErrorExceptionResponseV1) *NullableErrorExceptionResponseV1 { + return &NullableErrorExceptionResponseV1{value: val, isSet: true} +} + +func (v NullableErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorExceptionResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go new file mode 100644 index 00000000000..2c9182fe58d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1.go @@ -0,0 +1,153 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the GenerateTransactionRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenerateTransactionRequestV1{} + +// GenerateTransactionRequestV1 Request for generating transaction or query payload that can be signed on the client side. +type GenerateTransactionRequestV1 struct { + Request GenerateTransactionRequestV1Request `json:"request"` + BaseConfig *Iroha2BaseConfig `json:"baseConfig,omitempty"` +} + +// NewGenerateTransactionRequestV1 instantiates a new GenerateTransactionRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGenerateTransactionRequestV1(request GenerateTransactionRequestV1Request) *GenerateTransactionRequestV1 { + this := GenerateTransactionRequestV1{} + this.Request = request + return &this +} + +// NewGenerateTransactionRequestV1WithDefaults instantiates a new GenerateTransactionRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGenerateTransactionRequestV1WithDefaults() *GenerateTransactionRequestV1 { + this := GenerateTransactionRequestV1{} + return &this +} + +// GetRequest returns the Request field value +func (o *GenerateTransactionRequestV1) GetRequest() GenerateTransactionRequestV1Request { + if o == nil { + var ret GenerateTransactionRequestV1Request + return ret + } + + return o.Request +} + +// GetRequestOk returns a tuple with the Request field value +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetRequestOk() (*GenerateTransactionRequestV1Request, bool) { + if o == nil { + return nil, false + } + return &o.Request, true +} + +// SetRequest sets field value +func (o *GenerateTransactionRequestV1) SetRequest(v GenerateTransactionRequestV1Request) { + o.Request = v +} + +// GetBaseConfig returns the BaseConfig field value if set, zero value otherwise. +func (o *GenerateTransactionRequestV1) GetBaseConfig() Iroha2BaseConfig { + if o == nil || IsNil(o.BaseConfig) { + var ret Iroha2BaseConfig + return ret + } + return *o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenerateTransactionRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool) { + if o == nil || IsNil(o.BaseConfig) { + return nil, false + } + return o.BaseConfig, true +} + +// HasBaseConfig returns a boolean if a field has been set. +func (o *GenerateTransactionRequestV1) HasBaseConfig() bool { + if o != nil && !IsNil(o.BaseConfig) { + return true + } + + return false +} + +// SetBaseConfig gets a reference to the given Iroha2BaseConfig and assigns it to the BaseConfig field. +func (o *GenerateTransactionRequestV1) SetBaseConfig(v Iroha2BaseConfig) { + o.BaseConfig = &v +} + +func (o GenerateTransactionRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenerateTransactionRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["request"] = o.Request + if !IsNil(o.BaseConfig) { + toSerialize["baseConfig"] = o.BaseConfig + } + return toSerialize, nil +} + +type NullableGenerateTransactionRequestV1 struct { + value *GenerateTransactionRequestV1 + isSet bool +} + +func (v NullableGenerateTransactionRequestV1) Get() *GenerateTransactionRequestV1 { + return v.value +} + +func (v *NullableGenerateTransactionRequestV1) Set(val *GenerateTransactionRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableGenerateTransactionRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableGenerateTransactionRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenerateTransactionRequestV1(val *GenerateTransactionRequestV1) *NullableGenerateTransactionRequestV1 { + return &NullableGenerateTransactionRequestV1{value: val, isSet: true} +} + +func (v NullableGenerateTransactionRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenerateTransactionRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1_request.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1_request.go new file mode 100644 index 00000000000..c4f9bead045 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_generate_transaction_request_v1_request.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// GenerateTransactionRequestV1Request - struct for GenerateTransactionRequestV1Request +type GenerateTransactionRequestV1Request struct { + IrohaQueryDefinitionV1 *IrohaQueryDefinitionV1 + IrohaTransactionDefinitionV1 *IrohaTransactionDefinitionV1 +} + +// IrohaQueryDefinitionV1AsGenerateTransactionRequestV1Request is a convenience function that returns IrohaQueryDefinitionV1 wrapped in GenerateTransactionRequestV1Request +func IrohaQueryDefinitionV1AsGenerateTransactionRequestV1Request(v *IrohaQueryDefinitionV1) GenerateTransactionRequestV1Request { + return GenerateTransactionRequestV1Request{ + IrohaQueryDefinitionV1: v, + } +} + +// IrohaTransactionDefinitionV1AsGenerateTransactionRequestV1Request is a convenience function that returns IrohaTransactionDefinitionV1 wrapped in GenerateTransactionRequestV1Request +func IrohaTransactionDefinitionV1AsGenerateTransactionRequestV1Request(v *IrohaTransactionDefinitionV1) GenerateTransactionRequestV1Request { + return GenerateTransactionRequestV1Request{ + IrohaTransactionDefinitionV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GenerateTransactionRequestV1Request) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into IrohaQueryDefinitionV1 + err = newStrictDecoder(data).Decode(&dst.IrohaQueryDefinitionV1) + if err == nil { + jsonIrohaQueryDefinitionV1, _ := json.Marshal(dst.IrohaQueryDefinitionV1) + if string(jsonIrohaQueryDefinitionV1) == "{}" { // empty struct + dst.IrohaQueryDefinitionV1 = nil + } else { + match++ + } + } else { + dst.IrohaQueryDefinitionV1 = nil + } + + // try to unmarshal data into IrohaTransactionDefinitionV1 + err = newStrictDecoder(data).Decode(&dst.IrohaTransactionDefinitionV1) + if err == nil { + jsonIrohaTransactionDefinitionV1, _ := json.Marshal(dst.IrohaTransactionDefinitionV1) + if string(jsonIrohaTransactionDefinitionV1) == "{}" { // empty struct + dst.IrohaTransactionDefinitionV1 = nil + } else { + match++ + } + } else { + dst.IrohaTransactionDefinitionV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.IrohaQueryDefinitionV1 = nil + dst.IrohaTransactionDefinitionV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GenerateTransactionRequestV1Request)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GenerateTransactionRequestV1Request)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GenerateTransactionRequestV1Request) MarshalJSON() ([]byte, error) { + if src.IrohaQueryDefinitionV1 != nil { + return json.Marshal(&src.IrohaQueryDefinitionV1) + } + + if src.IrohaTransactionDefinitionV1 != nil { + return json.Marshal(&src.IrohaTransactionDefinitionV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GenerateTransactionRequestV1Request) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.IrohaQueryDefinitionV1 != nil { + return obj.IrohaQueryDefinitionV1 + } + + if obj.IrohaTransactionDefinitionV1 != nil { + return obj.IrohaTransactionDefinitionV1 + } + + // all schemas are nil + return nil +} + +type NullableGenerateTransactionRequestV1Request struct { + value *GenerateTransactionRequestV1Request + isSet bool +} + +func (v NullableGenerateTransactionRequestV1Request) Get() *GenerateTransactionRequestV1Request { + return v.value +} + +func (v *NullableGenerateTransactionRequestV1Request) Set(val *GenerateTransactionRequestV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableGenerateTransactionRequestV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableGenerateTransactionRequestV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenerateTransactionRequestV1Request(val *GenerateTransactionRequestV1Request) *NullableGenerateTransactionRequestV1Request { + return &NullableGenerateTransactionRequestV1Request{value: val, isSet: true} +} + +func (v NullableGenerateTransactionRequestV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenerateTransactionRequestV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_account_id.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_account_id.go new file mode 100644 index 00000000000..4444dcc511c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_account_id.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the Iroha2AccountId type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Iroha2AccountId{} + +// Iroha2AccountId Iroha V2 account ID. +type Iroha2AccountId struct { + Name string `json:"name"` + DomainId string `json:"domainId"` +} + +// NewIroha2AccountId instantiates a new Iroha2AccountId object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIroha2AccountId(name string, domainId string) *Iroha2AccountId { + this := Iroha2AccountId{} + this.Name = name + this.DomainId = domainId + return &this +} + +// NewIroha2AccountIdWithDefaults instantiates a new Iroha2AccountId object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIroha2AccountIdWithDefaults() *Iroha2AccountId { + this := Iroha2AccountId{} + return &this +} + +// GetName returns the Name field value +func (o *Iroha2AccountId) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Iroha2AccountId) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Iroha2AccountId) SetName(v string) { + o.Name = v +} + +// GetDomainId returns the DomainId field value +func (o *Iroha2AccountId) GetDomainId() string { + if o == nil { + var ret string + return ret + } + + return o.DomainId +} + +// GetDomainIdOk returns a tuple with the DomainId field value +// and a boolean to check if the value has been set. +func (o *Iroha2AccountId) GetDomainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DomainId, true +} + +// SetDomainId sets field value +func (o *Iroha2AccountId) SetDomainId(v string) { + o.DomainId = v +} + +func (o Iroha2AccountId) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Iroha2AccountId) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["domainId"] = o.DomainId + return toSerialize, nil +} + +type NullableIroha2AccountId struct { + value *Iroha2AccountId + isSet bool +} + +func (v NullableIroha2AccountId) Get() *Iroha2AccountId { + return v.value +} + +func (v *NullableIroha2AccountId) Set(val *Iroha2AccountId) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2AccountId) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2AccountId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2AccountId(val *Iroha2AccountId) *NullableIroha2AccountId { + return &NullableIroha2AccountId{value: val, isSet: true} +} + +func (v NullableIroha2AccountId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2AccountId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config.go new file mode 100644 index 00000000000..dd031362f04 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config.go @@ -0,0 +1,189 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the Iroha2BaseConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Iroha2BaseConfig{} + +// Iroha2BaseConfig Iroha V2 connection configuration. +type Iroha2BaseConfig struct { + Torii Iroha2BaseConfigTorii `json:"torii"` + AccountId *Iroha2AccountId `json:"accountId,omitempty"` + SigningCredential *Iroha2BaseConfigSigningCredential `json:"signingCredential,omitempty"` +} + +// NewIroha2BaseConfig instantiates a new Iroha2BaseConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIroha2BaseConfig(torii Iroha2BaseConfigTorii) *Iroha2BaseConfig { + this := Iroha2BaseConfig{} + this.Torii = torii + return &this +} + +// NewIroha2BaseConfigWithDefaults instantiates a new Iroha2BaseConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIroha2BaseConfigWithDefaults() *Iroha2BaseConfig { + this := Iroha2BaseConfig{} + return &this +} + +// GetTorii returns the Torii field value +func (o *Iroha2BaseConfig) GetTorii() Iroha2BaseConfigTorii { + if o == nil { + var ret Iroha2BaseConfigTorii + return ret + } + + return o.Torii +} + +// GetToriiOk returns a tuple with the Torii field value +// and a boolean to check if the value has been set. +func (o *Iroha2BaseConfig) GetToriiOk() (*Iroha2BaseConfigTorii, bool) { + if o == nil { + return nil, false + } + return &o.Torii, true +} + +// SetTorii sets field value +func (o *Iroha2BaseConfig) SetTorii(v Iroha2BaseConfigTorii) { + o.Torii = v +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *Iroha2BaseConfig) GetAccountId() Iroha2AccountId { + if o == nil || IsNil(o.AccountId) { + var ret Iroha2AccountId + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Iroha2BaseConfig) GetAccountIdOk() (*Iroha2AccountId, bool) { + if o == nil || IsNil(o.AccountId) { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *Iroha2BaseConfig) HasAccountId() bool { + if o != nil && !IsNil(o.AccountId) { + return true + } + + return false +} + +// SetAccountId gets a reference to the given Iroha2AccountId and assigns it to the AccountId field. +func (o *Iroha2BaseConfig) SetAccountId(v Iroha2AccountId) { + o.AccountId = &v +} + +// GetSigningCredential returns the SigningCredential field value if set, zero value otherwise. +func (o *Iroha2BaseConfig) GetSigningCredential() Iroha2BaseConfigSigningCredential { + if o == nil || IsNil(o.SigningCredential) { + var ret Iroha2BaseConfigSigningCredential + return ret + } + return *o.SigningCredential +} + +// GetSigningCredentialOk returns a tuple with the SigningCredential field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Iroha2BaseConfig) GetSigningCredentialOk() (*Iroha2BaseConfigSigningCredential, bool) { + if o == nil || IsNil(o.SigningCredential) { + return nil, false + } + return o.SigningCredential, true +} + +// HasSigningCredential returns a boolean if a field has been set. +func (o *Iroha2BaseConfig) HasSigningCredential() bool { + if o != nil && !IsNil(o.SigningCredential) { + return true + } + + return false +} + +// SetSigningCredential gets a reference to the given Iroha2BaseConfigSigningCredential and assigns it to the SigningCredential field. +func (o *Iroha2BaseConfig) SetSigningCredential(v Iroha2BaseConfigSigningCredential) { + o.SigningCredential = &v +} + +func (o Iroha2BaseConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Iroha2BaseConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["torii"] = o.Torii + if !IsNil(o.AccountId) { + toSerialize["accountId"] = o.AccountId + } + if !IsNil(o.SigningCredential) { + toSerialize["signingCredential"] = o.SigningCredential + } + return toSerialize, nil +} + +type NullableIroha2BaseConfig struct { + value *Iroha2BaseConfig + isSet bool +} + +func (v NullableIroha2BaseConfig) Get() *Iroha2BaseConfig { + return v.value +} + +func (v *NullableIroha2BaseConfig) Set(val *Iroha2BaseConfig) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2BaseConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2BaseConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2BaseConfig(val *Iroha2BaseConfig) *NullableIroha2BaseConfig { + return &NullableIroha2BaseConfig{value: val, isSet: true} +} + +func (v NullableIroha2BaseConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2BaseConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_signing_credential.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_signing_credential.go new file mode 100644 index 00000000000..8ea545d567f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_signing_credential.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// Iroha2BaseConfigSigningCredential - struct for Iroha2BaseConfigSigningCredential +type Iroha2BaseConfigSigningCredential struct { + Iroha2KeyPair *Iroha2KeyPair + KeychainReference *KeychainReference +} + +// Iroha2KeyPairAsIroha2BaseConfigSigningCredential is a convenience function that returns Iroha2KeyPair wrapped in Iroha2BaseConfigSigningCredential +func Iroha2KeyPairAsIroha2BaseConfigSigningCredential(v *Iroha2KeyPair) Iroha2BaseConfigSigningCredential { + return Iroha2BaseConfigSigningCredential{ + Iroha2KeyPair: v, + } +} + +// KeychainReferenceAsIroha2BaseConfigSigningCredential is a convenience function that returns KeychainReference wrapped in Iroha2BaseConfigSigningCredential +func KeychainReferenceAsIroha2BaseConfigSigningCredential(v *KeychainReference) Iroha2BaseConfigSigningCredential { + return Iroha2BaseConfigSigningCredential{ + KeychainReference: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Iroha2BaseConfigSigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Iroha2KeyPair + err = newStrictDecoder(data).Decode(&dst.Iroha2KeyPair) + if err == nil { + jsonIroha2KeyPair, _ := json.Marshal(dst.Iroha2KeyPair) + if string(jsonIroha2KeyPair) == "{}" { // empty struct + dst.Iroha2KeyPair = nil + } else { + match++ + } + } else { + dst.Iroha2KeyPair = nil + } + + // try to unmarshal data into KeychainReference + err = newStrictDecoder(data).Decode(&dst.KeychainReference) + if err == nil { + jsonKeychainReference, _ := json.Marshal(dst.KeychainReference) + if string(jsonKeychainReference) == "{}" { // empty struct + dst.KeychainReference = nil + } else { + match++ + } + } else { + dst.KeychainReference = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Iroha2KeyPair = nil + dst.KeychainReference = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Iroha2BaseConfigSigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Iroha2BaseConfigSigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Iroha2BaseConfigSigningCredential) MarshalJSON() ([]byte, error) { + if src.Iroha2KeyPair != nil { + return json.Marshal(&src.Iroha2KeyPair) + } + + if src.KeychainReference != nil { + return json.Marshal(&src.KeychainReference) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Iroha2BaseConfigSigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Iroha2KeyPair != nil { + return obj.Iroha2KeyPair + } + + if obj.KeychainReference != nil { + return obj.KeychainReference + } + + // all schemas are nil + return nil +} + +type NullableIroha2BaseConfigSigningCredential struct { + value *Iroha2BaseConfigSigningCredential + isSet bool +} + +func (v NullableIroha2BaseConfigSigningCredential) Get() *Iroha2BaseConfigSigningCredential { + return v.value +} + +func (v *NullableIroha2BaseConfigSigningCredential) Set(val *Iroha2BaseConfigSigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2BaseConfigSigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2BaseConfigSigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2BaseConfigSigningCredential(val *Iroha2BaseConfigSigningCredential) *NullableIroha2BaseConfigSigningCredential { + return &NullableIroha2BaseConfigSigningCredential{value: val, isSet: true} +} + +func (v NullableIroha2BaseConfigSigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2BaseConfigSigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_torii.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_torii.go new file mode 100644 index 00000000000..d5287b44b60 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_base_config_torii.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the Iroha2BaseConfigTorii type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Iroha2BaseConfigTorii{} + +// Iroha2BaseConfigTorii Iroha V2 peer connection information. +type Iroha2BaseConfigTorii struct { + ApiURL *string `json:"apiURL,omitempty"` + TelemetryURL *string `json:"telemetryURL,omitempty"` +} + +// NewIroha2BaseConfigTorii instantiates a new Iroha2BaseConfigTorii object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIroha2BaseConfigTorii() *Iroha2BaseConfigTorii { + this := Iroha2BaseConfigTorii{} + return &this +} + +// NewIroha2BaseConfigToriiWithDefaults instantiates a new Iroha2BaseConfigTorii object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIroha2BaseConfigToriiWithDefaults() *Iroha2BaseConfigTorii { + this := Iroha2BaseConfigTorii{} + return &this +} + +// GetApiURL returns the ApiURL field value if set, zero value otherwise. +func (o *Iroha2BaseConfigTorii) GetApiURL() string { + if o == nil || IsNil(o.ApiURL) { + var ret string + return ret + } + return *o.ApiURL +} + +// GetApiURLOk returns a tuple with the ApiURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Iroha2BaseConfigTorii) GetApiURLOk() (*string, bool) { + if o == nil || IsNil(o.ApiURL) { + return nil, false + } + return o.ApiURL, true +} + +// HasApiURL returns a boolean if a field has been set. +func (o *Iroha2BaseConfigTorii) HasApiURL() bool { + if o != nil && !IsNil(o.ApiURL) { + return true + } + + return false +} + +// SetApiURL gets a reference to the given string and assigns it to the ApiURL field. +func (o *Iroha2BaseConfigTorii) SetApiURL(v string) { + o.ApiURL = &v +} + +// GetTelemetryURL returns the TelemetryURL field value if set, zero value otherwise. +func (o *Iroha2BaseConfigTorii) GetTelemetryURL() string { + if o == nil || IsNil(o.TelemetryURL) { + var ret string + return ret + } + return *o.TelemetryURL +} + +// GetTelemetryURLOk returns a tuple with the TelemetryURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Iroha2BaseConfigTorii) GetTelemetryURLOk() (*string, bool) { + if o == nil || IsNil(o.TelemetryURL) { + return nil, false + } + return o.TelemetryURL, true +} + +// HasTelemetryURL returns a boolean if a field has been set. +func (o *Iroha2BaseConfigTorii) HasTelemetryURL() bool { + if o != nil && !IsNil(o.TelemetryURL) { + return true + } + + return false +} + +// SetTelemetryURL gets a reference to the given string and assigns it to the TelemetryURL field. +func (o *Iroha2BaseConfigTorii) SetTelemetryURL(v string) { + o.TelemetryURL = &v +} + +func (o Iroha2BaseConfigTorii) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Iroha2BaseConfigTorii) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiURL) { + toSerialize["apiURL"] = o.ApiURL + } + if !IsNil(o.TelemetryURL) { + toSerialize["telemetryURL"] = o.TelemetryURL + } + return toSerialize, nil +} + +type NullableIroha2BaseConfigTorii struct { + value *Iroha2BaseConfigTorii + isSet bool +} + +func (v NullableIroha2BaseConfigTorii) Get() *Iroha2BaseConfigTorii { + return v.value +} + +func (v *NullableIroha2BaseConfigTorii) Set(val *Iroha2BaseConfigTorii) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2BaseConfigTorii) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2BaseConfigTorii) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2BaseConfigTorii(val *Iroha2BaseConfigTorii) *NullableIroha2BaseConfigTorii { + return &NullableIroha2BaseConfigTorii{value: val, isSet: true} +} + +func (v NullableIroha2BaseConfigTorii) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2BaseConfigTorii) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_json.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_json.go new file mode 100644 index 00000000000..1a56ef6d586 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_json.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the Iroha2KeyJson type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Iroha2KeyJson{} + +// Iroha2KeyJson Private/Public key JSON containing payload and digest function. +type Iroha2KeyJson struct { + DigestFunction string `json:"digestFunction"` + Payload string `json:"payload"` +} + +// NewIroha2KeyJson instantiates a new Iroha2KeyJson object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIroha2KeyJson(digestFunction string, payload string) *Iroha2KeyJson { + this := Iroha2KeyJson{} + this.DigestFunction = digestFunction + this.Payload = payload + return &this +} + +// NewIroha2KeyJsonWithDefaults instantiates a new Iroha2KeyJson object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIroha2KeyJsonWithDefaults() *Iroha2KeyJson { + this := Iroha2KeyJson{} + return &this +} + +// GetDigestFunction returns the DigestFunction field value +func (o *Iroha2KeyJson) GetDigestFunction() string { + if o == nil { + var ret string + return ret + } + + return o.DigestFunction +} + +// GetDigestFunctionOk returns a tuple with the DigestFunction field value +// and a boolean to check if the value has been set. +func (o *Iroha2KeyJson) GetDigestFunctionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DigestFunction, true +} + +// SetDigestFunction sets field value +func (o *Iroha2KeyJson) SetDigestFunction(v string) { + o.DigestFunction = v +} + +// GetPayload returns the Payload field value +func (o *Iroha2KeyJson) GetPayload() string { + if o == nil { + var ret string + return ret + } + + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value +// and a boolean to check if the value has been set. +func (o *Iroha2KeyJson) GetPayloadOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Payload, true +} + +// SetPayload sets field value +func (o *Iroha2KeyJson) SetPayload(v string) { + o.Payload = v +} + +func (o Iroha2KeyJson) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Iroha2KeyJson) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["digestFunction"] = o.DigestFunction + toSerialize["payload"] = o.Payload + return toSerialize, nil +} + +type NullableIroha2KeyJson struct { + value *Iroha2KeyJson + isSet bool +} + +func (v NullableIroha2KeyJson) Get() *Iroha2KeyJson { + return v.value +} + +func (v *NullableIroha2KeyJson) Set(val *Iroha2KeyJson) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2KeyJson) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2KeyJson) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2KeyJson(val *Iroha2KeyJson) *NullableIroha2KeyJson { + return &NullableIroha2KeyJson{value: val, isSet: true} +} + +func (v NullableIroha2KeyJson) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2KeyJson) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_pair.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_pair.go new file mode 100644 index 00000000000..7f0b967ddea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha2_key_pair.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the Iroha2KeyPair type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Iroha2KeyPair{} + +// Iroha2KeyPair Pair of Iroha account private and public keys. +type Iroha2KeyPair struct { + PrivateKey Iroha2KeyJson `json:"privateKey"` + PublicKey string `json:"publicKey"` +} + +// NewIroha2KeyPair instantiates a new Iroha2KeyPair object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIroha2KeyPair(privateKey Iroha2KeyJson, publicKey string) *Iroha2KeyPair { + this := Iroha2KeyPair{} + this.PrivateKey = privateKey + this.PublicKey = publicKey + return &this +} + +// NewIroha2KeyPairWithDefaults instantiates a new Iroha2KeyPair object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIroha2KeyPairWithDefaults() *Iroha2KeyPair { + this := Iroha2KeyPair{} + return &this +} + +// GetPrivateKey returns the PrivateKey field value +func (o *Iroha2KeyPair) GetPrivateKey() Iroha2KeyJson { + if o == nil { + var ret Iroha2KeyJson + return ret + } + + return o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value +// and a boolean to check if the value has been set. +func (o *Iroha2KeyPair) GetPrivateKeyOk() (*Iroha2KeyJson, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKey, true +} + +// SetPrivateKey sets field value +func (o *Iroha2KeyPair) SetPrivateKey(v Iroha2KeyJson) { + o.PrivateKey = v +} + +// GetPublicKey returns the PublicKey field value +func (o *Iroha2KeyPair) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *Iroha2KeyPair) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *Iroha2KeyPair) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o Iroha2KeyPair) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Iroha2KeyPair) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["privateKey"] = o.PrivateKey + toSerialize["publicKey"] = o.PublicKey + return toSerialize, nil +} + +type NullableIroha2KeyPair struct { + value *Iroha2KeyPair + isSet bool +} + +func (v NullableIroha2KeyPair) Get() *Iroha2KeyPair { + return v.value +} + +func (v *NullableIroha2KeyPair) Set(val *Iroha2KeyPair) { + v.value = val + v.isSet = true +} + +func (v NullableIroha2KeyPair) IsSet() bool { + return v.isSet +} + +func (v *NullableIroha2KeyPair) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIroha2KeyPair(val *Iroha2KeyPair) *NullableIroha2KeyPair { + return &NullableIroha2KeyPair{value: val, isSet: true} +} + +func (v NullableIroha2KeyPair) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIroha2KeyPair) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction.go new file mode 100644 index 00000000000..f462c0c7c59 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction.go @@ -0,0 +1,121 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// IrohaInstruction Command names that correspond to Iroha Special Instructions (https://hyperledger.github.io/iroha-2-docs/guide/advanced/isi.html) +type IrohaInstruction string + +// List of IrohaInstruction +const ( + RegisterDomain IrohaInstruction = "registerDomain" + RegisterAssetDefinition IrohaInstruction = "registerAssetDefinition" + RegisterAsset IrohaInstruction = "registerAsset" + MintAsset IrohaInstruction = "mintAsset" + BurnAsset IrohaInstruction = "burnAsset" + TransferAsset IrohaInstruction = "transferAsset" + RegisterAccount IrohaInstruction = "registerAccount" +) + +// All allowed values of IrohaInstruction enum +var AllowedIrohaInstructionEnumValues = []IrohaInstruction{ + "registerDomain", + "registerAssetDefinition", + "registerAsset", + "mintAsset", + "burnAsset", + "transferAsset", + "registerAccount", +} + +func (v *IrohaInstruction) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IrohaInstruction(value) + for _, existing := range AllowedIrohaInstructionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IrohaInstruction", value) +} + +// NewIrohaInstructionFromValue returns a pointer to a valid IrohaInstruction +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIrohaInstructionFromValue(v string) (*IrohaInstruction, error) { + ev := IrohaInstruction(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IrohaInstruction: valid values are %v", v, AllowedIrohaInstructionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IrohaInstruction) IsValid() bool { + for _, existing := range AllowedIrohaInstructionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IrohaInstruction value +func (v IrohaInstruction) Ptr() *IrohaInstruction { + return &v +} + +type NullableIrohaInstruction struct { + value *IrohaInstruction + isSet bool +} + +func (v NullableIrohaInstruction) Get() *IrohaInstruction { + return v.value +} + +func (v *NullableIrohaInstruction) Set(val *IrohaInstruction) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaInstruction) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaInstruction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaInstruction(val *IrohaInstruction) *NullableIrohaInstruction { + return &NullableIrohaInstruction{value: val, isSet: true} +} + +func (v NullableIrohaInstruction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaInstruction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction_request_v1.go new file mode 100644 index 00000000000..01dba485a6c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_instruction_request_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the IrohaInstructionRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaInstructionRequestV1{} + +// IrohaInstructionRequestV1 Single Iroha V2 instruction to be executed request. +type IrohaInstructionRequestV1 struct { + // Iroha V2 instruction name. + Name IrohaInstruction `json:"name"` + // The list of arguments to pass with specified instruction. + Params []interface{} `json:"params"` +} + +// NewIrohaInstructionRequestV1 instantiates a new IrohaInstructionRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaInstructionRequestV1(name IrohaInstruction, params []interface{}) *IrohaInstructionRequestV1 { + this := IrohaInstructionRequestV1{} + this.Name = name + this.Params = params + return &this +} + +// NewIrohaInstructionRequestV1WithDefaults instantiates a new IrohaInstructionRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaInstructionRequestV1WithDefaults() *IrohaInstructionRequestV1 { + this := IrohaInstructionRequestV1{} + return &this +} + +// GetName returns the Name field value +func (o *IrohaInstructionRequestV1) GetName() IrohaInstruction { + if o == nil { + var ret IrohaInstruction + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *IrohaInstructionRequestV1) GetNameOk() (*IrohaInstruction, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *IrohaInstructionRequestV1) SetName(v IrohaInstruction) { + o.Name = v +} + +// GetParams returns the Params field value +func (o *IrohaInstructionRequestV1) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *IrohaInstructionRequestV1) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *IrohaInstructionRequestV1) SetParams(v []interface{}) { + o.Params = v +} + +func (o IrohaInstructionRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaInstructionRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["params"] = o.Params + return toSerialize, nil +} + +type NullableIrohaInstructionRequestV1 struct { + value *IrohaInstructionRequestV1 + isSet bool +} + +func (v NullableIrohaInstructionRequestV1) Get() *IrohaInstructionRequestV1 { + return v.value +} + +func (v *NullableIrohaInstructionRequestV1) Set(val *IrohaInstructionRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaInstructionRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaInstructionRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaInstructionRequestV1(val *IrohaInstructionRequestV1) *NullableIrohaInstructionRequestV1 { + return &NullableIrohaInstructionRequestV1{value: val, isSet: true} +} + +func (v NullableIrohaInstructionRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaInstructionRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query.go new file mode 100644 index 00000000000..87e57277a02 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query.go @@ -0,0 +1,131 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// IrohaQuery Command names that correspond to Iroha queries (https://hyperledger.github.io/iroha-2-docs/guide/advanced/queries.html) +type IrohaQuery string + +// List of IrohaQuery +const ( + FindAllDomains IrohaQuery = "findAllDomains" + FindDomainById IrohaQuery = "findDomainById" + FindAssetDefinitionById IrohaQuery = "findAssetDefinitionById" + FindAllAssetsDefinitions IrohaQuery = "findAllAssetsDefinitions" + FindAssetById IrohaQuery = "findAssetById" + FindAllAssets IrohaQuery = "findAllAssets" + FindAllPeers IrohaQuery = "findAllPeers" + FindAllBlocks IrohaQuery = "findAllBlocks" + FindAccountById IrohaQuery = "findAccountById" + FindAllAccounts IrohaQuery = "findAllAccounts" + FindAllTransactions IrohaQuery = "findAllTransactions" + FindTransactionByHash IrohaQuery = "findTransactionByHash" +) + +// All allowed values of IrohaQuery enum +var AllowedIrohaQueryEnumValues = []IrohaQuery{ + "findAllDomains", + "findDomainById", + "findAssetDefinitionById", + "findAllAssetsDefinitions", + "findAssetById", + "findAllAssets", + "findAllPeers", + "findAllBlocks", + "findAccountById", + "findAllAccounts", + "findAllTransactions", + "findTransactionByHash", +} + +func (v *IrohaQuery) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IrohaQuery(value) + for _, existing := range AllowedIrohaQueryEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IrohaQuery", value) +} + +// NewIrohaQueryFromValue returns a pointer to a valid IrohaQuery +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIrohaQueryFromValue(v string) (*IrohaQuery, error) { + ev := IrohaQuery(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IrohaQuery: valid values are %v", v, AllowedIrohaQueryEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IrohaQuery) IsValid() bool { + for _, existing := range AllowedIrohaQueryEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IrohaQuery value +func (v IrohaQuery) Ptr() *IrohaQuery { + return &v +} + +type NullableIrohaQuery struct { + value *IrohaQuery + isSet bool +} + +func (v NullableIrohaQuery) Get() *IrohaQuery { + return v.value +} + +func (v *NullableIrohaQuery) Set(val *IrohaQuery) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaQuery(val *IrohaQuery) *NullableIrohaQuery { + return &NullableIrohaQuery{value: val, isSet: true} +} + +func (v NullableIrohaQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query_definition_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query_definition_v1.go new file mode 100644 index 00000000000..e881e52286f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_query_definition_v1.go @@ -0,0 +1,155 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the IrohaQueryDefinitionV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaQueryDefinitionV1{} + +// IrohaQueryDefinitionV1 Iroha V2 query definition. +type IrohaQueryDefinitionV1 struct { + // Name of the query to be executed. + Query IrohaQuery `json:"query"` + // The list of arguments to pass with the query. + Params []interface{} `json:"params,omitempty"` +} + +// NewIrohaQueryDefinitionV1 instantiates a new IrohaQueryDefinitionV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaQueryDefinitionV1(query IrohaQuery) *IrohaQueryDefinitionV1 { + this := IrohaQueryDefinitionV1{} + this.Query = query + return &this +} + +// NewIrohaQueryDefinitionV1WithDefaults instantiates a new IrohaQueryDefinitionV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaQueryDefinitionV1WithDefaults() *IrohaQueryDefinitionV1 { + this := IrohaQueryDefinitionV1{} + return &this +} + +// GetQuery returns the Query field value +func (o *IrohaQueryDefinitionV1) GetQuery() IrohaQuery { + if o == nil { + var ret IrohaQuery + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *IrohaQueryDefinitionV1) GetQueryOk() (*IrohaQuery, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *IrohaQueryDefinitionV1) SetQuery(v IrohaQuery) { + o.Query = v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *IrohaQueryDefinitionV1) GetParams() []interface{} { + if o == nil || IsNil(o.Params) { + var ret []interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaQueryDefinitionV1) GetParamsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *IrohaQueryDefinitionV1) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given []interface{} and assigns it to the Params field. +func (o *IrohaQueryDefinitionV1) SetParams(v []interface{}) { + o.Params = v +} + +func (o IrohaQueryDefinitionV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaQueryDefinitionV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["query"] = o.Query + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + return toSerialize, nil +} + +type NullableIrohaQueryDefinitionV1 struct { + value *IrohaQueryDefinitionV1 + isSet bool +} + +func (v NullableIrohaQueryDefinitionV1) Get() *IrohaQueryDefinitionV1 { + return v.value +} + +func (v *NullableIrohaQueryDefinitionV1) Set(val *IrohaQueryDefinitionV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaQueryDefinitionV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaQueryDefinitionV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaQueryDefinitionV1(val *IrohaQueryDefinitionV1) *NullableIrohaQueryDefinitionV1 { + return &NullableIrohaQueryDefinitionV1{value: val, isSet: true} +} + +func (v NullableIrohaQueryDefinitionV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaQueryDefinitionV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_signed_query_definition_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_signed_query_definition_v1.go new file mode 100644 index 00000000000..c02786cf22e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_signed_query_definition_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the IrohaSignedQueryDefinitionV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaSignedQueryDefinitionV1{} + +// IrohaSignedQueryDefinitionV1 Iroha V2 signed query definition +type IrohaSignedQueryDefinitionV1 struct { + // Name of the query to be executed. + Query IrohaQuery `json:"query"` + // Signed query transaction binary data received from generate-transaction endpoint. + Payload string `json:"payload"` +} + +// NewIrohaSignedQueryDefinitionV1 instantiates a new IrohaSignedQueryDefinitionV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaSignedQueryDefinitionV1(query IrohaQuery, payload string) *IrohaSignedQueryDefinitionV1 { + this := IrohaSignedQueryDefinitionV1{} + this.Query = query + this.Payload = payload + return &this +} + +// NewIrohaSignedQueryDefinitionV1WithDefaults instantiates a new IrohaSignedQueryDefinitionV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaSignedQueryDefinitionV1WithDefaults() *IrohaSignedQueryDefinitionV1 { + this := IrohaSignedQueryDefinitionV1{} + return &this +} + +// GetQuery returns the Query field value +func (o *IrohaSignedQueryDefinitionV1) GetQuery() IrohaQuery { + if o == nil { + var ret IrohaQuery + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *IrohaSignedQueryDefinitionV1) GetQueryOk() (*IrohaQuery, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *IrohaSignedQueryDefinitionV1) SetQuery(v IrohaQuery) { + o.Query = v +} + +// GetPayload returns the Payload field value +func (o *IrohaSignedQueryDefinitionV1) GetPayload() string { + if o == nil { + var ret string + return ret + } + + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value +// and a boolean to check if the value has been set. +func (o *IrohaSignedQueryDefinitionV1) GetPayloadOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Payload, true +} + +// SetPayload sets field value +func (o *IrohaSignedQueryDefinitionV1) SetPayload(v string) { + o.Payload = v +} + +func (o IrohaSignedQueryDefinitionV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaSignedQueryDefinitionV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["query"] = o.Query + toSerialize["payload"] = o.Payload + return toSerialize, nil +} + +type NullableIrohaSignedQueryDefinitionV1 struct { + value *IrohaSignedQueryDefinitionV1 + isSet bool +} + +func (v NullableIrohaSignedQueryDefinitionV1) Get() *IrohaSignedQueryDefinitionV1 { + return v.value +} + +func (v *NullableIrohaSignedQueryDefinitionV1) Set(val *IrohaSignedQueryDefinitionV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaSignedQueryDefinitionV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaSignedQueryDefinitionV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaSignedQueryDefinitionV1(val *IrohaSignedQueryDefinitionV1) *NullableIrohaSignedQueryDefinitionV1 { + return &NullableIrohaSignedQueryDefinitionV1{value: val, isSet: true} +} + +func (v NullableIrohaSignedQueryDefinitionV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaSignedQueryDefinitionV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1.go new file mode 100644 index 00000000000..d0fccbbbf49 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1.go @@ -0,0 +1,153 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the IrohaTransactionDefinitionV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaTransactionDefinitionV1{} + +// IrohaTransactionDefinitionV1 Iroha V2 transaction definition +type IrohaTransactionDefinitionV1 struct { + Instruction IrohaTransactionDefinitionV1Instruction `json:"instruction"` + Params *IrohaTransactionParametersV1 `json:"params,omitempty"` +} + +// NewIrohaTransactionDefinitionV1 instantiates a new IrohaTransactionDefinitionV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaTransactionDefinitionV1(instruction IrohaTransactionDefinitionV1Instruction) *IrohaTransactionDefinitionV1 { + this := IrohaTransactionDefinitionV1{} + this.Instruction = instruction + return &this +} + +// NewIrohaTransactionDefinitionV1WithDefaults instantiates a new IrohaTransactionDefinitionV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaTransactionDefinitionV1WithDefaults() *IrohaTransactionDefinitionV1 { + this := IrohaTransactionDefinitionV1{} + return &this +} + +// GetInstruction returns the Instruction field value +func (o *IrohaTransactionDefinitionV1) GetInstruction() IrohaTransactionDefinitionV1Instruction { + if o == nil { + var ret IrohaTransactionDefinitionV1Instruction + return ret + } + + return o.Instruction +} + +// GetInstructionOk returns a tuple with the Instruction field value +// and a boolean to check if the value has been set. +func (o *IrohaTransactionDefinitionV1) GetInstructionOk() (*IrohaTransactionDefinitionV1Instruction, bool) { + if o == nil { + return nil, false + } + return &o.Instruction, true +} + +// SetInstruction sets field value +func (o *IrohaTransactionDefinitionV1) SetInstruction(v IrohaTransactionDefinitionV1Instruction) { + o.Instruction = v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *IrohaTransactionDefinitionV1) GetParams() IrohaTransactionParametersV1 { + if o == nil || IsNil(o.Params) { + var ret IrohaTransactionParametersV1 + return ret + } + return *o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaTransactionDefinitionV1) GetParamsOk() (*IrohaTransactionParametersV1, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *IrohaTransactionDefinitionV1) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given IrohaTransactionParametersV1 and assigns it to the Params field. +func (o *IrohaTransactionDefinitionV1) SetParams(v IrohaTransactionParametersV1) { + o.Params = &v +} + +func (o IrohaTransactionDefinitionV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaTransactionDefinitionV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instruction"] = o.Instruction + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + return toSerialize, nil +} + +type NullableIrohaTransactionDefinitionV1 struct { + value *IrohaTransactionDefinitionV1 + isSet bool +} + +func (v NullableIrohaTransactionDefinitionV1) Get() *IrohaTransactionDefinitionV1 { + return v.value +} + +func (v *NullableIrohaTransactionDefinitionV1) Set(val *IrohaTransactionDefinitionV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaTransactionDefinitionV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaTransactionDefinitionV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaTransactionDefinitionV1(val *IrohaTransactionDefinitionV1) *NullableIrohaTransactionDefinitionV1 { + return &NullableIrohaTransactionDefinitionV1{value: val, isSet: true} +} + +func (v NullableIrohaTransactionDefinitionV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaTransactionDefinitionV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1_instruction.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1_instruction.go new file mode 100644 index 00000000000..d0fbf93147e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_definition_v1_instruction.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// IrohaTransactionDefinitionV1Instruction - struct for IrohaTransactionDefinitionV1Instruction +type IrohaTransactionDefinitionV1Instruction struct { + IrohaInstructionRequestV1 *IrohaInstructionRequestV1 + ArrayOfIrohaInstructionRequestV1 *[]IrohaInstructionRequestV1 +} + +// IrohaInstructionRequestV1AsIrohaTransactionDefinitionV1Instruction is a convenience function that returns IrohaInstructionRequestV1 wrapped in IrohaTransactionDefinitionV1Instruction +func IrohaInstructionRequestV1AsIrohaTransactionDefinitionV1Instruction(v *IrohaInstructionRequestV1) IrohaTransactionDefinitionV1Instruction { + return IrohaTransactionDefinitionV1Instruction{ + IrohaInstructionRequestV1: v, + } +} + +// []IrohaInstructionRequestV1AsIrohaTransactionDefinitionV1Instruction is a convenience function that returns []IrohaInstructionRequestV1 wrapped in IrohaTransactionDefinitionV1Instruction +func ArrayOfIrohaInstructionRequestV1AsIrohaTransactionDefinitionV1Instruction(v *[]IrohaInstructionRequestV1) IrohaTransactionDefinitionV1Instruction { + return IrohaTransactionDefinitionV1Instruction{ + ArrayOfIrohaInstructionRequestV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *IrohaTransactionDefinitionV1Instruction) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into IrohaInstructionRequestV1 + err = newStrictDecoder(data).Decode(&dst.IrohaInstructionRequestV1) + if err == nil { + jsonIrohaInstructionRequestV1, _ := json.Marshal(dst.IrohaInstructionRequestV1) + if string(jsonIrohaInstructionRequestV1) == "{}" { // empty struct + dst.IrohaInstructionRequestV1 = nil + } else { + match++ + } + } else { + dst.IrohaInstructionRequestV1 = nil + } + + // try to unmarshal data into ArrayOfIrohaInstructionRequestV1 + err = newStrictDecoder(data).Decode(&dst.ArrayOfIrohaInstructionRequestV1) + if err == nil { + jsonArrayOfIrohaInstructionRequestV1, _ := json.Marshal(dst.ArrayOfIrohaInstructionRequestV1) + if string(jsonArrayOfIrohaInstructionRequestV1) == "{}" { // empty struct + dst.ArrayOfIrohaInstructionRequestV1 = nil + } else { + match++ + } + } else { + dst.ArrayOfIrohaInstructionRequestV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.IrohaInstructionRequestV1 = nil + dst.ArrayOfIrohaInstructionRequestV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(IrohaTransactionDefinitionV1Instruction)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(IrohaTransactionDefinitionV1Instruction)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src IrohaTransactionDefinitionV1Instruction) MarshalJSON() ([]byte, error) { + if src.IrohaInstructionRequestV1 != nil { + return json.Marshal(&src.IrohaInstructionRequestV1) + } + + if src.ArrayOfIrohaInstructionRequestV1 != nil { + return json.Marshal(&src.ArrayOfIrohaInstructionRequestV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *IrohaTransactionDefinitionV1Instruction) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.IrohaInstructionRequestV1 != nil { + return obj.IrohaInstructionRequestV1 + } + + if obj.ArrayOfIrohaInstructionRequestV1 != nil { + return obj.ArrayOfIrohaInstructionRequestV1 + } + + // all schemas are nil + return nil +} + +type NullableIrohaTransactionDefinitionV1Instruction struct { + value *IrohaTransactionDefinitionV1Instruction + isSet bool +} + +func (v NullableIrohaTransactionDefinitionV1Instruction) Get() *IrohaTransactionDefinitionV1Instruction { + return v.value +} + +func (v *NullableIrohaTransactionDefinitionV1Instruction) Set(val *IrohaTransactionDefinitionV1Instruction) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaTransactionDefinitionV1Instruction) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaTransactionDefinitionV1Instruction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaTransactionDefinitionV1Instruction(val *IrohaTransactionDefinitionV1Instruction) *NullableIrohaTransactionDefinitionV1Instruction { + return &NullableIrohaTransactionDefinitionV1Instruction{value: val, isSet: true} +} + +func (v NullableIrohaTransactionDefinitionV1Instruction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaTransactionDefinitionV1Instruction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_parameters_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_parameters_v1.go new file mode 100644 index 00000000000..4ff4d1212e6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_iroha_transaction_parameters_v1.go @@ -0,0 +1,228 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the IrohaTransactionParametersV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IrohaTransactionParametersV1{} + +// IrohaTransactionParametersV1 Iroha V2 transaction payload parameters +type IrohaTransactionParametersV1 struct { + // BigInt time to live. + Ttl *string `json:"ttl,omitempty"` + // BigInt creation time + CreationTime *string `json:"creationTime,omitempty"` + // Transaction nonce + Nonce *float32 `json:"nonce,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IrohaTransactionParametersV1 IrohaTransactionParametersV1 + +// NewIrohaTransactionParametersV1 instantiates a new IrohaTransactionParametersV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIrohaTransactionParametersV1() *IrohaTransactionParametersV1 { + this := IrohaTransactionParametersV1{} + return &this +} + +// NewIrohaTransactionParametersV1WithDefaults instantiates a new IrohaTransactionParametersV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIrohaTransactionParametersV1WithDefaults() *IrohaTransactionParametersV1 { + this := IrohaTransactionParametersV1{} + return &this +} + +// GetTtl returns the Ttl field value if set, zero value otherwise. +func (o *IrohaTransactionParametersV1) GetTtl() string { + if o == nil || IsNil(o.Ttl) { + var ret string + return ret + } + return *o.Ttl +} + +// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaTransactionParametersV1) GetTtlOk() (*string, bool) { + if o == nil || IsNil(o.Ttl) { + return nil, false + } + return o.Ttl, true +} + +// HasTtl returns a boolean if a field has been set. +func (o *IrohaTransactionParametersV1) HasTtl() bool { + if o != nil && !IsNil(o.Ttl) { + return true + } + + return false +} + +// SetTtl gets a reference to the given string and assigns it to the Ttl field. +func (o *IrohaTransactionParametersV1) SetTtl(v string) { + o.Ttl = &v +} + +// GetCreationTime returns the CreationTime field value if set, zero value otherwise. +func (o *IrohaTransactionParametersV1) GetCreationTime() string { + if o == nil || IsNil(o.CreationTime) { + var ret string + return ret + } + return *o.CreationTime +} + +// GetCreationTimeOk returns a tuple with the CreationTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaTransactionParametersV1) GetCreationTimeOk() (*string, bool) { + if o == nil || IsNil(o.CreationTime) { + return nil, false + } + return o.CreationTime, true +} + +// HasCreationTime returns a boolean if a field has been set. +func (o *IrohaTransactionParametersV1) HasCreationTime() bool { + if o != nil && !IsNil(o.CreationTime) { + return true + } + + return false +} + +// SetCreationTime gets a reference to the given string and assigns it to the CreationTime field. +func (o *IrohaTransactionParametersV1) SetCreationTime(v string) { + o.CreationTime = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *IrohaTransactionParametersV1) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IrohaTransactionParametersV1) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *IrohaTransactionParametersV1) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *IrohaTransactionParametersV1) SetNonce(v float32) { + o.Nonce = &v +} + +func (o IrohaTransactionParametersV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IrohaTransactionParametersV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ttl) { + toSerialize["ttl"] = o.Ttl + } + if !IsNil(o.CreationTime) { + toSerialize["creationTime"] = o.CreationTime + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IrohaTransactionParametersV1) UnmarshalJSON(bytes []byte) (err error) { + varIrohaTransactionParametersV1 := _IrohaTransactionParametersV1{} + + if err = json.Unmarshal(bytes, &varIrohaTransactionParametersV1); err == nil { + *o = IrohaTransactionParametersV1(varIrohaTransactionParametersV1) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ttl") + delete(additionalProperties, "creationTime") + delete(additionalProperties, "nonce") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIrohaTransactionParametersV1 struct { + value *IrohaTransactionParametersV1 + isSet bool +} + +func (v NullableIrohaTransactionParametersV1) Get() *IrohaTransactionParametersV1 { + return v.value +} + +func (v *NullableIrohaTransactionParametersV1) Set(val *IrohaTransactionParametersV1) { + v.value = val + v.isSet = true +} + +func (v NullableIrohaTransactionParametersV1) IsSet() bool { + return v.isSet +} + +func (v *NullableIrohaTransactionParametersV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIrohaTransactionParametersV1(val *IrohaTransactionParametersV1) *NullableIrohaTransactionParametersV1 { + return &NullableIrohaTransactionParametersV1{value: val, isSet: true} +} + +func (v NullableIrohaTransactionParametersV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIrohaTransactionParametersV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_keychain_reference.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_keychain_reference.go new file mode 100644 index 00000000000..6fc00252209 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_keychain_reference.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the KeychainReference type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeychainReference{} + +// KeychainReference Reference to entry stored in Cactus keychain plugin. +type KeychainReference struct { + // Keychain plugin ID. + KeychainId string `json:"keychainId"` + // Key reference name. + KeychainRef string `json:"keychainRef"` +} + +// NewKeychainReference instantiates a new KeychainReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeychainReference(keychainId string, keychainRef string) *KeychainReference { + this := KeychainReference{} + this.KeychainId = keychainId + this.KeychainRef = keychainRef + return &this +} + +// NewKeychainReferenceWithDefaults instantiates a new KeychainReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeychainReferenceWithDefaults() *KeychainReference { + this := KeychainReference{} + return &this +} + +// GetKeychainId returns the KeychainId field value +func (o *KeychainReference) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *KeychainReference) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *KeychainReference) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetKeychainRef returns the KeychainRef field value +func (o *KeychainReference) GetKeychainRef() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainRef +} + +// GetKeychainRefOk returns a tuple with the KeychainRef field value +// and a boolean to check if the value has been set. +func (o *KeychainReference) GetKeychainRefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainRef, true +} + +// SetKeychainRef sets field value +func (o *KeychainReference) SetKeychainRef(v string) { + o.KeychainRef = v +} + +func (o KeychainReference) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeychainReference) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["keychainId"] = o.KeychainId + toSerialize["keychainRef"] = o.KeychainRef + return toSerialize, nil +} + +type NullableKeychainReference struct { + value *KeychainReference + isSet bool +} + +func (v NullableKeychainReference) Get() *KeychainReference { + return v.value +} + +func (v *NullableKeychainReference) Set(val *KeychainReference) { + v.value = val + v.isSet = true +} + +func (v NullableKeychainReference) IsSet() bool { + return v.isSet +} + +func (v *NullableKeychainReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeychainReference(val *KeychainReference) *NullableKeychainReference { + return &NullableKeychainReference{value: val, isSet: true} +} + +func (v NullableKeychainReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeychainReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_request_v1.go new file mode 100644 index 00000000000..b5a74d7cab6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_request_v1.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the QueryRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QueryRequestV1{} + +// QueryRequestV1 Request to query endpoint. +type QueryRequestV1 struct { + Query *IrohaQueryDefinitionV1 `json:"query,omitempty"` + SignedQuery *IrohaSignedQueryDefinitionV1 `json:"signedQuery,omitempty"` + BaseConfig *Iroha2BaseConfig `json:"baseConfig,omitempty"` +} + +// NewQueryRequestV1 instantiates a new QueryRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewQueryRequestV1() *QueryRequestV1 { + this := QueryRequestV1{} + return &this +} + +// NewQueryRequestV1WithDefaults instantiates a new QueryRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewQueryRequestV1WithDefaults() *QueryRequestV1 { + this := QueryRequestV1{} + return &this +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *QueryRequestV1) GetQuery() IrohaQueryDefinitionV1 { + if o == nil || IsNil(o.Query) { + var ret IrohaQueryDefinitionV1 + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequestV1) GetQueryOk() (*IrohaQueryDefinitionV1, bool) { + if o == nil || IsNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *QueryRequestV1) HasQuery() bool { + if o != nil && !IsNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given IrohaQueryDefinitionV1 and assigns it to the Query field. +func (o *QueryRequestV1) SetQuery(v IrohaQueryDefinitionV1) { + o.Query = &v +} + +// GetSignedQuery returns the SignedQuery field value if set, zero value otherwise. +func (o *QueryRequestV1) GetSignedQuery() IrohaSignedQueryDefinitionV1 { + if o == nil || IsNil(o.SignedQuery) { + var ret IrohaSignedQueryDefinitionV1 + return ret + } + return *o.SignedQuery +} + +// GetSignedQueryOk returns a tuple with the SignedQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequestV1) GetSignedQueryOk() (*IrohaSignedQueryDefinitionV1, bool) { + if o == nil || IsNil(o.SignedQuery) { + return nil, false + } + return o.SignedQuery, true +} + +// HasSignedQuery returns a boolean if a field has been set. +func (o *QueryRequestV1) HasSignedQuery() bool { + if o != nil && !IsNil(o.SignedQuery) { + return true + } + + return false +} + +// SetSignedQuery gets a reference to the given IrohaSignedQueryDefinitionV1 and assigns it to the SignedQuery field. +func (o *QueryRequestV1) SetSignedQuery(v IrohaSignedQueryDefinitionV1) { + o.SignedQuery = &v +} + +// GetBaseConfig returns the BaseConfig field value if set, zero value otherwise. +func (o *QueryRequestV1) GetBaseConfig() Iroha2BaseConfig { + if o == nil || IsNil(o.BaseConfig) { + var ret Iroha2BaseConfig + return ret + } + return *o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool) { + if o == nil || IsNil(o.BaseConfig) { + return nil, false + } + return o.BaseConfig, true +} + +// HasBaseConfig returns a boolean if a field has been set. +func (o *QueryRequestV1) HasBaseConfig() bool { + if o != nil && !IsNil(o.BaseConfig) { + return true + } + + return false +} + +// SetBaseConfig gets a reference to the given Iroha2BaseConfig and assigns it to the BaseConfig field. +func (o *QueryRequestV1) SetBaseConfig(v Iroha2BaseConfig) { + o.BaseConfig = &v +} + +func (o QueryRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QueryRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Query) { + toSerialize["query"] = o.Query + } + if !IsNil(o.SignedQuery) { + toSerialize["signedQuery"] = o.SignedQuery + } + if !IsNil(o.BaseConfig) { + toSerialize["baseConfig"] = o.BaseConfig + } + return toSerialize, nil +} + +type NullableQueryRequestV1 struct { + value *QueryRequestV1 + isSet bool +} + +func (v NullableQueryRequestV1) Get() *QueryRequestV1 { + return v.value +} + +func (v *NullableQueryRequestV1) Set(val *QueryRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableQueryRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryRequestV1(val *QueryRequestV1) *NullableQueryRequestV1 { + return &NullableQueryRequestV1{value: val, isSet: true} +} + +func (v NullableQueryRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_response_v1.go new file mode 100644 index 00000000000..dc930d4e922 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_query_response_v1.go @@ -0,0 +1,122 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the QueryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QueryResponseV1{} + +// QueryResponseV1 Response with the query results. +type QueryResponseV1 struct { + // Query response data that varies between different queries. + Response interface{} `json:"response"` +} + +// NewQueryResponseV1 instantiates a new QueryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewQueryResponseV1(response interface{}) *QueryResponseV1 { + this := QueryResponseV1{} + this.Response = response + return &this +} + +// NewQueryResponseV1WithDefaults instantiates a new QueryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewQueryResponseV1WithDefaults() *QueryResponseV1 { + this := QueryResponseV1{} + return &this +} + +// GetResponse returns the Response field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *QueryResponseV1) GetResponse() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Response +} + +// GetResponseOk returns a tuple with the Response field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *QueryResponseV1) GetResponseOk() (*interface{}, bool) { + if o == nil || IsNil(o.Response) { + return nil, false + } + return &o.Response, true +} + +// SetResponse sets field value +func (o *QueryResponseV1) SetResponse(v interface{}) { + o.Response = v +} + +func (o QueryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QueryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Response != nil { + toSerialize["response"] = o.Response + } + return toSerialize, nil +} + +type NullableQueryResponseV1 struct { + value *QueryResponseV1 + isSet bool +} + +func (v NullableQueryResponseV1) Get() *QueryResponseV1 { + return v.value +} + +func (v *NullableQueryResponseV1) Set(val *QueryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableQueryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryResponseV1(val *QueryResponseV1) *NullableQueryResponseV1 { + return &NullableQueryResponseV1{value: val, isSet: true} +} + +func (v NullableQueryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_request_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_request_v1.go new file mode 100644 index 00000000000..d8ea96f2ab5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_request_v1.go @@ -0,0 +1,240 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the TransactRequestV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactRequestV1{} + +// TransactRequestV1 Request to transact endpoint. +type TransactRequestV1 struct { + // Signed transaction binary data received from generate-transaction endpoint. + SignedTransaction *string `json:"signedTransaction,omitempty"` + Transaction *IrohaTransactionDefinitionV1 `json:"transaction,omitempty"` + // Wait unitl transaction is sent and return the final status (committed / rejected) + WaitForCommit *bool `json:"waitForCommit,omitempty"` + BaseConfig *Iroha2BaseConfig `json:"baseConfig,omitempty"` +} + +// NewTransactRequestV1 instantiates a new TransactRequestV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactRequestV1() *TransactRequestV1 { + this := TransactRequestV1{} + var waitForCommit bool = false + this.WaitForCommit = &waitForCommit + return &this +} + +// NewTransactRequestV1WithDefaults instantiates a new TransactRequestV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactRequestV1WithDefaults() *TransactRequestV1 { + this := TransactRequestV1{} + var waitForCommit bool = false + this.WaitForCommit = &waitForCommit + return &this +} + +// GetSignedTransaction returns the SignedTransaction field value if set, zero value otherwise. +func (o *TransactRequestV1) GetSignedTransaction() string { + if o == nil || IsNil(o.SignedTransaction) { + var ret string + return ret + } + return *o.SignedTransaction +} + +// GetSignedTransactionOk returns a tuple with the SignedTransaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactRequestV1) GetSignedTransactionOk() (*string, bool) { + if o == nil || IsNil(o.SignedTransaction) { + return nil, false + } + return o.SignedTransaction, true +} + +// HasSignedTransaction returns a boolean if a field has been set. +func (o *TransactRequestV1) HasSignedTransaction() bool { + if o != nil && !IsNil(o.SignedTransaction) { + return true + } + + return false +} + +// SetSignedTransaction gets a reference to the given string and assigns it to the SignedTransaction field. +func (o *TransactRequestV1) SetSignedTransaction(v string) { + o.SignedTransaction = &v +} + +// GetTransaction returns the Transaction field value if set, zero value otherwise. +func (o *TransactRequestV1) GetTransaction() IrohaTransactionDefinitionV1 { + if o == nil || IsNil(o.Transaction) { + var ret IrohaTransactionDefinitionV1 + return ret + } + return *o.Transaction +} + +// GetTransactionOk returns a tuple with the Transaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactRequestV1) GetTransactionOk() (*IrohaTransactionDefinitionV1, bool) { + if o == nil || IsNil(o.Transaction) { + return nil, false + } + return o.Transaction, true +} + +// HasTransaction returns a boolean if a field has been set. +func (o *TransactRequestV1) HasTransaction() bool { + if o != nil && !IsNil(o.Transaction) { + return true + } + + return false +} + +// SetTransaction gets a reference to the given IrohaTransactionDefinitionV1 and assigns it to the Transaction field. +func (o *TransactRequestV1) SetTransaction(v IrohaTransactionDefinitionV1) { + o.Transaction = &v +} + +// GetWaitForCommit returns the WaitForCommit field value if set, zero value otherwise. +func (o *TransactRequestV1) GetWaitForCommit() bool { + if o == nil || IsNil(o.WaitForCommit) { + var ret bool + return ret + } + return *o.WaitForCommit +} + +// GetWaitForCommitOk returns a tuple with the WaitForCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactRequestV1) GetWaitForCommitOk() (*bool, bool) { + if o == nil || IsNil(o.WaitForCommit) { + return nil, false + } + return o.WaitForCommit, true +} + +// HasWaitForCommit returns a boolean if a field has been set. +func (o *TransactRequestV1) HasWaitForCommit() bool { + if o != nil && !IsNil(o.WaitForCommit) { + return true + } + + return false +} + +// SetWaitForCommit gets a reference to the given bool and assigns it to the WaitForCommit field. +func (o *TransactRequestV1) SetWaitForCommit(v bool) { + o.WaitForCommit = &v +} + +// GetBaseConfig returns the BaseConfig field value if set, zero value otherwise. +func (o *TransactRequestV1) GetBaseConfig() Iroha2BaseConfig { + if o == nil || IsNil(o.BaseConfig) { + var ret Iroha2BaseConfig + return ret + } + return *o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactRequestV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool) { + if o == nil || IsNil(o.BaseConfig) { + return nil, false + } + return o.BaseConfig, true +} + +// HasBaseConfig returns a boolean if a field has been set. +func (o *TransactRequestV1) HasBaseConfig() bool { + if o != nil && !IsNil(o.BaseConfig) { + return true + } + + return false +} + +// SetBaseConfig gets a reference to the given Iroha2BaseConfig and assigns it to the BaseConfig field. +func (o *TransactRequestV1) SetBaseConfig(v Iroha2BaseConfig) { + o.BaseConfig = &v +} + +func (o TransactRequestV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactRequestV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SignedTransaction) { + toSerialize["signedTransaction"] = o.SignedTransaction + } + if !IsNil(o.Transaction) { + toSerialize["transaction"] = o.Transaction + } + if !IsNil(o.WaitForCommit) { + toSerialize["waitForCommit"] = o.WaitForCommit + } + if !IsNil(o.BaseConfig) { + toSerialize["baseConfig"] = o.BaseConfig + } + return toSerialize, nil +} + +type NullableTransactRequestV1 struct { + value *TransactRequestV1 + isSet bool +} + +func (v NullableTransactRequestV1) Get() *TransactRequestV1 { + return v.value +} + +func (v *NullableTransactRequestV1) Set(val *TransactRequestV1) { + v.value = val + v.isSet = true +} + +func (v NullableTransactRequestV1) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactRequestV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactRequestV1(val *TransactRequestV1) *NullableTransactRequestV1 { + return &NullableTransactRequestV1{value: val, isSet: true} +} + +func (v NullableTransactRequestV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactRequestV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_response_v1.go new file mode 100644 index 00000000000..944e8bcee3a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transact_response_v1.go @@ -0,0 +1,182 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the TransactResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactResponseV1{} + +// TransactResponseV1 Response from transaction endpoint with operation status. +type TransactResponseV1 struct { + // Hexadecimal hash of the transaction sent to the ledger. + Hash string `json:"hash"` + Status TransactionStatusV1 `json:"status"` + // When waitForCommit was suplied and the transaction was rejected, contains the reason of the rejection. + RejectReason *string `json:"rejectReason,omitempty"` +} + +// NewTransactResponseV1 instantiates a new TransactResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactResponseV1(hash string, status TransactionStatusV1) *TransactResponseV1 { + this := TransactResponseV1{} + this.Hash = hash + this.Status = status + return &this +} + +// NewTransactResponseV1WithDefaults instantiates a new TransactResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactResponseV1WithDefaults() *TransactResponseV1 { + this := TransactResponseV1{} + return &this +} + +// GetHash returns the Hash field value +func (o *TransactResponseV1) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *TransactResponseV1) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *TransactResponseV1) SetHash(v string) { + o.Hash = v +} + +// GetStatus returns the Status field value +func (o *TransactResponseV1) GetStatus() TransactionStatusV1 { + if o == nil { + var ret TransactionStatusV1 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TransactResponseV1) GetStatusOk() (*TransactionStatusV1, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TransactResponseV1) SetStatus(v TransactionStatusV1) { + o.Status = v +} + +// GetRejectReason returns the RejectReason field value if set, zero value otherwise. +func (o *TransactResponseV1) GetRejectReason() string { + if o == nil || IsNil(o.RejectReason) { + var ret string + return ret + } + return *o.RejectReason +} + +// GetRejectReasonOk returns a tuple with the RejectReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactResponseV1) GetRejectReasonOk() (*string, bool) { + if o == nil || IsNil(o.RejectReason) { + return nil, false + } + return o.RejectReason, true +} + +// HasRejectReason returns a boolean if a field has been set. +func (o *TransactResponseV1) HasRejectReason() bool { + if o != nil && !IsNil(o.RejectReason) { + return true + } + + return false +} + +// SetRejectReason gets a reference to the given string and assigns it to the RejectReason field. +func (o *TransactResponseV1) SetRejectReason(v string) { + o.RejectReason = &v +} + +func (o TransactResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hash"] = o.Hash + toSerialize["status"] = o.Status + if !IsNil(o.RejectReason) { + toSerialize["rejectReason"] = o.RejectReason + } + return toSerialize, nil +} + +type NullableTransactResponseV1 struct { + value *TransactResponseV1 + isSet bool +} + +func (v NullableTransactResponseV1) Get() *TransactResponseV1 { + return v.value +} + +func (v *NullableTransactResponseV1) Set(val *TransactResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableTransactResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactResponseV1(val *TransactResponseV1) *NullableTransactResponseV1 { + return &NullableTransactResponseV1{value: val, isSet: true} +} + +func (v NullableTransactResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transaction_status_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transaction_status_v1.go new file mode 100644 index 00000000000..ead53c60e12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_transaction_status_v1.go @@ -0,0 +1,113 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// TransactionStatusV1 Status of Iroha V2 transaction. +type TransactionStatusV1 string + +// List of TransactionStatusV1 +const ( + Submitted TransactionStatusV1 = "submitted" + Committed TransactionStatusV1 = "committed" + Rejected TransactionStatusV1 = "rejected" +) + +// All allowed values of TransactionStatusV1 enum +var AllowedTransactionStatusV1EnumValues = []TransactionStatusV1{ + "submitted", + "committed", + "rejected", +} + +func (v *TransactionStatusV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TransactionStatusV1(value) + for _, existing := range AllowedTransactionStatusV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TransactionStatusV1", value) +} + +// NewTransactionStatusV1FromValue returns a pointer to a valid TransactionStatusV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTransactionStatusV1FromValue(v string) (*TransactionStatusV1, error) { + ev := TransactionStatusV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TransactionStatusV1: valid values are %v", v, AllowedTransactionStatusV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TransactionStatusV1) IsValid() bool { + for _, existing := range AllowedTransactionStatusV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TransactionStatusV1 value +func (v TransactionStatusV1) Ptr() *TransactionStatusV1 { + return &v +} + +type NullableTransactionStatusV1 struct { + value *TransactionStatusV1 + isSet bool +} + +func (v NullableTransactionStatusV1) Get() *TransactionStatusV1 { + return v.value +} + +func (v *NullableTransactionStatusV1) Set(val *TransactionStatusV1) { + v.value = val + v.isSet = true +} + +func (v NullableTransactionStatusV1) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactionStatusV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactionStatusV1(val *TransactionStatusV1) *NullableTransactionStatusV1 { + return &NullableTransactionStatusV1{value: val, isSet: true} +} + +func (v NullableTransactionStatusV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactionStatusV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_binary_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_binary_response_v1.go new file mode 100644 index 00000000000..5b104fea73a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_binary_response_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the WatchBlocksBinaryResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksBinaryResponseV1{} + +// WatchBlocksBinaryResponseV1 Binary encoded response of block data. +type WatchBlocksBinaryResponseV1 struct { + BinaryBlock string `json:"binaryBlock"` +} + +// NewWatchBlocksBinaryResponseV1 instantiates a new WatchBlocksBinaryResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksBinaryResponseV1(binaryBlock string) *WatchBlocksBinaryResponseV1 { + this := WatchBlocksBinaryResponseV1{} + this.BinaryBlock = binaryBlock + return &this +} + +// NewWatchBlocksBinaryResponseV1WithDefaults instantiates a new WatchBlocksBinaryResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksBinaryResponseV1WithDefaults() *WatchBlocksBinaryResponseV1 { + this := WatchBlocksBinaryResponseV1{} + return &this +} + +// GetBinaryBlock returns the BinaryBlock field value +func (o *WatchBlocksBinaryResponseV1) GetBinaryBlock() string { + if o == nil { + var ret string + return ret + } + + return o.BinaryBlock +} + +// GetBinaryBlockOk returns a tuple with the BinaryBlock field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksBinaryResponseV1) GetBinaryBlockOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BinaryBlock, true +} + +// SetBinaryBlock sets field value +func (o *WatchBlocksBinaryResponseV1) SetBinaryBlock(v string) { + o.BinaryBlock = v +} + +func (o WatchBlocksBinaryResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksBinaryResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["binaryBlock"] = o.BinaryBlock + return toSerialize, nil +} + +type NullableWatchBlocksBinaryResponseV1 struct { + value *WatchBlocksBinaryResponseV1 + isSet bool +} + +func (v NullableWatchBlocksBinaryResponseV1) Get() *WatchBlocksBinaryResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksBinaryResponseV1) Set(val *WatchBlocksBinaryResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksBinaryResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksBinaryResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksBinaryResponseV1(val *WatchBlocksBinaryResponseV1) *NullableWatchBlocksBinaryResponseV1 { + return &NullableWatchBlocksBinaryResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksBinaryResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksBinaryResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go new file mode 100644 index 00000000000..c03b0b55e8e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_options_v1.go @@ -0,0 +1,199 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the WatchBlocksOptionsV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksOptionsV1{} + +// WatchBlocksOptionsV1 Options passed when subscribing to block monitoring. +type WatchBlocksOptionsV1 struct { + Type *BlockTypeV1 `json:"type,omitempty"` + // Number of block to start monitoring from. + StartBlock *string `json:"startBlock,omitempty"` + BaseConfig *Iroha2BaseConfig `json:"baseConfig,omitempty"` +} + +// NewWatchBlocksOptionsV1 instantiates a new WatchBlocksOptionsV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksOptionsV1() *WatchBlocksOptionsV1 { + this := WatchBlocksOptionsV1{} + return &this +} + +// NewWatchBlocksOptionsV1WithDefaults instantiates a new WatchBlocksOptionsV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksOptionsV1WithDefaults() *WatchBlocksOptionsV1 { + this := WatchBlocksOptionsV1{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *WatchBlocksOptionsV1) GetType() BlockTypeV1 { + if o == nil || IsNil(o.Type) { + var ret BlockTypeV1 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetTypeOk() (*BlockTypeV1, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *WatchBlocksOptionsV1) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BlockTypeV1 and assigns it to the Type field. +func (o *WatchBlocksOptionsV1) SetType(v BlockTypeV1) { + o.Type = &v +} + +// GetStartBlock returns the StartBlock field value if set, zero value otherwise. +func (o *WatchBlocksOptionsV1) GetStartBlock() string { + if o == nil || IsNil(o.StartBlock) { + var ret string + return ret + } + return *o.StartBlock +} + +// GetStartBlockOk returns a tuple with the StartBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetStartBlockOk() (*string, bool) { + if o == nil || IsNil(o.StartBlock) { + return nil, false + } + return o.StartBlock, true +} + +// HasStartBlock returns a boolean if a field has been set. +func (o *WatchBlocksOptionsV1) HasStartBlock() bool { + if o != nil && !IsNil(o.StartBlock) { + return true + } + + return false +} + +// SetStartBlock gets a reference to the given string and assigns it to the StartBlock field. +func (o *WatchBlocksOptionsV1) SetStartBlock(v string) { + o.StartBlock = &v +} + +// GetBaseConfig returns the BaseConfig field value if set, zero value otherwise. +func (o *WatchBlocksOptionsV1) GetBaseConfig() Iroha2BaseConfig { + if o == nil || IsNil(o.BaseConfig) { + var ret Iroha2BaseConfig + return ret + } + return *o.BaseConfig +} + +// GetBaseConfigOk returns a tuple with the BaseConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksOptionsV1) GetBaseConfigOk() (*Iroha2BaseConfig, bool) { + if o == nil || IsNil(o.BaseConfig) { + return nil, false + } + return o.BaseConfig, true +} + +// HasBaseConfig returns a boolean if a field has been set. +func (o *WatchBlocksOptionsV1) HasBaseConfig() bool { + if o != nil && !IsNil(o.BaseConfig) { + return true + } + + return false +} + +// SetBaseConfig gets a reference to the given Iroha2BaseConfig and assigns it to the BaseConfig field. +func (o *WatchBlocksOptionsV1) SetBaseConfig(v Iroha2BaseConfig) { + o.BaseConfig = &v +} + +func (o WatchBlocksOptionsV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksOptionsV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.StartBlock) { + toSerialize["startBlock"] = o.StartBlock + } + if !IsNil(o.BaseConfig) { + toSerialize["baseConfig"] = o.BaseConfig + } + return toSerialize, nil +} + +type NullableWatchBlocksOptionsV1 struct { + value *WatchBlocksOptionsV1 + isSet bool +} + +func (v NullableWatchBlocksOptionsV1) Get() *WatchBlocksOptionsV1 { + return v.value +} + +func (v *NullableWatchBlocksOptionsV1) Set(val *WatchBlocksOptionsV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksOptionsV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksOptionsV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksOptionsV1(val *WatchBlocksOptionsV1) *NullableWatchBlocksOptionsV1 { + return &NullableWatchBlocksOptionsV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksOptionsV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksOptionsV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_raw_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_raw_response_v1.go new file mode 100644 index 00000000000..4c6de249b88 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_raw_response_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" +) + +// checks if the WatchBlocksRawResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksRawResponseV1{} + +// WatchBlocksRawResponseV1 Default JSON-encoded string full block data. +type WatchBlocksRawResponseV1 struct { + BlockData string `json:"blockData"` +} + +// NewWatchBlocksRawResponseV1 instantiates a new WatchBlocksRawResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksRawResponseV1(blockData string) *WatchBlocksRawResponseV1 { + this := WatchBlocksRawResponseV1{} + this.BlockData = blockData + return &this +} + +// NewWatchBlocksRawResponseV1WithDefaults instantiates a new WatchBlocksRawResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksRawResponseV1WithDefaults() *WatchBlocksRawResponseV1 { + this := WatchBlocksRawResponseV1{} + return &this +} + +// GetBlockData returns the BlockData field value +func (o *WatchBlocksRawResponseV1) GetBlockData() string { + if o == nil { + var ret string + return ret + } + + return o.BlockData +} + +// GetBlockDataOk returns a tuple with the BlockData field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksRawResponseV1) GetBlockDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockData, true +} + +// SetBlockData sets field value +func (o *WatchBlocksRawResponseV1) SetBlockData(v string) { + o.BlockData = v +} + +func (o WatchBlocksRawResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksRawResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["blockData"] = o.BlockData + return toSerialize, nil +} + +type NullableWatchBlocksRawResponseV1 struct { + value *WatchBlocksRawResponseV1 + isSet bool +} + +func (v NullableWatchBlocksRawResponseV1) Get() *WatchBlocksRawResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksRawResponseV1) Set(val *WatchBlocksRawResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksRawResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksRawResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksRawResponseV1(val *WatchBlocksRawResponseV1) *NullableWatchBlocksRawResponseV1 { + return &NullableWatchBlocksRawResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksRawResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksRawResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go new file mode 100644 index 00000000000..4b7d09a4183 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_response_v1.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksResponseV1 - struct for WatchBlocksResponseV1 +type WatchBlocksResponseV1 struct { + ErrorExceptionResponseV1 *ErrorExceptionResponseV1 + WatchBlocksBinaryResponseV1 *WatchBlocksBinaryResponseV1 + WatchBlocksRawResponseV1 *WatchBlocksRawResponseV1 +} + +// ErrorExceptionResponseV1AsWatchBlocksResponseV1 is a convenience function that returns ErrorExceptionResponseV1 wrapped in WatchBlocksResponseV1 +func ErrorExceptionResponseV1AsWatchBlocksResponseV1(v *ErrorExceptionResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + ErrorExceptionResponseV1: v, + } +} + +// WatchBlocksBinaryResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksBinaryResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksBinaryResponseV1AsWatchBlocksResponseV1(v *WatchBlocksBinaryResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksBinaryResponseV1: v, + } +} + +// WatchBlocksRawResponseV1AsWatchBlocksResponseV1 is a convenience function that returns WatchBlocksRawResponseV1 wrapped in WatchBlocksResponseV1 +func WatchBlocksRawResponseV1AsWatchBlocksResponseV1(v *WatchBlocksRawResponseV1) WatchBlocksResponseV1 { + return WatchBlocksResponseV1{ + WatchBlocksRawResponseV1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *WatchBlocksResponseV1) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ErrorExceptionResponseV1 + err = newStrictDecoder(data).Decode(&dst.ErrorExceptionResponseV1) + if err == nil { + jsonErrorExceptionResponseV1, _ := json.Marshal(dst.ErrorExceptionResponseV1) + if string(jsonErrorExceptionResponseV1) == "{}" { // empty struct + dst.ErrorExceptionResponseV1 = nil + } else { + match++ + } + } else { + dst.ErrorExceptionResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksBinaryResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksBinaryResponseV1) + if err == nil { + jsonWatchBlocksBinaryResponseV1, _ := json.Marshal(dst.WatchBlocksBinaryResponseV1) + if string(jsonWatchBlocksBinaryResponseV1) == "{}" { // empty struct + dst.WatchBlocksBinaryResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksBinaryResponseV1 = nil + } + + // try to unmarshal data into WatchBlocksRawResponseV1 + err = newStrictDecoder(data).Decode(&dst.WatchBlocksRawResponseV1) + if err == nil { + jsonWatchBlocksRawResponseV1, _ := json.Marshal(dst.WatchBlocksRawResponseV1) + if string(jsonWatchBlocksRawResponseV1) == "{}" { // empty struct + dst.WatchBlocksRawResponseV1 = nil + } else { + match++ + } + } else { + dst.WatchBlocksRawResponseV1 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ErrorExceptionResponseV1 = nil + dst.WatchBlocksBinaryResponseV1 = nil + dst.WatchBlocksRawResponseV1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(WatchBlocksResponseV1)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(WatchBlocksResponseV1)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src WatchBlocksResponseV1) MarshalJSON() ([]byte, error) { + if src.ErrorExceptionResponseV1 != nil { + return json.Marshal(&src.ErrorExceptionResponseV1) + } + + if src.WatchBlocksBinaryResponseV1 != nil { + return json.Marshal(&src.WatchBlocksBinaryResponseV1) + } + + if src.WatchBlocksRawResponseV1 != nil { + return json.Marshal(&src.WatchBlocksRawResponseV1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *WatchBlocksResponseV1) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.ErrorExceptionResponseV1 != nil { + return obj.ErrorExceptionResponseV1 + } + + if obj.WatchBlocksBinaryResponseV1 != nil { + return obj.WatchBlocksBinaryResponseV1 + } + + if obj.WatchBlocksRawResponseV1 != nil { + return obj.WatchBlocksRawResponseV1 + } + + // all schemas are nil + return nil +} + +type NullableWatchBlocksResponseV1 struct { + value *WatchBlocksResponseV1 + isSet bool +} + +func (v NullableWatchBlocksResponseV1) Get() *WatchBlocksResponseV1 { + return v.value +} + +func (v *NullableWatchBlocksResponseV1) Set(val *WatchBlocksResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksResponseV1(val *WatchBlocksResponseV1) *NullableWatchBlocksResponseV1 { + return &NullableWatchBlocksResponseV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..a5480406da6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 Websocket requests for monitoring new blocks. +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.hliroha2.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..ddc0519770b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..2e668cffeba --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,61 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-iroha2_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GenerateTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GenerateTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService QueryV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.QueryV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService TransactV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.TransactV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..506119901b8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Iroha V2 + +Can perform basic tasks on a Iroha V2 ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-iroha2 + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/README.md index 5d6ecd16510..054978ff46e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Iroha V2 - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata] Can perform basic tasks on a Iroha V2 ledger diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 39b04367944..a87de4ccd97 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 83838e7ae0e..42ee7734f13 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 1841d155f8c..9ef8126d171 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index f9cdab7f90d..ce8c30a844b 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index eb487876e5c..78771d4b9ec 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 975799b3f69..f56997c812e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index afea2173943..a4f71c16395 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java index 7dd03672ecd..73a733383e5 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java @@ -50,7 +50,7 @@ /** * Error response from the connector. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class ErrorExceptionResponseV1 { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java index d848942af69..b2fb88735a5 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1.java @@ -52,7 +52,7 @@ /** * Request for generating transaction or query payload that can be signed on the client side. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class GenerateTransactionRequestV1 { public static final String SERIALIZED_NAME_REQUEST = "request"; @SerializedName(SERIALIZED_NAME_REQUEST) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1Request.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1Request.java index 73640ea9167..998ba1fdfbf 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1Request.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GenerateTransactionRequestV1Request.java @@ -61,7 +61,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class GenerateTransactionRequestV1Request extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(GenerateTransactionRequestV1Request.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2AccountId.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2AccountId.java index 98ba6dcf71c..7a2e406efe9 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2AccountId.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2AccountId.java @@ -50,7 +50,7 @@ /** * Iroha V2 account ID. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2AccountId { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfig.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfig.java index 16b2d1099fe..645e85fd898 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfig.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfig.java @@ -53,7 +53,7 @@ /** * Iroha V2 connection configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2BaseConfig { public static final String SERIALIZED_NAME_TORII = "torii"; @SerializedName(SERIALIZED_NAME_TORII) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigSigningCredential.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigSigningCredential.java index cdead223707..72cebf826c5 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigSigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigSigningCredential.java @@ -58,7 +58,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2BaseConfigSigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Iroha2BaseConfigSigningCredential.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigTorii.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigTorii.java index 6620907f0a7..463f1908c76 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigTorii.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2BaseConfigTorii.java @@ -50,7 +50,7 @@ /** * Iroha V2 peer connection information. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2BaseConfigTorii { public static final String SERIALIZED_NAME_API_U_R_L = "apiURL"; @SerializedName(SERIALIZED_NAME_API_U_R_L) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyJson.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyJson.java index d4a8d135dae..8bcedb7ca41 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyJson.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyJson.java @@ -50,7 +50,7 @@ /** * Private/Public key JSON containing payload and digest function. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2KeyJson { public static final String SERIALIZED_NAME_DIGEST_FUNCTION = "digestFunction"; @SerializedName(SERIALIZED_NAME_DIGEST_FUNCTION) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyPair.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyPair.java index d22889ade69..c42ef6e3afe 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyPair.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Iroha2KeyPair.java @@ -51,7 +51,7 @@ /** * Pair of Iroha account private and public keys. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class Iroha2KeyPair { public static final String SERIALIZED_NAME_PRIVATE_KEY = "privateKey"; @SerializedName(SERIALIZED_NAME_PRIVATE_KEY) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaInstructionRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaInstructionRequestV1.java index 52d661b4a54..70ee9f808c1 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaInstructionRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaInstructionRequestV1.java @@ -53,7 +53,7 @@ /** * Single Iroha V2 instruction to be executed request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaInstructionRequestV1 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaQueryDefinitionV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaQueryDefinitionV1.java index 16aca8a68f0..7793444947b 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaQueryDefinitionV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaQueryDefinitionV1.java @@ -53,7 +53,7 @@ /** * Iroha V2 query definition. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaQueryDefinitionV1 { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaSignedQueryDefinitionV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaSignedQueryDefinitionV1.java index 79ade086a54..2ca1002a275 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaSignedQueryDefinitionV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaSignedQueryDefinitionV1.java @@ -51,7 +51,7 @@ /** * Iroha V2 signed query definition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaSignedQueryDefinitionV1 { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1.java index 66c5f4cc55d..2a832c9f301 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1.java @@ -52,7 +52,7 @@ /** * Iroha V2 transaction definition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaTransactionDefinitionV1 { public static final String SERIALIZED_NAME_INSTRUCTION = "instruction"; @SerializedName(SERIALIZED_NAME_INSTRUCTION) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1Instruction.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1Instruction.java index 0bb44278917..9ef7b3008f2 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1Instruction.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionDefinitionV1Instruction.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaTransactionDefinitionV1Instruction extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(IrohaTransactionDefinitionV1Instruction.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionParametersV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionParametersV1.java index 2b3a3655505..2b4c4095e93 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionParametersV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/IrohaTransactionParametersV1.java @@ -51,7 +51,7 @@ /** * Iroha V2 transaction payload parameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class IrohaTransactionParametersV1 { public static final String SERIALIZED_NAME_TTL = "ttl"; @SerializedName(SERIALIZED_NAME_TTL) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeychainReference.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeychainReference.java index 8e3e47e6780..89a13b731fb 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeychainReference.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/KeychainReference.java @@ -50,7 +50,7 @@ /** * Reference to entry stored in Cactus keychain plugin. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class KeychainReference { public static final String SERIALIZED_NAME_KEYCHAIN_ID = "keychainId"; @SerializedName(SERIALIZED_NAME_KEYCHAIN_ID) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryRequestV1.java index 31973fc64e1..fa55acaec29 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryRequestV1.java @@ -53,7 +53,7 @@ /** * Request to query endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class QueryRequestV1 { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryResponseV1.java index 08d46014d17..563e526fa97 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QueryResponseV1.java @@ -50,7 +50,7 @@ /** * Response with the query results. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class QueryResponseV1 { public static final String SERIALIZED_NAME_RESPONSE = "response"; @SerializedName(SERIALIZED_NAME_RESPONSE) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactRequestV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactRequestV1.java index fa9cde5a037..ce2e5d67aa0 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactRequestV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactRequestV1.java @@ -52,7 +52,7 @@ /** * Request to transact endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class TransactRequestV1 { public static final String SERIALIZED_NAME_SIGNED_TRANSACTION = "signedTransaction"; @SerializedName(SERIALIZED_NAME_SIGNED_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactResponseV1.java index 91a218db05e..f2eb6c87d5d 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransactResponseV1.java @@ -51,7 +51,7 @@ /** * Response from transaction endpoint with operation status. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class TransactResponseV1 { public static final String SERIALIZED_NAME_HASH = "hash"; @SerializedName(SERIALIZED_NAME_HASH) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksBinaryResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksBinaryResponseV1.java index cf74b0b1c1a..7536d635fed 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksBinaryResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksBinaryResponseV1.java @@ -50,7 +50,7 @@ /** * Binary encoded response of block data. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class WatchBlocksBinaryResponseV1 { public static final String SERIALIZED_NAME_BINARY_BLOCK = "binaryBlock"; @SerializedName(SERIALIZED_NAME_BINARY_BLOCK) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java index 8fd5ee7db50..07b1241aa4a 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksOptionsV1.java @@ -52,7 +52,7 @@ /** * Options passed when subscribing to block monitoring. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class WatchBlocksOptionsV1 { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksRawResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksRawResponseV1.java index 09e165090fd..dcf5c45a70b 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksRawResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksRawResponseV1.java @@ -50,7 +50,7 @@ /** * Default JSON-encoded string full block data. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class WatchBlocksRawResponseV1 { public static final String SERIALIZED_NAME_BLOCK_DATA = "blockData"; @SerializedName(SERIALIZED_NAME_BLOCK_DATA) diff --git a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java index 2c44917be52..a8b7ef0cd24 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java +++ b/packages/cactus-plugin-ledger-connector-iroha2/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksResponseV1.java @@ -58,7 +58,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:23.145061454+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:31.532441883+05:30[Asia/Kolkata]") public class WatchBlocksResponseV1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(WatchBlocksResponseV1.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..53c69d182b7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,87 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ContractJSON.md +docs/DefaultApi.md +docs/DeployContractSolidityBytecodeJsonObjectV1Request.md +docs/DeployContractSolidityBytecodeV1Request.md +docs/DeployContractSolidityBytecodeV1Response.md +docs/EthContractInvocationType.md +docs/EthContractInvocationWeb3Method.md +docs/InvokeContractJsonObjectV1Request.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/InvokeRawWeb3EthContractV1Request.md +docs/InvokeRawWeb3EthContractV1Response.md +docs/InvokeRawWeb3EthMethodV1Request.md +docs/InvokeRawWeb3EthMethodV1Response.md +docs/QuorumPrivateTransactionConfig.md +docs/QuorumTransactionConfig.md +docs/QuorumTransactionConfigFrom.md +docs/QuorumTransactionConfigTo.md +docs/RunTransactionRequest.md +docs/RunTransactionResponse.md +docs/SolidityContractJsonArtifact.md +docs/SolidityContractJsonArtifactCompiler.md +docs/SolidityContractJsonArtifactGasEstimates.md +docs/SolidityContractJsonArtifactGasEstimatesCreation.md +docs/WatchBlocksV1.md +docs/WatchBlocksV1BlockData.md +docs/WatchBlocksV1Options.md +docs/WatchBlocksV1Progress.md +docs/Web3BlockHeader.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialGethKeychainPassword.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3Transaction.md +docs/Web3TransactionReceipt.md +git_push.sh +go.mod +go.sum +model_contract_json.go +model_deploy_contract_solidity_bytecode_json_object_v1_request.go +model_deploy_contract_solidity_bytecode_v1_request.go +model_deploy_contract_solidity_bytecode_v1_response.go +model_eth_contract_invocation_type.go +model_eth_contract_invocation_web3_method.go +model_invoke_contract_json_object_v1_request.go +model_invoke_contract_v1_request.go +model_invoke_contract_v1_response.go +model_invoke_raw_web3_eth_contract_v1_request.go +model_invoke_raw_web3_eth_contract_v1_response.go +model_invoke_raw_web3_eth_method_v1_request.go +model_invoke_raw_web3_eth_method_v1_response.go +model_quorum_private_transaction_config.go +model_quorum_transaction_config.go +model_quorum_transaction_config_from.go +model_quorum_transaction_config_to.go +model_run_transaction_request.go +model_run_transaction_response.go +model_solidity_contract_json_artifact.go +model_solidity_contract_json_artifact_compiler.go +model_solidity_contract_json_artifact_gas_estimates.go +model_solidity_contract_json_artifact_gas_estimates_creation.go +model_watch_blocks_v1.go +model_watch_blocks_v1_block_data.go +model_watch_blocks_v1_options.go +model_watch_blocks_v1_progress.go +model_web3_block_header.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_geth_keychain_password.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction.go +model_web3_transaction_receipt.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..63cb79a0c55 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,154 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-quorum + +Can perform basic tasks on a Quorum ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-quorum "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-quorum.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-quorum.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-quorum.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-quorum.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeployContractSolBytecodeJsonObjectV1**](docs/DefaultApi.md#deploycontractsolbytecodejsonobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**DeployContractSolBytecodeV1**](docs/DefaultApi.md#deploycontractsolbytecodev1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**InvokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract | Invokes a contract on a besu ledger +*DefaultApi* | [**InvokeContractV1NoKeychain**](docs/DefaultApi.md#invokecontractv1nokeychain) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract-json-object | Invokes a contract on a besu ledger +*DefaultApi* | [**InvokeRawWeb3EthContractV1**](docs/DefaultApi.md#invokerawweb3ethcontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-contract | Low-level endpoint to invoke a method on deployed contract. +*DefaultApi* | [**InvokeWeb3EthMethodV1**](docs/DefaultApi.md#invokeweb3ethmethodv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-method | Invoke any method from web3.eth (low-level) +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/run-transaction | Executes a transaction on a quorum ledger + + +## Documentation For Models + + - [ContractJSON](docs/ContractJSON.md) + - [DeployContractSolidityBytecodeJsonObjectV1Request](docs/DeployContractSolidityBytecodeJsonObjectV1Request.md) + - [DeployContractSolidityBytecodeV1Request](docs/DeployContractSolidityBytecodeV1Request.md) + - [DeployContractSolidityBytecodeV1Response](docs/DeployContractSolidityBytecodeV1Response.md) + - [EthContractInvocationType](docs/EthContractInvocationType.md) + - [EthContractInvocationWeb3Method](docs/EthContractInvocationWeb3Method.md) + - [InvokeContractJsonObjectV1Request](docs/InvokeContractJsonObjectV1Request.md) + - [InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [InvokeRawWeb3EthContractV1Request](docs/InvokeRawWeb3EthContractV1Request.md) + - [InvokeRawWeb3EthContractV1Response](docs/InvokeRawWeb3EthContractV1Response.md) + - [InvokeRawWeb3EthMethodV1Request](docs/InvokeRawWeb3EthMethodV1Request.md) + - [InvokeRawWeb3EthMethodV1Response](docs/InvokeRawWeb3EthMethodV1Response.md) + - [QuorumPrivateTransactionConfig](docs/QuorumPrivateTransactionConfig.md) + - [QuorumTransactionConfig](docs/QuorumTransactionConfig.md) + - [QuorumTransactionConfigFrom](docs/QuorumTransactionConfigFrom.md) + - [QuorumTransactionConfigTo](docs/QuorumTransactionConfigTo.md) + - [RunTransactionRequest](docs/RunTransactionRequest.md) + - [RunTransactionResponse](docs/RunTransactionResponse.md) + - [SolidityContractJsonArtifact](docs/SolidityContractJsonArtifact.md) + - [SolidityContractJsonArtifactCompiler](docs/SolidityContractJsonArtifactCompiler.md) + - [SolidityContractJsonArtifactGasEstimates](docs/SolidityContractJsonArtifactGasEstimates.md) + - [SolidityContractJsonArtifactGasEstimatesCreation](docs/SolidityContractJsonArtifactGasEstimatesCreation.md) + - [WatchBlocksV1](docs/WatchBlocksV1.md) + - [WatchBlocksV1BlockData](docs/WatchBlocksV1BlockData.md) + - [WatchBlocksV1Options](docs/WatchBlocksV1Options.md) + - [WatchBlocksV1Progress](docs/WatchBlocksV1Progress.md) + - [Web3BlockHeader](docs/Web3BlockHeader.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialGethKeychainPassword](docs/Web3SigningCredentialGethKeychainPassword.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3Transaction](docs/Web3Transaction.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..7f4a2308ac3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1288 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Quorum ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Quorum + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode: + post: + operationId: deployContractSolBytecodeV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode-json-object: + post: + operationId: deployContractSolBytecodeJsonObjectV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractSolidityBytecodeV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/run-transaction: + post: + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionResponse' + description: OK + summary: Executes a transaction on a quorum ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract: + post: + operationId: invokeContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract-json-object: + post: + operationId: invokeContractV1NoKeychain + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/get-prometheus-exporter-metrics + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-method: + post: + operationId: invokeWeb3EthMethodV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthMethodV1Request' + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthMethodV1Response' + description: OK + summary: Invoke any method from web3.eth (low-level) + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-method + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-contract: + post: + operationId: invokeRawWeb3EthContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthContractV1Request' + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InvokeRawWeb3EthContractV1Response' + description: OK + summary: Low-level endpoint to invoke a method on deployed contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-contract +components: + schemas: + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialGethKeychainPassword' + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialGethKeychainPassword: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + secret: + description: A geth keychain unlock password. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - type + type: object + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 66 + minLength: 66 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + EthContractInvocationType: + enum: + - SEND + - CALL + type: string + EthContractInvocationWeb3Method: + enum: + - send + - call + - encodeABI + - estimateGas + type: string + SolidityContractJsonArtifact: + properties: + contractName: + nullable: false + type: string + metadata: + nullable: false + type: string + bytecode: + nullable: false + type: string + deployedBytecode: + nullable: false + type: string + sourceMap: + nullable: false + type: string + deployedSourceMap: + nullable: false + type: string + sourcePath: + type: string + compiler: + $ref: '#/components/schemas/SolidityContractJsonArtifact_compiler' + functionHashes: + additionalProperties: true + type: object + gasEstimates: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates' + required: + - contractName + type: object + QuorumTransactionConfig: + additionalProperties: true + example: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + rawTransaction: + nullable: false + type: string + from: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + to: + $ref: '#/components/schemas/QuorumTransactionConfig_to' + value: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gas: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + nonce: + type: number + data: + $ref: '#/components/schemas/QuorumTransactionConfig_to' + type: object + QuorumPrivateTransactionConfig: + example: + gasLimit: 7.061401241503109 + privateKey: privateKey + privateFrom: privateFrom + privacyGroupId: privacyGroupId + privateFor: + - "" + - "" + isPrivate: false + gasPrice: 2.3021358869347655 + properties: + privateFrom: + nullable: false + type: string + privateFor: + default: [] + items: {} + nullable: false + type: array + isPrivate: + default: false + nullable: false + type: boolean + gasPrice: + nullable: false + type: number + gasLimit: + nullable: false + type: number + privateKey: + nullable: false + type: string + privacyGroupId: + nullable: false + type: string + required: + - privateFor + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + logs: + default: [] + items: {} + nullable: false + type: array + logsBloom: + nullable: false + type: string + revertReason: + nullable: false + type: string + output: + nullable: false + type: string + commitmentHash: + nullable: false + type: string + cumulativeGasUSed: + nullable: false + type: number + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + ContractJSON: + additionalProperties: true + example: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + contractName: + nullable: false + type: string + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + abi: + description: "The application binary interface of the solidity contract,\ + \ optional parameter" + items: {} + nullable: false + type: array + metadata: + type: string + deployedBytecode: + type: string + sourceMap: + type: string + deployedSourceMap: + type: string + sourcePath: + type: string + compiler: + type: object + networks: + type: object + ast: + type: object + functionHashes: + type: object + gasEstimates: + type: object + required: + - bytecode + - contractName + type: object + RunTransactionRequest: + additionalProperties: false + example: + privateTransactionConfig: + gasLimit: 7.061401241503109 + privateKey: privateKey + privateFrom: privateFrom + privacyGroupId: privacyGroupId + privateFor: + - "" + - "" + isPrivate: false + gasPrice: 2.3021358869347655 + timeoutMs: 0.6027456183070403 + transactionConfig: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + web3SigningCredential: + type: null + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + transactionConfig: + $ref: '#/components/schemas/QuorumTransactionConfig' + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with thehash of the transaction(which indicates successful execution) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + privateTransactionConfig: + $ref: '#/components/schemas/QuorumPrivateTransactionConfig' + required: + - transactionConfig + - web3SigningCredential + type: object + RunTransactionResponse: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractSolidityBytecodeV1Request: + additionalProperties: false + example: + bytecode: bytecode + privateTransactionConfig: + gasLimit: 7.061401241503109 + privateKey: privateKey + privateFrom: privateFrom + privacyGroupId: privacyGroupId + privateFor: + - "" + - "" + isPrivate: false + gasPrice: 2.3021358869347655 + constructorArgs: + - "" + - "" + nonce: 1.4658129805029452 + keychainId: keychainId + timeoutMs: 0.5637376656633328 + contractAbi: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + contractName: contractName + value: 5.962133916683182 + gasPrice: 6.027456183070403 + contractJSON: "{}" + properties: + contractName: + description: The contract name for retrieve the contracts json on the keychain. + maxLength: 100 + minLength: 1 + nullable: false + type: string + contractAbi: + description: The application binary interface of the solidity contract + items: {} + nullable: false + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + nullable: false + type: string + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: number + nonce: + nullable: false + type: number + value: + nullable: false + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + contractJSON: + description: "For use when not using keychain, pass the contract in as this\ + \ variable" + nullable: false + type: object + constructorArgs: + default: [] + description: The list of arguments to pass in to the constructor of the + contract being deployed. + items: {} + type: array + privateTransactionConfig: + $ref: '#/components/schemas/QuorumPrivateTransactionConfig' + required: + - contractName + - keychainId + - web3SigningCredential + type: object + DeployContractSolidityBytecodeV1Response: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractSolidityBytecodeJsonObjectV1Request: + additionalProperties: false + example: + timeoutMs: 0.6027456183070403 + constructorArgs: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + gasPrice: gasPrice + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: string + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + constructorArgs: + default: [] + description: The list of arguments to pass in to the constructor of the + contract being deployed. + items: {} + type: array + required: + - contractJSON + - web3SigningCredential + type: object + InvokeContractV1Request: + additionalProperties: false + example: + invocationType: null + keychainId: keychainId + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractName: contractName + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + contractName: + description: The contract name to find it in the keychain plugin + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + value: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gas: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + type: string + required: + - contractName + - invocationType + - keychainId + - methodName + - params + - web3SigningCredential + type: object + InvokeContractJsonObjectV1Request: + additionalProperties: false + example: + invocationType: null + privateTransactionConfig: + gasLimit: 7.061401241503109 + privateKey: privateKey + privateFrom: privateFrom + privacyGroupId: privacyGroupId + privateFor: + - "" + - "" + isPrivate: false + gasPrice: 2.3021358869347655 + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractAddress: contractAddress + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + contractAddress: + description: Address of the solidity contract + nullable: false + type: string + value: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gas: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + privateTransactionConfig: + $ref: '#/components/schemas/QuorumPrivateTransactionConfig' + required: + - contractAddress + - contractJSON + - invocationType + - methodName + - params + - web3SigningCredential + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + logsBloom: logsBloom + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + commitmentHash: commitmentHash + transactionHash: transactionHash + output: output + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + cumulativeGasUSed: 5.962133916683182 + from: from + to: to + revertReason: revertReason + logs: + - "" + - "" + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + InvokeRawWeb3EthMethodV1Request: + additionalProperties: false + example: + methodName: methodName + params: + - "" + - "" + properties: + methodName: + description: The name of the web3.eth method to invoke + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass to web3.eth method specified + in methodName + items: {} + type: array + required: + - methodName + type: object + InvokeRawWeb3EthMethodV1Response: + additionalProperties: false + properties: + status: + description: Status code of the operation + nullable: false + type: number + data: + description: Output of requested web3.eth method + errorDetail: + description: Error details + nullable: false + type: string + required: + - status + type: object + InvokeRawWeb3EthContractV1Request: + additionalProperties: false + example: + invocationType: null + address: address + abi: + - "" + - "" + contractMethodArgs: + - "" + - "" + contractMethod: contractMethod + invocationParams: "{}" + properties: + abi: + description: The application binary interface of the solidity contract + items: {} + type: array + address: + description: Deployed solidity contract address + type: string + invocationType: + $ref: '#/components/schemas/EthContractInvocationWeb3Method' + invocationParams: + default: {} + description: "The list of arguments for contract invocation method (send,\ + \ call, etc...)" + type: object + contractMethod: + description: Method of deployed solidity contract to execute + type: string + contractMethodArgs: + default: [] + description: The list of arguments for deployed solidity contract method + items: {} + type: array + required: + - abi + - address + - contractMethod + - invocationType + type: object + InvokeRawWeb3EthContractV1Response: + additionalProperties: false + properties: + status: + description: Status code of the operation + type: number + data: + description: Output of contract invocation method + errorDetail: + description: Error details + type: string + required: + - status + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + WatchBlocksV1: + enum: + - org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Subscribe + - org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Next + - org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Unsubscribe + - org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Error + - org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Complete + type: string + x-enum-varnames: + - Subscribe + - Next + - Unsubscribe + - Error + - Complete + WatchBlocksV1Options: + properties: + getBlockData: + type: boolean + type: object + Web3BlockHeader: + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionsRoot: + type: string + stateRoot: + type: string + receiptsRoot: + type: string + difficulty: + type: string + mixHash: + type: string + miner: + type: string + extraData: + type: string + gasLimit: + type: integer + gasUsed: + type: integer + timestamp: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + required: + - extraData + - gasLimit + - gasUsed + - hash + - logsBloom + - miner + - nonce + - number + - parentHash + - receiptRoot + - sha3Uncles + - stateRoot + - timestamp + - transactionRoot + type: object + Web3Transaction: + properties: + hash: + type: string + nonce: + type: number + blockHash: + nullable: true + type: string + blockNumber: + nullable: true + type: number + transactionIndex: + nullable: true + type: number + from: + type: string + to: + nullable: true + type: string + value: + type: string + gasPrice: + type: string + gas: + type: number + input: + type: string + v: + type: string + r: + type: string + s: + type: string + required: + - blockHash + - blockNumber + - from + - gas + - gasPrice + - hash + - input + - nonce + - to + - transactionIndex + - value + type: object + WatchBlocksV1BlockData: + properties: + number: + type: number + hash: + type: string + parentHash: + type: string + nonce: + type: string + sha3Uncles: + type: string + logsBloom: + type: string + transactionsRoot: + type: string + stateRoot: + type: string + receiptsRoot: + type: string + difficulty: + type: string + mixHash: + type: string + miner: + type: string + extraData: + type: string + gasLimit: + type: integer + gasUsed: + type: integer + timestamp: + $ref: '#/components/schemas/QuorumTransactionConfig_from' + size: + type: number + totalDifficulty: + type: string + uncles: + items: + type: string + type: array + transactions: + items: + $ref: '#/components/schemas/Web3Transaction' + type: array + required: + - extraData + - gasLimit + - gasUsed + - hash + - logsBloom + - miner + - nonce + - number + - parentHash + - receiptRoot + - sha3Uncles + - size + - stateRoot + - timestamp + - totalDifficulty + - transactionRoot + - transactions + - uncles + type: object + WatchBlocksV1Progress: + properties: + blockHeader: + $ref: '#/components/schemas/Web3BlockHeader' + blockData: + $ref: '#/components/schemas/WatchBlocksV1BlockData' + type: object + SolidityContractJsonArtifact_compiler: + additionalProperties: true + properties: + name: + type: string + version: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates_creation: + properties: + codeDepositCost: + type: string + executionCost: + type: string + totalCost: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates: + properties: + creation: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates_creation' + external: + additionalProperties: true + type: object + QuorumTransactionConfig_from: + oneOf: + - type: string + - type: number + QuorumTransactionConfig_to: + oneOf: + - type: string diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..41f1678e34f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,855 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeployContractSolBytecodeJsonObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractSolidityBytecodeJsonObjectV1Request *DeployContractSolidityBytecodeJsonObjectV1Request +} + +func (r ApiDeployContractSolBytecodeJsonObjectV1Request) DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request DeployContractSolidityBytecodeJsonObjectV1Request) ApiDeployContractSolBytecodeJsonObjectV1Request { + r.deployContractSolidityBytecodeJsonObjectV1Request = &deployContractSolidityBytecodeJsonObjectV1Request + return r +} + +func (r ApiDeployContractSolBytecodeJsonObjectV1Request) Execute() (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + return r.ApiService.DeployContractSolBytecodeJsonObjectV1Execute(r) +} + +/* +DeployContractSolBytecodeJsonObjectV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractSolBytecodeJsonObjectV1Request +*/ +func (a *DefaultApiService) DeployContractSolBytecodeJsonObjectV1(ctx context.Context) ApiDeployContractSolBytecodeJsonObjectV1Request { + return ApiDeployContractSolBytecodeJsonObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractSolidityBytecodeV1Response +func (a *DefaultApiService) DeployContractSolBytecodeJsonObjectV1Execute(r ApiDeployContractSolBytecodeJsonObjectV1Request) (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractSolidityBytecodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractSolBytecodeJsonObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractSolidityBytecodeJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeployContractSolBytecodeV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractSolidityBytecodeV1Request *DeployContractSolidityBytecodeV1Request +} + +func (r ApiDeployContractSolBytecodeV1Request) DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request DeployContractSolidityBytecodeV1Request) ApiDeployContractSolBytecodeV1Request { + r.deployContractSolidityBytecodeV1Request = &deployContractSolidityBytecodeV1Request + return r +} + +func (r ApiDeployContractSolBytecodeV1Request) Execute() (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + return r.ApiService.DeployContractSolBytecodeV1Execute(r) +} + +/* +DeployContractSolBytecodeV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractSolBytecodeV1Request +*/ +func (a *DefaultApiService) DeployContractSolBytecodeV1(ctx context.Context) ApiDeployContractSolBytecodeV1Request { + return ApiDeployContractSolBytecodeV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractSolidityBytecodeV1Response +func (a *DefaultApiService) DeployContractSolBytecodeV1Execute(r ApiDeployContractSolBytecodeV1Request) (*DeployContractSolidityBytecodeV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractSolidityBytecodeV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractSolBytecodeV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractSolidityBytecodeV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractV1Request *InvokeContractV1Request +} + +func (r ApiInvokeContractV1Request) InvokeContractV1Request(invokeContractV1Request InvokeContractV1Request) ApiInvokeContractV1Request { + r.invokeContractV1Request = &invokeContractV1Request + return r +} + +func (r ApiInvokeContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1Execute(r) +} + +/* +InvokeContractV1 Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1Request +*/ +func (a *DefaultApiService) InvokeContractV1(ctx context.Context) ApiInvokeContractV1Request { + return ApiInvokeContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1Execute(r ApiInvokeContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1NoKeychainRequest struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractJsonObjectV1Request *InvokeContractJsonObjectV1Request +} + +func (r ApiInvokeContractV1NoKeychainRequest) InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request InvokeContractJsonObjectV1Request) ApiInvokeContractV1NoKeychainRequest { + r.invokeContractJsonObjectV1Request = &invokeContractJsonObjectV1Request + return r +} + +func (r ApiInvokeContractV1NoKeychainRequest) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1NoKeychainExecute(r) +} + +/* +InvokeContractV1NoKeychain Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1NoKeychainRequest +*/ +func (a *DefaultApiService) InvokeContractV1NoKeychain(ctx context.Context) ApiInvokeContractV1NoKeychainRequest { + return ApiInvokeContractV1NoKeychainRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1NoKeychainExecute(r ApiInvokeContractV1NoKeychainRequest) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1NoKeychain") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeRawWeb3EthContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeRawWeb3EthContractV1Request *InvokeRawWeb3EthContractV1Request +} + +func (r ApiInvokeRawWeb3EthContractV1Request) InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request InvokeRawWeb3EthContractV1Request) ApiInvokeRawWeb3EthContractV1Request { + r.invokeRawWeb3EthContractV1Request = &invokeRawWeb3EthContractV1Request + return r +} + +func (r ApiInvokeRawWeb3EthContractV1Request) Execute() (*InvokeRawWeb3EthContractV1Response, *http.Response, error) { + return r.ApiService.InvokeRawWeb3EthContractV1Execute(r) +} + +/* +InvokeRawWeb3EthContractV1 Low-level endpoint to invoke a method on deployed contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeRawWeb3EthContractV1Request +*/ +func (a *DefaultApiService) InvokeRawWeb3EthContractV1(ctx context.Context) ApiInvokeRawWeb3EthContractV1Request { + return ApiInvokeRawWeb3EthContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeRawWeb3EthContractV1Response +func (a *DefaultApiService) InvokeRawWeb3EthContractV1Execute(r ApiInvokeRawWeb3EthContractV1Request) (*InvokeRawWeb3EthContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeRawWeb3EthContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeRawWeb3EthContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeRawWeb3EthContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeWeb3EthMethodV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeRawWeb3EthMethodV1Request *InvokeRawWeb3EthMethodV1Request +} + +func (r ApiInvokeWeb3EthMethodV1Request) InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request InvokeRawWeb3EthMethodV1Request) ApiInvokeWeb3EthMethodV1Request { + r.invokeRawWeb3EthMethodV1Request = &invokeRawWeb3EthMethodV1Request + return r +} + +func (r ApiInvokeWeb3EthMethodV1Request) Execute() (*InvokeRawWeb3EthMethodV1Response, *http.Response, error) { + return r.ApiService.InvokeWeb3EthMethodV1Execute(r) +} + +/* +InvokeWeb3EthMethodV1 Invoke any method from web3.eth (low-level) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeWeb3EthMethodV1Request +*/ +func (a *DefaultApiService) InvokeWeb3EthMethodV1(ctx context.Context) ApiInvokeWeb3EthMethodV1Request { + return ApiInvokeWeb3EthMethodV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeRawWeb3EthMethodV1Response +func (a *DefaultApiService) InvokeWeb3EthMethodV1Execute(r ApiInvokeWeb3EthMethodV1Request) (*InvokeRawWeb3EthMethodV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeRawWeb3EthMethodV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeWeb3EthMethodV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-method" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeRawWeb3EthMethodV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionRequest *RunTransactionRequest +} + +func (r ApiRunTransactionV1Request) RunTransactionRequest(runTransactionRequest RunTransactionRequest) ApiRunTransactionV1Request { + r.runTransactionRequest = &runTransactionRequest + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionResponse, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Executes a transaction on a quorum ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionResponse +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..a67681ac055 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Quorum API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..d3255082cb5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md new file mode 100644 index 00000000000..8a8c8542aac --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/ContractJSON.md @@ -0,0 +1,358 @@ +# ContractJSON + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Bytecode** | **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | +**Abi** | Pointer to **[]interface{}** | The application binary interface of the solidity contract, optional parameter | [optional] +**Metadata** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to **map[string]interface{}** | | [optional] +**Networks** | Pointer to **map[string]interface{}** | | [optional] +**Ast** | Pointer to **map[string]interface{}** | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewContractJSON + +`func NewContractJSON(contractName string, bytecode string, ) *ContractJSON` + +NewContractJSON instantiates a new ContractJSON object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewContractJSONWithDefaults + +`func NewContractJSONWithDefaults() *ContractJSON` + +NewContractJSONWithDefaults instantiates a new ContractJSON object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *ContractJSON) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *ContractJSON) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *ContractJSON) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetBytecode + +`func (o *ContractJSON) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *ContractJSON) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *ContractJSON) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + + +### GetAbi + +`func (o *ContractJSON) GetAbi() []interface{}` + +GetAbi returns the Abi field if non-nil, zero value otherwise. + +### GetAbiOk + +`func (o *ContractJSON) GetAbiOk() (*[]interface{}, bool)` + +GetAbiOk returns a tuple with the Abi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbi + +`func (o *ContractJSON) SetAbi(v []interface{})` + +SetAbi sets Abi field to given value. + +### HasAbi + +`func (o *ContractJSON) HasAbi() bool` + +HasAbi returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ContractJSON) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ContractJSON) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ContractJSON) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ContractJSON) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *ContractJSON) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *ContractJSON) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *ContractJSON) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *ContractJSON) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *ContractJSON) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *ContractJSON) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *ContractJSON) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *ContractJSON) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *ContractJSON) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *ContractJSON) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *ContractJSON) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *ContractJSON) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *ContractJSON) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *ContractJSON) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *ContractJSON) GetCompiler() map[string]interface{}` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *ContractJSON) GetCompilerOk() (*map[string]interface{}, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *ContractJSON) SetCompiler(v map[string]interface{})` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *ContractJSON) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetNetworks + +`func (o *ContractJSON) GetNetworks() map[string]interface{}` + +GetNetworks returns the Networks field if non-nil, zero value otherwise. + +### GetNetworksOk + +`func (o *ContractJSON) GetNetworksOk() (*map[string]interface{}, bool)` + +GetNetworksOk returns a tuple with the Networks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworks + +`func (o *ContractJSON) SetNetworks(v map[string]interface{})` + +SetNetworks sets Networks field to given value. + +### HasNetworks + +`func (o *ContractJSON) HasNetworks() bool` + +HasNetworks returns a boolean if a field has been set. + +### GetAst + +`func (o *ContractJSON) GetAst() map[string]interface{}` + +GetAst returns the Ast field if non-nil, zero value otherwise. + +### GetAstOk + +`func (o *ContractJSON) GetAstOk() (*map[string]interface{}, bool)` + +GetAstOk returns a tuple with the Ast field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAst + +`func (o *ContractJSON) SetAst(v map[string]interface{})` + +SetAst sets Ast field to given value. + +### HasAst + +`func (o *ContractJSON) HasAst() bool` + +HasAst returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *ContractJSON) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *ContractJSON) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *ContractJSON) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *ContractJSON) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *ContractJSON) GetGasEstimates() map[string]interface{}` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *ContractJSON) GetGasEstimatesOk() (*map[string]interface{}, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *ContractJSON) SetGasEstimates(v map[string]interface{})` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *ContractJSON) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..8ff0ce5d74d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,523 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeployContractSolBytecodeJsonObjectV1**](DefaultApi.md#DeployContractSolBytecodeJsonObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +[**DeployContractSolBytecodeV1**](DefaultApi.md#DeployContractSolBytecodeV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**InvokeContractV1**](DefaultApi.md#InvokeContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract | Invokes a contract on a besu ledger +[**InvokeContractV1NoKeychain**](DefaultApi.md#InvokeContractV1NoKeychain) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-contract-json-object | Invokes a contract on a besu ledger +[**InvokeRawWeb3EthContractV1**](DefaultApi.md#InvokeRawWeb3EthContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-contract | Low-level endpoint to invoke a method on deployed contract. +[**InvokeWeb3EthMethodV1**](DefaultApi.md#InvokeWeb3EthMethodV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/invoke-raw-web3eth-method | Invoke any method from web3.eth (low-level) +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-quorum/run-transaction | Executes a transaction on a quorum ledger + + + +## DeployContractSolBytecodeJsonObjectV1 + +> DeployContractSolidityBytecodeV1Response DeployContractSolBytecodeJsonObjectV1(ctx).DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractSolidityBytecodeJsonObjectV1Request := *openapiclient.NewDeployContractSolidityBytecodeJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example")) // DeployContractSolidityBytecodeJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractSolBytecodeJsonObjectV1(context.Background()).DeployContractSolidityBytecodeJsonObjectV1Request(deployContractSolidityBytecodeJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractSolBytecodeJsonObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractSolBytecodeJsonObjectV1`: DeployContractSolidityBytecodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractSolBytecodeJsonObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractSolBytecodeJsonObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractSolidityBytecodeJsonObjectV1Request** | [**DeployContractSolidityBytecodeJsonObjectV1Request**](DeployContractSolidityBytecodeJsonObjectV1Request.md) | | + +### Return type + +[**DeployContractSolidityBytecodeV1Response**](DeployContractSolidityBytecodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeployContractSolBytecodeV1 + +> DeployContractSolidityBytecodeV1Response DeployContractSolBytecodeV1(ctx).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractSolidityBytecodeV1Request := *openapiclient.NewDeployContractSolidityBytecodeV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, "KeychainId_example") // DeployContractSolidityBytecodeV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).DeployContractSolidityBytecodeV1Request(deployContractSolidityBytecodeV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractSolBytecodeV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractSolBytecodeV1`: DeployContractSolidityBytecodeV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractSolBytecodeV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractSolBytecodeV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractSolidityBytecodeV1Request** | [**DeployContractSolidityBytecodeV1Request**](DeployContractSolidityBytecodeV1Request.md) | | + +### Return type + +[**DeployContractSolidityBytecodeV1Response**](DeployContractSolidityBytecodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1 + +> InvokeContractV1Response InvokeContractV1(ctx).InvokeContractV1Request(invokeContractV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractV1Request := *openapiclient.NewInvokeContractV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "KeychainId_example") // InvokeContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).InvokeContractV1Request(invokeContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1NoKeychain + +> InvokeContractV1Response InvokeContractV1NoKeychain(ctx).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractJsonObjectV1Request := *openapiclient.NewInvokeContractJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "ContractAddress_example", *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example")) // InvokeContractJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1NoKeychain(context.Background()).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1NoKeychain``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1NoKeychain`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1NoKeychain`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1NoKeychainRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractJsonObjectV1Request** | [**InvokeContractJsonObjectV1Request**](InvokeContractJsonObjectV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeRawWeb3EthContractV1 + +> InvokeRawWeb3EthContractV1Response InvokeRawWeb3EthContractV1(ctx).InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request).Execute() + +Low-level endpoint to invoke a method on deployed contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeRawWeb3EthContractV1Request := *openapiclient.NewInvokeRawWeb3EthContractV1Request([]interface{}{nil}, "Address_example", openapiclient.EthContractInvocationWeb3Method("send"), "ContractMethod_example") // InvokeRawWeb3EthContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeRawWeb3EthContractV1(context.Background()).InvokeRawWeb3EthContractV1Request(invokeRawWeb3EthContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeRawWeb3EthContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeRawWeb3EthContractV1`: InvokeRawWeb3EthContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeRawWeb3EthContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeRawWeb3EthContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeRawWeb3EthContractV1Request** | [**InvokeRawWeb3EthContractV1Request**](InvokeRawWeb3EthContractV1Request.md) | | + +### Return type + +[**InvokeRawWeb3EthContractV1Response**](InvokeRawWeb3EthContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeWeb3EthMethodV1 + +> InvokeRawWeb3EthMethodV1Response InvokeWeb3EthMethodV1(ctx).InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request).Execute() + +Invoke any method from web3.eth (low-level) + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeRawWeb3EthMethodV1Request := *openapiclient.NewInvokeRawWeb3EthMethodV1Request("MethodName_example") // InvokeRawWeb3EthMethodV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeWeb3EthMethodV1(context.Background()).InvokeRawWeb3EthMethodV1Request(invokeRawWeb3EthMethodV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeWeb3EthMethodV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeWeb3EthMethodV1`: InvokeRawWeb3EthMethodV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeWeb3EthMethodV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeWeb3EthMethodV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeRawWeb3EthMethodV1Request** | [**InvokeRawWeb3EthMethodV1Request**](InvokeRawWeb3EthMethodV1Request.md) | | + +### Return type + +[**InvokeRawWeb3EthMethodV1Response**](InvokeRawWeb3EthMethodV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionResponse RunTransactionV1(ctx).RunTransactionRequest(runTransactionRequest).Execute() + +Executes a transaction on a quorum ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionRequest := *openapiclient.NewRunTransactionRequest(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example")}, *openapiclient.NewQuorumTransactionConfig()) // RunTransactionRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionRequest(runTransactionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionRequest** | [**RunTransactionRequest**](RunTransactionRequest.md) | | + +### Return type + +[**RunTransactionResponse**](RunTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md new file mode 100644 index 00000000000..030bfd0756d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeJsonObjectV1Request.md @@ -0,0 +1,176 @@ +# DeployContractSolidityBytecodeJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | +**ConstructorArgs** | Pointer to **[]interface{}** | The list of arguments to pass in to the constructor of the contract being deployed. | [optional] [default to []] + +## Methods + +### NewDeployContractSolidityBytecodeJsonObjectV1Request + +`func NewDeployContractSolidityBytecodeJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON, ) *DeployContractSolidityBytecodeJsonObjectV1Request` + +NewDeployContractSolidityBytecodeJsonObjectV1Request instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults + +`func NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults() *DeployContractSolidityBytecodeJsonObjectV1Request` + +NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md new file mode 100644 index 00000000000..fd96a3fa1aa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Request.md @@ -0,0 +1,353 @@ +# DeployContractSolidityBytecodeV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name for retrieve the contracts json on the keychain. | +**ContractAbi** | Pointer to **[]interface{}** | The application binary interface of the solidity contract | [optional] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Bytecode** | Pointer to **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | [optional] +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **float32** | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Value** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**ContractJSON** | Pointer to **map[string]interface{}** | For use when not using keychain, pass the contract in as this variable | [optional] +**ConstructorArgs** | Pointer to **[]interface{}** | The list of arguments to pass in to the constructor of the contract being deployed. | [optional] [default to []] +**PrivateTransactionConfig** | Pointer to [**QuorumPrivateTransactionConfig**](QuorumPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewDeployContractSolidityBytecodeV1Request + +`func NewDeployContractSolidityBytecodeV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string, ) *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1RequestWithDefaults + +`func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request` + +NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{}` + +GetContractAbi returns the ContractAbi field if non-nil, zero value otherwise. + +### GetContractAbiOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() (*[]interface{}, bool)` + +GetContractAbiOk returns a tuple with the ContractAbi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{})` + +SetContractAbi sets ContractAbi field to given value. + +### HasContractAbi + +`func (o *DeployContractSolidityBytecodeV1Request) HasContractAbi() bool` + +HasContractAbi returns a boolean if a field has been set. + +### GetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *DeployContractSolidityBytecodeV1Request) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() float32` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*float32, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v float32)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *DeployContractSolidityBytecodeV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *DeployContractSolidityBytecodeV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *DeployContractSolidityBytecodeV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetValue + +`func (o *DeployContractSolidityBytecodeV1Request) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeployContractSolidityBytecodeV1Request) SetValue(v float32)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeployContractSolidityBytecodeV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractJSON() map[string]interface{}` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetContractJSONOk() (*map[string]interface{}, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) SetContractJSON(v map[string]interface{})` + +SetContractJSON sets ContractJSON field to given value. + +### HasContractJSON + +`func (o *DeployContractSolidityBytecodeV1Request) HasContractJSON() bool` + +HasContractJSON returns a boolean if a field has been set. + +### GetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractSolidityBytecodeV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + +### GetPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *DeployContractSolidityBytecodeV1Request) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md new file mode 100644 index 00000000000..6bbfeb00528 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/DeployContractSolidityBytecodeV1Response.md @@ -0,0 +1,51 @@ +# DeployContractSolidityBytecodeV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewDeployContractSolidityBytecodeV1Response + +`func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt, ) *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractSolidityBytecodeV1ResponseWithDefaults + +`func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response` + +NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md new file mode 100644 index 00000000000..6345c6e4cb7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md @@ -0,0 +1,13 @@ +# EthContractInvocationType + +## Enum + + +* `SEND` (value: `"SEND"`) + +* `CALL` (value: `"CALL"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md new file mode 100644 index 00000000000..cec3e3ea19c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/EthContractInvocationWeb3Method.md @@ -0,0 +1,17 @@ +# EthContractInvocationWeb3Method + +## Enum + + +* `SEND` (value: `"send"`) + +* `CALL` (value: `"call"`) + +* `ENCODE_ABI` (value: `"encodeABI"`) + +* `ESTIMATE_GAS` (value: `"estimateGas"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md new file mode 100644 index 00000000000..0123395e212 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md @@ -0,0 +1,312 @@ +# InvokeContractJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**ContractAddress** | **string** | Address of the solidity contract | +**Value** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | +**PrivateTransactionConfig** | Pointer to [**QuorumPrivateTransactionConfig**](QuorumPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewInvokeContractJsonObjectV1Request + +`func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON, ) *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractJsonObjectV1RequestWithDefaults + +`func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractJsonObjectV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractJsonObjectV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetValue + +`func (o *InvokeContractJsonObjectV1Request) GetValue() QuorumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*QuorumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractJsonObjectV1Request) SetValue(v QuorumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractJsonObjectV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractJsonObjectV1Request) GetGas() QuorumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractJsonObjectV1Request) SetGas(v QuorumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) GetGasPrice() QuorumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v QuorumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractJsonObjectV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractJsonObjectV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + +### GetPrivateTransactionConfig + +`func (o *InvokeContractJsonObjectV1Request) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *InvokeContractJsonObjectV1Request) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *InvokeContractJsonObjectV1Request) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *InvokeContractJsonObjectV1Request) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md new file mode 100644 index 00000000000..658087b4220 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md @@ -0,0 +1,286 @@ +# InvokeContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name to find it in the keychain plugin | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**Value** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | + +## Methods + +### NewInvokeContractV1Request + +`func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string, ) *InvokeContractV1Request` + +NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1RequestWithDefaults + +`func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request` + +NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *InvokeContractV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *InvokeContractV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetWeb3SigningCredential + +`func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetValue + +`func (o *InvokeContractV1Request) GetValue() QuorumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractV1Request) GetValueOk() (*QuorumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractV1Request) SetValue(v QuorumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractV1Request) GetGas() QuorumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractV1Request) GetGasOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractV1Request) SetGas(v QuorumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractV1Request) GetGasPrice() QuorumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractV1Request) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractV1Request) SetGasPrice(v QuorumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *InvokeContractV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InvokeContractV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md new file mode 100644 index 00000000000..4e5a1e6ab2c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Request.md @@ -0,0 +1,166 @@ +# InvokeRawWeb3EthContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Abi** | **[]interface{}** | The application binary interface of the solidity contract | +**Address** | **string** | Deployed solidity contract address | +**InvocationType** | [**EthContractInvocationWeb3Method**](EthContractInvocationWeb3Method.md) | | +**InvocationParams** | Pointer to **map[string]interface{}** | The list of arguments for contract invocation method (send, call, etc...) | [optional] [default to {}] +**ContractMethod** | **string** | Method of deployed solidity contract to execute | +**ContractMethodArgs** | Pointer to **[]interface{}** | The list of arguments for deployed solidity contract method | [optional] [default to []] + +## Methods + +### NewInvokeRawWeb3EthContractV1Request + +`func NewInvokeRawWeb3EthContractV1Request(abi []interface{}, address string, invocationType EthContractInvocationWeb3Method, contractMethod string, ) *InvokeRawWeb3EthContractV1Request` + +NewInvokeRawWeb3EthContractV1Request instantiates a new InvokeRawWeb3EthContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthContractV1RequestWithDefaults + +`func NewInvokeRawWeb3EthContractV1RequestWithDefaults() *InvokeRawWeb3EthContractV1Request` + +NewInvokeRawWeb3EthContractV1RequestWithDefaults instantiates a new InvokeRawWeb3EthContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbi + +`func (o *InvokeRawWeb3EthContractV1Request) GetAbi() []interface{}` + +GetAbi returns the Abi field if non-nil, zero value otherwise. + +### GetAbiOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetAbiOk() (*[]interface{}, bool)` + +GetAbiOk returns a tuple with the Abi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbi + +`func (o *InvokeRawWeb3EthContractV1Request) SetAbi(v []interface{})` + +SetAbi sets Abi field to given value. + + +### GetAddress + +`func (o *InvokeRawWeb3EthContractV1Request) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *InvokeRawWeb3EthContractV1Request) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetInvocationType + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationType() EthContractInvocationWeb3Method` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationTypeOk() (*EthContractInvocationWeb3Method, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeRawWeb3EthContractV1Request) SetInvocationType(v EthContractInvocationWeb3Method)` + +SetInvocationType sets InvocationType field to given value. + + +### GetInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParams() map[string]interface{}` + +GetInvocationParams returns the InvocationParams field if non-nil, zero value otherwise. + +### GetInvocationParamsOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParamsOk() (*map[string]interface{}, bool)` + +GetInvocationParamsOk returns a tuple with the InvocationParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) SetInvocationParams(v map[string]interface{})` + +SetInvocationParams sets InvocationParams field to given value. + +### HasInvocationParams + +`func (o *InvokeRawWeb3EthContractV1Request) HasInvocationParams() bool` + +HasInvocationParams returns a boolean if a field has been set. + +### GetContractMethod + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethod() string` + +GetContractMethod returns the ContractMethod field if non-nil, zero value otherwise. + +### GetContractMethodOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodOk() (*string, bool)` + +GetContractMethodOk returns a tuple with the ContractMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractMethod + +`func (o *InvokeRawWeb3EthContractV1Request) SetContractMethod(v string)` + +SetContractMethod sets ContractMethod field to given value. + + +### GetContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgs() []interface{}` + +GetContractMethodArgs returns the ContractMethodArgs field if non-nil, zero value otherwise. + +### GetContractMethodArgsOk + +`func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgsOk() (*[]interface{}, bool)` + +GetContractMethodArgsOk returns a tuple with the ContractMethodArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) SetContractMethodArgs(v []interface{})` + +SetContractMethodArgs sets ContractMethodArgs field to given value. + +### HasContractMethodArgs + +`func (o *InvokeRawWeb3EthContractV1Request) HasContractMethodArgs() bool` + +HasContractMethodArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md new file mode 100644 index 00000000000..1cbd8a66d71 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeRawWeb3EthContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **float32** | Status code of the operation | +**Data** | Pointer to **interface{}** | Output of contract invocation method | [optional] +**ErrorDetail** | Pointer to **string** | Error details | [optional] + +## Methods + +### NewInvokeRawWeb3EthContractV1Response + +`func NewInvokeRawWeb3EthContractV1Response(status float32, ) *InvokeRawWeb3EthContractV1Response` + +NewInvokeRawWeb3EthContractV1Response instantiates a new InvokeRawWeb3EthContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthContractV1ResponseWithDefaults + +`func NewInvokeRawWeb3EthContractV1ResponseWithDefaults() *InvokeRawWeb3EthContractV1Response` + +NewInvokeRawWeb3EthContractV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *InvokeRawWeb3EthContractV1Response) GetStatus() float32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetStatusOk() (*float32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InvokeRawWeb3EthContractV1Response) SetStatus(v float32)` + +SetStatus sets Status field to given value. + + +### GetData + +`func (o *InvokeRawWeb3EthContractV1Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InvokeRawWeb3EthContractV1Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *InvokeRawWeb3EthContractV1Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *InvokeRawWeb3EthContractV1Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *InvokeRawWeb3EthContractV1Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetail() string` + +GetErrorDetail returns the ErrorDetail field if non-nil, zero value otherwise. + +### GetErrorDetailOk + +`func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetailOk() (*string, bool)` + +GetErrorDetailOk returns a tuple with the ErrorDetail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) SetErrorDetail(v string)` + +SetErrorDetail sets ErrorDetail field to given value. + +### HasErrorDetail + +`func (o *InvokeRawWeb3EthContractV1Response) HasErrorDetail() bool` + +HasErrorDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md new file mode 100644 index 00000000000..7c704a4b479 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Request.md @@ -0,0 +1,77 @@ +# InvokeRawWeb3EthMethodV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MethodName** | **string** | The name of the web3.eth method to invoke | +**Params** | Pointer to **[]interface{}** | The list of arguments to pass to web3.eth method specified in methodName | [optional] [default to []] + +## Methods + +### NewInvokeRawWeb3EthMethodV1Request + +`func NewInvokeRawWeb3EthMethodV1Request(methodName string, ) *InvokeRawWeb3EthMethodV1Request` + +NewInvokeRawWeb3EthMethodV1Request instantiates a new InvokeRawWeb3EthMethodV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthMethodV1RequestWithDefaults + +`func NewInvokeRawWeb3EthMethodV1RequestWithDefaults() *InvokeRawWeb3EthMethodV1Request` + +NewInvokeRawWeb3EthMethodV1RequestWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMethodName + +`func (o *InvokeRawWeb3EthMethodV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeRawWeb3EthMethodV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeRawWeb3EthMethodV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeRawWeb3EthMethodV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeRawWeb3EthMethodV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeRawWeb3EthMethodV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *InvokeRawWeb3EthMethodV1Request) HasParams() bool` + +HasParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md new file mode 100644 index 00000000000..65d229cdea7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/InvokeRawWeb3EthMethodV1Response.md @@ -0,0 +1,113 @@ +# InvokeRawWeb3EthMethodV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **float32** | Status code of the operation | +**Data** | Pointer to **interface{}** | Output of requested web3.eth method | [optional] +**ErrorDetail** | Pointer to **string** | Error details | [optional] + +## Methods + +### NewInvokeRawWeb3EthMethodV1Response + +`func NewInvokeRawWeb3EthMethodV1Response(status float32, ) *InvokeRawWeb3EthMethodV1Response` + +NewInvokeRawWeb3EthMethodV1Response instantiates a new InvokeRawWeb3EthMethodV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRawWeb3EthMethodV1ResponseWithDefaults + +`func NewInvokeRawWeb3EthMethodV1ResponseWithDefaults() *InvokeRawWeb3EthMethodV1Response` + +NewInvokeRawWeb3EthMethodV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *InvokeRawWeb3EthMethodV1Response) GetStatus() float32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetStatusOk() (*float32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InvokeRawWeb3EthMethodV1Response) SetStatus(v float32)` + +SetStatus sets Status field to given value. + + +### GetData + +`func (o *InvokeRawWeb3EthMethodV1Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InvokeRawWeb3EthMethodV1Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *InvokeRawWeb3EthMethodV1Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *InvokeRawWeb3EthMethodV1Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *InvokeRawWeb3EthMethodV1Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetail() string` + +GetErrorDetail returns the ErrorDetail field if non-nil, zero value otherwise. + +### GetErrorDetailOk + +`func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetailOk() (*string, bool)` + +GetErrorDetailOk returns a tuple with the ErrorDetail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) SetErrorDetail(v string)` + +SetErrorDetail sets ErrorDetail field to given value. + +### HasErrorDetail + +`func (o *InvokeRawWeb3EthMethodV1Response) HasErrorDetail() bool` + +HasErrorDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumPrivateTransactionConfig.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumPrivateTransactionConfig.md new file mode 100644 index 00000000000..d19c3538760 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumPrivateTransactionConfig.md @@ -0,0 +1,207 @@ +# QuorumPrivateTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateFrom** | Pointer to **string** | | [optional] +**PrivateFor** | **[]interface{}** | | [default to []] +**IsPrivate** | Pointer to **bool** | | [optional] [default to false] +**GasPrice** | Pointer to **float32** | | [optional] +**GasLimit** | Pointer to **float32** | | [optional] +**PrivateKey** | Pointer to **string** | | [optional] +**PrivacyGroupId** | Pointer to **string** | | [optional] + +## Methods + +### NewQuorumPrivateTransactionConfig + +`func NewQuorumPrivateTransactionConfig(privateFor []interface{}, ) *QuorumPrivateTransactionConfig` + +NewQuorumPrivateTransactionConfig instantiates a new QuorumPrivateTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQuorumPrivateTransactionConfigWithDefaults + +`func NewQuorumPrivateTransactionConfigWithDefaults() *QuorumPrivateTransactionConfig` + +NewQuorumPrivateTransactionConfigWithDefaults instantiates a new QuorumPrivateTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateFrom + +`func (o *QuorumPrivateTransactionConfig) GetPrivateFrom() string` + +GetPrivateFrom returns the PrivateFrom field if non-nil, zero value otherwise. + +### GetPrivateFromOk + +`func (o *QuorumPrivateTransactionConfig) GetPrivateFromOk() (*string, bool)` + +GetPrivateFromOk returns a tuple with the PrivateFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateFrom + +`func (o *QuorumPrivateTransactionConfig) SetPrivateFrom(v string)` + +SetPrivateFrom sets PrivateFrom field to given value. + +### HasPrivateFrom + +`func (o *QuorumPrivateTransactionConfig) HasPrivateFrom() bool` + +HasPrivateFrom returns a boolean if a field has been set. + +### GetPrivateFor + +`func (o *QuorumPrivateTransactionConfig) GetPrivateFor() []interface{}` + +GetPrivateFor returns the PrivateFor field if non-nil, zero value otherwise. + +### GetPrivateForOk + +`func (o *QuorumPrivateTransactionConfig) GetPrivateForOk() (*[]interface{}, bool)` + +GetPrivateForOk returns a tuple with the PrivateFor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateFor + +`func (o *QuorumPrivateTransactionConfig) SetPrivateFor(v []interface{})` + +SetPrivateFor sets PrivateFor field to given value. + + +### GetIsPrivate + +`func (o *QuorumPrivateTransactionConfig) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *QuorumPrivateTransactionConfig) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *QuorumPrivateTransactionConfig) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *QuorumPrivateTransactionConfig) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *QuorumPrivateTransactionConfig) GetGasPrice() float32` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *QuorumPrivateTransactionConfig) GetGasPriceOk() (*float32, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *QuorumPrivateTransactionConfig) SetGasPrice(v float32)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *QuorumPrivateTransactionConfig) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetGasLimit + +`func (o *QuorumPrivateTransactionConfig) GetGasLimit() float32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *QuorumPrivateTransactionConfig) GetGasLimitOk() (*float32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *QuorumPrivateTransactionConfig) SetGasLimit(v float32)` + +SetGasLimit sets GasLimit field to given value. + +### HasGasLimit + +`func (o *QuorumPrivateTransactionConfig) HasGasLimit() bool` + +HasGasLimit returns a boolean if a field has been set. + +### GetPrivateKey + +`func (o *QuorumPrivateTransactionConfig) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *QuorumPrivateTransactionConfig) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *QuorumPrivateTransactionConfig) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *QuorumPrivateTransactionConfig) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetPrivacyGroupId + +`func (o *QuorumPrivateTransactionConfig) GetPrivacyGroupId() string` + +GetPrivacyGroupId returns the PrivacyGroupId field if non-nil, zero value otherwise. + +### GetPrivacyGroupIdOk + +`func (o *QuorumPrivateTransactionConfig) GetPrivacyGroupIdOk() (*string, bool)` + +GetPrivacyGroupIdOk returns a tuple with the PrivacyGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyGroupId + +`func (o *QuorumPrivateTransactionConfig) SetPrivacyGroupId(v string)` + +SetPrivacyGroupId sets PrivacyGroupId field to given value. + +### HasPrivacyGroupId + +`func (o *QuorumPrivateTransactionConfig) HasPrivacyGroupId() bool` + +HasPrivacyGroupId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfig.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfig.md new file mode 100644 index 00000000000..d95e0582db7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfig.md @@ -0,0 +1,238 @@ +# QuorumTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawTransaction** | Pointer to **string** | | [optional] +**From** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**To** | Pointer to [**QuorumTransactionConfigTo**](QuorumTransactionConfigTo.md) | | [optional] +**Value** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Data** | Pointer to [**QuorumTransactionConfigTo**](QuorumTransactionConfigTo.md) | | [optional] + +## Methods + +### NewQuorumTransactionConfig + +`func NewQuorumTransactionConfig() *QuorumTransactionConfig` + +NewQuorumTransactionConfig instantiates a new QuorumTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQuorumTransactionConfigWithDefaults + +`func NewQuorumTransactionConfigWithDefaults() *QuorumTransactionConfig` + +NewQuorumTransactionConfigWithDefaults instantiates a new QuorumTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRawTransaction + +`func (o *QuorumTransactionConfig) GetRawTransaction() string` + +GetRawTransaction returns the RawTransaction field if non-nil, zero value otherwise. + +### GetRawTransactionOk + +`func (o *QuorumTransactionConfig) GetRawTransactionOk() (*string, bool)` + +GetRawTransactionOk returns a tuple with the RawTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawTransaction + +`func (o *QuorumTransactionConfig) SetRawTransaction(v string)` + +SetRawTransaction sets RawTransaction field to given value. + +### HasRawTransaction + +`func (o *QuorumTransactionConfig) HasRawTransaction() bool` + +HasRawTransaction returns a boolean if a field has been set. + +### GetFrom + +`func (o *QuorumTransactionConfig) GetFrom() QuorumTransactionConfigFrom` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *QuorumTransactionConfig) GetFromOk() (*QuorumTransactionConfigFrom, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *QuorumTransactionConfig) SetFrom(v QuorumTransactionConfigFrom)` + +SetFrom sets From field to given value. + +### HasFrom + +`func (o *QuorumTransactionConfig) HasFrom() bool` + +HasFrom returns a boolean if a field has been set. + +### GetTo + +`func (o *QuorumTransactionConfig) GetTo() QuorumTransactionConfigTo` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *QuorumTransactionConfig) GetToOk() (*QuorumTransactionConfigTo, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *QuorumTransactionConfig) SetTo(v QuorumTransactionConfigTo)` + +SetTo sets To field to given value. + +### HasTo + +`func (o *QuorumTransactionConfig) HasTo() bool` + +HasTo returns a boolean if a field has been set. + +### GetValue + +`func (o *QuorumTransactionConfig) GetValue() QuorumTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *QuorumTransactionConfig) GetValueOk() (*QuorumTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *QuorumTransactionConfig) SetValue(v QuorumTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *QuorumTransactionConfig) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *QuorumTransactionConfig) GetGas() QuorumTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *QuorumTransactionConfig) GetGasOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *QuorumTransactionConfig) SetGas(v QuorumTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *QuorumTransactionConfig) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *QuorumTransactionConfig) GetGasPrice() QuorumTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *QuorumTransactionConfig) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *QuorumTransactionConfig) SetGasPrice(v QuorumTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *QuorumTransactionConfig) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *QuorumTransactionConfig) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *QuorumTransactionConfig) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *QuorumTransactionConfig) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *QuorumTransactionConfig) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetData + +`func (o *QuorumTransactionConfig) GetData() QuorumTransactionConfigTo` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *QuorumTransactionConfig) GetDataOk() (*QuorumTransactionConfigTo, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *QuorumTransactionConfig) SetData(v QuorumTransactionConfigTo)` + +SetData sets Data field to given value. + +### HasData + +`func (o *QuorumTransactionConfig) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigFrom.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigFrom.md new file mode 100644 index 00000000000..b2c7528f068 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigFrom.md @@ -0,0 +1,30 @@ +# QuorumTransactionConfigFrom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewQuorumTransactionConfigFrom + +`func NewQuorumTransactionConfigFrom() *QuorumTransactionConfigFrom` + +NewQuorumTransactionConfigFrom instantiates a new QuorumTransactionConfigFrom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQuorumTransactionConfigFromWithDefaults + +`func NewQuorumTransactionConfigFromWithDefaults() *QuorumTransactionConfigFrom` + +NewQuorumTransactionConfigFromWithDefaults instantiates a new QuorumTransactionConfigFrom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigTo.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigTo.md new file mode 100644 index 00000000000..d06124c781d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/QuorumTransactionConfigTo.md @@ -0,0 +1,30 @@ +# QuorumTransactionConfigTo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewQuorumTransactionConfigTo + +`func NewQuorumTransactionConfigTo() *QuorumTransactionConfigTo` + +NewQuorumTransactionConfigTo instantiates a new QuorumTransactionConfigTo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewQuorumTransactionConfigToWithDefaults + +`func NewQuorumTransactionConfigToWithDefaults() *QuorumTransactionConfigTo` + +NewQuorumTransactionConfigToWithDefaults instantiates a new QuorumTransactionConfigTo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md new file mode 100644 index 00000000000..a88a62d6262 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionRequest.md @@ -0,0 +1,124 @@ +# RunTransactionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**TransactionConfig** | [**QuorumTransactionConfig**](QuorumTransactionConfig.md) | | +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with thehash of the transaction(which indicates successful execution) beforegiving up and crashing. | [optional] [default to 60000] +**PrivateTransactionConfig** | Pointer to [**QuorumPrivateTransactionConfig**](QuorumPrivateTransactionConfig.md) | | [optional] + +## Methods + +### NewRunTransactionRequest + +`func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig QuorumTransactionConfig, ) *RunTransactionRequest` + +NewRunTransactionRequest instantiates a new RunTransactionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionRequestWithDefaults + +`func NewRunTransactionRequestWithDefaults() *RunTransactionRequest` + +NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetTransactionConfig + +`func (o *RunTransactionRequest) GetTransactionConfig() QuorumTransactionConfig` + +GetTransactionConfig returns the TransactionConfig field if non-nil, zero value otherwise. + +### GetTransactionConfigOk + +`func (o *RunTransactionRequest) GetTransactionConfigOk() (*QuorumTransactionConfig, bool)` + +GetTransactionConfigOk returns a tuple with the TransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionConfig + +`func (o *RunTransactionRequest) SetTransactionConfig(v QuorumTransactionConfig)` + +SetTransactionConfig sets TransactionConfig field to given value. + + +### GetTimeoutMs + +`func (o *RunTransactionRequest) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *RunTransactionRequest) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *RunTransactionRequest) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *RunTransactionRequest) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetPrivateTransactionConfig + +`func (o *RunTransactionRequest) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig` + +GetPrivateTransactionConfig returns the PrivateTransactionConfig field if non-nil, zero value otherwise. + +### GetPrivateTransactionConfigOk + +`func (o *RunTransactionRequest) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool)` + +GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateTransactionConfig + +`func (o *RunTransactionRequest) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig)` + +SetPrivateTransactionConfig sets PrivateTransactionConfig field to given value. + +### HasPrivateTransactionConfig + +`func (o *RunTransactionRequest) HasPrivateTransactionConfig() bool` + +HasPrivateTransactionConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md new file mode 100644 index 00000000000..3d96e8d596a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/RunTransactionResponse.md @@ -0,0 +1,51 @@ +# RunTransactionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionResponse + +`func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt, ) *RunTransactionResponse` + +NewRunTransactionResponse instantiates a new RunTransactionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionResponseWithDefaults + +`func NewRunTransactionResponseWithDefaults() *RunTransactionResponse` + +NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md new file mode 100644 index 00000000000..602f52bdc3e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md @@ -0,0 +1,285 @@ +# SolidityContractJsonArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Metadata** | Pointer to **string** | | [optional] +**Bytecode** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to [**SolidityContractJsonArtifactCompiler**](SolidityContractJsonArtifactCompiler.md) | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to [**SolidityContractJsonArtifactGasEstimates**](SolidityContractJsonArtifactGasEstimates.md) | | [optional] + +## Methods + +### NewSolidityContractJsonArtifact + +`func NewSolidityContractJsonArtifact(contractName string, ) *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactWithDefaults + +`func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *SolidityContractJsonArtifact) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *SolidityContractJsonArtifact) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetMetadata + +`func (o *SolidityContractJsonArtifact) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *SolidityContractJsonArtifact) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *SolidityContractJsonArtifact) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetBytecode + +`func (o *SolidityContractJsonArtifact) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *SolidityContractJsonArtifact) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *SolidityContractJsonArtifact) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *SolidityContractJsonArtifact) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *SolidityContractJsonArtifact) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *SolidityContractJsonArtifact) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *SolidityContractJsonArtifact) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *SolidityContractJsonArtifact) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *SolidityContractJsonArtifact) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler)` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *SolidityContractJsonArtifact) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates)` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *SolidityContractJsonArtifact) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md new file mode 100644 index 00000000000..28cebed22e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactCompiler + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactCompiler + +`func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactCompilerWithDefaults + +`func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SolidityContractJsonArtifactCompiler) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SolidityContractJsonArtifactCompiler) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SolidityContractJsonArtifactCompiler) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SolidityContractJsonArtifactCompiler) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md new file mode 100644 index 00000000000..f95a4cda04a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactGasEstimates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Creation** | Pointer to [**SolidityContractJsonArtifactGasEstimatesCreation**](SolidityContractJsonArtifactGasEstimatesCreation.md) | | [optional] +**External** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimates + +`func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation` + +GetCreation returns the Creation field if non-nil, zero value otherwise. + +### GetCreationOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool)` + +GetCreationOk returns a tuple with the Creation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation)` + +SetCreation sets Creation field to given value. + +### HasCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool` + +HasCreation returns a boolean if a field has been set. + +### GetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{}` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (*map[string]interface{}, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{})` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md new file mode 100644 index 00000000000..8f123dca41d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md @@ -0,0 +1,108 @@ +# SolidityContractJsonArtifactGasEstimatesCreation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeDepositCost** | Pointer to **string** | | [optional] +**ExecutionCost** | Pointer to **string** | | [optional] +**TotalCost** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimatesCreation + +`func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string` + +GetCodeDepositCost returns the CodeDepositCost field if non-nil, zero value otherwise. + +### GetCodeDepositCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool)` + +GetCodeDepositCostOk returns a tuple with the CodeDepositCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string)` + +SetCodeDepositCost sets CodeDepositCost field to given value. + +### HasCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool` + +HasCodeDepositCost returns a boolean if a field has been set. + +### GetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string` + +GetExecutionCost returns the ExecutionCost field if non-nil, zero value otherwise. + +### GetExecutionCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool)` + +GetExecutionCostOk returns a tuple with the ExecutionCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string)` + +SetExecutionCost sets ExecutionCost field to given value. + +### HasExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool` + +HasExecutionCost returns a boolean if a field has been set. + +### GetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string` + +GetTotalCost returns the TotalCost field if non-nil, zero value otherwise. + +### GetTotalCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool)` + +GetTotalCostOk returns a tuple with the TotalCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string)` + +SetTotalCost sets TotalCost field to given value. + +### HasTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool` + +HasTotalCost returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md new file mode 100644 index 00000000000..5a9d6a6fb1d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1.md @@ -0,0 +1,19 @@ +# WatchBlocksV1 + +## Enum + + +* `Subscribe` (value: `"org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Subscribe"`) + +* `Next` (value: `"org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Next"`) + +* `Unsubscribe` (value: `"org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Unsubscribe"`) + +* `Error` (value: `"org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Error"`) + +* `Complete` (value: `"org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Complete"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md new file mode 100644 index 00000000000..84bde135c38 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1BlockData.md @@ -0,0 +1,470 @@ +# WatchBlocksV1BlockData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **float32** | | +**Hash** | **string** | | +**ParentHash** | **string** | | +**Nonce** | **string** | | +**Sha3Uncles** | **string** | | +**LogsBloom** | **string** | | +**TransactionsRoot** | Pointer to **string** | | [optional] +**StateRoot** | **string** | | +**ReceiptsRoot** | Pointer to **string** | | [optional] +**Difficulty** | Pointer to **string** | | [optional] +**MixHash** | Pointer to **string** | | [optional] +**Miner** | **string** | | +**ExtraData** | **string** | | +**GasLimit** | **int32** | | +**GasUsed** | **int32** | | +**Timestamp** | [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | +**Size** | **float32** | | +**TotalDifficulty** | **string** | | +**Uncles** | **[]string** | | +**Transactions** | [**[]Web3Transaction**](Web3Transaction.md) | | + +## Methods + +### NewWatchBlocksV1BlockData + +`func NewWatchBlocksV1BlockData(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp QuorumTransactionConfigFrom, size float32, totalDifficulty string, uncles []string, transactions []Web3Transaction, ) *WatchBlocksV1BlockData` + +NewWatchBlocksV1BlockData instantiates a new WatchBlocksV1BlockData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1BlockDataWithDefaults + +`func NewWatchBlocksV1BlockDataWithDefaults() *WatchBlocksV1BlockData` + +NewWatchBlocksV1BlockDataWithDefaults instantiates a new WatchBlocksV1BlockData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *WatchBlocksV1BlockData) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *WatchBlocksV1BlockData) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *WatchBlocksV1BlockData) SetNumber(v float32)` + +SetNumber sets Number field to given value. + + +### GetHash + +`func (o *WatchBlocksV1BlockData) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *WatchBlocksV1BlockData) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *WatchBlocksV1BlockData) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetParentHash + +`func (o *WatchBlocksV1BlockData) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *WatchBlocksV1BlockData) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *WatchBlocksV1BlockData) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + + +### GetNonce + +`func (o *WatchBlocksV1BlockData) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *WatchBlocksV1BlockData) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *WatchBlocksV1BlockData) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + + +### GetSha3Uncles + +`func (o *WatchBlocksV1BlockData) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *WatchBlocksV1BlockData) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *WatchBlocksV1BlockData) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + + +### GetLogsBloom + +`func (o *WatchBlocksV1BlockData) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *WatchBlocksV1BlockData) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *WatchBlocksV1BlockData) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + + +### GetTransactionsRoot + +`func (o *WatchBlocksV1BlockData) GetTransactionsRoot() string` + +GetTransactionsRoot returns the TransactionsRoot field if non-nil, zero value otherwise. + +### GetTransactionsRootOk + +`func (o *WatchBlocksV1BlockData) GetTransactionsRootOk() (*string, bool)` + +GetTransactionsRootOk returns a tuple with the TransactionsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsRoot + +`func (o *WatchBlocksV1BlockData) SetTransactionsRoot(v string)` + +SetTransactionsRoot sets TransactionsRoot field to given value. + +### HasTransactionsRoot + +`func (o *WatchBlocksV1BlockData) HasTransactionsRoot() bool` + +HasTransactionsRoot returns a boolean if a field has been set. + +### GetStateRoot + +`func (o *WatchBlocksV1BlockData) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *WatchBlocksV1BlockData) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *WatchBlocksV1BlockData) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + + +### GetReceiptsRoot + +`func (o *WatchBlocksV1BlockData) GetReceiptsRoot() string` + +GetReceiptsRoot returns the ReceiptsRoot field if non-nil, zero value otherwise. + +### GetReceiptsRootOk + +`func (o *WatchBlocksV1BlockData) GetReceiptsRootOk() (*string, bool)` + +GetReceiptsRootOk returns a tuple with the ReceiptsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptsRoot + +`func (o *WatchBlocksV1BlockData) SetReceiptsRoot(v string)` + +SetReceiptsRoot sets ReceiptsRoot field to given value. + +### HasReceiptsRoot + +`func (o *WatchBlocksV1BlockData) HasReceiptsRoot() bool` + +HasReceiptsRoot returns a boolean if a field has been set. + +### GetDifficulty + +`func (o *WatchBlocksV1BlockData) GetDifficulty() string` + +GetDifficulty returns the Difficulty field if non-nil, zero value otherwise. + +### GetDifficultyOk + +`func (o *WatchBlocksV1BlockData) GetDifficultyOk() (*string, bool)` + +GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDifficulty + +`func (o *WatchBlocksV1BlockData) SetDifficulty(v string)` + +SetDifficulty sets Difficulty field to given value. + +### HasDifficulty + +`func (o *WatchBlocksV1BlockData) HasDifficulty() bool` + +HasDifficulty returns a boolean if a field has been set. + +### GetMixHash + +`func (o *WatchBlocksV1BlockData) GetMixHash() string` + +GetMixHash returns the MixHash field if non-nil, zero value otherwise. + +### GetMixHashOk + +`func (o *WatchBlocksV1BlockData) GetMixHashOk() (*string, bool)` + +GetMixHashOk returns a tuple with the MixHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMixHash + +`func (o *WatchBlocksV1BlockData) SetMixHash(v string)` + +SetMixHash sets MixHash field to given value. + +### HasMixHash + +`func (o *WatchBlocksV1BlockData) HasMixHash() bool` + +HasMixHash returns a boolean if a field has been set. + +### GetMiner + +`func (o *WatchBlocksV1BlockData) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *WatchBlocksV1BlockData) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *WatchBlocksV1BlockData) SetMiner(v string)` + +SetMiner sets Miner field to given value. + + +### GetExtraData + +`func (o *WatchBlocksV1BlockData) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *WatchBlocksV1BlockData) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *WatchBlocksV1BlockData) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + + +### GetGasLimit + +`func (o *WatchBlocksV1BlockData) GetGasLimit() int32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *WatchBlocksV1BlockData) GetGasLimitOk() (*int32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *WatchBlocksV1BlockData) SetGasLimit(v int32)` + +SetGasLimit sets GasLimit field to given value. + + +### GetGasUsed + +`func (o *WatchBlocksV1BlockData) GetGasUsed() int32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *WatchBlocksV1BlockData) GetGasUsedOk() (*int32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *WatchBlocksV1BlockData) SetGasUsed(v int32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetTimestamp + +`func (o *WatchBlocksV1BlockData) GetTimestamp() QuorumTransactionConfigFrom` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *WatchBlocksV1BlockData) GetTimestampOk() (*QuorumTransactionConfigFrom, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *WatchBlocksV1BlockData) SetTimestamp(v QuorumTransactionConfigFrom)` + +SetTimestamp sets Timestamp field to given value. + + +### GetSize + +`func (o *WatchBlocksV1BlockData) GetSize() float32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *WatchBlocksV1BlockData) GetSizeOk() (*float32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *WatchBlocksV1BlockData) SetSize(v float32)` + +SetSize sets Size field to given value. + + +### GetTotalDifficulty + +`func (o *WatchBlocksV1BlockData) GetTotalDifficulty() string` + +GetTotalDifficulty returns the TotalDifficulty field if non-nil, zero value otherwise. + +### GetTotalDifficultyOk + +`func (o *WatchBlocksV1BlockData) GetTotalDifficultyOk() (*string, bool)` + +GetTotalDifficultyOk returns a tuple with the TotalDifficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalDifficulty + +`func (o *WatchBlocksV1BlockData) SetTotalDifficulty(v string)` + +SetTotalDifficulty sets TotalDifficulty field to given value. + + +### GetUncles + +`func (o *WatchBlocksV1BlockData) GetUncles() []string` + +GetUncles returns the Uncles field if non-nil, zero value otherwise. + +### GetUnclesOk + +`func (o *WatchBlocksV1BlockData) GetUnclesOk() (*[]string, bool)` + +GetUnclesOk returns a tuple with the Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncles + +`func (o *WatchBlocksV1BlockData) SetUncles(v []string)` + +SetUncles sets Uncles field to given value. + + +### GetTransactions + +`func (o *WatchBlocksV1BlockData) GetTransactions() []Web3Transaction` + +GetTransactions returns the Transactions field if non-nil, zero value otherwise. + +### GetTransactionsOk + +`func (o *WatchBlocksV1BlockData) GetTransactionsOk() (*[]Web3Transaction, bool)` + +GetTransactionsOk returns a tuple with the Transactions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactions + +`func (o *WatchBlocksV1BlockData) SetTransactions(v []Web3Transaction)` + +SetTransactions sets Transactions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md new file mode 100644 index 00000000000..16db9cd547c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Options.md @@ -0,0 +1,56 @@ +# WatchBlocksV1Options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GetBlockData** | Pointer to **bool** | | [optional] + +## Methods + +### NewWatchBlocksV1Options + +`func NewWatchBlocksV1Options() *WatchBlocksV1Options` + +NewWatchBlocksV1Options instantiates a new WatchBlocksV1Options object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1OptionsWithDefaults + +`func NewWatchBlocksV1OptionsWithDefaults() *WatchBlocksV1Options` + +NewWatchBlocksV1OptionsWithDefaults instantiates a new WatchBlocksV1Options object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGetBlockData + +`func (o *WatchBlocksV1Options) GetGetBlockData() bool` + +GetGetBlockData returns the GetBlockData field if non-nil, zero value otherwise. + +### GetGetBlockDataOk + +`func (o *WatchBlocksV1Options) GetGetBlockDataOk() (*bool, bool)` + +GetGetBlockDataOk returns a tuple with the GetBlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetBlockData + +`func (o *WatchBlocksV1Options) SetGetBlockData(v bool)` + +SetGetBlockData sets GetBlockData field to given value. + +### HasGetBlockData + +`func (o *WatchBlocksV1Options) HasGetBlockData() bool` + +HasGetBlockData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md new file mode 100644 index 00000000000..4f66d456e78 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/WatchBlocksV1Progress.md @@ -0,0 +1,82 @@ +# WatchBlocksV1Progress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockHeader** | Pointer to [**Web3BlockHeader**](Web3BlockHeader.md) | | [optional] +**BlockData** | Pointer to [**WatchBlocksV1BlockData**](WatchBlocksV1BlockData.md) | | [optional] + +## Methods + +### NewWatchBlocksV1Progress + +`func NewWatchBlocksV1Progress() *WatchBlocksV1Progress` + +NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWatchBlocksV1ProgressWithDefaults + +`func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress` + +NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBlockHeader + +`func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader` + +GetBlockHeader returns the BlockHeader field if non-nil, zero value otherwise. + +### GetBlockHeaderOk + +`func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool)` + +GetBlockHeaderOk returns a tuple with the BlockHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHeader + +`func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader)` + +SetBlockHeader sets BlockHeader field to given value. + +### HasBlockHeader + +`func (o *WatchBlocksV1Progress) HasBlockHeader() bool` + +HasBlockHeader returns a boolean if a field has been set. + +### GetBlockData + +`func (o *WatchBlocksV1Progress) GetBlockData() WatchBlocksV1BlockData` + +GetBlockData returns the BlockData field if non-nil, zero value otherwise. + +### GetBlockDataOk + +`func (o *WatchBlocksV1Progress) GetBlockDataOk() (*WatchBlocksV1BlockData, bool)` + +GetBlockDataOk returns a tuple with the BlockData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockData + +`func (o *WatchBlocksV1Progress) SetBlockData(v WatchBlocksV1BlockData)` + +SetBlockData sets BlockData field to given value. + +### HasBlockData + +`func (o *WatchBlocksV1Progress) HasBlockData() bool` + +HasBlockData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md new file mode 100644 index 00000000000..dfd3f27f0ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3BlockHeader.md @@ -0,0 +1,386 @@ +# Web3BlockHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **float32** | | +**Hash** | **string** | | +**ParentHash** | **string** | | +**Nonce** | **string** | | +**Sha3Uncles** | **string** | | +**LogsBloom** | **string** | | +**TransactionsRoot** | Pointer to **string** | | [optional] +**StateRoot** | **string** | | +**ReceiptsRoot** | Pointer to **string** | | [optional] +**Difficulty** | Pointer to **string** | | [optional] +**MixHash** | Pointer to **string** | | [optional] +**Miner** | **string** | | +**ExtraData** | **string** | | +**GasLimit** | **int32** | | +**GasUsed** | **int32** | | +**Timestamp** | [**QuorumTransactionConfigFrom**](QuorumTransactionConfigFrom.md) | | + +## Methods + +### NewWeb3BlockHeader + +`func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp QuorumTransactionConfigFrom, ) *Web3BlockHeader` + +NewWeb3BlockHeader instantiates a new Web3BlockHeader object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3BlockHeaderWithDefaults + +`func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader` + +NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNumber + +`func (o *Web3BlockHeader) GetNumber() float32` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *Web3BlockHeader) GetNumberOk() (*float32, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *Web3BlockHeader) SetNumber(v float32)` + +SetNumber sets Number field to given value. + + +### GetHash + +`func (o *Web3BlockHeader) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *Web3BlockHeader) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *Web3BlockHeader) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetParentHash + +`func (o *Web3BlockHeader) GetParentHash() string` + +GetParentHash returns the ParentHash field if non-nil, zero value otherwise. + +### GetParentHashOk + +`func (o *Web3BlockHeader) GetParentHashOk() (*string, bool)` + +GetParentHashOk returns a tuple with the ParentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentHash + +`func (o *Web3BlockHeader) SetParentHash(v string)` + +SetParentHash sets ParentHash field to given value. + + +### GetNonce + +`func (o *Web3BlockHeader) GetNonce() string` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *Web3BlockHeader) GetNonceOk() (*string, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *Web3BlockHeader) SetNonce(v string)` + +SetNonce sets Nonce field to given value. + + +### GetSha3Uncles + +`func (o *Web3BlockHeader) GetSha3Uncles() string` + +GetSha3Uncles returns the Sha3Uncles field if non-nil, zero value otherwise. + +### GetSha3UnclesOk + +`func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool)` + +GetSha3UnclesOk returns a tuple with the Sha3Uncles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha3Uncles + +`func (o *Web3BlockHeader) SetSha3Uncles(v string)` + +SetSha3Uncles sets Sha3Uncles field to given value. + + +### GetLogsBloom + +`func (o *Web3BlockHeader) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *Web3BlockHeader) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + + +### GetTransactionsRoot + +`func (o *Web3BlockHeader) GetTransactionsRoot() string` + +GetTransactionsRoot returns the TransactionsRoot field if non-nil, zero value otherwise. + +### GetTransactionsRootOk + +`func (o *Web3BlockHeader) GetTransactionsRootOk() (*string, bool)` + +GetTransactionsRootOk returns a tuple with the TransactionsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionsRoot + +`func (o *Web3BlockHeader) SetTransactionsRoot(v string)` + +SetTransactionsRoot sets TransactionsRoot field to given value. + +### HasTransactionsRoot + +`func (o *Web3BlockHeader) HasTransactionsRoot() bool` + +HasTransactionsRoot returns a boolean if a field has been set. + +### GetStateRoot + +`func (o *Web3BlockHeader) GetStateRoot() string` + +GetStateRoot returns the StateRoot field if non-nil, zero value otherwise. + +### GetStateRootOk + +`func (o *Web3BlockHeader) GetStateRootOk() (*string, bool)` + +GetStateRootOk returns a tuple with the StateRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateRoot + +`func (o *Web3BlockHeader) SetStateRoot(v string)` + +SetStateRoot sets StateRoot field to given value. + + +### GetReceiptsRoot + +`func (o *Web3BlockHeader) GetReceiptsRoot() string` + +GetReceiptsRoot returns the ReceiptsRoot field if non-nil, zero value otherwise. + +### GetReceiptsRootOk + +`func (o *Web3BlockHeader) GetReceiptsRootOk() (*string, bool)` + +GetReceiptsRootOk returns a tuple with the ReceiptsRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptsRoot + +`func (o *Web3BlockHeader) SetReceiptsRoot(v string)` + +SetReceiptsRoot sets ReceiptsRoot field to given value. + +### HasReceiptsRoot + +`func (o *Web3BlockHeader) HasReceiptsRoot() bool` + +HasReceiptsRoot returns a boolean if a field has been set. + +### GetDifficulty + +`func (o *Web3BlockHeader) GetDifficulty() string` + +GetDifficulty returns the Difficulty field if non-nil, zero value otherwise. + +### GetDifficultyOk + +`func (o *Web3BlockHeader) GetDifficultyOk() (*string, bool)` + +GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDifficulty + +`func (o *Web3BlockHeader) SetDifficulty(v string)` + +SetDifficulty sets Difficulty field to given value. + +### HasDifficulty + +`func (o *Web3BlockHeader) HasDifficulty() bool` + +HasDifficulty returns a boolean if a field has been set. + +### GetMixHash + +`func (o *Web3BlockHeader) GetMixHash() string` + +GetMixHash returns the MixHash field if non-nil, zero value otherwise. + +### GetMixHashOk + +`func (o *Web3BlockHeader) GetMixHashOk() (*string, bool)` + +GetMixHashOk returns a tuple with the MixHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMixHash + +`func (o *Web3BlockHeader) SetMixHash(v string)` + +SetMixHash sets MixHash field to given value. + +### HasMixHash + +`func (o *Web3BlockHeader) HasMixHash() bool` + +HasMixHash returns a boolean if a field has been set. + +### GetMiner + +`func (o *Web3BlockHeader) GetMiner() string` + +GetMiner returns the Miner field if non-nil, zero value otherwise. + +### GetMinerOk + +`func (o *Web3BlockHeader) GetMinerOk() (*string, bool)` + +GetMinerOk returns a tuple with the Miner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiner + +`func (o *Web3BlockHeader) SetMiner(v string)` + +SetMiner sets Miner field to given value. + + +### GetExtraData + +`func (o *Web3BlockHeader) GetExtraData() string` + +GetExtraData returns the ExtraData field if non-nil, zero value otherwise. + +### GetExtraDataOk + +`func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool)` + +GetExtraDataOk returns a tuple with the ExtraData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraData + +`func (o *Web3BlockHeader) SetExtraData(v string)` + +SetExtraData sets ExtraData field to given value. + + +### GetGasLimit + +`func (o *Web3BlockHeader) GetGasLimit() int32` + +GetGasLimit returns the GasLimit field if non-nil, zero value otherwise. + +### GetGasLimitOk + +`func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool)` + +GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasLimit + +`func (o *Web3BlockHeader) SetGasLimit(v int32)` + +SetGasLimit sets GasLimit field to given value. + + +### GetGasUsed + +`func (o *Web3BlockHeader) GetGasUsed() int32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3BlockHeader) SetGasUsed(v int32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetTimestamp + +`func (o *Web3BlockHeader) GetTimestamp() QuorumTransactionConfigFrom` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *Web3BlockHeader) GetTimestampOk() (*QuorumTransactionConfigFrom, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *Web3BlockHeader) SetTimestamp(v QuorumTransactionConfigFrom)` + +SetTimestamp sets Timestamp field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..4f29ea99500 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,140 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | Pointer to **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | [optional] + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, secret string, keychainEntryKey string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + +### HasKeychainId + +`func (o *Web3SigningCredential) HasKeychainId() bool` + +HasKeychainId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..f6cc97d8174 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,119 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | Pointer to **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | [optional] + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + +### HasKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) HasKeychainId() bool` + +HasKeychainId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md new file mode 100644 index 00000000000..2d30a8949d5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialGethKeychainPassword.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialGethKeychainPassword + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | A geth keychain unlock password. | + +## Methods + +### NewWeb3SigningCredentialGethKeychainPassword + +`func NewWeb3SigningCredentialGethKeychainPassword(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialGethKeychainPassword` + +NewWeb3SigningCredentialGethKeychainPassword instantiates a new Web3SigningCredentialGethKeychainPassword object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialGethKeychainPasswordWithDefaults + +`func NewWeb3SigningCredentialGethKeychainPasswordWithDefaults() *Web3SigningCredentialGethKeychainPassword` + +NewWeb3SigningCredentialGethKeychainPasswordWithDefaults instantiates a new Web3SigningCredentialGethKeychainPassword object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialGethKeychainPassword) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialGethKeychainPassword) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialGethKeychainPassword) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialGethKeychainPassword) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialGethKeychainPassword) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialGethKeychainPassword) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md new file mode 100644 index 00000000000..3a7a3f4b3ce --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3Transaction.md @@ -0,0 +1,379 @@ +# Web3Transaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hash** | **string** | | +**Nonce** | **float32** | | +**BlockHash** | **NullableString** | | +**BlockNumber** | **NullableFloat32** | | +**TransactionIndex** | **NullableFloat32** | | +**From** | **string** | | +**To** | **NullableString** | | +**Value** | **string** | | +**GasPrice** | **string** | | +**Gas** | **float32** | | +**Input** | **string** | | +**V** | Pointer to **string** | | [optional] +**R** | Pointer to **string** | | [optional] +**S** | Pointer to **string** | | [optional] + +## Methods + +### NewWeb3Transaction + +`func NewWeb3Transaction(hash string, nonce float32, blockHash NullableString, blockNumber NullableFloat32, transactionIndex NullableFloat32, from string, to NullableString, value string, gasPrice string, gas float32, input string, ) *Web3Transaction` + +NewWeb3Transaction instantiates a new Web3Transaction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionWithDefaults + +`func NewWeb3TransactionWithDefaults() *Web3Transaction` + +NewWeb3TransactionWithDefaults instantiates a new Web3Transaction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHash + +`func (o *Web3Transaction) GetHash() string` + +GetHash returns the Hash field if non-nil, zero value otherwise. + +### GetHashOk + +`func (o *Web3Transaction) GetHashOk() (*string, bool)` + +GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHash + +`func (o *Web3Transaction) SetHash(v string)` + +SetHash sets Hash field to given value. + + +### GetNonce + +`func (o *Web3Transaction) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *Web3Transaction) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *Web3Transaction) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + + +### GetBlockHash + +`func (o *Web3Transaction) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3Transaction) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3Transaction) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### SetBlockHashNil + +`func (o *Web3Transaction) SetBlockHashNil(b bool)` + + SetBlockHashNil sets the value for BlockHash to be an explicit nil + +### UnsetBlockHash +`func (o *Web3Transaction) UnsetBlockHash()` + +UnsetBlockHash ensures that no value is present for BlockHash, not even an explicit nil +### GetBlockNumber + +`func (o *Web3Transaction) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3Transaction) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3Transaction) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### SetBlockNumberNil + +`func (o *Web3Transaction) SetBlockNumberNil(b bool)` + + SetBlockNumberNil sets the value for BlockNumber to be an explicit nil + +### UnsetBlockNumber +`func (o *Web3Transaction) UnsetBlockNumber()` + +UnsetBlockNumber ensures that no value is present for BlockNumber, not even an explicit nil +### GetTransactionIndex + +`func (o *Web3Transaction) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3Transaction) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3Transaction) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### SetTransactionIndexNil + +`func (o *Web3Transaction) SetTransactionIndexNil(b bool)` + + SetTransactionIndexNil sets the value for TransactionIndex to be an explicit nil + +### UnsetTransactionIndex +`func (o *Web3Transaction) UnsetTransactionIndex()` + +UnsetTransactionIndex ensures that no value is present for TransactionIndex, not even an explicit nil +### GetFrom + +`func (o *Web3Transaction) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3Transaction) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3Transaction) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3Transaction) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3Transaction) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3Transaction) SetTo(v string)` + +SetTo sets To field to given value. + + +### SetToNil + +`func (o *Web3Transaction) SetToNil(b bool)` + + SetToNil sets the value for To to be an explicit nil + +### UnsetTo +`func (o *Web3Transaction) UnsetTo()` + +UnsetTo ensures that no value is present for To, not even an explicit nil +### GetValue + +`func (o *Web3Transaction) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Web3Transaction) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Web3Transaction) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetGasPrice + +`func (o *Web3Transaction) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *Web3Transaction) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *Web3Transaction) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + + +### GetGas + +`func (o *Web3Transaction) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *Web3Transaction) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *Web3Transaction) SetGas(v float32)` + +SetGas sets Gas field to given value. + + +### GetInput + +`func (o *Web3Transaction) GetInput() string` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *Web3Transaction) GetInputOk() (*string, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *Web3Transaction) SetInput(v string)` + +SetInput sets Input field to given value. + + +### GetV + +`func (o *Web3Transaction) GetV() string` + +GetV returns the V field if non-nil, zero value otherwise. + +### GetVOk + +`func (o *Web3Transaction) GetVOk() (*string, bool)` + +GetVOk returns a tuple with the V field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetV + +`func (o *Web3Transaction) SetV(v string)` + +SetV sets V field to given value. + +### HasV + +`func (o *Web3Transaction) HasV() bool` + +HasV returns a boolean if a field has been set. + +### GetR + +`func (o *Web3Transaction) GetR() string` + +GetR returns the R field if non-nil, zero value otherwise. + +### GetROk + +`func (o *Web3Transaction) GetROk() (*string, bool)` + +GetROk returns a tuple with the R field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetR + +`func (o *Web3Transaction) SetR(v string)` + +SetR sets R field to given value. + +### HasR + +`func (o *Web3Transaction) HasR() bool` + +HasR returns a boolean if a field has been set. + +### GetS + +`func (o *Web3Transaction) GetS() string` + +GetS returns the S field if non-nil, zero value otherwise. + +### GetSOk + +`func (o *Web3Transaction) GetSOk() (*string, bool)` + +GetSOk returns a tuple with the S field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS + +`func (o *Web3Transaction) SetS(v string)` + +SetS sets S field to given value. + +### HasS + +`func (o *Web3Transaction) HasS() bool` + +HasS returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..bb631c46a96 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,390 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | +**Logs** | Pointer to **[]interface{}** | | [optional] [default to []] +**LogsBloom** | Pointer to **string** | | [optional] +**RevertReason** | Pointer to **string** | | [optional] +**Output** | Pointer to **string** | | [optional] +**CommitmentHash** | Pointer to **string** | | [optional] +**CumulativeGasUSed** | Pointer to **float32** | | [optional] + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + +### GetLogs + +`func (o *Web3TransactionReceipt) GetLogs() []interface{}` + +GetLogs returns the Logs field if non-nil, zero value otherwise. + +### GetLogsOk + +`func (o *Web3TransactionReceipt) GetLogsOk() (*[]interface{}, bool)` + +GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogs + +`func (o *Web3TransactionReceipt) SetLogs(v []interface{})` + +SetLogs sets Logs field to given value. + +### HasLogs + +`func (o *Web3TransactionReceipt) HasLogs() bool` + +HasLogs returns a boolean if a field has been set. + +### GetLogsBloom + +`func (o *Web3TransactionReceipt) GetLogsBloom() string` + +GetLogsBloom returns the LogsBloom field if non-nil, zero value otherwise. + +### GetLogsBloomOk + +`func (o *Web3TransactionReceipt) GetLogsBloomOk() (*string, bool)` + +GetLogsBloomOk returns a tuple with the LogsBloom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogsBloom + +`func (o *Web3TransactionReceipt) SetLogsBloom(v string)` + +SetLogsBloom sets LogsBloom field to given value. + +### HasLogsBloom + +`func (o *Web3TransactionReceipt) HasLogsBloom() bool` + +HasLogsBloom returns a boolean if a field has been set. + +### GetRevertReason + +`func (o *Web3TransactionReceipt) GetRevertReason() string` + +GetRevertReason returns the RevertReason field if non-nil, zero value otherwise. + +### GetRevertReasonOk + +`func (o *Web3TransactionReceipt) GetRevertReasonOk() (*string, bool)` + +GetRevertReasonOk returns a tuple with the RevertReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevertReason + +`func (o *Web3TransactionReceipt) SetRevertReason(v string)` + +SetRevertReason sets RevertReason field to given value. + +### HasRevertReason + +`func (o *Web3TransactionReceipt) HasRevertReason() bool` + +HasRevertReason returns a boolean if a field has been set. + +### GetOutput + +`func (o *Web3TransactionReceipt) GetOutput() string` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *Web3TransactionReceipt) GetOutputOk() (*string, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *Web3TransactionReceipt) SetOutput(v string)` + +SetOutput sets Output field to given value. + +### HasOutput + +`func (o *Web3TransactionReceipt) HasOutput() bool` + +HasOutput returns a boolean if a field has been set. + +### GetCommitmentHash + +`func (o *Web3TransactionReceipt) GetCommitmentHash() string` + +GetCommitmentHash returns the CommitmentHash field if non-nil, zero value otherwise. + +### GetCommitmentHashOk + +`func (o *Web3TransactionReceipt) GetCommitmentHashOk() (*string, bool)` + +GetCommitmentHashOk returns a tuple with the CommitmentHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitmentHash + +`func (o *Web3TransactionReceipt) SetCommitmentHash(v string)` + +SetCommitmentHash sets CommitmentHash field to given value. + +### HasCommitmentHash + +`func (o *Web3TransactionReceipt) HasCommitmentHash() bool` + +HasCommitmentHash returns a boolean if a field has been set. + +### GetCumulativeGasUSed + +`func (o *Web3TransactionReceipt) GetCumulativeGasUSed() float32` + +GetCumulativeGasUSed returns the CumulativeGasUSed field if non-nil, zero value otherwise. + +### GetCumulativeGasUSedOk + +`func (o *Web3TransactionReceipt) GetCumulativeGasUSedOk() (*float32, bool)` + +GetCumulativeGasUSedOk returns a tuple with the CumulativeGasUSed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCumulativeGasUSed + +`func (o *Web3TransactionReceipt) SetCumulativeGasUSed(v float32)` + +SetCumulativeGasUSed sets CumulativeGasUSed field to given value. + +### HasCumulativeGasUSed + +`func (o *Web3TransactionReceipt) HasCumulativeGasUSed() bool` + +HasCumulativeGasUSed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..e7cc0cd4c79 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..f6fbe8e277f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_contract_json.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_contract_json.go new file mode 100644 index 00000000000..5f5e56d60c8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_contract_json.go @@ -0,0 +1,579 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the ContractJSON type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ContractJSON{} + +// ContractJSON struct for ContractJSON +type ContractJSON struct { + ContractName string `json:"contractName"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode string `json:"bytecode"` + // The application binary interface of the solidity contract, optional parameter + Abi []interface{} `json:"abi,omitempty"` + Metadata *string `json:"metadata,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler map[string]interface{} `json:"compiler,omitempty"` + Networks map[string]interface{} `json:"networks,omitempty"` + Ast map[string]interface{} `json:"ast,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates map[string]interface{} `json:"gasEstimates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ContractJSON ContractJSON + +// NewContractJSON instantiates a new ContractJSON object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewContractJSON(contractName string, bytecode string) *ContractJSON { + this := ContractJSON{} + this.ContractName = contractName + this.Bytecode = bytecode + return &this +} + +// NewContractJSONWithDefaults instantiates a new ContractJSON object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewContractJSONWithDefaults() *ContractJSON { + this := ContractJSON{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *ContractJSON) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *ContractJSON) SetContractName(v string) { + o.ContractName = v +} + +// GetBytecode returns the Bytecode field value +func (o *ContractJSON) GetBytecode() string { + if o == nil { + var ret string + return ret + } + + return o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetBytecodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Bytecode, true +} + +// SetBytecode sets field value +func (o *ContractJSON) SetBytecode(v string) { + o.Bytecode = v +} + +// GetAbi returns the Abi field value if set, zero value otherwise. +func (o *ContractJSON) GetAbi() []interface{} { + if o == nil || IsNil(o.Abi) { + var ret []interface{} + return ret + } + return o.Abi +} + +// GetAbiOk returns a tuple with the Abi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAbiOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Abi) { + return nil, false + } + return o.Abi, true +} + +// HasAbi returns a boolean if a field has been set. +func (o *ContractJSON) HasAbi() bool { + if o != nil && !IsNil(o.Abi) { + return true + } + + return false +} + +// SetAbi gets a reference to the given []interface{} and assigns it to the Abi field. +func (o *ContractJSON) SetAbi(v []interface{}) { + o.Abi = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ContractJSON) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ContractJSON) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *ContractJSON) SetMetadata(v string) { + o.Metadata = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedBytecode() string { + if o == nil || IsNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedBytecode() bool { + if o != nil && !IsNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *ContractJSON) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetSourceMap() string { + if o == nil || IsNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasSourceMap() bool { + if o != nil && !IsNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *ContractJSON) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedSourceMap() string { + if o == nil || IsNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedSourceMap() bool { + if o != nil && !IsNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *ContractJSON) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *ContractJSON) GetSourcePath() string { + if o == nil || IsNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourcePathOk() (*string, bool) { + if o == nil || IsNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *ContractJSON) HasSourcePath() bool { + if o != nil && !IsNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *ContractJSON) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *ContractJSON) GetCompiler() map[string]interface{} { + if o == nil || IsNil(o.Compiler) { + var ret map[string]interface{} + return ret + } + return o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetCompilerOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Compiler) { + return map[string]interface{}{}, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *ContractJSON) HasCompiler() bool { + if o != nil && !IsNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given map[string]interface{} and assigns it to the Compiler field. +func (o *ContractJSON) SetCompiler(v map[string]interface{}) { + o.Compiler = v +} + +// GetNetworks returns the Networks field value if set, zero value otherwise. +func (o *ContractJSON) GetNetworks() map[string]interface{} { + if o == nil || IsNil(o.Networks) { + var ret map[string]interface{} + return ret + } + return o.Networks +} + +// GetNetworksOk returns a tuple with the Networks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetNetworksOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Networks) { + return map[string]interface{}{}, false + } + return o.Networks, true +} + +// HasNetworks returns a boolean if a field has been set. +func (o *ContractJSON) HasNetworks() bool { + if o != nil && !IsNil(o.Networks) { + return true + } + + return false +} + +// SetNetworks gets a reference to the given map[string]interface{} and assigns it to the Networks field. +func (o *ContractJSON) SetNetworks(v map[string]interface{}) { + o.Networks = v +} + +// GetAst returns the Ast field value if set, zero value otherwise. +func (o *ContractJSON) GetAst() map[string]interface{} { + if o == nil || IsNil(o.Ast) { + var ret map[string]interface{} + return ret + } + return o.Ast +} + +// GetAstOk returns a tuple with the Ast field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAstOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Ast) { + return map[string]interface{}{}, false + } + return o.Ast, true +} + +// HasAst returns a boolean if a field has been set. +func (o *ContractJSON) HasAst() bool { + if o != nil && !IsNil(o.Ast) { + return true + } + + return false +} + +// SetAst gets a reference to the given map[string]interface{} and assigns it to the Ast field. +func (o *ContractJSON) SetAst(v map[string]interface{}) { + o.Ast = v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *ContractJSON) GetFunctionHashes() map[string]interface{} { + if o == nil || IsNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *ContractJSON) HasFunctionHashes() bool { + if o != nil && !IsNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *ContractJSON) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *ContractJSON) GetGasEstimates() map[string]interface{} { + if o == nil || IsNil(o.GasEstimates) { + var ret map[string]interface{} + return ret + } + return o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetGasEstimatesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.GasEstimates) { + return map[string]interface{}{}, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *ContractJSON) HasGasEstimates() bool { + if o != nil && !IsNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given map[string]interface{} and assigns it to the GasEstimates field. +func (o *ContractJSON) SetGasEstimates(v map[string]interface{}) { + o.GasEstimates = v +} + +func (o ContractJSON) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ContractJSON) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["bytecode"] = o.Bytecode + if !IsNil(o.Abi) { + toSerialize["abi"] = o.Abi + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !IsNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !IsNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !IsNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !IsNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !IsNil(o.Networks) { + toSerialize["networks"] = o.Networks + } + if !IsNil(o.Ast) { + toSerialize["ast"] = o.Ast + } + if !IsNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !IsNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ContractJSON) UnmarshalJSON(bytes []byte) (err error) { + varContractJSON := _ContractJSON{} + + if err = json.Unmarshal(bytes, &varContractJSON); err == nil { + *o = ContractJSON(varContractJSON) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "contractName") + delete(additionalProperties, "bytecode") + delete(additionalProperties, "abi") + delete(additionalProperties, "metadata") + delete(additionalProperties, "deployedBytecode") + delete(additionalProperties, "sourceMap") + delete(additionalProperties, "deployedSourceMap") + delete(additionalProperties, "sourcePath") + delete(additionalProperties, "compiler") + delete(additionalProperties, "networks") + delete(additionalProperties, "ast") + delete(additionalProperties, "functionHashes") + delete(additionalProperties, "gasEstimates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableContractJSON struct { + value *ContractJSON + isSet bool +} + +func (v NullableContractJSON) Get() *ContractJSON { + return v.value +} + +func (v *NullableContractJSON) Set(val *ContractJSON) { + v.value = val + v.isSet = true +} + +func (v NullableContractJSON) IsSet() bool { + return v.isSet +} + +func (v *NullableContractJSON) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableContractJSON(val *ContractJSON) *NullableContractJSON { + return &NullableContractJSON{value: val, isSet: true} +} + +func (v NullableContractJSON) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableContractJSON) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go new file mode 100644 index 00000000000..adaf8a46ad6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_json_object_v1_request.go @@ -0,0 +1,294 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeJsonObjectV1Request{} + +// DeployContractSolidityBytecodeJsonObjectV1Request struct for DeployContractSolidityBytecodeJsonObjectV1Request +type DeployContractSolidityBytecodeJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` + // The list of arguments to pass in to the constructor of the contract being deployed. + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` +} + +// NewDeployContractSolidityBytecodeJsonObjectV1Request instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON) *DeployContractSolidityBytecodeJsonObjectV1Request { + this := DeployContractSolidityBytecodeJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeJsonObjectV1RequestWithDefaults() *DeployContractSolidityBytecodeJsonObjectV1Request { + this := DeployContractSolidityBytecodeJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPrice() string { + if o == nil || IsNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetGasPriceOk() (*string, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgs() []interface{} { + if o == nil || IsNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractSolidityBytecodeJsonObjectV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +func (o DeployContractSolidityBytecodeJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeJsonObjectV1Request struct { + value *DeployContractSolidityBytecodeJsonObjectV1Request + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) Get() *DeployContractSolidityBytecodeJsonObjectV1Request { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) Set(val *DeployContractSolidityBytecodeJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeJsonObjectV1Request(val *DeployContractSolidityBytecodeJsonObjectV1Request) *NullableDeployContractSolidityBytecodeJsonObjectV1Request { + return &NullableDeployContractSolidityBytecodeJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go new file mode 100644 index 00000000000..5c76a6587f9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_request.go @@ -0,0 +1,542 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Request{} + +// DeployContractSolidityBytecodeV1Request struct for DeployContractSolidityBytecodeV1Request +type DeployContractSolidityBytecodeV1Request struct { + // The contract name for retrieve the contracts json on the keychain. + ContractName string `json:"contractName"` + // The application binary interface of the solidity contract + ContractAbi []interface{} `json:"contractAbi,omitempty"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode *string `json:"bytecode,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *float32 `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Value *float32 `json:"value,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // For use when not using keychain, pass the contract in as this variable + ContractJSON map[string]interface{} `json:"contractJSON,omitempty"` + // The list of arguments to pass in to the constructor of the contract being deployed. + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` + PrivateTransactionConfig *QuorumPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewDeployContractSolidityBytecodeV1Request instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string) *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.KeychainId = keychainId + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewDeployContractSolidityBytecodeV1RequestWithDefaults instantiates a new DeployContractSolidityBytecodeV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1RequestWithDefaults() *DeployContractSolidityBytecodeV1Request { + this := DeployContractSolidityBytecodeV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *DeployContractSolidityBytecodeV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetContractAbi returns the ContractAbi field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbi() []interface{} { + if o == nil || IsNil(o.ContractAbi) { + var ret []interface{} + return ret + } + return o.ContractAbi +} + +// GetContractAbiOk returns a tuple with the ContractAbi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractAbiOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ContractAbi) { + return nil, false + } + return o.ContractAbi, true +} + +// HasContractAbi returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasContractAbi() bool { + if o != nil && !IsNil(o.ContractAbi) { + return true + } + + return false +} + +// SetContractAbi gets a reference to the given []interface{} and assigns it to the ContractAbi field. +func (o *DeployContractSolidityBytecodeV1Request) SetContractAbi(v []interface{}) { + o.ContractAbi = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetBytecode() string { + if o == nil || IsNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasBytecode() bool { + if o != nil && !IsNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *DeployContractSolidityBytecodeV1Request) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetKeychainId returns the KeychainId field value +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *DeployContractSolidityBytecodeV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractSolidityBytecodeV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPrice() float32 { + if o == nil || IsNil(o.GasPrice) { + var ret float32 + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetGasPriceOk() (*float32, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given float32 and assigns it to the GasPrice field. +func (o *DeployContractSolidityBytecodeV1Request) SetGasPrice(v float32) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *DeployContractSolidityBytecodeV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetValue() float32 { + if o == nil || IsNil(o.Value) { + var ret float32 + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetValueOk() (*float32, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given float32 and assigns it to the Value field. +func (o *DeployContractSolidityBytecodeV1Request) SetValue(v float32) { + o.Value = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractSolidityBytecodeV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetContractJSON() map[string]interface{} { + if o == nil || IsNil(o.ContractJSON) { + var ret map[string]interface{} + return ret + } + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetContractJSONOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ContractJSON) { + return map[string]interface{}{}, false + } + return o.ContractJSON, true +} + +// HasContractJSON returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasContractJSON() bool { + if o != nil && !IsNil(o.ContractJSON) { + return true + } + + return false +} + +// SetContractJSON gets a reference to the given map[string]interface{} and assigns it to the ContractJSON field. +func (o *DeployContractSolidityBytecodeV1Request) SetContractJSON(v map[string]interface{}) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgs() []interface{} { + if o == nil || IsNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractSolidityBytecodeV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret QuorumPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Request) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *DeployContractSolidityBytecodeV1Request) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given QuorumPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *DeployContractSolidityBytecodeV1Request) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o DeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !IsNil(o.ContractAbi) { + toSerialize["contractAbi"] = o.ContractAbi + } + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + if !IsNil(o.ContractJSON) { + toSerialize["contractJSON"] = o.ContractJSON + } + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Request struct { + value *DeployContractSolidityBytecodeV1Request + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Request) Get() *DeployContractSolidityBytecodeV1Request { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Set(val *DeployContractSolidityBytecodeV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Request(val *DeployContractSolidityBytecodeV1Request) *NullableDeployContractSolidityBytecodeV1Request { + return &NullableDeployContractSolidityBytecodeV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go new file mode 100644 index 00000000000..432857ec1fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_deploy_contract_solidity_bytecode_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the DeployContractSolidityBytecodeV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractSolidityBytecodeV1Response{} + +// DeployContractSolidityBytecodeV1Response struct for DeployContractSolidityBytecodeV1Response +type DeployContractSolidityBytecodeV1Response struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewDeployContractSolidityBytecodeV1Response instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractSolidityBytecodeV1Response(transactionReceipt Web3TransactionReceipt) *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewDeployContractSolidityBytecodeV1ResponseWithDefaults instantiates a new DeployContractSolidityBytecodeV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractSolidityBytecodeV1ResponseWithDefaults() *DeployContractSolidityBytecodeV1Response { + this := DeployContractSolidityBytecodeV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *DeployContractSolidityBytecodeV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *DeployContractSolidityBytecodeV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o DeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractSolidityBytecodeV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableDeployContractSolidityBytecodeV1Response struct { + value *DeployContractSolidityBytecodeV1Response + isSet bool +} + +func (v NullableDeployContractSolidityBytecodeV1Response) Get() *DeployContractSolidityBytecodeV1Response { + return v.value +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Set(val *DeployContractSolidityBytecodeV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractSolidityBytecodeV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractSolidityBytecodeV1Response(val *DeployContractSolidityBytecodeV1Response) *NullableDeployContractSolidityBytecodeV1Response { + return &NullableDeployContractSolidityBytecodeV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractSolidityBytecodeV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractSolidityBytecodeV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go new file mode 100644 index 00000000000..40bff0485a9 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationType the model 'EthContractInvocationType' +type EthContractInvocationType string + +// List of EthContractInvocationType +const ( + SEND EthContractInvocationType = "SEND" + CALL EthContractInvocationType = "CALL" +) + +// All allowed values of EthContractInvocationType enum +var AllowedEthContractInvocationTypeEnumValues = []EthContractInvocationType{ + "SEND", + "CALL", +} + +func (v *EthContractInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationType(value) + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationType", value) +} + +// NewEthContractInvocationTypeFromValue returns a pointer to a valid EthContractInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationTypeFromValue(v string) (*EthContractInvocationType, error) { + ev := EthContractInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationType: valid values are %v", v, AllowedEthContractInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationType) IsValid() bool { + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationType value +func (v EthContractInvocationType) Ptr() *EthContractInvocationType { + return &v +} + +type NullableEthContractInvocationType struct { + value *EthContractInvocationType + isSet bool +} + +func (v NullableEthContractInvocationType) Get() *EthContractInvocationType { + return v.value +} + +func (v *NullableEthContractInvocationType) Set(val *EthContractInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationType(val *EthContractInvocationType) *NullableEthContractInvocationType { + return &NullableEthContractInvocationType{value: val, isSet: true} +} + +func (v NullableEthContractInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go new file mode 100644 index 00000000000..b14add8724e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_web3_method.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationWeb3Method the model 'EthContractInvocationWeb3Method' +type EthContractInvocationWeb3Method string + +// List of EthContractInvocationWeb3Method +const ( + SEND EthContractInvocationWeb3Method = "send" + CALL EthContractInvocationWeb3Method = "call" + ENCODE_ABI EthContractInvocationWeb3Method = "encodeABI" + ESTIMATE_GAS EthContractInvocationWeb3Method = "estimateGas" +) + +// All allowed values of EthContractInvocationWeb3Method enum +var AllowedEthContractInvocationWeb3MethodEnumValues = []EthContractInvocationWeb3Method{ + "send", + "call", + "encodeABI", + "estimateGas", +} + +func (v *EthContractInvocationWeb3Method) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationWeb3Method(value) + for _, existing := range AllowedEthContractInvocationWeb3MethodEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationWeb3Method", value) +} + +// NewEthContractInvocationWeb3MethodFromValue returns a pointer to a valid EthContractInvocationWeb3Method +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationWeb3MethodFromValue(v string) (*EthContractInvocationWeb3Method, error) { + ev := EthContractInvocationWeb3Method(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationWeb3Method: valid values are %v", v, AllowedEthContractInvocationWeb3MethodEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationWeb3Method) IsValid() bool { + for _, existing := range AllowedEthContractInvocationWeb3MethodEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationWeb3Method value +func (v EthContractInvocationWeb3Method) Ptr() *EthContractInvocationWeb3Method { + return &v +} + +type NullableEthContractInvocationWeb3Method struct { + value *EthContractInvocationWeb3Method + isSet bool +} + +func (v NullableEthContractInvocationWeb3Method) Get() *EthContractInvocationWeb3Method { + return v.value +} + +func (v *NullableEthContractInvocationWeb3Method) Set(val *EthContractInvocationWeb3Method) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationWeb3Method) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationWeb3Method) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationWeb3Method(val *EthContractInvocationWeb3Method) *NullableEthContractInvocationWeb3Method { + return &NullableEthContractInvocationWeb3Method{value: val, isSet: true} +} + +func (v NullableEthContractInvocationWeb3Method) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationWeb3Method) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go new file mode 100644 index 00000000000..580b8a482ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go @@ -0,0 +1,476 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeContractJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractJsonObjectV1Request{} + +// InvokeContractJsonObjectV1Request struct for InvokeContractJsonObjectV1Request +type InvokeContractJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + // Address of the solidity contract + ContractAddress string `json:"contractAddress"` + Value *QuorumTransactionConfigFrom `json:"value,omitempty"` + Gas *QuorumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *QuorumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` + PrivateTransactionConfig *QuorumPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON) *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + this.ContractAddress = contractAddress + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractJsonObjectV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetContractAddress returns the ContractAddress field value +func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetValue() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractJsonObjectV1Request) SetValue(v QuorumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGas() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractJsonObjectV1Request) SetGas(v QuorumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGasPrice() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given QuorumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v QuorumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret QuorumPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given QuorumPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *InvokeContractJsonObjectV1Request) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o InvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + toSerialize["contractAddress"] = o.ContractAddress + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableInvokeContractJsonObjectV1Request struct { + value *InvokeContractJsonObjectV1Request + isSet bool +} + +func (v NullableInvokeContractJsonObjectV1Request) Get() *InvokeContractJsonObjectV1Request { + return v.value +} + +func (v *NullableInvokeContractJsonObjectV1Request) Set(val *InvokeContractJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractJsonObjectV1Request(val *InvokeContractJsonObjectV1Request) *NullableInvokeContractJsonObjectV1Request { + return &NullableInvokeContractJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go new file mode 100644 index 00000000000..f670ee30438 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Request{} + +// InvokeContractV1Request struct for InvokeContractV1Request +type InvokeContractV1Request struct { + // The contract name to find it in the keychain plugin + ContractName string `json:"contractName"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + Value *QuorumTransactionConfigFrom `json:"value,omitempty"` + Gas *QuorumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *QuorumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` +} + +// NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string) *InvokeContractV1Request { + this := InvokeContractV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.KeychainId = keychainId + return &this +} + +// NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request { + this := InvokeContractV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *InvokeContractV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *InvokeContractV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetValue() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetValueOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractV1Request) SetValue(v QuorumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGas() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractV1Request) SetGas(v QuorumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGasPrice() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given QuorumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractV1Request) SetGasPrice(v QuorumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetKeychainId returns the KeychainId field value +func (o *InvokeContractV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *InvokeContractV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o InvokeContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableInvokeContractV1Request struct { + value *InvokeContractV1Request + isSet bool +} + +func (v NullableInvokeContractV1Request) Get() *InvokeContractV1Request { + return v.value +} + +func (v *NullableInvokeContractV1Request) Set(val *InvokeContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Request(val *InvokeContractV1Request) *NullableInvokeContractV1Request { + return &NullableInvokeContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..901c15dc2ca --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || IsNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !IsNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go new file mode 100644 index 00000000000..15f1a67edc4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_request.go @@ -0,0 +1,275 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthContractV1Request{} + +// InvokeRawWeb3EthContractV1Request struct for InvokeRawWeb3EthContractV1Request +type InvokeRawWeb3EthContractV1Request struct { + // The application binary interface of the solidity contract + Abi []interface{} `json:"abi"` + // Deployed solidity contract address + Address string `json:"address"` + InvocationType EthContractInvocationWeb3Method `json:"invocationType"` + // The list of arguments for contract invocation method (send, call, etc...) + InvocationParams map[string]interface{} `json:"invocationParams,omitempty"` + // Method of deployed solidity contract to execute + ContractMethod string `json:"contractMethod"` + // The list of arguments for deployed solidity contract method + ContractMethodArgs []interface{} `json:"contractMethodArgs,omitempty"` +} + +// NewInvokeRawWeb3EthContractV1Request instantiates a new InvokeRawWeb3EthContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthContractV1Request(abi []interface{}, address string, invocationType EthContractInvocationWeb3Method, contractMethod string) *InvokeRawWeb3EthContractV1Request { + this := InvokeRawWeb3EthContractV1Request{} + this.Abi = abi + this.Address = address + this.InvocationType = invocationType + this.ContractMethod = contractMethod + return &this +} + +// NewInvokeRawWeb3EthContractV1RequestWithDefaults instantiates a new InvokeRawWeb3EthContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthContractV1RequestWithDefaults() *InvokeRawWeb3EthContractV1Request { + this := InvokeRawWeb3EthContractV1Request{} + return &this +} + +// GetAbi returns the Abi field value +func (o *InvokeRawWeb3EthContractV1Request) GetAbi() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Abi +} + +// GetAbiOk returns a tuple with the Abi field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetAbiOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Abi, true +} + +// SetAbi sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetAbi(v []interface{}) { + o.Abi = v +} + +// GetAddress returns the Address field value +func (o *InvokeRawWeb3EthContractV1Request) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetAddress(v string) { + o.Address = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationType() EthContractInvocationWeb3Method { + if o == nil { + var ret EthContractInvocationWeb3Method + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationTypeOk() (*EthContractInvocationWeb3Method, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetInvocationType(v EthContractInvocationWeb3Method) { + o.InvocationType = v +} + +// GetInvocationParams returns the InvocationParams field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParams() map[string]interface{} { + if o == nil || IsNil(o.InvocationParams) { + var ret map[string]interface{} + return ret + } + return o.InvocationParams +} + +// GetInvocationParamsOk returns a tuple with the InvocationParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetInvocationParamsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.InvocationParams) { + return map[string]interface{}{}, false + } + return o.InvocationParams, true +} + +// HasInvocationParams returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Request) HasInvocationParams() bool { + if o != nil && !IsNil(o.InvocationParams) { + return true + } + + return false +} + +// SetInvocationParams gets a reference to the given map[string]interface{} and assigns it to the InvocationParams field. +func (o *InvokeRawWeb3EthContractV1Request) SetInvocationParams(v map[string]interface{}) { + o.InvocationParams = v +} + +// GetContractMethod returns the ContractMethod field value +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethod() string { + if o == nil { + var ret string + return ret + } + + return o.ContractMethod +} + +// GetContractMethodOk returns a tuple with the ContractMethod field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractMethod, true +} + +// SetContractMethod sets field value +func (o *InvokeRawWeb3EthContractV1Request) SetContractMethod(v string) { + o.ContractMethod = v +} + +// GetContractMethodArgs returns the ContractMethodArgs field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgs() []interface{} { + if o == nil || IsNil(o.ContractMethodArgs) { + var ret []interface{} + return ret + } + return o.ContractMethodArgs +} + +// GetContractMethodArgsOk returns a tuple with the ContractMethodArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Request) GetContractMethodArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ContractMethodArgs) { + return nil, false + } + return o.ContractMethodArgs, true +} + +// HasContractMethodArgs returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Request) HasContractMethodArgs() bool { + if o != nil && !IsNil(o.ContractMethodArgs) { + return true + } + + return false +} + +// SetContractMethodArgs gets a reference to the given []interface{} and assigns it to the ContractMethodArgs field. +func (o *InvokeRawWeb3EthContractV1Request) SetContractMethodArgs(v []interface{}) { + o.ContractMethodArgs = v +} + +func (o InvokeRawWeb3EthContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["abi"] = o.Abi + toSerialize["address"] = o.Address + toSerialize["invocationType"] = o.InvocationType + if !IsNil(o.InvocationParams) { + toSerialize["invocationParams"] = o.InvocationParams + } + toSerialize["contractMethod"] = o.ContractMethod + if !IsNil(o.ContractMethodArgs) { + toSerialize["contractMethodArgs"] = o.ContractMethodArgs + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthContractV1Request struct { + value *InvokeRawWeb3EthContractV1Request + isSet bool +} + +func (v NullableInvokeRawWeb3EthContractV1Request) Get() *InvokeRawWeb3EthContractV1Request { + return v.value +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) Set(val *InvokeRawWeb3EthContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthContractV1Request(val *InvokeRawWeb3EthContractV1Request) *NullableInvokeRawWeb3EthContractV1Request { + return &NullableInvokeRawWeb3EthContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go new file mode 100644 index 00000000000..9a2000db861 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_contract_v1_response.go @@ -0,0 +1,193 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthContractV1Response{} + +// InvokeRawWeb3EthContractV1Response struct for InvokeRawWeb3EthContractV1Response +type InvokeRawWeb3EthContractV1Response struct { + // Status code of the operation + Status float32 `json:"status"` + // Output of contract invocation method + Data interface{} `json:"data,omitempty"` + // Error details + ErrorDetail *string `json:"errorDetail,omitempty"` +} + +// NewInvokeRawWeb3EthContractV1Response instantiates a new InvokeRawWeb3EthContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthContractV1Response(status float32) *InvokeRawWeb3EthContractV1Response { + this := InvokeRawWeb3EthContractV1Response{} + this.Status = status + return &this +} + +// NewInvokeRawWeb3EthContractV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthContractV1ResponseWithDefaults() *InvokeRawWeb3EthContractV1Response { + this := InvokeRawWeb3EthContractV1Response{} + return &this +} + +// GetStatus returns the Status field value +func (o *InvokeRawWeb3EthContractV1Response) GetStatus() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Response) GetStatusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *InvokeRawWeb3EthContractV1Response) SetStatus(v float32) { + o.Status = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeRawWeb3EthContractV1Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeRawWeb3EthContractV1Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *InvokeRawWeb3EthContractV1Response) SetData(v interface{}) { + o.Data = v +} + +// GetErrorDetail returns the ErrorDetail field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetail() string { + if o == nil || IsNil(o.ErrorDetail) { + var ret string + return ret + } + return *o.ErrorDetail +} + +// GetErrorDetailOk returns a tuple with the ErrorDetail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthContractV1Response) GetErrorDetailOk() (*string, bool) { + if o == nil || IsNil(o.ErrorDetail) { + return nil, false + } + return o.ErrorDetail, true +} + +// HasErrorDetail returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthContractV1Response) HasErrorDetail() bool { + if o != nil && !IsNil(o.ErrorDetail) { + return true + } + + return false +} + +// SetErrorDetail gets a reference to the given string and assigns it to the ErrorDetail field. +func (o *InvokeRawWeb3EthContractV1Response) SetErrorDetail(v string) { + o.ErrorDetail = &v +} + +func (o InvokeRawWeb3EthContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !IsNil(o.ErrorDetail) { + toSerialize["errorDetail"] = o.ErrorDetail + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthContractV1Response struct { + value *InvokeRawWeb3EthContractV1Response + isSet bool +} + +func (v NullableInvokeRawWeb3EthContractV1Response) Get() *InvokeRawWeb3EthContractV1Response { + return v.value +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) Set(val *InvokeRawWeb3EthContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthContractV1Response(val *InvokeRawWeb3EthContractV1Response) *NullableInvokeRawWeb3EthContractV1Response { + return &NullableInvokeRawWeb3EthContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go new file mode 100644 index 00000000000..7047e0131bd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_request.go @@ -0,0 +1,155 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthMethodV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthMethodV1Request{} + +// InvokeRawWeb3EthMethodV1Request struct for InvokeRawWeb3EthMethodV1Request +type InvokeRawWeb3EthMethodV1Request struct { + // The name of the web3.eth method to invoke + MethodName string `json:"methodName"` + // The list of arguments to pass to web3.eth method specified in methodName + Params []interface{} `json:"params,omitempty"` +} + +// NewInvokeRawWeb3EthMethodV1Request instantiates a new InvokeRawWeb3EthMethodV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthMethodV1Request(methodName string) *InvokeRawWeb3EthMethodV1Request { + this := InvokeRawWeb3EthMethodV1Request{} + this.MethodName = methodName + return &this +} + +// NewInvokeRawWeb3EthMethodV1RequestWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthMethodV1RequestWithDefaults() *InvokeRawWeb3EthMethodV1Request { + this := InvokeRawWeb3EthMethodV1Request{} + return &this +} + +// GetMethodName returns the MethodName field value +func (o *InvokeRawWeb3EthMethodV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeRawWeb3EthMethodV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthMethodV1Request) GetParams() []interface{} { + if o == nil || IsNil(o.Params) { + var ret []interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Request) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given []interface{} and assigns it to the Params field. +func (o *InvokeRawWeb3EthMethodV1Request) SetParams(v []interface{}) { + o.Params = v +} + +func (o InvokeRawWeb3EthMethodV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthMethodV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["methodName"] = o.MethodName + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthMethodV1Request struct { + value *InvokeRawWeb3EthMethodV1Request + isSet bool +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) Get() *InvokeRawWeb3EthMethodV1Request { + return v.value +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) Set(val *InvokeRawWeb3EthMethodV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthMethodV1Request(val *InvokeRawWeb3EthMethodV1Request) *NullableInvokeRawWeb3EthMethodV1Request { + return &NullableInvokeRawWeb3EthMethodV1Request{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthMethodV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthMethodV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go new file mode 100644 index 00000000000..ae7a7ddacfb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_invoke_raw_web3_eth_method_v1_response.go @@ -0,0 +1,193 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the InvokeRawWeb3EthMethodV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRawWeb3EthMethodV1Response{} + +// InvokeRawWeb3EthMethodV1Response struct for InvokeRawWeb3EthMethodV1Response +type InvokeRawWeb3EthMethodV1Response struct { + // Status code of the operation + Status float32 `json:"status"` + // Output of requested web3.eth method + Data interface{} `json:"data,omitempty"` + // Error details + ErrorDetail *string `json:"errorDetail,omitempty"` +} + +// NewInvokeRawWeb3EthMethodV1Response instantiates a new InvokeRawWeb3EthMethodV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRawWeb3EthMethodV1Response(status float32) *InvokeRawWeb3EthMethodV1Response { + this := InvokeRawWeb3EthMethodV1Response{} + this.Status = status + return &this +} + +// NewInvokeRawWeb3EthMethodV1ResponseWithDefaults instantiates a new InvokeRawWeb3EthMethodV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRawWeb3EthMethodV1ResponseWithDefaults() *InvokeRawWeb3EthMethodV1Response { + this := InvokeRawWeb3EthMethodV1Response{} + return &this +} + +// GetStatus returns the Status field value +func (o *InvokeRawWeb3EthMethodV1Response) GetStatus() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Response) GetStatusOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *InvokeRawWeb3EthMethodV1Response) SetStatus(v float32) { + o.Status = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeRawWeb3EthMethodV1Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeRawWeb3EthMethodV1Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *InvokeRawWeb3EthMethodV1Response) SetData(v interface{}) { + o.Data = v +} + +// GetErrorDetail returns the ErrorDetail field value if set, zero value otherwise. +func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetail() string { + if o == nil || IsNil(o.ErrorDetail) { + var ret string + return ret + } + return *o.ErrorDetail +} + +// GetErrorDetailOk returns a tuple with the ErrorDetail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRawWeb3EthMethodV1Response) GetErrorDetailOk() (*string, bool) { + if o == nil || IsNil(o.ErrorDetail) { + return nil, false + } + return o.ErrorDetail, true +} + +// HasErrorDetail returns a boolean if a field has been set. +func (o *InvokeRawWeb3EthMethodV1Response) HasErrorDetail() bool { + if o != nil && !IsNil(o.ErrorDetail) { + return true + } + + return false +} + +// SetErrorDetail gets a reference to the given string and assigns it to the ErrorDetail field. +func (o *InvokeRawWeb3EthMethodV1Response) SetErrorDetail(v string) { + o.ErrorDetail = &v +} + +func (o InvokeRawWeb3EthMethodV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRawWeb3EthMethodV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !IsNil(o.ErrorDetail) { + toSerialize["errorDetail"] = o.ErrorDetail + } + return toSerialize, nil +} + +type NullableInvokeRawWeb3EthMethodV1Response struct { + value *InvokeRawWeb3EthMethodV1Response + isSet bool +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) Get() *InvokeRawWeb3EthMethodV1Response { + return v.value +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) Set(val *InvokeRawWeb3EthMethodV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRawWeb3EthMethodV1Response(val *InvokeRawWeb3EthMethodV1Response) *NullableInvokeRawWeb3EthMethodV1Response { + return &NullableInvokeRawWeb3EthMethodV1Response{value: val, isSet: true} +} + +func (v NullableInvokeRawWeb3EthMethodV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRawWeb3EthMethodV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_private_transaction_config.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_private_transaction_config.go new file mode 100644 index 00000000000..b12d8261d7c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_private_transaction_config.go @@ -0,0 +1,337 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the QuorumPrivateTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QuorumPrivateTransactionConfig{} + +// QuorumPrivateTransactionConfig struct for QuorumPrivateTransactionConfig +type QuorumPrivateTransactionConfig struct { + PrivateFrom *string `json:"privateFrom,omitempty"` + PrivateFor []interface{} `json:"privateFor"` + IsPrivate *bool `json:"isPrivate,omitempty"` + GasPrice *float32 `json:"gasPrice,omitempty"` + GasLimit *float32 `json:"gasLimit,omitempty"` + PrivateKey *string `json:"privateKey,omitempty"` + PrivacyGroupId *string `json:"privacyGroupId,omitempty"` +} + +// NewQuorumPrivateTransactionConfig instantiates a new QuorumPrivateTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewQuorumPrivateTransactionConfig(privateFor []interface{}) *QuorumPrivateTransactionConfig { + this := QuorumPrivateTransactionConfig{} + this.PrivateFor = privateFor + var isPrivate bool = false + this.IsPrivate = &isPrivate + return &this +} + +// NewQuorumPrivateTransactionConfigWithDefaults instantiates a new QuorumPrivateTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewQuorumPrivateTransactionConfigWithDefaults() *QuorumPrivateTransactionConfig { + this := QuorumPrivateTransactionConfig{} + var isPrivate bool = false + this.IsPrivate = &isPrivate + return &this +} + +// GetPrivateFrom returns the PrivateFrom field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetPrivateFrom() string { + if o == nil || IsNil(o.PrivateFrom) { + var ret string + return ret + } + return *o.PrivateFrom +} + +// GetPrivateFromOk returns a tuple with the PrivateFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetPrivateFromOk() (*string, bool) { + if o == nil || IsNil(o.PrivateFrom) { + return nil, false + } + return o.PrivateFrom, true +} + +// HasPrivateFrom returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasPrivateFrom() bool { + if o != nil && !IsNil(o.PrivateFrom) { + return true + } + + return false +} + +// SetPrivateFrom gets a reference to the given string and assigns it to the PrivateFrom field. +func (o *QuorumPrivateTransactionConfig) SetPrivateFrom(v string) { + o.PrivateFrom = &v +} + +// GetPrivateFor returns the PrivateFor field value +func (o *QuorumPrivateTransactionConfig) GetPrivateFor() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.PrivateFor +} + +// GetPrivateForOk returns a tuple with the PrivateFor field value +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetPrivateForOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.PrivateFor, true +} + +// SetPrivateFor sets field value +func (o *QuorumPrivateTransactionConfig) SetPrivateFor(v []interface{}) { + o.PrivateFor = v +} + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *QuorumPrivateTransactionConfig) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetGasPrice() float32 { + if o == nil || IsNil(o.GasPrice) { + var ret float32 + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetGasPriceOk() (*float32, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given float32 and assigns it to the GasPrice field. +func (o *QuorumPrivateTransactionConfig) SetGasPrice(v float32) { + o.GasPrice = &v +} + +// GetGasLimit returns the GasLimit field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetGasLimit() float32 { + if o == nil || IsNil(o.GasLimit) { + var ret float32 + return ret + } + return *o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetGasLimitOk() (*float32, bool) { + if o == nil || IsNil(o.GasLimit) { + return nil, false + } + return o.GasLimit, true +} + +// HasGasLimit returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasGasLimit() bool { + if o != nil && !IsNil(o.GasLimit) { + return true + } + + return false +} + +// SetGasLimit gets a reference to the given float32 and assigns it to the GasLimit field. +func (o *QuorumPrivateTransactionConfig) SetGasLimit(v float32) { + o.GasLimit = &v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetPrivateKey() string { + if o == nil || IsNil(o.PrivateKey) { + var ret string + return ret + } + return *o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetPrivateKeyOk() (*string, bool) { + if o == nil || IsNil(o.PrivateKey) { + return nil, false + } + return o.PrivateKey, true +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasPrivateKey() bool { + if o != nil && !IsNil(o.PrivateKey) { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field. +func (o *QuorumPrivateTransactionConfig) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetPrivacyGroupId returns the PrivacyGroupId field value if set, zero value otherwise. +func (o *QuorumPrivateTransactionConfig) GetPrivacyGroupId() string { + if o == nil || IsNil(o.PrivacyGroupId) { + var ret string + return ret + } + return *o.PrivacyGroupId +} + +// GetPrivacyGroupIdOk returns a tuple with the PrivacyGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumPrivateTransactionConfig) GetPrivacyGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyGroupId) { + return nil, false + } + return o.PrivacyGroupId, true +} + +// HasPrivacyGroupId returns a boolean if a field has been set. +func (o *QuorumPrivateTransactionConfig) HasPrivacyGroupId() bool { + if o != nil && !IsNil(o.PrivacyGroupId) { + return true + } + + return false +} + +// SetPrivacyGroupId gets a reference to the given string and assigns it to the PrivacyGroupId field. +func (o *QuorumPrivateTransactionConfig) SetPrivacyGroupId(v string) { + o.PrivacyGroupId = &v +} + +func (o QuorumPrivateTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QuorumPrivateTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrivateFrom) { + toSerialize["privateFrom"] = o.PrivateFrom + } + toSerialize["privateFor"] = o.PrivateFor + if !IsNil(o.IsPrivate) { + toSerialize["isPrivate"] = o.IsPrivate + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.GasLimit) { + toSerialize["gasLimit"] = o.GasLimit + } + if !IsNil(o.PrivateKey) { + toSerialize["privateKey"] = o.PrivateKey + } + if !IsNil(o.PrivacyGroupId) { + toSerialize["privacyGroupId"] = o.PrivacyGroupId + } + return toSerialize, nil +} + +type NullableQuorumPrivateTransactionConfig struct { + value *QuorumPrivateTransactionConfig + isSet bool +} + +func (v NullableQuorumPrivateTransactionConfig) Get() *QuorumPrivateTransactionConfig { + return v.value +} + +func (v *NullableQuorumPrivateTransactionConfig) Set(val *QuorumPrivateTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableQuorumPrivateTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableQuorumPrivateTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuorumPrivateTransactionConfig(val *QuorumPrivateTransactionConfig) *NullableQuorumPrivateTransactionConfig { + return &NullableQuorumPrivateTransactionConfig{value: val, isSet: true} +} + +func (v NullableQuorumPrivateTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuorumPrivateTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config.go new file mode 100644 index 00000000000..e3775b937e6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config.go @@ -0,0 +1,410 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the QuorumTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QuorumTransactionConfig{} + +// QuorumTransactionConfig struct for QuorumTransactionConfig +type QuorumTransactionConfig struct { + RawTransaction *string `json:"rawTransaction,omitempty"` + From *QuorumTransactionConfigFrom `json:"from,omitempty"` + To *QuorumTransactionConfigTo `json:"to,omitempty"` + Value *QuorumTransactionConfigFrom `json:"value,omitempty"` + Gas *QuorumTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *QuorumTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Data *QuorumTransactionConfigTo `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _QuorumTransactionConfig QuorumTransactionConfig + +// NewQuorumTransactionConfig instantiates a new QuorumTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewQuorumTransactionConfig() *QuorumTransactionConfig { + this := QuorumTransactionConfig{} + return &this +} + +// NewQuorumTransactionConfigWithDefaults instantiates a new QuorumTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewQuorumTransactionConfigWithDefaults() *QuorumTransactionConfig { + this := QuorumTransactionConfig{} + return &this +} + +// GetRawTransaction returns the RawTransaction field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetRawTransaction() string { + if o == nil || IsNil(o.RawTransaction) { + var ret string + return ret + } + return *o.RawTransaction +} + +// GetRawTransactionOk returns a tuple with the RawTransaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetRawTransactionOk() (*string, bool) { + if o == nil || IsNil(o.RawTransaction) { + return nil, false + } + return o.RawTransaction, true +} + +// HasRawTransaction returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasRawTransaction() bool { + if o != nil && !IsNil(o.RawTransaction) { + return true + } + + return false +} + +// SetRawTransaction gets a reference to the given string and assigns it to the RawTransaction field. +func (o *QuorumTransactionConfig) SetRawTransaction(v string) { + o.RawTransaction = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetFrom() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.From) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetFromOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given QuorumTransactionConfigFrom and assigns it to the From field. +func (o *QuorumTransactionConfig) SetFrom(v QuorumTransactionConfigFrom) { + o.From = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetTo() QuorumTransactionConfigTo { + if o == nil || IsNil(o.To) { + var ret QuorumTransactionConfigTo + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetToOk() (*QuorumTransactionConfigTo, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given QuorumTransactionConfigTo and assigns it to the To field. +func (o *QuorumTransactionConfig) SetTo(v QuorumTransactionConfigTo) { + o.To = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetValue() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetValueOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Value field. +func (o *QuorumTransactionConfig) SetValue(v QuorumTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetGas() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetGasOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given QuorumTransactionConfigFrom and assigns it to the Gas field. +func (o *QuorumTransactionConfig) SetGas(v QuorumTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetGasPrice() QuorumTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret QuorumTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetGasPriceOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given QuorumTransactionConfigFrom and assigns it to the GasPrice field. +func (o *QuorumTransactionConfig) SetGasPrice(v QuorumTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *QuorumTransactionConfig) SetNonce(v float32) { + o.Nonce = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *QuorumTransactionConfig) GetData() QuorumTransactionConfigTo { + if o == nil || IsNil(o.Data) { + var ret QuorumTransactionConfigTo + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuorumTransactionConfig) GetDataOk() (*QuorumTransactionConfigTo, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *QuorumTransactionConfig) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given QuorumTransactionConfigTo and assigns it to the Data field. +func (o *QuorumTransactionConfig) SetData(v QuorumTransactionConfigTo) { + o.Data = &v +} + +func (o QuorumTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QuorumTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RawTransaction) { + toSerialize["rawTransaction"] = o.RawTransaction + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *QuorumTransactionConfig) UnmarshalJSON(bytes []byte) (err error) { + varQuorumTransactionConfig := _QuorumTransactionConfig{} + + if err = json.Unmarshal(bytes, &varQuorumTransactionConfig); err == nil { + *o = QuorumTransactionConfig(varQuorumTransactionConfig) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "rawTransaction") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "value") + delete(additionalProperties, "gas") + delete(additionalProperties, "gasPrice") + delete(additionalProperties, "nonce") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableQuorumTransactionConfig struct { + value *QuorumTransactionConfig + isSet bool +} + +func (v NullableQuorumTransactionConfig) Get() *QuorumTransactionConfig { + return v.value +} + +func (v *NullableQuorumTransactionConfig) Set(val *QuorumTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableQuorumTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableQuorumTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuorumTransactionConfig(val *QuorumTransactionConfig) *NullableQuorumTransactionConfig { + return &NullableQuorumTransactionConfig{value: val, isSet: true} +} + +func (v NullableQuorumTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuorumTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_from.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_from.go new file mode 100644 index 00000000000..eefc180bb74 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_from.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// QuorumTransactionConfigFrom - struct for QuorumTransactionConfigFrom +type QuorumTransactionConfigFrom struct { + Float32 *float32 + String *string +} + +// float32AsQuorumTransactionConfigFrom is a convenience function that returns float32 wrapped in QuorumTransactionConfigFrom +func Float32AsQuorumTransactionConfigFrom(v *float32) QuorumTransactionConfigFrom { + return QuorumTransactionConfigFrom{ + Float32: v, + } +} + +// stringAsQuorumTransactionConfigFrom is a convenience function that returns string wrapped in QuorumTransactionConfigFrom +func StringAsQuorumTransactionConfigFrom(v *string) QuorumTransactionConfigFrom { + return QuorumTransactionConfigFrom{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *QuorumTransactionConfigFrom) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(QuorumTransactionConfigFrom)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(QuorumTransactionConfigFrom)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src QuorumTransactionConfigFrom) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *QuorumTransactionConfigFrom) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableQuorumTransactionConfigFrom struct { + value *QuorumTransactionConfigFrom + isSet bool +} + +func (v NullableQuorumTransactionConfigFrom) Get() *QuorumTransactionConfigFrom { + return v.value +} + +func (v *NullableQuorumTransactionConfigFrom) Set(val *QuorumTransactionConfigFrom) { + v.value = val + v.isSet = true +} + +func (v NullableQuorumTransactionConfigFrom) IsSet() bool { + return v.isSet +} + +func (v *NullableQuorumTransactionConfigFrom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuorumTransactionConfigFrom(val *QuorumTransactionConfigFrom) *NullableQuorumTransactionConfigFrom { + return &NullableQuorumTransactionConfigFrom{value: val, isSet: true} +} + +func (v NullableQuorumTransactionConfigFrom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuorumTransactionConfigFrom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_to.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_to.go new file mode 100644 index 00000000000..05a36692dd6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_quorum_transaction_config_to.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// QuorumTransactionConfigTo - struct for QuorumTransactionConfigTo +type QuorumTransactionConfigTo struct { + String *string +} + +// stringAsQuorumTransactionConfigTo is a convenience function that returns string wrapped in QuorumTransactionConfigTo +func StringAsQuorumTransactionConfigTo(v *string) QuorumTransactionConfigTo { + return QuorumTransactionConfigTo{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *QuorumTransactionConfigTo) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(QuorumTransactionConfigTo)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(QuorumTransactionConfigTo)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src QuorumTransactionConfigTo) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *QuorumTransactionConfigTo) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableQuorumTransactionConfigTo struct { + value *QuorumTransactionConfigTo + isSet bool +} + +func (v NullableQuorumTransactionConfigTo) Get() *QuorumTransactionConfigTo { + return v.value +} + +func (v *NullableQuorumTransactionConfigTo) Set(val *QuorumTransactionConfigTo) { + v.value = val + v.isSet = true +} + +func (v NullableQuorumTransactionConfigTo) IsSet() bool { + return v.isSet +} + +func (v *NullableQuorumTransactionConfigTo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuorumTransactionConfigTo(val *QuorumTransactionConfigTo) *NullableQuorumTransactionConfigTo { + return &NullableQuorumTransactionConfigTo{value: val, isSet: true} +} + +func (v NullableQuorumTransactionConfigTo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuorumTransactionConfigTo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go new file mode 100644 index 00000000000..dd051cfb22c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_request.go @@ -0,0 +1,221 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the RunTransactionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionRequest{} + +// RunTransactionRequest struct for RunTransactionRequest +type RunTransactionRequest struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + TransactionConfig QuorumTransactionConfig `json:"transactionConfig"` + // The amount of milliseconds to wait for a transaction receipt with thehash of the transaction(which indicates successful execution) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + PrivateTransactionConfig *QuorumPrivateTransactionConfig `json:"privateTransactionConfig,omitempty"` +} + +// NewRunTransactionRequest instantiates a new RunTransactionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionRequest(web3SigningCredential Web3SigningCredential, transactionConfig QuorumTransactionConfig) *RunTransactionRequest { + this := RunTransactionRequest{} + this.Web3SigningCredential = web3SigningCredential + this.TransactionConfig = transactionConfig + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewRunTransactionRequestWithDefaults instantiates a new RunTransactionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionRequestWithDefaults() *RunTransactionRequest { + this := RunTransactionRequest{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RunTransactionRequest) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RunTransactionRequest) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetTransactionConfig returns the TransactionConfig field value +func (o *RunTransactionRequest) GetTransactionConfig() QuorumTransactionConfig { + if o == nil { + var ret QuorumTransactionConfig + return ret + } + + return o.TransactionConfig +} + +// GetTransactionConfigOk returns a tuple with the TransactionConfig field value +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetTransactionConfigOk() (*QuorumTransactionConfig, bool) { + if o == nil { + return nil, false + } + return &o.TransactionConfig, true +} + +// SetTransactionConfig sets field value +func (o *RunTransactionRequest) SetTransactionConfig(v QuorumTransactionConfig) { + o.TransactionConfig = v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *RunTransactionRequest) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetPrivateTransactionConfig returns the PrivateTransactionConfig field value if set, zero value otherwise. +func (o *RunTransactionRequest) GetPrivateTransactionConfig() QuorumPrivateTransactionConfig { + if o == nil || IsNil(o.PrivateTransactionConfig) { + var ret QuorumPrivateTransactionConfig + return ret + } + return *o.PrivateTransactionConfig +} + +// GetPrivateTransactionConfigOk returns a tuple with the PrivateTransactionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunTransactionRequest) GetPrivateTransactionConfigOk() (*QuorumPrivateTransactionConfig, bool) { + if o == nil || IsNil(o.PrivateTransactionConfig) { + return nil, false + } + return o.PrivateTransactionConfig, true +} + +// HasPrivateTransactionConfig returns a boolean if a field has been set. +func (o *RunTransactionRequest) HasPrivateTransactionConfig() bool { + if o != nil && !IsNil(o.PrivateTransactionConfig) { + return true + } + + return false +} + +// SetPrivateTransactionConfig gets a reference to the given QuorumPrivateTransactionConfig and assigns it to the PrivateTransactionConfig field. +func (o *RunTransactionRequest) SetPrivateTransactionConfig(v QuorumPrivateTransactionConfig) { + o.PrivateTransactionConfig = &v +} + +func (o RunTransactionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["transactionConfig"] = o.TransactionConfig + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + if !IsNil(o.PrivateTransactionConfig) { + toSerialize["privateTransactionConfig"] = o.PrivateTransactionConfig + } + return toSerialize, nil +} + +type NullableRunTransactionRequest struct { + value *RunTransactionRequest + isSet bool +} + +func (v NullableRunTransactionRequest) Get() *RunTransactionRequest { + return v.value +} + +func (v *NullableRunTransactionRequest) Set(val *RunTransactionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionRequest(val *RunTransactionRequest) *NullableRunTransactionRequest { + return &NullableRunTransactionRequest{value: val, isSet: true} +} + +func (v NullableRunTransactionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go new file mode 100644 index 00000000000..7731c81f4e6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_run_transaction_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the RunTransactionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionResponse{} + +// RunTransactionResponse struct for RunTransactionResponse +type RunTransactionResponse struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionResponse instantiates a new RunTransactionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionResponse(transactionReceipt Web3TransactionReceipt) *RunTransactionResponse { + this := RunTransactionResponse{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionResponseWithDefaults instantiates a new RunTransactionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionResponseWithDefaults() *RunTransactionResponse { + this := RunTransactionResponse{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionResponse) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionResponse) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionResponse) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionResponse struct { + value *RunTransactionResponse + isSet bool +} + +func (v NullableRunTransactionResponse) Get() *RunTransactionResponse { + return v.value +} + +func (v *NullableRunTransactionResponse) Set(val *RunTransactionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionResponse(val *RunTransactionResponse) *NullableRunTransactionResponse { + return &NullableRunTransactionResponse{value: val, isSet: true} +} + +func (v NullableRunTransactionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go new file mode 100644 index 00000000000..e4385b873ad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifact{} + +// SolidityContractJsonArtifact struct for SolidityContractJsonArtifact +type SolidityContractJsonArtifact struct { + ContractName string `json:"contractName"` + Metadata *string `json:"metadata,omitempty"` + Bytecode *string `json:"bytecode,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler *SolidityContractJsonArtifactCompiler `json:"compiler,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates *SolidityContractJsonArtifactGasEstimates `json:"gasEstimates,omitempty"` +} + +// NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifact(contractName string) *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + this.ContractName = contractName + return &this +} + +// NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *SolidityContractJsonArtifact) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *SolidityContractJsonArtifact) SetContractName(v string) { + o.ContractName = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *SolidityContractJsonArtifact) SetMetadata(v string) { + o.Metadata = &v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetBytecode() string { + if o == nil || IsNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasBytecode() bool { + if o != nil && !IsNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *SolidityContractJsonArtifact) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string { + if o == nil || IsNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool { + if o != nil && !IsNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourceMap() string { + if o == nil || IsNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourceMap() bool { + if o != nil && !IsNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *SolidityContractJsonArtifact) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string { + if o == nil || IsNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool { + if o != nil && !IsNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourcePath() string { + if o == nil || IsNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool) { + if o == nil || IsNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourcePath() bool { + if o != nil && !IsNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *SolidityContractJsonArtifact) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler { + if o == nil || IsNil(o.Compiler) { + var ret SolidityContractJsonArtifactCompiler + return ret + } + return *o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool) { + if o == nil || IsNil(o.Compiler) { + return nil, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasCompiler() bool { + if o != nil && !IsNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given SolidityContractJsonArtifactCompiler and assigns it to the Compiler field. +func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler) { + o.Compiler = &v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{} { + if o == nil || IsNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool { + if o != nil && !IsNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates { + if o == nil || IsNil(o.GasEstimates) { + var ret SolidityContractJsonArtifactGasEstimates + return ret + } + return *o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool) { + if o == nil || IsNil(o.GasEstimates) { + return nil, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasGasEstimates() bool { + if o != nil && !IsNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given SolidityContractJsonArtifactGasEstimates and assigns it to the GasEstimates field. +func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates) { + o.GasEstimates = &v +} + +func (o SolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + if !IsNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !IsNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !IsNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !IsNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !IsNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !IsNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !IsNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifact struct { + value *SolidityContractJsonArtifact + isSet bool +} + +func (v NullableSolidityContractJsonArtifact) Get() *SolidityContractJsonArtifact { + return v.value +} + +func (v *NullableSolidityContractJsonArtifact) Set(val *SolidityContractJsonArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifact(val *SolidityContractJsonArtifact) *NullableSolidityContractJsonArtifact { + return &NullableSolidityContractJsonArtifact{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go new file mode 100644 index 00000000000..868a9b1f3f4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go @@ -0,0 +1,188 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactCompiler type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactCompiler{} + +// SolidityContractJsonArtifactCompiler struct for SolidityContractJsonArtifactCompiler +type SolidityContractJsonArtifactCompiler struct { + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SolidityContractJsonArtifactCompiler SolidityContractJsonArtifactCompiler + +// NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SolidityContractJsonArtifactCompiler) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string) { + o.Version = &v +} + +func (o SolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactCompiler) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SolidityContractJsonArtifactCompiler) UnmarshalJSON(bytes []byte) (err error) { + varSolidityContractJsonArtifactCompiler := _SolidityContractJsonArtifactCompiler{} + + if err = json.Unmarshal(bytes, &varSolidityContractJsonArtifactCompiler); err == nil { + *o = SolidityContractJsonArtifactCompiler(varSolidityContractJsonArtifactCompiler) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSolidityContractJsonArtifactCompiler struct { + value *SolidityContractJsonArtifactCompiler + isSet bool +} + +func (v NullableSolidityContractJsonArtifactCompiler) Get() *SolidityContractJsonArtifactCompiler { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Set(val *SolidityContractJsonArtifactCompiler) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactCompiler) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactCompiler(val *SolidityContractJsonArtifactCompiler) *NullableSolidityContractJsonArtifactCompiler { + return &NullableSolidityContractJsonArtifactCompiler{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactCompiler) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go new file mode 100644 index 00000000000..7ff846881d6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimates{} + +// SolidityContractJsonArtifactGasEstimates struct for SolidityContractJsonArtifactGasEstimates +type SolidityContractJsonArtifactGasEstimates struct { + Creation *SolidityContractJsonArtifactGasEstimatesCreation `json:"creation,omitempty"` + External map[string]interface{} `json:"external,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// GetCreation returns the Creation field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation { + if o == nil || IsNil(o.Creation) { + var ret SolidityContractJsonArtifactGasEstimatesCreation + return ret + } + return *o.Creation +} + +// GetCreationOk returns a tuple with the Creation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool) { + if o == nil || IsNil(o.Creation) { + return nil, false + } + return o.Creation, true +} + +// HasCreation returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool { + if o != nil && !IsNil(o.Creation) { + return true + } + + return false +} + +// SetCreation gets a reference to the given SolidityContractJsonArtifactGasEstimatesCreation and assigns it to the Creation field. +func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation) { + o.Creation = &v +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{} { + if o == nil || IsNil(o.External) { + var ret map[string]interface{} + return ret + } + return o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.External) { + return map[string]interface{}{}, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool { + if o != nil && !IsNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given map[string]interface{} and assigns it to the External field. +func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{}) { + o.External = v +} + +func (o SolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Creation) { + toSerialize["creation"] = o.Creation + } + if !IsNil(o.External) { + toSerialize["external"] = o.External + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimates struct { + value *SolidityContractJsonArtifactGasEstimates + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) Get() *SolidityContractJsonArtifactGasEstimates { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Set(val *SolidityContractJsonArtifactGasEstimates) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimates(val *SolidityContractJsonArtifactGasEstimates) *NullableSolidityContractJsonArtifactGasEstimates { + return &NullableSolidityContractJsonArtifactGasEstimates{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go new file mode 100644 index 00000000000..10fe552f02a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimatesCreation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimatesCreation{} + +// SolidityContractJsonArtifactGasEstimatesCreation struct for SolidityContractJsonArtifactGasEstimatesCreation +type SolidityContractJsonArtifactGasEstimatesCreation struct { + CodeDepositCost *string `json:"codeDepositCost,omitempty"` + ExecutionCost *string `json:"executionCost,omitempty"` + TotalCost *string `json:"totalCost,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// GetCodeDepositCost returns the CodeDepositCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string { + if o == nil || IsNil(o.CodeDepositCost) { + var ret string + return ret + } + return *o.CodeDepositCost +} + +// GetCodeDepositCostOk returns a tuple with the CodeDepositCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool) { + if o == nil || IsNil(o.CodeDepositCost) { + return nil, false + } + return o.CodeDepositCost, true +} + +// HasCodeDepositCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool { + if o != nil && !IsNil(o.CodeDepositCost) { + return true + } + + return false +} + +// SetCodeDepositCost gets a reference to the given string and assigns it to the CodeDepositCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string) { + o.CodeDepositCost = &v +} + +// GetExecutionCost returns the ExecutionCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string { + if o == nil || IsNil(o.ExecutionCost) { + var ret string + return ret + } + return *o.ExecutionCost +} + +// GetExecutionCostOk returns a tuple with the ExecutionCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionCost) { + return nil, false + } + return o.ExecutionCost, true +} + +// HasExecutionCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool { + if o != nil && !IsNil(o.ExecutionCost) { + return true + } + + return false +} + +// SetExecutionCost gets a reference to the given string and assigns it to the ExecutionCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string) { + o.ExecutionCost = &v +} + +// GetTotalCost returns the TotalCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string { + if o == nil || IsNil(o.TotalCost) { + var ret string + return ret + } + return *o.TotalCost +} + +// GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool) { + if o == nil || IsNil(o.TotalCost) { + return nil, false + } + return o.TotalCost, true +} + +// HasTotalCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool { + if o != nil && !IsNil(o.TotalCost) { + return true + } + + return false +} + +// SetTotalCost gets a reference to the given string and assigns it to the TotalCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string) { + o.TotalCost = &v +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CodeDepositCost) { + toSerialize["codeDepositCost"] = o.CodeDepositCost + } + if !IsNil(o.ExecutionCost) { + toSerialize["executionCost"] = o.ExecutionCost + } + if !IsNil(o.TotalCost) { + toSerialize["totalCost"] = o.TotalCost + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimatesCreation struct { + value *SolidityContractJsonArtifactGasEstimatesCreation + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) Get() *SolidityContractJsonArtifactGasEstimatesCreation { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Set(val *SolidityContractJsonArtifactGasEstimatesCreation) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimatesCreation(val *SolidityContractJsonArtifactGasEstimatesCreation) *NullableSolidityContractJsonArtifactGasEstimatesCreation { + return &NullableSolidityContractJsonArtifactGasEstimatesCreation{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go new file mode 100644 index 00000000000..2db94e1ad78 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// WatchBlocksV1 the model 'WatchBlocksV1' +type WatchBlocksV1 string + +// List of WatchBlocksV1 +const ( + Subscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Subscribe" + Next WatchBlocksV1 = "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Next" + Unsubscribe WatchBlocksV1 = "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Unsubscribe" + Error WatchBlocksV1 = "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Error" + Complete WatchBlocksV1 = "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Complete" +) + +// All allowed values of WatchBlocksV1 enum +var AllowedWatchBlocksV1EnumValues = []WatchBlocksV1{ + "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Subscribe", + "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Next", + "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Unsubscribe", + "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Error", + "org.hyperledger.cactus.api.async.quorum.WatchBlocksV1.Complete", +} + +func (v *WatchBlocksV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WatchBlocksV1(value) + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WatchBlocksV1", value) +} + +// NewWatchBlocksV1FromValue returns a pointer to a valid WatchBlocksV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWatchBlocksV1FromValue(v string) (*WatchBlocksV1, error) { + ev := WatchBlocksV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WatchBlocksV1: valid values are %v", v, AllowedWatchBlocksV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WatchBlocksV1) IsValid() bool { + for _, existing := range AllowedWatchBlocksV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WatchBlocksV1 value +func (v WatchBlocksV1) Ptr() *WatchBlocksV1 { + return &v +} + +type NullableWatchBlocksV1 struct { + value *WatchBlocksV1 + isSet bool +} + +func (v NullableWatchBlocksV1) Get() *WatchBlocksV1 { + return v.value +} + +func (v *NullableWatchBlocksV1) Set(val *WatchBlocksV1) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1(val *WatchBlocksV1) *NullableWatchBlocksV1 { + return &NullableWatchBlocksV1{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go new file mode 100644 index 00000000000..5a399bcf1f8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_block_data.go @@ -0,0 +1,666 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1BlockData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1BlockData{} + +// WatchBlocksV1BlockData struct for WatchBlocksV1BlockData +type WatchBlocksV1BlockData struct { + Number float32 `json:"number"` + Hash string `json:"hash"` + ParentHash string `json:"parentHash"` + Nonce string `json:"nonce"` + Sha3Uncles string `json:"sha3Uncles"` + LogsBloom string `json:"logsBloom"` + TransactionsRoot *string `json:"transactionsRoot,omitempty"` + StateRoot string `json:"stateRoot"` + ReceiptsRoot *string `json:"receiptsRoot,omitempty"` + Difficulty *string `json:"difficulty,omitempty"` + MixHash *string `json:"mixHash,omitempty"` + Miner string `json:"miner"` + ExtraData string `json:"extraData"` + GasLimit int32 `json:"gasLimit"` + GasUsed int32 `json:"gasUsed"` + Timestamp QuorumTransactionConfigFrom `json:"timestamp"` + Size float32 `json:"size"` + TotalDifficulty string `json:"totalDifficulty"` + Uncles []string `json:"uncles"` + Transactions []Web3Transaction `json:"transactions"` +} + +// NewWatchBlocksV1BlockData instantiates a new WatchBlocksV1BlockData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1BlockData(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp QuorumTransactionConfigFrom, size float32, totalDifficulty string, uncles []string, transactions []Web3Transaction) *WatchBlocksV1BlockData { + this := WatchBlocksV1BlockData{} + this.Number = number + this.Hash = hash + this.ParentHash = parentHash + this.Nonce = nonce + this.Sha3Uncles = sha3Uncles + this.LogsBloom = logsBloom + this.StateRoot = stateRoot + this.Miner = miner + this.ExtraData = extraData + this.GasLimit = gasLimit + this.GasUsed = gasUsed + this.Timestamp = timestamp + this.Size = size + this.TotalDifficulty = totalDifficulty + this.Uncles = uncles + this.Transactions = transactions + return &this +} + +// NewWatchBlocksV1BlockDataWithDefaults instantiates a new WatchBlocksV1BlockData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1BlockDataWithDefaults() *WatchBlocksV1BlockData { + this := WatchBlocksV1BlockData{} + return &this +} + +// GetNumber returns the Number field value +func (o *WatchBlocksV1BlockData) GetNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Number, true +} + +// SetNumber sets field value +func (o *WatchBlocksV1BlockData) SetNumber(v float32) { + o.Number = v +} + +// GetHash returns the Hash field value +func (o *WatchBlocksV1BlockData) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *WatchBlocksV1BlockData) SetHash(v string) { + o.Hash = v +} + +// GetParentHash returns the ParentHash field value +func (o *WatchBlocksV1BlockData) GetParentHash() string { + if o == nil { + var ret string + return ret + } + + return o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetParentHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParentHash, true +} + +// SetParentHash sets field value +func (o *WatchBlocksV1BlockData) SetParentHash(v string) { + o.ParentHash = v +} + +// GetNonce returns the Nonce field value +func (o *WatchBlocksV1BlockData) GetNonce() string { + if o == nil { + var ret string + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetNonceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *WatchBlocksV1BlockData) SetNonce(v string) { + o.Nonce = v +} + +// GetSha3Uncles returns the Sha3Uncles field value +func (o *WatchBlocksV1BlockData) GetSha3Uncles() string { + if o == nil { + var ret string + return ret + } + + return o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetSha3UnclesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha3Uncles, true +} + +// SetSha3Uncles sets field value +func (o *WatchBlocksV1BlockData) SetSha3Uncles(v string) { + o.Sha3Uncles = v +} + +// GetLogsBloom returns the LogsBloom field value +func (o *WatchBlocksV1BlockData) GetLogsBloom() string { + if o == nil { + var ret string + return ret + } + + return o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetLogsBloomOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsBloom, true +} + +// SetLogsBloom sets field value +func (o *WatchBlocksV1BlockData) SetLogsBloom(v string) { + o.LogsBloom = v +} + +// GetTransactionsRoot returns the TransactionsRoot field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetTransactionsRoot() string { + if o == nil || IsNil(o.TransactionsRoot) { + var ret string + return ret + } + return *o.TransactionsRoot +} + +// GetTransactionsRootOk returns a tuple with the TransactionsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTransactionsRootOk() (*string, bool) { + if o == nil || IsNil(o.TransactionsRoot) { + return nil, false + } + return o.TransactionsRoot, true +} + +// HasTransactionsRoot returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasTransactionsRoot() bool { + if o != nil && !IsNil(o.TransactionsRoot) { + return true + } + + return false +} + +// SetTransactionsRoot gets a reference to the given string and assigns it to the TransactionsRoot field. +func (o *WatchBlocksV1BlockData) SetTransactionsRoot(v string) { + o.TransactionsRoot = &v +} + +// GetStateRoot returns the StateRoot field value +func (o *WatchBlocksV1BlockData) GetStateRoot() string { + if o == nil { + var ret string + return ret + } + + return o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetStateRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateRoot, true +} + +// SetStateRoot sets field value +func (o *WatchBlocksV1BlockData) SetStateRoot(v string) { + o.StateRoot = v +} + +// GetReceiptsRoot returns the ReceiptsRoot field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetReceiptsRoot() string { + if o == nil || IsNil(o.ReceiptsRoot) { + var ret string + return ret + } + return *o.ReceiptsRoot +} + +// GetReceiptsRootOk returns a tuple with the ReceiptsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetReceiptsRootOk() (*string, bool) { + if o == nil || IsNil(o.ReceiptsRoot) { + return nil, false + } + return o.ReceiptsRoot, true +} + +// HasReceiptsRoot returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasReceiptsRoot() bool { + if o != nil && !IsNil(o.ReceiptsRoot) { + return true + } + + return false +} + +// SetReceiptsRoot gets a reference to the given string and assigns it to the ReceiptsRoot field. +func (o *WatchBlocksV1BlockData) SetReceiptsRoot(v string) { + o.ReceiptsRoot = &v +} + +// GetDifficulty returns the Difficulty field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetDifficulty() string { + if o == nil || IsNil(o.Difficulty) { + var ret string + return ret + } + return *o.Difficulty +} + +// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetDifficultyOk() (*string, bool) { + if o == nil || IsNil(o.Difficulty) { + return nil, false + } + return o.Difficulty, true +} + +// HasDifficulty returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasDifficulty() bool { + if o != nil && !IsNil(o.Difficulty) { + return true + } + + return false +} + +// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field. +func (o *WatchBlocksV1BlockData) SetDifficulty(v string) { + o.Difficulty = &v +} + +// GetMixHash returns the MixHash field value if set, zero value otherwise. +func (o *WatchBlocksV1BlockData) GetMixHash() string { + if o == nil || IsNil(o.MixHash) { + var ret string + return ret + } + return *o.MixHash +} + +// GetMixHashOk returns a tuple with the MixHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetMixHashOk() (*string, bool) { + if o == nil || IsNil(o.MixHash) { + return nil, false + } + return o.MixHash, true +} + +// HasMixHash returns a boolean if a field has been set. +func (o *WatchBlocksV1BlockData) HasMixHash() bool { + if o != nil && !IsNil(o.MixHash) { + return true + } + + return false +} + +// SetMixHash gets a reference to the given string and assigns it to the MixHash field. +func (o *WatchBlocksV1BlockData) SetMixHash(v string) { + o.MixHash = &v +} + +// GetMiner returns the Miner field value +func (o *WatchBlocksV1BlockData) GetMiner() string { + if o == nil { + var ret string + return ret + } + + return o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetMinerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Miner, true +} + +// SetMiner sets field value +func (o *WatchBlocksV1BlockData) SetMiner(v string) { + o.Miner = v +} + +// GetExtraData returns the ExtraData field value +func (o *WatchBlocksV1BlockData) GetExtraData() string { + if o == nil { + var ret string + return ret + } + + return o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetExtraDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExtraData, true +} + +// SetExtraData sets field value +func (o *WatchBlocksV1BlockData) SetExtraData(v string) { + o.ExtraData = v +} + +// GetGasLimit returns the GasLimit field value +func (o *WatchBlocksV1BlockData) GetGasLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetGasLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasLimit, true +} + +// SetGasLimit sets field value +func (o *WatchBlocksV1BlockData) SetGasLimit(v int32) { + o.GasLimit = v +} + +// GetGasUsed returns the GasUsed field value +func (o *WatchBlocksV1BlockData) GetGasUsed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetGasUsedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *WatchBlocksV1BlockData) SetGasUsed(v int32) { + o.GasUsed = v +} + +// GetTimestamp returns the Timestamp field value +func (o *WatchBlocksV1BlockData) GetTimestamp() QuorumTransactionConfigFrom { + if o == nil { + var ret QuorumTransactionConfigFrom + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTimestampOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *WatchBlocksV1BlockData) SetTimestamp(v QuorumTransactionConfigFrom) { + o.Timestamp = v +} + +// GetSize returns the Size field value +func (o *WatchBlocksV1BlockData) GetSize() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetSizeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *WatchBlocksV1BlockData) SetSize(v float32) { + o.Size = v +} + +// GetTotalDifficulty returns the TotalDifficulty field value +func (o *WatchBlocksV1BlockData) GetTotalDifficulty() string { + if o == nil { + var ret string + return ret + } + + return o.TotalDifficulty +} + +// GetTotalDifficultyOk returns a tuple with the TotalDifficulty field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTotalDifficultyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TotalDifficulty, true +} + +// SetTotalDifficulty sets field value +func (o *WatchBlocksV1BlockData) SetTotalDifficulty(v string) { + o.TotalDifficulty = v +} + +// GetUncles returns the Uncles field value +func (o *WatchBlocksV1BlockData) GetUncles() []string { + if o == nil { + var ret []string + return ret + } + + return o.Uncles +} + +// GetUnclesOk returns a tuple with the Uncles field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetUnclesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Uncles, true +} + +// SetUncles sets field value +func (o *WatchBlocksV1BlockData) SetUncles(v []string) { + o.Uncles = v +} + +// GetTransactions returns the Transactions field value +func (o *WatchBlocksV1BlockData) GetTransactions() []Web3Transaction { + if o == nil { + var ret []Web3Transaction + return ret + } + + return o.Transactions +} + +// GetTransactionsOk returns a tuple with the Transactions field value +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1BlockData) GetTransactionsOk() ([]Web3Transaction, bool) { + if o == nil { + return nil, false + } + return o.Transactions, true +} + +// SetTransactions sets field value +func (o *WatchBlocksV1BlockData) SetTransactions(v []Web3Transaction) { + o.Transactions = v +} + +func (o WatchBlocksV1BlockData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1BlockData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["number"] = o.Number + toSerialize["hash"] = o.Hash + toSerialize["parentHash"] = o.ParentHash + toSerialize["nonce"] = o.Nonce + toSerialize["sha3Uncles"] = o.Sha3Uncles + toSerialize["logsBloom"] = o.LogsBloom + if !IsNil(o.TransactionsRoot) { + toSerialize["transactionsRoot"] = o.TransactionsRoot + } + toSerialize["stateRoot"] = o.StateRoot + if !IsNil(o.ReceiptsRoot) { + toSerialize["receiptsRoot"] = o.ReceiptsRoot + } + if !IsNil(o.Difficulty) { + toSerialize["difficulty"] = o.Difficulty + } + if !IsNil(o.MixHash) { + toSerialize["mixHash"] = o.MixHash + } + toSerialize["miner"] = o.Miner + toSerialize["extraData"] = o.ExtraData + toSerialize["gasLimit"] = o.GasLimit + toSerialize["gasUsed"] = o.GasUsed + toSerialize["timestamp"] = o.Timestamp + toSerialize["size"] = o.Size + toSerialize["totalDifficulty"] = o.TotalDifficulty + toSerialize["uncles"] = o.Uncles + toSerialize["transactions"] = o.Transactions + return toSerialize, nil +} + +type NullableWatchBlocksV1BlockData struct { + value *WatchBlocksV1BlockData + isSet bool +} + +func (v NullableWatchBlocksV1BlockData) Get() *WatchBlocksV1BlockData { + return v.value +} + +func (v *NullableWatchBlocksV1BlockData) Set(val *WatchBlocksV1BlockData) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1BlockData) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1BlockData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1BlockData(val *WatchBlocksV1BlockData) *NullableWatchBlocksV1BlockData { + return &NullableWatchBlocksV1BlockData{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1BlockData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1BlockData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go new file mode 100644 index 00000000000..fb5f9d6c9fc --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_options.go @@ -0,0 +1,126 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1Options type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1Options{} + +// WatchBlocksV1Options struct for WatchBlocksV1Options +type WatchBlocksV1Options struct { + GetBlockData *bool `json:"getBlockData,omitempty"` +} + +// NewWatchBlocksV1Options instantiates a new WatchBlocksV1Options object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1Options() *WatchBlocksV1Options { + this := WatchBlocksV1Options{} + return &this +} + +// NewWatchBlocksV1OptionsWithDefaults instantiates a new WatchBlocksV1Options object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1OptionsWithDefaults() *WatchBlocksV1Options { + this := WatchBlocksV1Options{} + return &this +} + +// GetGetBlockData returns the GetBlockData field value if set, zero value otherwise. +func (o *WatchBlocksV1Options) GetGetBlockData() bool { + if o == nil || IsNil(o.GetBlockData) { + var ret bool + return ret + } + return *o.GetBlockData +} + +// GetGetBlockDataOk returns a tuple with the GetBlockData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Options) GetGetBlockDataOk() (*bool, bool) { + if o == nil || IsNil(o.GetBlockData) { + return nil, false + } + return o.GetBlockData, true +} + +// HasGetBlockData returns a boolean if a field has been set. +func (o *WatchBlocksV1Options) HasGetBlockData() bool { + if o != nil && !IsNil(o.GetBlockData) { + return true + } + + return false +} + +// SetGetBlockData gets a reference to the given bool and assigns it to the GetBlockData field. +func (o *WatchBlocksV1Options) SetGetBlockData(v bool) { + o.GetBlockData = &v +} + +func (o WatchBlocksV1Options) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1Options) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GetBlockData) { + toSerialize["getBlockData"] = o.GetBlockData + } + return toSerialize, nil +} + +type NullableWatchBlocksV1Options struct { + value *WatchBlocksV1Options + isSet bool +} + +func (v NullableWatchBlocksV1Options) Get() *WatchBlocksV1Options { + return v.value +} + +func (v *NullableWatchBlocksV1Options) Set(val *WatchBlocksV1Options) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1Options) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1Options) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1Options(val *WatchBlocksV1Options) *NullableWatchBlocksV1Options { + return &NullableWatchBlocksV1Options{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1Options) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1Options) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go new file mode 100644 index 00000000000..791eedc9ace --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_watch_blocks_v1_progress.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the WatchBlocksV1Progress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WatchBlocksV1Progress{} + +// WatchBlocksV1Progress struct for WatchBlocksV1Progress +type WatchBlocksV1Progress struct { + BlockHeader *Web3BlockHeader `json:"blockHeader,omitempty"` + BlockData *WatchBlocksV1BlockData `json:"blockData,omitempty"` +} + +// NewWatchBlocksV1Progress instantiates a new WatchBlocksV1Progress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWatchBlocksV1Progress() *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + return &this +} + +// NewWatchBlocksV1ProgressWithDefaults instantiates a new WatchBlocksV1Progress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWatchBlocksV1ProgressWithDefaults() *WatchBlocksV1Progress { + this := WatchBlocksV1Progress{} + return &this +} + +// GetBlockHeader returns the BlockHeader field value if set, zero value otherwise. +func (o *WatchBlocksV1Progress) GetBlockHeader() Web3BlockHeader { + if o == nil || IsNil(o.BlockHeader) { + var ret Web3BlockHeader + return ret + } + return *o.BlockHeader +} + +// GetBlockHeaderOk returns a tuple with the BlockHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Progress) GetBlockHeaderOk() (*Web3BlockHeader, bool) { + if o == nil || IsNil(o.BlockHeader) { + return nil, false + } + return o.BlockHeader, true +} + +// HasBlockHeader returns a boolean if a field has been set. +func (o *WatchBlocksV1Progress) HasBlockHeader() bool { + if o != nil && !IsNil(o.BlockHeader) { + return true + } + + return false +} + +// SetBlockHeader gets a reference to the given Web3BlockHeader and assigns it to the BlockHeader field. +func (o *WatchBlocksV1Progress) SetBlockHeader(v Web3BlockHeader) { + o.BlockHeader = &v +} + +// GetBlockData returns the BlockData field value if set, zero value otherwise. +func (o *WatchBlocksV1Progress) GetBlockData() WatchBlocksV1BlockData { + if o == nil || IsNil(o.BlockData) { + var ret WatchBlocksV1BlockData + return ret + } + return *o.BlockData +} + +// GetBlockDataOk returns a tuple with the BlockData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WatchBlocksV1Progress) GetBlockDataOk() (*WatchBlocksV1BlockData, bool) { + if o == nil || IsNil(o.BlockData) { + return nil, false + } + return o.BlockData, true +} + +// HasBlockData returns a boolean if a field has been set. +func (o *WatchBlocksV1Progress) HasBlockData() bool { + if o != nil && !IsNil(o.BlockData) { + return true + } + + return false +} + +// SetBlockData gets a reference to the given WatchBlocksV1BlockData and assigns it to the BlockData field. +func (o *WatchBlocksV1Progress) SetBlockData(v WatchBlocksV1BlockData) { + o.BlockData = &v +} + +func (o WatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WatchBlocksV1Progress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BlockHeader) { + toSerialize["blockHeader"] = o.BlockHeader + } + if !IsNil(o.BlockData) { + toSerialize["blockData"] = o.BlockData + } + return toSerialize, nil +} + +type NullableWatchBlocksV1Progress struct { + value *WatchBlocksV1Progress + isSet bool +} + +func (v NullableWatchBlocksV1Progress) Get() *WatchBlocksV1Progress { + return v.value +} + +func (v *NullableWatchBlocksV1Progress) Set(val *WatchBlocksV1Progress) { + v.value = val + v.isSet = true +} + +func (v NullableWatchBlocksV1Progress) IsSet() bool { + return v.isSet +} + +func (v *NullableWatchBlocksV1Progress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWatchBlocksV1Progress(val *WatchBlocksV1Progress) *NullableWatchBlocksV1Progress { + return &NullableWatchBlocksV1Progress{value: val, isSet: true} +} + +func (v NullableWatchBlocksV1Progress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWatchBlocksV1Progress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_block_header.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_block_header.go new file mode 100644 index 00000000000..e22af43c14b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_block_header.go @@ -0,0 +1,558 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3BlockHeader type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3BlockHeader{} + +// Web3BlockHeader struct for Web3BlockHeader +type Web3BlockHeader struct { + Number float32 `json:"number"` + Hash string `json:"hash"` + ParentHash string `json:"parentHash"` + Nonce string `json:"nonce"` + Sha3Uncles string `json:"sha3Uncles"` + LogsBloom string `json:"logsBloom"` + TransactionsRoot *string `json:"transactionsRoot,omitempty"` + StateRoot string `json:"stateRoot"` + ReceiptsRoot *string `json:"receiptsRoot,omitempty"` + Difficulty *string `json:"difficulty,omitempty"` + MixHash *string `json:"mixHash,omitempty"` + Miner string `json:"miner"` + ExtraData string `json:"extraData"` + GasLimit int32 `json:"gasLimit"` + GasUsed int32 `json:"gasUsed"` + Timestamp QuorumTransactionConfigFrom `json:"timestamp"` +} + +// NewWeb3BlockHeader instantiates a new Web3BlockHeader object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3BlockHeader(number float32, hash string, parentHash string, nonce string, sha3Uncles string, logsBloom string, stateRoot string, miner string, extraData string, gasLimit int32, gasUsed int32, timestamp QuorumTransactionConfigFrom) *Web3BlockHeader { + this := Web3BlockHeader{} + this.Number = number + this.Hash = hash + this.ParentHash = parentHash + this.Nonce = nonce + this.Sha3Uncles = sha3Uncles + this.LogsBloom = logsBloom + this.StateRoot = stateRoot + this.Miner = miner + this.ExtraData = extraData + this.GasLimit = gasLimit + this.GasUsed = gasUsed + this.Timestamp = timestamp + return &this +} + +// NewWeb3BlockHeaderWithDefaults instantiates a new Web3BlockHeader object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3BlockHeaderWithDefaults() *Web3BlockHeader { + this := Web3BlockHeader{} + return &this +} + +// GetNumber returns the Number field value +func (o *Web3BlockHeader) GetNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Number, true +} + +// SetNumber sets field value +func (o *Web3BlockHeader) SetNumber(v float32) { + o.Number = v +} + +// GetHash returns the Hash field value +func (o *Web3BlockHeader) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *Web3BlockHeader) SetHash(v string) { + o.Hash = v +} + +// GetParentHash returns the ParentHash field value +func (o *Web3BlockHeader) GetParentHash() string { + if o == nil { + var ret string + return ret + } + + return o.ParentHash +} + +// GetParentHashOk returns a tuple with the ParentHash field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetParentHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParentHash, true +} + +// SetParentHash sets field value +func (o *Web3BlockHeader) SetParentHash(v string) { + o.ParentHash = v +} + +// GetNonce returns the Nonce field value +func (o *Web3BlockHeader) GetNonce() string { + if o == nil { + var ret string + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetNonceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *Web3BlockHeader) SetNonce(v string) { + o.Nonce = v +} + +// GetSha3Uncles returns the Sha3Uncles field value +func (o *Web3BlockHeader) GetSha3Uncles() string { + if o == nil { + var ret string + return ret + } + + return o.Sha3Uncles +} + +// GetSha3UnclesOk returns a tuple with the Sha3Uncles field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetSha3UnclesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha3Uncles, true +} + +// SetSha3Uncles sets field value +func (o *Web3BlockHeader) SetSha3Uncles(v string) { + o.Sha3Uncles = v +} + +// GetLogsBloom returns the LogsBloom field value +func (o *Web3BlockHeader) GetLogsBloom() string { + if o == nil { + var ret string + return ret + } + + return o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetLogsBloomOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsBloom, true +} + +// SetLogsBloom sets field value +func (o *Web3BlockHeader) SetLogsBloom(v string) { + o.LogsBloom = v +} + +// GetTransactionsRoot returns the TransactionsRoot field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetTransactionsRoot() string { + if o == nil || IsNil(o.TransactionsRoot) { + var ret string + return ret + } + return *o.TransactionsRoot +} + +// GetTransactionsRootOk returns a tuple with the TransactionsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTransactionsRootOk() (*string, bool) { + if o == nil || IsNil(o.TransactionsRoot) { + return nil, false + } + return o.TransactionsRoot, true +} + +// HasTransactionsRoot returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasTransactionsRoot() bool { + if o != nil && !IsNil(o.TransactionsRoot) { + return true + } + + return false +} + +// SetTransactionsRoot gets a reference to the given string and assigns it to the TransactionsRoot field. +func (o *Web3BlockHeader) SetTransactionsRoot(v string) { + o.TransactionsRoot = &v +} + +// GetStateRoot returns the StateRoot field value +func (o *Web3BlockHeader) GetStateRoot() string { + if o == nil { + var ret string + return ret + } + + return o.StateRoot +} + +// GetStateRootOk returns a tuple with the StateRoot field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetStateRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateRoot, true +} + +// SetStateRoot sets field value +func (o *Web3BlockHeader) SetStateRoot(v string) { + o.StateRoot = v +} + +// GetReceiptsRoot returns the ReceiptsRoot field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetReceiptsRoot() string { + if o == nil || IsNil(o.ReceiptsRoot) { + var ret string + return ret + } + return *o.ReceiptsRoot +} + +// GetReceiptsRootOk returns a tuple with the ReceiptsRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetReceiptsRootOk() (*string, bool) { + if o == nil || IsNil(o.ReceiptsRoot) { + return nil, false + } + return o.ReceiptsRoot, true +} + +// HasReceiptsRoot returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasReceiptsRoot() bool { + if o != nil && !IsNil(o.ReceiptsRoot) { + return true + } + + return false +} + +// SetReceiptsRoot gets a reference to the given string and assigns it to the ReceiptsRoot field. +func (o *Web3BlockHeader) SetReceiptsRoot(v string) { + o.ReceiptsRoot = &v +} + +// GetDifficulty returns the Difficulty field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetDifficulty() string { + if o == nil || IsNil(o.Difficulty) { + var ret string + return ret + } + return *o.Difficulty +} + +// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetDifficultyOk() (*string, bool) { + if o == nil || IsNil(o.Difficulty) { + return nil, false + } + return o.Difficulty, true +} + +// HasDifficulty returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasDifficulty() bool { + if o != nil && !IsNil(o.Difficulty) { + return true + } + + return false +} + +// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field. +func (o *Web3BlockHeader) SetDifficulty(v string) { + o.Difficulty = &v +} + +// GetMixHash returns the MixHash field value if set, zero value otherwise. +func (o *Web3BlockHeader) GetMixHash() string { + if o == nil || IsNil(o.MixHash) { + var ret string + return ret + } + return *o.MixHash +} + +// GetMixHashOk returns a tuple with the MixHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetMixHashOk() (*string, bool) { + if o == nil || IsNil(o.MixHash) { + return nil, false + } + return o.MixHash, true +} + +// HasMixHash returns a boolean if a field has been set. +func (o *Web3BlockHeader) HasMixHash() bool { + if o != nil && !IsNil(o.MixHash) { + return true + } + + return false +} + +// SetMixHash gets a reference to the given string and assigns it to the MixHash field. +func (o *Web3BlockHeader) SetMixHash(v string) { + o.MixHash = &v +} + +// GetMiner returns the Miner field value +func (o *Web3BlockHeader) GetMiner() string { + if o == nil { + var ret string + return ret + } + + return o.Miner +} + +// GetMinerOk returns a tuple with the Miner field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetMinerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Miner, true +} + +// SetMiner sets field value +func (o *Web3BlockHeader) SetMiner(v string) { + o.Miner = v +} + +// GetExtraData returns the ExtraData field value +func (o *Web3BlockHeader) GetExtraData() string { + if o == nil { + var ret string + return ret + } + + return o.ExtraData +} + +// GetExtraDataOk returns a tuple with the ExtraData field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetExtraDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExtraData, true +} + +// SetExtraData sets field value +func (o *Web3BlockHeader) SetExtraData(v string) { + o.ExtraData = v +} + +// GetGasLimit returns the GasLimit field value +func (o *Web3BlockHeader) GetGasLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasLimit +} + +// GetGasLimitOk returns a tuple with the GasLimit field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasLimit, true +} + +// SetGasLimit sets field value +func (o *Web3BlockHeader) SetGasLimit(v int32) { + o.GasLimit = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3BlockHeader) GetGasUsed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetGasUsedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3BlockHeader) SetGasUsed(v int32) { + o.GasUsed = v +} + +// GetTimestamp returns the Timestamp field value +func (o *Web3BlockHeader) GetTimestamp() QuorumTransactionConfigFrom { + if o == nil { + var ret QuorumTransactionConfigFrom + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *Web3BlockHeader) GetTimestampOk() (*QuorumTransactionConfigFrom, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *Web3BlockHeader) SetTimestamp(v QuorumTransactionConfigFrom) { + o.Timestamp = v +} + +func (o Web3BlockHeader) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3BlockHeader) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["number"] = o.Number + toSerialize["hash"] = o.Hash + toSerialize["parentHash"] = o.ParentHash + toSerialize["nonce"] = o.Nonce + toSerialize["sha3Uncles"] = o.Sha3Uncles + toSerialize["logsBloom"] = o.LogsBloom + if !IsNil(o.TransactionsRoot) { + toSerialize["transactionsRoot"] = o.TransactionsRoot + } + toSerialize["stateRoot"] = o.StateRoot + if !IsNil(o.ReceiptsRoot) { + toSerialize["receiptsRoot"] = o.ReceiptsRoot + } + if !IsNil(o.Difficulty) { + toSerialize["difficulty"] = o.Difficulty + } + if !IsNil(o.MixHash) { + toSerialize["mixHash"] = o.MixHash + } + toSerialize["miner"] = o.Miner + toSerialize["extraData"] = o.ExtraData + toSerialize["gasLimit"] = o.GasLimit + toSerialize["gasUsed"] = o.GasUsed + toSerialize["timestamp"] = o.Timestamp + return toSerialize, nil +} + +type NullableWeb3BlockHeader struct { + value *Web3BlockHeader + isSet bool +} + +func (v NullableWeb3BlockHeader) Get() *Web3BlockHeader { + return v.value +} + +func (v *NullableWeb3BlockHeader) Set(val *Web3BlockHeader) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3BlockHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3BlockHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3BlockHeader(val *Web3BlockHeader) *NullableWeb3BlockHeader { + return &NullableWeb3BlockHeader{value: val, isSet: true} +} + +func (v NullableWeb3BlockHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3BlockHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..4ebf1cf21ab --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,208 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialGethKeychainPassword *Web3SigningCredentialGethKeychainPassword + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialGethKeychainPasswordAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialGethKeychainPassword wrapped in Web3SigningCredential +func Web3SigningCredentialGethKeychainPasswordAsWeb3SigningCredential(v *Web3SigningCredentialGethKeychainPassword) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialGethKeychainPassword: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialGethKeychainPassword + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialGethKeychainPassword) + if err == nil { + jsonWeb3SigningCredentialGethKeychainPassword, _ := json.Marshal(dst.Web3SigningCredentialGethKeychainPassword) + if string(jsonWeb3SigningCredentialGethKeychainPassword) == "{}" { // empty struct + dst.Web3SigningCredentialGethKeychainPassword = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialGethKeychainPassword = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialGethKeychainPassword = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialGethKeychainPassword != nil { + return json.Marshal(&src.Web3SigningCredentialGethKeychainPassword) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialGethKeychainPassword != nil { + return obj.Web3SigningCredentialGethKeychainPassword + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..59087c790cb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,210 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId *string `json:"keychainId,omitempty"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value if set, zero value otherwise. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil || IsNil(o.KeychainId) { + var ret string + return ret + } + return *o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil || IsNil(o.KeychainId) { + return nil, false + } + return o.KeychainId, true +} + +// HasKeychainId returns a boolean if a field has been set. +func (o *Web3SigningCredentialCactusKeychainRef) HasKeychainId() bool { + if o != nil && !IsNil(o.KeychainId) { + return true + } + + return false +} + +// SetKeychainId gets a reference to the given string and assigns it to the KeychainId field. +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = &v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + if !IsNil(o.KeychainId) { + toSerialize["keychainId"] = o.KeychainId + } + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go new file mode 100644 index 00000000000..8bca87c6055 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_geth_keychain_password.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialGethKeychainPassword type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialGethKeychainPassword{} + +// Web3SigningCredentialGethKeychainPassword struct for Web3SigningCredentialGethKeychainPassword +type Web3SigningCredentialGethKeychainPassword struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // A geth keychain unlock password. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialGethKeychainPassword instantiates a new Web3SigningCredentialGethKeychainPassword object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialGethKeychainPassword(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialGethKeychainPassword { + this := Web3SigningCredentialGethKeychainPassword{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialGethKeychainPasswordWithDefaults instantiates a new Web3SigningCredentialGethKeychainPassword object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialGethKeychainPasswordWithDefaults() *Web3SigningCredentialGethKeychainPassword { + this := Web3SigningCredentialGethKeychainPassword{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialGethKeychainPassword) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialGethKeychainPassword) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialGethKeychainPassword) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialGethKeychainPassword) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialGethKeychainPassword) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialGethKeychainPassword) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialGethKeychainPassword struct { + value *Web3SigningCredentialGethKeychainPassword + isSet bool +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) Get() *Web3SigningCredentialGethKeychainPassword { + return v.value +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) Set(val *Web3SigningCredentialGethKeychainPassword) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialGethKeychainPassword(val *Web3SigningCredentialGethKeychainPassword) *NullableWeb3SigningCredentialGethKeychainPassword { + return &NullableWeb3SigningCredentialGethKeychainPassword{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialGethKeychainPassword) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialGethKeychainPassword) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..a2224587a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..5f6fc9a9faa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..9ec6fbc702b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction.go new file mode 100644 index 00000000000..d1b54041b9c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction.go @@ -0,0 +1,503 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3Transaction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3Transaction{} + +// Web3Transaction struct for Web3Transaction +type Web3Transaction struct { + Hash string `json:"hash"` + Nonce float32 `json:"nonce"` + BlockHash NullableString `json:"blockHash"` + BlockNumber NullableFloat32 `json:"blockNumber"` + TransactionIndex NullableFloat32 `json:"transactionIndex"` + From string `json:"from"` + To NullableString `json:"to"` + Value string `json:"value"` + GasPrice string `json:"gasPrice"` + Gas float32 `json:"gas"` + Input string `json:"input"` + V *string `json:"v,omitempty"` + R *string `json:"r,omitempty"` + S *string `json:"s,omitempty"` +} + +// NewWeb3Transaction instantiates a new Web3Transaction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3Transaction(hash string, nonce float32, blockHash NullableString, blockNumber NullableFloat32, transactionIndex NullableFloat32, from string, to NullableString, value string, gasPrice string, gas float32, input string) *Web3Transaction { + this := Web3Transaction{} + this.Hash = hash + this.Nonce = nonce + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.TransactionIndex = transactionIndex + this.From = from + this.To = to + this.Value = value + this.GasPrice = gasPrice + this.Gas = gas + this.Input = input + return &this +} + +// NewWeb3TransactionWithDefaults instantiates a new Web3Transaction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionWithDefaults() *Web3Transaction { + this := Web3Transaction{} + return &this +} + +// GetHash returns the Hash field value +func (o *Web3Transaction) GetHash() string { + if o == nil { + var ret string + return ret + } + + return o.Hash +} + +// GetHashOk returns a tuple with the Hash field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hash, true +} + +// SetHash sets field value +func (o *Web3Transaction) SetHash(v string) { + o.Hash = v +} + +// GetNonce returns the Nonce field value +func (o *Web3Transaction) GetNonce() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetNonceOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Nonce, true +} + +// SetNonce sets field value +func (o *Web3Transaction) SetNonce(v float32) { + o.Nonce = v +} + +// GetBlockHash returns the BlockHash field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Web3Transaction) GetBlockHash() string { + if o == nil || o.BlockHash.Get() == nil { + var ret string + return ret + } + + return *o.BlockHash.Get() +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BlockHash.Get(), o.BlockHash.IsSet() +} + +// SetBlockHash sets field value +func (o *Web3Transaction) SetBlockHash(v string) { + o.BlockHash.Set(&v) +} + +// GetBlockNumber returns the BlockNumber field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Web3Transaction) GetBlockNumber() float32 { + if o == nil || o.BlockNumber.Get() == nil { + var ret float32 + return ret + } + + return *o.BlockNumber.Get() +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BlockNumber.Get(), o.BlockNumber.IsSet() +} + +// SetBlockNumber sets field value +func (o *Web3Transaction) SetBlockNumber(v float32) { + o.BlockNumber.Set(&v) +} + +// GetTransactionIndex returns the TransactionIndex field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Web3Transaction) GetTransactionIndex() float32 { + if o == nil || o.TransactionIndex.Get() == nil { + var ret float32 + return ret + } + + return *o.TransactionIndex.Get() +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.TransactionIndex.Get(), o.TransactionIndex.IsSet() +} + +// SetTransactionIndex sets field value +func (o *Web3Transaction) SetTransactionIndex(v float32) { + o.TransactionIndex.Set(&v) +} + +// GetFrom returns the From field value +func (o *Web3Transaction) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3Transaction) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Web3Transaction) GetTo() string { + if o == nil || o.To.Get() == nil { + var ret string + return ret + } + + return *o.To.Get() +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3Transaction) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.To.Get(), o.To.IsSet() +} + +// SetTo sets field value +func (o *Web3Transaction) SetTo(v string) { + o.To.Set(&v) +} + +// GetValue returns the Value field value +func (o *Web3Transaction) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Web3Transaction) SetValue(v string) { + o.Value = v +} + +// GetGasPrice returns the GasPrice field value +func (o *Web3Transaction) GetGasPrice() string { + if o == nil { + var ret string + return ret + } + + return o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetGasPriceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GasPrice, true +} + +// SetGasPrice sets field value +func (o *Web3Transaction) SetGasPrice(v string) { + o.GasPrice = v +} + +// GetGas returns the Gas field value +func (o *Web3Transaction) GetGas() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Gas +} + +// GetGasOk returns a tuple with the Gas field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetGasOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Gas, true +} + +// SetGas sets field value +func (o *Web3Transaction) SetGas(v float32) { + o.Gas = v +} + +// GetInput returns the Input field value +func (o *Web3Transaction) GetInput() string { + if o == nil { + var ret string + return ret + } + + return o.Input +} + +// GetInputOk returns a tuple with the Input field value +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetInputOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Input, true +} + +// SetInput sets field value +func (o *Web3Transaction) SetInput(v string) { + o.Input = v +} + +// GetV returns the V field value if set, zero value otherwise. +func (o *Web3Transaction) GetV() string { + if o == nil || IsNil(o.V) { + var ret string + return ret + } + return *o.V +} + +// GetVOk returns a tuple with the V field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetVOk() (*string, bool) { + if o == nil || IsNil(o.V) { + return nil, false + } + return o.V, true +} + +// HasV returns a boolean if a field has been set. +func (o *Web3Transaction) HasV() bool { + if o != nil && !IsNil(o.V) { + return true + } + + return false +} + +// SetV gets a reference to the given string and assigns it to the V field. +func (o *Web3Transaction) SetV(v string) { + o.V = &v +} + +// GetR returns the R field value if set, zero value otherwise. +func (o *Web3Transaction) GetR() string { + if o == nil || IsNil(o.R) { + var ret string + return ret + } + return *o.R +} + +// GetROk returns a tuple with the R field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetROk() (*string, bool) { + if o == nil || IsNil(o.R) { + return nil, false + } + return o.R, true +} + +// HasR returns a boolean if a field has been set. +func (o *Web3Transaction) HasR() bool { + if o != nil && !IsNil(o.R) { + return true + } + + return false +} + +// SetR gets a reference to the given string and assigns it to the R field. +func (o *Web3Transaction) SetR(v string) { + o.R = &v +} + +// GetS returns the S field value if set, zero value otherwise. +func (o *Web3Transaction) GetS() string { + if o == nil || IsNil(o.S) { + var ret string + return ret + } + return *o.S +} + +// GetSOk returns a tuple with the S field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3Transaction) GetSOk() (*string, bool) { + if o == nil || IsNil(o.S) { + return nil, false + } + return o.S, true +} + +// HasS returns a boolean if a field has been set. +func (o *Web3Transaction) HasS() bool { + if o != nil && !IsNil(o.S) { + return true + } + + return false +} + +// SetS gets a reference to the given string and assigns it to the S field. +func (o *Web3Transaction) SetS(v string) { + o.S = &v +} + +func (o Web3Transaction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3Transaction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hash"] = o.Hash + toSerialize["nonce"] = o.Nonce + toSerialize["blockHash"] = o.BlockHash.Get() + toSerialize["blockNumber"] = o.BlockNumber.Get() + toSerialize["transactionIndex"] = o.TransactionIndex.Get() + toSerialize["from"] = o.From + toSerialize["to"] = o.To.Get() + toSerialize["value"] = o.Value + toSerialize["gasPrice"] = o.GasPrice + toSerialize["gas"] = o.Gas + toSerialize["input"] = o.Input + if !IsNil(o.V) { + toSerialize["v"] = o.V + } + if !IsNil(o.R) { + toSerialize["r"] = o.R + } + if !IsNil(o.S) { + toSerialize["s"] = o.S + } + return toSerialize, nil +} + +type NullableWeb3Transaction struct { + value *Web3Transaction + isSet bool +} + +func (v NullableWeb3Transaction) Get() *Web3Transaction { + return v.value +} + +func (v *NullableWeb3Transaction) Set(val *Web3Transaction) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3Transaction) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3Transaction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3Transaction(val *Web3Transaction) *NullableWeb3Transaction { + return &NullableWeb3Transaction{value: val, isSet: true} +} + +func (v NullableWeb3Transaction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3Transaction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..c9f3ad2db7c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,607 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + Logs []interface{} `json:"logs,omitempty"` + LogsBloom *string `json:"logsBloom,omitempty"` + RevertReason *string `json:"revertReason,omitempty"` + Output *string `json:"output,omitempty"` + CommitmentHash *string `json:"commitmentHash,omitempty"` + CumulativeGasUSed *float32 `json:"cumulativeGasUSed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +// GetLogs returns the Logs field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetLogs() []interface{} { + if o == nil || IsNil(o.Logs) { + var ret []interface{} + return ret + } + return o.Logs +} + +// GetLogsOk returns a tuple with the Logs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetLogsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Logs) { + return nil, false + } + return o.Logs, true +} + +// HasLogs returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasLogs() bool { + if o != nil && !IsNil(o.Logs) { + return true + } + + return false +} + +// SetLogs gets a reference to the given []interface{} and assigns it to the Logs field. +func (o *Web3TransactionReceipt) SetLogs(v []interface{}) { + o.Logs = v +} + +// GetLogsBloom returns the LogsBloom field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetLogsBloom() string { + if o == nil || IsNil(o.LogsBloom) { + var ret string + return ret + } + return *o.LogsBloom +} + +// GetLogsBloomOk returns a tuple with the LogsBloom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetLogsBloomOk() (*string, bool) { + if o == nil || IsNil(o.LogsBloom) { + return nil, false + } + return o.LogsBloom, true +} + +// HasLogsBloom returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasLogsBloom() bool { + if o != nil && !IsNil(o.LogsBloom) { + return true + } + + return false +} + +// SetLogsBloom gets a reference to the given string and assigns it to the LogsBloom field. +func (o *Web3TransactionReceipt) SetLogsBloom(v string) { + o.LogsBloom = &v +} + +// GetRevertReason returns the RevertReason field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetRevertReason() string { + if o == nil || IsNil(o.RevertReason) { + var ret string + return ret + } + return *o.RevertReason +} + +// GetRevertReasonOk returns a tuple with the RevertReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetRevertReasonOk() (*string, bool) { + if o == nil || IsNil(o.RevertReason) { + return nil, false + } + return o.RevertReason, true +} + +// HasRevertReason returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasRevertReason() bool { + if o != nil && !IsNil(o.RevertReason) { + return true + } + + return false +} + +// SetRevertReason gets a reference to the given string and assigns it to the RevertReason field. +func (o *Web3TransactionReceipt) SetRevertReason(v string) { + o.RevertReason = &v +} + +// GetOutput returns the Output field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetOutput() string { + if o == nil || IsNil(o.Output) { + var ret string + return ret + } + return *o.Output +} + +// GetOutputOk returns a tuple with the Output field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetOutputOk() (*string, bool) { + if o == nil || IsNil(o.Output) { + return nil, false + } + return o.Output, true +} + +// HasOutput returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasOutput() bool { + if o != nil && !IsNil(o.Output) { + return true + } + + return false +} + +// SetOutput gets a reference to the given string and assigns it to the Output field. +func (o *Web3TransactionReceipt) SetOutput(v string) { + o.Output = &v +} + +// GetCommitmentHash returns the CommitmentHash field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetCommitmentHash() string { + if o == nil || IsNil(o.CommitmentHash) { + var ret string + return ret + } + return *o.CommitmentHash +} + +// GetCommitmentHashOk returns a tuple with the CommitmentHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetCommitmentHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitmentHash) { + return nil, false + } + return o.CommitmentHash, true +} + +// HasCommitmentHash returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasCommitmentHash() bool { + if o != nil && !IsNil(o.CommitmentHash) { + return true + } + + return false +} + +// SetCommitmentHash gets a reference to the given string and assigns it to the CommitmentHash field. +func (o *Web3TransactionReceipt) SetCommitmentHash(v string) { + o.CommitmentHash = &v +} + +// GetCumulativeGasUSed returns the CumulativeGasUSed field value if set, zero value otherwise. +func (o *Web3TransactionReceipt) GetCumulativeGasUSed() float32 { + if o == nil || IsNil(o.CumulativeGasUSed) { + var ret float32 + return ret + } + return *o.CumulativeGasUSed +} + +// GetCumulativeGasUSedOk returns a tuple with the CumulativeGasUSed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetCumulativeGasUSedOk() (*float32, bool) { + if o == nil || IsNil(o.CumulativeGasUSed) { + return nil, false + } + return o.CumulativeGasUSed, true +} + +// HasCumulativeGasUSed returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasCumulativeGasUSed() bool { + if o != nil && !IsNil(o.CumulativeGasUSed) { + return true + } + + return false +} + +// SetCumulativeGasUSed gets a reference to the given float32 and assigns it to the CumulativeGasUSed field. +func (o *Web3TransactionReceipt) SetCumulativeGasUSed(v float32) { + o.CumulativeGasUSed = &v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + if !IsNil(o.Logs) { + toSerialize["logs"] = o.Logs + } + if !IsNil(o.LogsBloom) { + toSerialize["logsBloom"] = o.LogsBloom + } + if !IsNil(o.RevertReason) { + toSerialize["revertReason"] = o.RevertReason + } + if !IsNil(o.Output) { + toSerialize["output"] = o.Output + } + if !IsNil(o.CommitmentHash) { + toSerialize["commitmentHash"] = o.CommitmentHash + } + if !IsNil(o.CumulativeGasUSed) { + toSerialize["cumulativeGasUSed"] = o.CumulativeGasUSed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "logs") + delete(additionalProperties, "logsBloom") + delete(additionalProperties, "revertReason") + delete(additionalProperties, "output") + delete(additionalProperties, "commitmentHash") + delete(additionalProperties, "cumulativeGasUSed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..010395965a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..222eeb26177 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,121 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-quorum_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeployContractSolBytecodeJsonObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractSolBytecodeJsonObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DeployContractSolBytecodeV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractSolBytecodeV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1NoKeychain", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1NoKeychain(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeRawWeb3EthContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeRawWeb3EthContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeWeb3EthMethodV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeWeb3EthMethodV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..96fedce478d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Quorum + +Can perform basic tasks on a Quorum ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-quorum + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/README.md index 66d4f226ed7..5f7b4d1d492 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Quorum - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata] Can perform basic tasks on a Quorum ledger diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index f4ca655cc4b..0806b42a8e5 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index ffbdecf96bd..6d019127385 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 76cbeb68040..a3aec0d73c4 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 3970d317270..6f7a116e90f 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index bb7a8cdd572..2459a7301bc 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index ff4334a6c3d..098dca9d1ca 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 4a40c76a143..7f543b4ed9f 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java index bcc3472f202..ee9c91700dd 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java @@ -52,7 +52,7 @@ /** * ContractJSON */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class ContractJSON { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java index fd5a469d6f4..3444e1f9a76 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeJsonObjectV1Request.java @@ -55,7 +55,7 @@ /** * DeployContractSolidityBytecodeJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java index aeb8b85012d..d830ad33a89 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Request.java @@ -55,7 +55,7 @@ /** * DeployContractSolidityBytecodeV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java index 6c7e41edf50..5980a27d985 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractSolidityBytecodeV1Response.java @@ -51,7 +51,7 @@ /** * DeployContractSolidityBytecodeV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class DeployContractSolidityBytecodeV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java index 3acf1032d47..fe4244d45b6 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java @@ -58,7 +58,7 @@ /** * InvokeContractJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeContractJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java index ea2ba417c6e..8867a36fa61 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java @@ -56,7 +56,7 @@ /** * InvokeContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeContractV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index e9d17efe57b..f475e6c08d1 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java index 7b1571c52b4..82dfb5c0967 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Request.java @@ -53,7 +53,7 @@ /** * InvokeRawWeb3EthContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthContractV1Request { public static final String SERIALIZED_NAME_ABI = "abi"; @SerializedName(SERIALIZED_NAME_ABI) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java index 03f2ca6e992..60adba1220d 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeRawWeb3EthContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthContractV1Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java index 9722c6b557b..e30b3fd4930 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Request.java @@ -52,7 +52,7 @@ /** * InvokeRawWeb3EthMethodV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthMethodV1Request { public static final String SERIALIZED_NAME_METHOD_NAME = "methodName"; @SerializedName(SERIALIZED_NAME_METHOD_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java index 22256cf35d2..7c128fa89d5 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRawWeb3EthMethodV1Response.java @@ -52,7 +52,7 @@ /** * InvokeRawWeb3EthMethodV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class InvokeRawWeb3EthMethodV1Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumPrivateTransactionConfig.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumPrivateTransactionConfig.java index e6c6afa3b43..2474ab0cc91 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumPrivateTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumPrivateTransactionConfig.java @@ -53,7 +53,7 @@ /** * QuorumPrivateTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class QuorumPrivateTransactionConfig { public static final String SERIALIZED_NAME_PRIVATE_FROM = "privateFrom"; @SerializedName(SERIALIZED_NAME_PRIVATE_FROM) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfig.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfig.java index 2e9ea8de4ae..058435d6388 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfig.java @@ -53,7 +53,7 @@ /** * QuorumTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class QuorumTransactionConfig { public static final String SERIALIZED_NAME_RAW_TRANSACTION = "rawTransaction"; @SerializedName(SERIALIZED_NAME_RAW_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigFrom.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigFrom.java index a241b07bb8f..31070732614 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigFrom.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigFrom.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class QuorumTransactionConfigFrom extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(QuorumTransactionConfigFrom.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigTo.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigTo.java index dd83acf434f..3eae1bb0206 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigTo.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/QuorumTransactionConfigTo.java @@ -49,7 +49,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class QuorumTransactionConfigTo extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(QuorumTransactionConfigTo.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java index a22ff781dc9..6b991758496 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionRequest.java @@ -54,7 +54,7 @@ /** * RunTransactionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class RunTransactionRequest { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java index f85fc304c7d..df4842f111b 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionResponse.java @@ -51,7 +51,7 @@ /** * RunTransactionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class RunTransactionResponse { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java index b386f6371a5..143a1f03604 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java @@ -54,7 +54,7 @@ /** * SolidityContractJsonArtifact */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifact { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java index 2263d7c4e97..6e472afd85e 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactCompiler */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactCompiler { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java index 89230eac1ab..d73130ad73c 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java @@ -53,7 +53,7 @@ /** * SolidityContractJsonArtifactGasEstimates */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimates { public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java index 9b53d26467f..c1e72ac3706 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactGasEstimatesCreation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimatesCreation { public static final String SERIALIZED_NAME_CODE_DEPOSIT_COST = "codeDepositCost"; @SerializedName(SERIALIZED_NAME_CODE_DEPOSIT_COST) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java index cd7918dd6e6..9398a04c865 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1BlockData.java @@ -55,7 +55,7 @@ /** * WatchBlocksV1BlockData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class WatchBlocksV1BlockData { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java index 72bcd1ef65e..6606bf4a8bf 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Options.java @@ -50,7 +50,7 @@ /** * WatchBlocksV1Options */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class WatchBlocksV1Options { public static final String SERIALIZED_NAME_GET_BLOCK_DATA = "getBlockData"; @SerializedName(SERIALIZED_NAME_GET_BLOCK_DATA) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java index c28bfcd4ce3..cd7b60e4108 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/WatchBlocksV1Progress.java @@ -52,7 +52,7 @@ /** * WatchBlocksV1Progress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class WatchBlocksV1Progress { public static final String SERIALIZED_NAME_BLOCK_HEADER = "blockHeader"; @SerializedName(SERIALIZED_NAME_BLOCK_HEADER) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java index 46f16c05e02..08f004f6c15 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3BlockHeader.java @@ -52,7 +52,7 @@ /** * Web3BlockHeader */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3BlockHeader { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index 8b53d4b9de6..4ea83f719eb 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -60,7 +60,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index 82a936347df..7e85ddfa5a2 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java index 26a95832d9b..1603d9f55b7 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialGethKeychainPassword.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialGethKeychainPassword */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3SigningCredentialGethKeychainPassword { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index 254a59c1c19..50c353478a4 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index 7e6feeeb958..e38ad732962 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java index 299ecd67201..fb58e65b101 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3Transaction.java @@ -51,7 +51,7 @@ /** * Web3Transaction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3Transaction { public static final String SERIALIZED_NAME_HASH = "hash"; @SerializedName(SERIALIZED_NAME_HASH) diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index 7b8d4d8d83f..7599e9c3ebe 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-ledger-connector-quorum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -54,7 +54,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.073379765+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:22.186715963+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..bd5c0fb849a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,17 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/GetTransactionsByAddressEndpoint.md +git_push.sh +go.mod +go.sum +model_get_transactions_by_address_endpoint.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..c006d3e3260 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,112 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-ubiquity "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ubiquity.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ubiquity.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ubiquity.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-ubiquity.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetTransactionByAddressV1**](docs/DefaultApi.md#gettransactionbyaddressv1) | **Post** /api/v1/@hyperledger/cactus-plugin-ledger-connector-ubiquity/GetTransactionByAddress | + + +## Documentation For Models + + - [GetTransactionsByAddressEndpoint](docs/GetTransactionsByAddressEndpoint.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..7e9ec3aab27 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,48 @@ +openapi: 3.0.3 +info: + description: Ubiquity wrapper for Hyperledger Cactus + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Ubiquity + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/@hyperledger/cactus-plugin-ledger-connector-ubiquity/GetTransactionByAddress: + post: + description: "" + operationId: GetTransactionByAddressV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetTransactionsByAddressEndpoint' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-ledger-connector-ubiquity/GetTransactionByAddress +components: + schemas: + GetTransactionsByAddressEndpoint: + description: "Gets transactions that an address was involved with, from newest\ + \ to oldest. This call uses pagination. Source: https://ubiquity.docs.blockdaemon.com/swagger-ui/#/Accounts/GetTxsByAddress" + example: + protocol: protocol + address: address + network: network + properties: + protocol: + type: string + network: + type: string + address: + type: string + required: + - address + - network + - protocol + type: object diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..03020c00f48 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,119 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetTransactionByAddressV1Request struct { + ctx context.Context + ApiService *DefaultApiService + getTransactionsByAddressEndpoint *GetTransactionsByAddressEndpoint +} + +func (r ApiGetTransactionByAddressV1Request) GetTransactionsByAddressEndpoint(getTransactionsByAddressEndpoint GetTransactionsByAddressEndpoint) ApiGetTransactionByAddressV1Request { + r.getTransactionsByAddressEndpoint = &getTransactionsByAddressEndpoint + return r +} + +func (r ApiGetTransactionByAddressV1Request) Execute() (*http.Response, error) { + return r.ApiService.GetTransactionByAddressV1Execute(r) +} + +/* +GetTransactionByAddressV1 Method for GetTransactionByAddressV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTransactionByAddressV1Request +*/ +func (a *DefaultApiService) GetTransactionByAddressV1(ctx context.Context) ApiGetTransactionByAddressV1Request { + return ApiGetTransactionByAddressV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) GetTransactionByAddressV1Execute(r ApiGetTransactionByAddressV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetTransactionByAddressV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-ledger-connector-ubiquity/GetTransactionByAddress" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.getTransactionsByAddressEndpoint + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..9b2286b72f5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Ubiquity API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..eb1b37f7785 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..536bb5ee868 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,73 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetTransactionByAddressV1**](DefaultApi.md#GetTransactionByAddressV1) | **Post** /api/v1/@hyperledger/cactus-plugin-ledger-connector-ubiquity/GetTransactionByAddress | + + + +## GetTransactionByAddressV1 + +> GetTransactionByAddressV1(ctx).GetTransactionsByAddressEndpoint(getTransactionsByAddressEndpoint).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client" +) + +func main() { + getTransactionsByAddressEndpoint := *openapiclient.NewGetTransactionsByAddressEndpoint("Protocol_example", "Network_example", "Address_example") // GetTransactionsByAddressEndpoint | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.GetTransactionByAddressV1(context.Background()).GetTransactionsByAddressEndpoint(getTransactionsByAddressEndpoint).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTransactionByAddressV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTransactionByAddressV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getTransactionsByAddressEndpoint** | [**GetTransactionsByAddressEndpoint**](GetTransactionsByAddressEndpoint.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/GetTransactionsByAddressEndpoint.md b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/GetTransactionsByAddressEndpoint.md new file mode 100644 index 00000000000..356a97a7cfb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/docs/GetTransactionsByAddressEndpoint.md @@ -0,0 +1,93 @@ +# GetTransactionsByAddressEndpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Protocol** | **string** | | +**Network** | **string** | | +**Address** | **string** | | + +## Methods + +### NewGetTransactionsByAddressEndpoint + +`func NewGetTransactionsByAddressEndpoint(protocol string, network string, address string, ) *GetTransactionsByAddressEndpoint` + +NewGetTransactionsByAddressEndpoint instantiates a new GetTransactionsByAddressEndpoint object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTransactionsByAddressEndpointWithDefaults + +`func NewGetTransactionsByAddressEndpointWithDefaults() *GetTransactionsByAddressEndpoint` + +NewGetTransactionsByAddressEndpointWithDefaults instantiates a new GetTransactionsByAddressEndpoint object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProtocol + +`func (o *GetTransactionsByAddressEndpoint) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *GetTransactionsByAddressEndpoint) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *GetTransactionsByAddressEndpoint) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + + +### GetNetwork + +`func (o *GetTransactionsByAddressEndpoint) GetNetwork() string` + +GetNetwork returns the Network field if non-nil, zero value otherwise. + +### GetNetworkOk + +`func (o *GetTransactionsByAddressEndpoint) GetNetworkOk() (*string, bool)` + +GetNetworkOk returns a tuple with the Network field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetwork + +`func (o *GetTransactionsByAddressEndpoint) SetNetwork(v string)` + +SetNetwork sets Network field to given value. + + +### GetAddress + +`func (o *GetTransactionsByAddressEndpoint) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *GetTransactionsByAddressEndpoint) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *GetTransactionsByAddressEndpoint) SetAddress(v string)` + +SetAddress sets Address field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..25e0d03d518 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..4bbd2292de0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/model_get_transactions_by_address_endpoint.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/model_get_transactions_by_address_endpoint.go new file mode 100644 index 00000000000..886944d7c9f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/model_get_transactions_by_address_endpoint.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "encoding/json" +) + +// checks if the GetTransactionsByAddressEndpoint type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTransactionsByAddressEndpoint{} + +// GetTransactionsByAddressEndpoint Gets transactions that an address was involved with, from newest to oldest. This call uses pagination. Source: https://ubiquity.docs.blockdaemon.com/swagger-ui/#/Accounts/GetTxsByAddress +type GetTransactionsByAddressEndpoint struct { + Protocol string `json:"protocol"` + Network string `json:"network"` + Address string `json:"address"` +} + +// NewGetTransactionsByAddressEndpoint instantiates a new GetTransactionsByAddressEndpoint object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTransactionsByAddressEndpoint(protocol string, network string, address string) *GetTransactionsByAddressEndpoint { + this := GetTransactionsByAddressEndpoint{} + this.Protocol = protocol + this.Network = network + this.Address = address + return &this +} + +// NewGetTransactionsByAddressEndpointWithDefaults instantiates a new GetTransactionsByAddressEndpoint object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTransactionsByAddressEndpointWithDefaults() *GetTransactionsByAddressEndpoint { + this := GetTransactionsByAddressEndpoint{} + return &this +} + +// GetProtocol returns the Protocol field value +func (o *GetTransactionsByAddressEndpoint) GetProtocol() string { + if o == nil { + var ret string + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *GetTransactionsByAddressEndpoint) GetProtocolOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *GetTransactionsByAddressEndpoint) SetProtocol(v string) { + o.Protocol = v +} + +// GetNetwork returns the Network field value +func (o *GetTransactionsByAddressEndpoint) GetNetwork() string { + if o == nil { + var ret string + return ret + } + + return o.Network +} + +// GetNetworkOk returns a tuple with the Network field value +// and a boolean to check if the value has been set. +func (o *GetTransactionsByAddressEndpoint) GetNetworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Network, true +} + +// SetNetwork sets field value +func (o *GetTransactionsByAddressEndpoint) SetNetwork(v string) { + o.Network = v +} + +// GetAddress returns the Address field value +func (o *GetTransactionsByAddressEndpoint) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *GetTransactionsByAddressEndpoint) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *GetTransactionsByAddressEndpoint) SetAddress(v string) { + o.Address = v +} + +func (o GetTransactionsByAddressEndpoint) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTransactionsByAddressEndpoint) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["protocol"] = o.Protocol + toSerialize["network"] = o.Network + toSerialize["address"] = o.Address + return toSerialize, nil +} + +type NullableGetTransactionsByAddressEndpoint struct { + value *GetTransactionsByAddressEndpoint + isSet bool +} + +func (v NullableGetTransactionsByAddressEndpoint) Get() *GetTransactionsByAddressEndpoint { + return v.value +} + +func (v *NullableGetTransactionsByAddressEndpoint) Set(val *GetTransactionsByAddressEndpoint) { + v.value = val + v.isSet = true +} + +func (v NullableGetTransactionsByAddressEndpoint) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTransactionsByAddressEndpoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTransactionsByAddressEndpoint(val *GetTransactionsByAddressEndpoint) *NullableGetTransactionsByAddressEndpoint { + return &NullableGetTransactionsByAddressEndpoint{value: val, isSet: true} +} + +func (v NullableGetTransactionsByAddressEndpoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTransactionsByAddressEndpoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..dc260d2ddbe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..27ad681efdb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,36 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-ubiquity_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetTransactionByAddressV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.GetTransactionByAddressV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..df4aacf3d43 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Ubiquity + +Ubiquity wrapper for Hyperledger Cactus + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-ubiquity + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/README.md index ea0abfbd2d9..5a00fd16d1b 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Ubiquity - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata] Ubiquity wrapper for Hyperledger Cactus diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 21c2b585093..bd032cadd20 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index adffa29f1a9..f396f0d3152 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 4811e919f60..4a743f02756 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 52adba9ae67..f0077fcfdd5 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 27af1aeed37..ec1a6b07c37 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index a6b9c9d330b..b2fdf3b8f20 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 89b87267831..ab84b282afc 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsByAddressEndpoint.java b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsByAddressEndpoint.java index 46730471281..16521f64394 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsByAddressEndpoint.java +++ b/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/GetTransactionsByAddressEndpoint.java @@ -50,7 +50,7 @@ /** * Gets transactions that an address was involved with, from newest to oldest. This call uses pagination. Source: https://ubiquity.docs.blockdaemon.com/swagger-ui/#/Accounts/GetTxsByAddress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:44.915680834+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:37.546354864+05:30[Asia/Kolkata]") public class GetTransactionsByAddressEndpoint { public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..3fa9a33e56d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,69 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ConsistencyStrategy.md +docs/ContractJSON.md +docs/DefaultApi.md +docs/DeployContractJsonObjectV1Request.md +docs/DeployContractV1Request.md +docs/DeployContractV1Response.md +docs/DeployRequestBaseV1.md +docs/EthContractInvocationType.md +docs/InvokeContractJsonObjectV1Request.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/InvokeRequestBaseV1.md +docs/ReceiptType.md +docs/RunTransactionV1Request.md +docs/RunTransactionV1Response.md +docs/SolidityContractJsonArtifact.md +docs/SolidityContractJsonArtifactCompiler.md +docs/SolidityContractJsonArtifactGasEstimates.md +docs/SolidityContractJsonArtifactGasEstimatesCreation.md +docs/Web3SigningCredential.md +docs/Web3SigningCredentialCactusKeychainRef.md +docs/Web3SigningCredentialNone.md +docs/Web3SigningCredentialPrivateKeyHex.md +docs/Web3SigningCredentialType.md +docs/Web3TransactionReceipt.md +docs/XdaiTransactionConfig.md +docs/XdaiTransactionConfigFrom.md +docs/XdaiTransactionConfigTo.md +git_push.sh +go.mod +go.sum +model_consistency_strategy.go +model_contract_json.go +model_deploy_contract_json_object_v1_request.go +model_deploy_contract_v1_request.go +model_deploy_contract_v1_response.go +model_deploy_request_base_v1.go +model_eth_contract_invocation_type.go +model_invoke_contract_json_object_v1_request.go +model_invoke_contract_v1_request.go +model_invoke_contract_v1_response.go +model_invoke_request_base_v1.go +model_receipt_type.go +model_run_transaction_v1_request.go +model_run_transaction_v1_response.go +model_solidity_contract_json_artifact.go +model_solidity_contract_json_artifact_compiler.go +model_solidity_contract_json_artifact_gas_estimates.go +model_solidity_contract_json_artifact_gas_estimates_creation.go +model_web3_signing_credential.go +model_web3_signing_credential_cactus_keychain_ref.go +model_web3_signing_credential_none.go +model_web3_signing_credential_private_key_hex.go +model_web3_signing_credential_type.go +model_web3_transaction_receipt.go +model_xdai_transaction_config.go +model_xdai_transaction_config_from.go +model_xdai_transaction_config_to.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..8efa8016b28 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,143 @@ +# Go API client for @hyperledger/cactus-plugin-ledger-connector-xdai + +Can perform basic tasks on a Xdai ledger + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-ledger-connector-xdai "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-xdai.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-xdai.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-xdai.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-ledger-connector-xdai.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeployContractJsonObjectV1**](docs/DefaultApi.md#deploycontractjsonobjectv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**DeployContractV1**](docs/DefaultApi.md#deploycontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +*DefaultApi* | [**GetPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**InvokeContractJsonObject**](docs/DefaultApi.md#invokecontractjsonobject) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract-json-object | Invokes a contract on a besu ledger +*DefaultApi* | [**InvokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract | Invokes a contract on a xdai ledger +*DefaultApi* | [**RunTransactionV1**](docs/DefaultApi.md#runtransactionv1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/run-transaction | Executes a transaction on a xdai ledger + + +## Documentation For Models + + - [ConsistencyStrategy](docs/ConsistencyStrategy.md) + - [ContractJSON](docs/ContractJSON.md) + - [DeployContractJsonObjectV1Request](docs/DeployContractJsonObjectV1Request.md) + - [DeployContractV1Request](docs/DeployContractV1Request.md) + - [DeployContractV1Response](docs/DeployContractV1Response.md) + - [DeployRequestBaseV1](docs/DeployRequestBaseV1.md) + - [EthContractInvocationType](docs/EthContractInvocationType.md) + - [InvokeContractJsonObjectV1Request](docs/InvokeContractJsonObjectV1Request.md) + - [InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [InvokeRequestBaseV1](docs/InvokeRequestBaseV1.md) + - [ReceiptType](docs/ReceiptType.md) + - [RunTransactionV1Request](docs/RunTransactionV1Request.md) + - [RunTransactionV1Response](docs/RunTransactionV1Response.md) + - [SolidityContractJsonArtifact](docs/SolidityContractJsonArtifact.md) + - [SolidityContractJsonArtifactCompiler](docs/SolidityContractJsonArtifactCompiler.md) + - [SolidityContractJsonArtifactGasEstimates](docs/SolidityContractJsonArtifactGasEstimates.md) + - [SolidityContractJsonArtifactGasEstimatesCreation](docs/SolidityContractJsonArtifactGasEstimatesCreation.md) + - [Web3SigningCredential](docs/Web3SigningCredential.md) + - [Web3SigningCredentialCactusKeychainRef](docs/Web3SigningCredentialCactusKeychainRef.md) + - [Web3SigningCredentialNone](docs/Web3SigningCredentialNone.md) + - [Web3SigningCredentialPrivateKeyHex](docs/Web3SigningCredentialPrivateKeyHex.md) + - [Web3SigningCredentialType](docs/Web3SigningCredentialType.md) + - [Web3TransactionReceipt](docs/Web3TransactionReceipt.md) + - [XdaiTransactionConfig](docs/XdaiTransactionConfig.md) + - [XdaiTransactionConfigFrom](docs/XdaiTransactionConfigFrom.md) + - [XdaiTransactionConfigTo](docs/XdaiTransactionConfigTo.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..c1f55e1b610 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,896 @@ +openapi: 3.0.3 +info: + description: Can perform basic tasks on a Xdai ledger + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Connector Xdai + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode: + post: + operationId: deployContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode-json-object: + post: + operationId: deployContractJsonObjectV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeployContractV1Response' + description: OK + summary: Deploys the bytecode of a Solidity contract. + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/run-transaction: + post: + operationId: runTransactionV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RunTransactionV1Response' + description: OK + summary: Executes a transaction on a xdai ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/run-transaction + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract: + post: + operationId: invokeContractV1 + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a xdai ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract-json-object: + post: + operationId: invokeContractJsonObject + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractJsonObjectV1Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvokeContractV1Response' + description: OK + summary: Invokes a contract on a besu ledger + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract-json-object + /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/get-prometheus-exporter-metrics: + get: + operationId: getPrometheusMetricsV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/PrometheusExporterMetricsResponse' + description: OK + summary: Get the Prometheus Metrics + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/get-prometheus-exporter-metrics +components: + schemas: + ReceiptType: + description: Enumerates the possible types of receipts that can be waited for + by someone or something that has requested the execution of a transaction + on a ledger. + enum: + - NODE_TX_POOL_ACK + - LEDGER_BLOCK_ACK + type: string + ConsistencyStrategy: + example: + blockConfirmations: 2931 + receiptType: null + timeoutMs: 0 + pollIntervalMs: 0 + properties: + receiptType: + $ref: '#/components/schemas/ReceiptType' + timeoutMs: + description: "The amount of milliseconds to wait for the receipt to arrive\ + \ to the connector. Defaults to 0 which means to wait for an unlimited\ + \ amount of time. Note that this wait may be interrupted still by other\ + \ parts of the infrastructure such as load balancers cutting of HTTP requests\ + \ after some time even if they are the type that is supposed to be kept\ + \ alive. The question of re-entrance is a broader topic not in scope to\ + \ discuss here, but it is important to mention it." + minimum: 0 + type: integer + blockConfirmations: + description: "The number of blocks to wait to be confirmed in addition to\ + \ the block containing the transaction in question. Note that if the receipt\ + \ type is set to only wait for node transaction pool ACK and this parameter\ + \ is set to anything, but zero then the API will not accept the request\ + \ due to conflicting parameters." + maximum: 20000 + minimum: 0 + type: integer + pollIntervalMs: + description: The amount of time (in milliseconds) connector will wait before + making another confiramtion request to the network in case of previous + confiramtion request fails + minimum: 0 + type: integer + required: + - blockConfirmations + - receiptType + type: object + Web3SigningCredential: + discriminator: + propertyName: type + example: + type: null + oneOf: + - $ref: '#/components/schemas/Web3SigningCredentialCactusKeychainRef' + - $ref: '#/components/schemas/Web3SigningCredentialPrivateKeyHex' + - $ref: '#/components/schemas/Web3SigningCredentialNone' + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialCactusKeychainRef: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + keychainEntryKey: + description: The key to use when looking up the the keychain entry holding + the secret pointed to by the keychainEntryKey parameter. + maxLength: 1024 + minLength: 0 + type: string + keychainId: + description: The keychain ID to use when looking up the the keychain plugin + instance that will be used to retrieve the secret pointed to by the keychainEntryKey + parameter. + maxLength: 1024 + minLength: 0 + type: string + required: + - ethAccount + - keychainEntryKey + - keychainId + - type + type: object + Web3SigningCredentialPrivateKeyHex: + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + ethAccount: + description: The ethereum account (public key) that the credential belongs + to. Basically the username in the traditional terminology of authentication. + maxLength: 64 + minLength: 64 + nullable: false + type: string + secret: + description: The HEX encoded private key of an eth account. + maxLength: 65535 + minLength: 0 + type: string + required: + - ethAccount + - secret + - type + type: object + Web3SigningCredentialNone: + description: Using this denotes that there is no signing required because the + transaction is pre-signed. + properties: + type: + $ref: '#/components/schemas/Web3SigningCredentialType' + required: + - type + type: object + Web3SigningCredentialType: + enum: + - CACTUS_KEYCHAIN_REF + - GETH_KEYCHAIN_PASSWORD + - PRIVATE_KEY_HEX + - NONE + type: string + EthContractInvocationType: + enum: + - SEND + - CALL + type: string + SolidityContractJsonArtifact: + properties: + contractName: + nullable: false + type: string + metadata: + nullable: false + type: string + bytecode: + nullable: false + type: string + deployedBytecode: + nullable: false + type: string + sourceMap: + nullable: false + type: string + deployedSourceMap: + nullable: false + type: string + sourcePath: + type: string + compiler: + $ref: '#/components/schemas/SolidityContractJsonArtifact_compiler' + functionHashes: + additionalProperties: true + type: object + gasEstimates: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates' + required: + - contractName + type: object + XdaiTransactionConfig: + additionalProperties: true + example: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + rawTransaction: + nullable: false + type: string + from: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + to: + $ref: '#/components/schemas/XdaiTransactionConfig_to' + value: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gas: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + nonce: + type: number + data: + $ref: '#/components/schemas/XdaiTransactionConfig_to' + type: object + Web3TransactionReceipt: + additionalProperties: true + example: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + status: + nullable: false + type: boolean + transactionHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + transactionIndex: + nullable: false + type: number + blockHash: + maxLength: 66 + minLength: 66 + pattern: "^0x([A-Fa-f0-9]{64})$" + type: string + blockNumber: + nullable: false + type: number + gasUsed: + nullable: false + type: number + contractAddress: + nullable: true + type: string + from: + nullable: false + type: string + to: + nullable: false + type: string + required: + - blockHash + - blockNumber + - from + - gasUsed + - status + - to + - transactionHash + - transactionIndex + type: object + ContractJSON: + additionalProperties: true + example: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + contractName: + nullable: false + type: string + bytecode: + description: See https://ethereum.stackexchange.com/a/47556 regarding the + maximum length of the bytecode + maxLength: 24576 + minLength: 1 + nullable: false + type: string + abi: + description: "The application binary interface of the solidity contract,\ + \ optional parameter" + items: {} + nullable: false + type: array + metadata: + type: string + deployedBytecode: + type: string + sourceMap: + type: string + deployedSourceMap: + type: string + sourcePath: + type: string + compiler: + type: object + networks: + type: object + ast: + type: object + functionHashes: + type: object + gasEstimates: + type: object + required: + - abi + - bytecode + - contractName + type: object + RunTransactionV1Request: + additionalProperties: false + example: + transactionConfig: + rawTransaction: rawTransaction + data: null + gas: null + from: null + to: null + value: null + nonce: 0.8008281904610115 + gasPrice: null + consistencyStrategy: + blockConfirmations: 2931 + receiptType: null + timeoutMs: 0 + pollIntervalMs: 0 + web3SigningCredential: + type: null + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + transactionConfig: + $ref: '#/components/schemas/XdaiTransactionConfig' + consistencyStrategy: + $ref: '#/components/schemas/ConsistencyStrategy' + required: + - consistencyStrategy + - transactionConfig + - web3SigningCredential + type: object + RunTransactionV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + DeployContractV1Request: + additionalProperties: false + example: + keychainId: keychainId + constructorArgs: + - "" + - "" + timeoutMs: 0.6027456183070403 + gas: 0.8008281904610115 + web3SigningCredential: + type: null + contractName: contractName + gasPrice: gasPrice + properties: + contractName: + description: The contract name for retrieve the contracts json on the keychain. + maxLength: 100 + minLength: 1 + nullable: false + type: string + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + nullable: false + type: string + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: string + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + required: + - contractName + - keychainId + - web3SigningCredential + type: object + DeployContractJsonObjectV1Request: + additionalProperties: false + example: + timeoutMs: 0.6027456183070403 + constructorArgs: + - "" + - "" + gas: 0.8008281904610115 + web3SigningCredential: + type: null + gasPrice: gasPrice + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + nullable: false + type: number + gasPrice: + nullable: false + type: string + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + constructorArgs: + default: [] + description: The list of arguments to pass in to the constructor of the + contract being deployed. + items: {} + type: array + required: + - contractJSON + - web3SigningCredential + type: object + DeployContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + required: + - transactionReceipt + type: object + InvokeContractV1Request: + additionalProperties: false + example: + invocationType: null + keychainId: keychainId + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractName: contractName + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + properties: + contractName: + description: The contract name to find it in the keychain plugin + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + value: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gas: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + keychainId: + description: The keychainId for retrieve the contracts json. + maxLength: 100 + minLength: 1 + type: string + required: + - contractName + - invocationType + - keychainId + - methodName + - params + - web3SigningCredential + type: object + InvokeContractJsonObjectV1Request: + additionalProperties: false + example: + invocationType: null + timeoutMs: 0.6027456183070403 + gas: null + web3SigningCredential: + type: null + methodName: methodName + contractAddress: contractAddress + params: + - "" + - "" + value: null + nonce: 0.8008281904610115 + gasPrice: null + contractJSON: + bytecode: bytecode + metadata: metadata + ast: "{}" + deployedBytecode: deployedBytecode + sourceMap: sourceMap + deployedSourceMap: deployedSourceMap + abi: + - "" + - "" + networks: "{}" + functionHashes: "{}" + gasEstimates: "{}" + contractName: contractName + compiler: "{}" + sourcePath: sourcePath + properties: + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + contractAddress: + description: Address of the solidity contract + nullable: false + type: string + value: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gas: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + required: + - contractAddress + - contractJSON + - invocationType + - methodName + - params + - web3SigningCredential + type: object + InvokeContractV1Response: + example: + transactionReceipt: + blockHash: blockHash + gasUsed: 1.4658129805029452 + blockNumber: 6.027456183070403 + contractAddress: contractAddress + transactionIndex: 0.8008281904610115 + from: from + to: to + transactionHash: transactionHash + status: true + callOutput: "" + success: true + properties: + transactionReceipt: + $ref: '#/components/schemas/Web3TransactionReceipt' + callOutput: {} + success: + nullable: false + type: boolean + required: + - success + type: object + PrometheusExporterMetricsResponse: + nullable: false + type: string + DeployRequestBaseV1: + properties: + contractJSON: + $ref: '#/components/schemas/ContractJSON' + constructorArgs: + default: [] + items: {} + type: array + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + gas: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + with theaddress of the contract(which indicates successful deployment) + beforegiving up and crashing. + minimum: 0 + nullable: false + type: number + required: + - contractJSON + - web3SigningCredential + type: object + InvokeRequestBaseV1: + additionalProperties: false + properties: + contractAddress: + description: Address of the solidity contract + nullable: false + type: string + web3SigningCredential: + $ref: '#/components/schemas/Web3SigningCredential' + invocationType: + $ref: '#/components/schemas/EthContractInvocationType' + methodName: + description: The name of the contract method to invoke. + maxLength: 2048 + minLength: 1 + nullable: false + type: string + params: + default: [] + description: The list of arguments to pass in to the contract method being + invoked. + items: {} + type: array + value: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gas: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + gasPrice: + $ref: '#/components/schemas/XdaiTransactionConfig_from' + nonce: + type: number + timeoutMs: + default: 60000 + description: The amount of milliseconds to wait for a transaction receipt + beforegiving up and crashing. Only has any effect if the invocation type + is SEND + minimum: 0 + nullable: false + type: number + contractJSON: + $ref: '#/components/schemas/ContractJSON' + required: + - contractAddress + - contractJSON + - invocationType + - methodName + - params + - web3SigningCredential + type: object + SolidityContractJsonArtifact_compiler: + additionalProperties: true + properties: + name: + type: string + version: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates_creation: + properties: + codeDepositCost: + type: string + executionCost: + type: string + totalCost: + type: string + type: object + SolidityContractJsonArtifact_gasEstimates: + properties: + creation: + $ref: '#/components/schemas/SolidityContractJsonArtifact_gasEstimates_creation' + external: + additionalProperties: true + type: object + XdaiTransactionConfig_from: + oneOf: + - type: string + - type: number + XdaiTransactionConfig_to: + oneOf: + - type: string diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..4e1ce52c034 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,645 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiDeployContractJsonObjectV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractJsonObjectV1Request *DeployContractJsonObjectV1Request +} + +func (r ApiDeployContractJsonObjectV1Request) DeployContractJsonObjectV1Request(deployContractJsonObjectV1Request DeployContractJsonObjectV1Request) ApiDeployContractJsonObjectV1Request { + r.deployContractJsonObjectV1Request = &deployContractJsonObjectV1Request + return r +} + +func (r ApiDeployContractJsonObjectV1Request) Execute() (*DeployContractV1Response, *http.Response, error) { + return r.ApiService.DeployContractJsonObjectV1Execute(r) +} + +/* +DeployContractJsonObjectV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractJsonObjectV1Request +*/ +func (a *DefaultApiService) DeployContractJsonObjectV1(ctx context.Context) ApiDeployContractJsonObjectV1Request { + return ApiDeployContractJsonObjectV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractV1Response +func (a *DefaultApiService) DeployContractJsonObjectV1Execute(r ApiDeployContractJsonObjectV1Request) (*DeployContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractJsonObjectV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeployContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + deployContractV1Request *DeployContractV1Request +} + +func (r ApiDeployContractV1Request) DeployContractV1Request(deployContractV1Request DeployContractV1Request) ApiDeployContractV1Request { + r.deployContractV1Request = &deployContractV1Request + return r +} + +func (r ApiDeployContractV1Request) Execute() (*DeployContractV1Response, *http.Response, error) { + return r.ApiService.DeployContractV1Execute(r) +} + +/* +DeployContractV1 Deploys the bytecode of a Solidity contract. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeployContractV1Request +*/ +func (a *DefaultApiService) DeployContractV1(ctx context.Context) ApiDeployContractV1Request { + return ApiDeployContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeployContractV1Response +func (a *DefaultApiService) DeployContractV1Execute(r ApiDeployContractV1Request) (*DeployContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeployContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeployContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPrometheusMetricsV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetPrometheusMetricsV1Request) Execute() (string, *http.Response, error) { + return r.ApiService.GetPrometheusMetricsV1Execute(r) +} + +/* +GetPrometheusMetricsV1 Get the Prometheus Metrics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPrometheusMetricsV1Request +*/ +func (a *DefaultApiService) GetPrometheusMetricsV1(ctx context.Context) ApiGetPrometheusMetricsV1Request { + return ApiGetPrometheusMetricsV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *DefaultApiService) GetPrometheusMetricsV1Execute(r ApiGetPrometheusMetricsV1Request) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetPrometheusMetricsV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/get-prometheus-exporter-metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractJsonObjectRequest struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractJsonObjectV1Request *InvokeContractJsonObjectV1Request +} + +func (r ApiInvokeContractJsonObjectRequest) InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request InvokeContractJsonObjectV1Request) ApiInvokeContractJsonObjectRequest { + r.invokeContractJsonObjectV1Request = &invokeContractJsonObjectV1Request + return r +} + +func (r ApiInvokeContractJsonObjectRequest) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractJsonObjectExecute(r) +} + +/* +InvokeContractJsonObject Invokes a contract on a besu ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractJsonObjectRequest +*/ +func (a *DefaultApiService) InvokeContractJsonObject(ctx context.Context) ApiInvokeContractJsonObjectRequest { + return ApiInvokeContractJsonObjectRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractJsonObjectExecute(r ApiInvokeContractJsonObjectRequest) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractJsonObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract-json-object" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractJsonObjectV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInvokeContractV1Request struct { + ctx context.Context + ApiService *DefaultApiService + invokeContractV1Request *InvokeContractV1Request +} + +func (r ApiInvokeContractV1Request) InvokeContractV1Request(invokeContractV1Request InvokeContractV1Request) ApiInvokeContractV1Request { + r.invokeContractV1Request = &invokeContractV1Request + return r +} + +func (r ApiInvokeContractV1Request) Execute() (*InvokeContractV1Response, *http.Response, error) { + return r.ApiService.InvokeContractV1Execute(r) +} + +/* +InvokeContractV1 Invokes a contract on a xdai ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInvokeContractV1Request +*/ +func (a *DefaultApiService) InvokeContractV1(ctx context.Context) ApiInvokeContractV1Request { + return ApiInvokeContractV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InvokeContractV1Response +func (a *DefaultApiService) InvokeContractV1Execute(r ApiInvokeContractV1Request) (*InvokeContractV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InvokeContractV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InvokeContractV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.invokeContractV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunTransactionV1Request struct { + ctx context.Context + ApiService *DefaultApiService + runTransactionV1Request *RunTransactionV1Request +} + +func (r ApiRunTransactionV1Request) RunTransactionV1Request(runTransactionV1Request RunTransactionV1Request) ApiRunTransactionV1Request { + r.runTransactionV1Request = &runTransactionV1Request + return r +} + +func (r ApiRunTransactionV1Request) Execute() (*RunTransactionV1Response, *http.Response, error) { + return r.ApiService.RunTransactionV1Execute(r) +} + +/* +RunTransactionV1 Executes a transaction on a xdai ledger + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunTransactionV1Request +*/ +func (a *DefaultApiService) RunTransactionV1(ctx context.Context) ApiRunTransactionV1Request { + return ApiRunTransactionV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RunTransactionV1Response +func (a *DefaultApiService) RunTransactionV1Execute(r ApiRunTransactionV1Request) (*RunTransactionV1Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunTransactionV1Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RunTransactionV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/run-transaction" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.runTransactionV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..ab1b38a74d3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Connector Xdai API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..a5e948fdbdf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md new file mode 100644 index 00000000000..cdb75b2164b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ConsistencyStrategy.md @@ -0,0 +1,124 @@ +# ConsistencyStrategy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReceiptType** | [**ReceiptType**](ReceiptType.md) | | +**TimeoutMs** | Pointer to **int32** | The amount of milliseconds to wait for the receipt to arrive to the connector. Defaults to 0 which means to wait for an unlimited amount of time. Note that this wait may be interrupted still by other parts of the infrastructure such as load balancers cutting of HTTP requests after some time even if they are the type that is supposed to be kept alive. The question of re-entrance is a broader topic not in scope to discuss here, but it is important to mention it. | [optional] +**BlockConfirmations** | **int32** | The number of blocks to wait to be confirmed in addition to the block containing the transaction in question. Note that if the receipt type is set to only wait for node transaction pool ACK and this parameter is set to anything, but zero then the API will not accept the request due to conflicting parameters. | +**PollIntervalMs** | Pointer to **int32** | The amount of time (in milliseconds) connector will wait before making another confiramtion request to the network in case of previous confiramtion request fails | [optional] + +## Methods + +### NewConsistencyStrategy + +`func NewConsistencyStrategy(receiptType ReceiptType, blockConfirmations int32, ) *ConsistencyStrategy` + +NewConsistencyStrategy instantiates a new ConsistencyStrategy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConsistencyStrategyWithDefaults + +`func NewConsistencyStrategyWithDefaults() *ConsistencyStrategy` + +NewConsistencyStrategyWithDefaults instantiates a new ConsistencyStrategy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReceiptType + +`func (o *ConsistencyStrategy) GetReceiptType() ReceiptType` + +GetReceiptType returns the ReceiptType field if non-nil, zero value otherwise. + +### GetReceiptTypeOk + +`func (o *ConsistencyStrategy) GetReceiptTypeOk() (*ReceiptType, bool)` + +GetReceiptTypeOk returns a tuple with the ReceiptType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptType + +`func (o *ConsistencyStrategy) SetReceiptType(v ReceiptType)` + +SetReceiptType sets ReceiptType field to given value. + + +### GetTimeoutMs + +`func (o *ConsistencyStrategy) GetTimeoutMs() int32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *ConsistencyStrategy) GetTimeoutMsOk() (*int32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *ConsistencyStrategy) SetTimeoutMs(v int32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *ConsistencyStrategy) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetBlockConfirmations + +`func (o *ConsistencyStrategy) GetBlockConfirmations() int32` + +GetBlockConfirmations returns the BlockConfirmations field if non-nil, zero value otherwise. + +### GetBlockConfirmationsOk + +`func (o *ConsistencyStrategy) GetBlockConfirmationsOk() (*int32, bool)` + +GetBlockConfirmationsOk returns a tuple with the BlockConfirmations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockConfirmations + +`func (o *ConsistencyStrategy) SetBlockConfirmations(v int32)` + +SetBlockConfirmations sets BlockConfirmations field to given value. + + +### GetPollIntervalMs + +`func (o *ConsistencyStrategy) GetPollIntervalMs() int32` + +GetPollIntervalMs returns the PollIntervalMs field if non-nil, zero value otherwise. + +### GetPollIntervalMsOk + +`func (o *ConsistencyStrategy) GetPollIntervalMsOk() (*int32, bool)` + +GetPollIntervalMsOk returns a tuple with the PollIntervalMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPollIntervalMs + +`func (o *ConsistencyStrategy) SetPollIntervalMs(v int32)` + +SetPollIntervalMs sets PollIntervalMs field to given value. + +### HasPollIntervalMs + +`func (o *ConsistencyStrategy) HasPollIntervalMs() bool` + +HasPollIntervalMs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ContractJSON.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ContractJSON.md new file mode 100644 index 00000000000..ba8b1beaa4c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ContractJSON.md @@ -0,0 +1,353 @@ +# ContractJSON + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Bytecode** | **string** | See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode | +**Abi** | **[]interface{}** | The application binary interface of the solidity contract, optional parameter | +**Metadata** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to **map[string]interface{}** | | [optional] +**Networks** | Pointer to **map[string]interface{}** | | [optional] +**Ast** | Pointer to **map[string]interface{}** | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewContractJSON + +`func NewContractJSON(contractName string, bytecode string, abi []interface{}, ) *ContractJSON` + +NewContractJSON instantiates a new ContractJSON object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewContractJSONWithDefaults + +`func NewContractJSONWithDefaults() *ContractJSON` + +NewContractJSONWithDefaults instantiates a new ContractJSON object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *ContractJSON) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *ContractJSON) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *ContractJSON) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetBytecode + +`func (o *ContractJSON) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *ContractJSON) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *ContractJSON) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + + +### GetAbi + +`func (o *ContractJSON) GetAbi() []interface{}` + +GetAbi returns the Abi field if non-nil, zero value otherwise. + +### GetAbiOk + +`func (o *ContractJSON) GetAbiOk() (*[]interface{}, bool)` + +GetAbiOk returns a tuple with the Abi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbi + +`func (o *ContractJSON) SetAbi(v []interface{})` + +SetAbi sets Abi field to given value. + + +### GetMetadata + +`func (o *ContractJSON) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ContractJSON) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ContractJSON) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ContractJSON) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *ContractJSON) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *ContractJSON) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *ContractJSON) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *ContractJSON) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *ContractJSON) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *ContractJSON) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *ContractJSON) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *ContractJSON) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *ContractJSON) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *ContractJSON) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *ContractJSON) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *ContractJSON) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *ContractJSON) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *ContractJSON) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *ContractJSON) GetCompiler() map[string]interface{}` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *ContractJSON) GetCompilerOk() (*map[string]interface{}, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *ContractJSON) SetCompiler(v map[string]interface{})` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *ContractJSON) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetNetworks + +`func (o *ContractJSON) GetNetworks() map[string]interface{}` + +GetNetworks returns the Networks field if non-nil, zero value otherwise. + +### GetNetworksOk + +`func (o *ContractJSON) GetNetworksOk() (*map[string]interface{}, bool)` + +GetNetworksOk returns a tuple with the Networks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworks + +`func (o *ContractJSON) SetNetworks(v map[string]interface{})` + +SetNetworks sets Networks field to given value. + +### HasNetworks + +`func (o *ContractJSON) HasNetworks() bool` + +HasNetworks returns a boolean if a field has been set. + +### GetAst + +`func (o *ContractJSON) GetAst() map[string]interface{}` + +GetAst returns the Ast field if non-nil, zero value otherwise. + +### GetAstOk + +`func (o *ContractJSON) GetAstOk() (*map[string]interface{}, bool)` + +GetAstOk returns a tuple with the Ast field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAst + +`func (o *ContractJSON) SetAst(v map[string]interface{})` + +SetAst sets Ast field to given value. + +### HasAst + +`func (o *ContractJSON) HasAst() bool` + +HasAst returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *ContractJSON) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *ContractJSON) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *ContractJSON) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *ContractJSON) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *ContractJSON) GetGasEstimates() map[string]interface{}` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *ContractJSON) GetGasEstimatesOk() (*map[string]interface{}, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *ContractJSON) SetGasEstimates(v map[string]interface{})` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *ContractJSON) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..6e1a03b5d0f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,393 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeployContractJsonObjectV1**](DefaultApi.md#DeployContractJsonObjectV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode-json-object | Deploys the bytecode of a Solidity contract. +[**DeployContractV1**](DefaultApi.md#DeployContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/deploy-contract-solidity-bytecode | Deploys the bytecode of a Solidity contract. +[**GetPrometheusMetricsV1**](DefaultApi.md#GetPrometheusMetricsV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**InvokeContractJsonObject**](DefaultApi.md#InvokeContractJsonObject) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract-json-object | Invokes a contract on a besu ledger +[**InvokeContractV1**](DefaultApi.md#InvokeContractV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/invoke-contract | Invokes a contract on a xdai ledger +[**RunTransactionV1**](DefaultApi.md#RunTransactionV1) | **Post** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-xdai/run-transaction | Executes a transaction on a xdai ledger + + + +## DeployContractJsonObjectV1 + +> DeployContractV1Response DeployContractJsonObjectV1(ctx).DeployContractJsonObjectV1Request(deployContractJsonObjectV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractJsonObjectV1Request := *openapiclient.NewDeployContractJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example", []interface{}{nil})) // DeployContractJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractJsonObjectV1(context.Background()).DeployContractJsonObjectV1Request(deployContractJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractJsonObjectV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractJsonObjectV1`: DeployContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractJsonObjectV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractJsonObjectV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractJsonObjectV1Request** | [**DeployContractJsonObjectV1Request**](DeployContractJsonObjectV1Request.md) | | + +### Return type + +[**DeployContractV1Response**](DeployContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeployContractV1 + +> DeployContractV1Response DeployContractV1(ctx).DeployContractV1Request(deployContractV1Request).Execute() + +Deploys the bytecode of a Solidity contract. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + deployContractV1Request := *openapiclient.NewDeployContractV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, "KeychainId_example") // DeployContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DeployContractV1(context.Background()).DeployContractV1Request(deployContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeployContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeployContractV1`: DeployContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeployContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeployContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractV1Request** | [**DeployContractV1Request**](DeployContractV1Request.md) | | + +### Return type + +[**DeployContractV1Response**](DeployContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPrometheusMetricsV1 + +> string GetPrometheusMetricsV1(ctx).Execute() + +Get the Prometheus Metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetPrometheusMetricsV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPrometheusMetricsV1`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetPrometheusMetricsV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPrometheusMetricsV1Request struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractJsonObject + +> InvokeContractV1Response InvokeContractJsonObject(ctx).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + +Invokes a contract on a besu ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractJsonObjectV1Request := *openapiclient.NewInvokeContractJsonObjectV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "ContractAddress_example", *openapiclient.NewContractJSON("ContractName_example", "Bytecode_example", []interface{}{nil})) // InvokeContractJsonObjectV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractJsonObject(context.Background()).InvokeContractJsonObjectV1Request(invokeContractJsonObjectV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractJsonObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractJsonObject`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractJsonObject`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractJsonObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractJsonObjectV1Request** | [**InvokeContractJsonObjectV1Request**](InvokeContractJsonObjectV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InvokeContractV1 + +> InvokeContractV1Response InvokeContractV1(ctx).InvokeContractV1Request(invokeContractV1Request).Execute() + +Invokes a contract on a xdai ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + invokeContractV1Request := *openapiclient.NewInvokeContractV1Request("ContractName_example", openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, openapiclient.EthContractInvocationType("SEND"), "MethodName_example", []interface{}{nil}, "KeychainId_example") // InvokeContractV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).InvokeContractV1Request(invokeContractV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InvokeContractV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InvokeContractV1`: InvokeContractV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InvokeContractV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInvokeContractV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md) | | + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTransactionV1 + +> RunTransactionV1Response RunTransactionV1(ctx).RunTransactionV1Request(runTransactionV1Request).Execute() + +Executes a transaction on a xdai ledger + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func main() { + runTransactionV1Request := *openapiclient.NewRunTransactionV1Request(openapiclient.Web3SigningCredential{Web3SigningCredentialCactusKeychainRef: openapiclient.NewWeb3SigningCredentialCactusKeychainRef(openapiclient.Web3SigningCredentialType("CACTUS_KEYCHAIN_REF"), "EthAccount_example", "KeychainEntryKey_example", "KeychainId_example")}, *openapiclient.NewXdaiTransactionConfig(), *openapiclient.NewConsistencyStrategy(openapiclient.ReceiptType("NODE_TX_POOL_ACK"), int32(123))) // RunTransactionV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).RunTransactionV1Request(runTransactionV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RunTransactionV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTransactionV1`: RunTransactionV1Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RunTransactionV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTransactionV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runTransactionV1Request** | [**RunTransactionV1Request**](RunTransactionV1Request.md) | | + +### Return type + +[**RunTransactionV1Response**](RunTransactionV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractJsonObjectV1Request.md new file mode 100644 index 00000000000..85e64ff748d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractJsonObjectV1Request.md @@ -0,0 +1,176 @@ +# DeployContractJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | +**ConstructorArgs** | Pointer to **[]interface{}** | The list of arguments to pass in to the constructor of the contract being deployed. | [optional] [default to []] + +## Methods + +### NewDeployContractJsonObjectV1Request + +`func NewDeployContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON, ) *DeployContractJsonObjectV1Request` + +NewDeployContractJsonObjectV1Request instantiates a new DeployContractJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractJsonObjectV1RequestWithDefaults + +`func NewDeployContractJsonObjectV1RequestWithDefaults() *DeployContractJsonObjectV1Request` + +NewDeployContractJsonObjectV1RequestWithDefaults instantiates a new DeployContractJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *DeployContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *DeployContractJsonObjectV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractJsonObjectV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractJsonObjectV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractJsonObjectV1Request) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractJsonObjectV1Request) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractJsonObjectV1Request) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *DeployContractJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployContractJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractJsonObjectV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractJsonObjectV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractJsonObjectV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractJsonObjectV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md new file mode 100644 index 00000000000..28bcbe91c17 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Request.md @@ -0,0 +1,197 @@ +# DeployContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name for retrieve the contracts json on the keychain. | +**ConstructorArgs** | Pointer to **[]interface{}** | | [optional] [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | +**Gas** | Pointer to **float32** | | [optional] +**GasPrice** | Pointer to **string** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] + +## Methods + +### NewDeployContractV1Request + +`func NewDeployContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string, ) *DeployContractV1Request` + +NewDeployContractV1Request instantiates a new DeployContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractV1RequestWithDefaults + +`func NewDeployContractV1RequestWithDefaults() *DeployContractV1Request` + +NewDeployContractV1RequestWithDefaults instantiates a new DeployContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *DeployContractV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *DeployContractV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *DeployContractV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetConstructorArgs + +`func (o *DeployContractV1Request) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployContractV1Request) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployContractV1Request) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployContractV1Request) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + +### GetWeb3SigningCredential + +`func (o *DeployContractV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetKeychainId + +`func (o *DeployContractV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *DeployContractV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *DeployContractV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetGas + +`func (o *DeployContractV1Request) GetGas() float32` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployContractV1Request) GetGasOk() (*float32, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployContractV1Request) SetGas(v float32)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployContractV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployContractV1Request) GetGasPrice() string` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployContractV1Request) GetGasPriceOk() (*string, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployContractV1Request) SetGasPrice(v string)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployContractV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployContractV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployContractV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployContractV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md new file mode 100644 index 00000000000..91ae957ff20 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployContractV1Response.md @@ -0,0 +1,51 @@ +# DeployContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewDeployContractV1Response + +`func NewDeployContractV1Response(transactionReceipt Web3TransactionReceipt, ) *DeployContractV1Response` + +NewDeployContractV1Response instantiates a new DeployContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployContractV1ResponseWithDefaults + +`func NewDeployContractV1ResponseWithDefaults() *DeployContractV1Response` + +NewDeployContractV1ResponseWithDefaults instantiates a new DeployContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *DeployContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *DeployContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *DeployContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployRequestBaseV1.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployRequestBaseV1.md new file mode 100644 index 00000000000..407c4af3fa7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/DeployRequestBaseV1.md @@ -0,0 +1,176 @@ +# DeployRequestBaseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | +**ConstructorArgs** | Pointer to **[]interface{}** | | [optional] [default to []] +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**Gas** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. | [optional] [default to 60000] + +## Methods + +### NewDeployRequestBaseV1 + +`func NewDeployRequestBaseV1(contractJSON ContractJSON, web3SigningCredential Web3SigningCredential, ) *DeployRequestBaseV1` + +NewDeployRequestBaseV1 instantiates a new DeployRequestBaseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeployRequestBaseV1WithDefaults + +`func NewDeployRequestBaseV1WithDefaults() *DeployRequestBaseV1` + +NewDeployRequestBaseV1WithDefaults instantiates a new DeployRequestBaseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractJSON + +`func (o *DeployRequestBaseV1) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *DeployRequestBaseV1) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *DeployRequestBaseV1) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + +### GetConstructorArgs + +`func (o *DeployRequestBaseV1) GetConstructorArgs() []interface{}` + +GetConstructorArgs returns the ConstructorArgs field if non-nil, zero value otherwise. + +### GetConstructorArgsOk + +`func (o *DeployRequestBaseV1) GetConstructorArgsOk() (*[]interface{}, bool)` + +GetConstructorArgsOk returns a tuple with the ConstructorArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstructorArgs + +`func (o *DeployRequestBaseV1) SetConstructorArgs(v []interface{})` + +SetConstructorArgs sets ConstructorArgs field to given value. + +### HasConstructorArgs + +`func (o *DeployRequestBaseV1) HasConstructorArgs() bool` + +HasConstructorArgs returns a boolean if a field has been set. + +### GetWeb3SigningCredential + +`func (o *DeployRequestBaseV1) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *DeployRequestBaseV1) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *DeployRequestBaseV1) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetGas + +`func (o *DeployRequestBaseV1) GetGas() XdaiTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *DeployRequestBaseV1) GetGasOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *DeployRequestBaseV1) SetGas(v XdaiTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *DeployRequestBaseV1) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *DeployRequestBaseV1) GetGasPrice() XdaiTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *DeployRequestBaseV1) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *DeployRequestBaseV1) SetGasPrice(v XdaiTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *DeployRequestBaseV1) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *DeployRequestBaseV1) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *DeployRequestBaseV1) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *DeployRequestBaseV1) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *DeployRequestBaseV1) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md new file mode 100644 index 00000000000..6345c6e4cb7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/EthContractInvocationType.md @@ -0,0 +1,13 @@ +# EthContractInvocationType + +## Enum + + +* `SEND` (value: `"SEND"`) + +* `CALL` (value: `"CALL"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md new file mode 100644 index 00000000000..4f2ce793434 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractJsonObjectV1Request.md @@ -0,0 +1,286 @@ +# InvokeContractJsonObjectV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**ContractAddress** | **string** | Address of the solidity contract | +**Value** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | + +## Methods + +### NewInvokeContractJsonObjectV1Request + +`func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON, ) *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractJsonObjectV1RequestWithDefaults + +`func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request` + +NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractJsonObjectV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractJsonObjectV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetValue + +`func (o *InvokeContractJsonObjectV1Request) GetValue() XdaiTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*XdaiTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractJsonObjectV1Request) SetValue(v XdaiTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractJsonObjectV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractJsonObjectV1Request) GetGas() XdaiTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractJsonObjectV1Request) SetGas(v XdaiTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractJsonObjectV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) GetGasPrice() XdaiTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v XdaiTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractJsonObjectV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractJsonObjectV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md new file mode 100644 index 00000000000..e835c62b54c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Request.md @@ -0,0 +1,286 @@ +# InvokeContractV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | The contract name to find it in the keychain plugin | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**Value** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**KeychainId** | **string** | The keychainId for retrieve the contracts json. | + +## Methods + +### NewInvokeContractV1Request + +`func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string, ) *InvokeContractV1Request` + +NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1RequestWithDefaults + +`func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request` + +NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *InvokeContractV1Request) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *InvokeContractV1Request) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetWeb3SigningCredential + +`func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeContractV1Request) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeContractV1Request) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeContractV1Request) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeContractV1Request) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeContractV1Request) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetValue + +`func (o *InvokeContractV1Request) GetValue() XdaiTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeContractV1Request) GetValueOk() (*XdaiTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeContractV1Request) SetValue(v XdaiTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeContractV1Request) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeContractV1Request) GetGas() XdaiTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeContractV1Request) GetGasOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeContractV1Request) SetGas(v XdaiTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeContractV1Request) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeContractV1Request) GetGasPrice() XdaiTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeContractV1Request) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeContractV1Request) SetGasPrice(v XdaiTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeContractV1Request) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeContractV1Request) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeContractV1Request) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeContractV1Request) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeContractV1Request) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeContractV1Request) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeContractV1Request) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetKeychainId + +`func (o *InvokeContractV1Request) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *InvokeContractV1Request) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md new file mode 100644 index 00000000000..6cf166a75bb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeContractV1Response.md @@ -0,0 +1,113 @@ +# InvokeContractV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | Pointer to [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | [optional] +**CallOutput** | Pointer to **interface{}** | | [optional] +**Success** | **bool** | | + +## Methods + +### NewInvokeContractV1Response + +`func NewInvokeContractV1Response(success bool, ) *InvokeContractV1Response` + +NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeContractV1ResponseWithDefaults + +`func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response` + +NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + +### HasTransactionReceipt + +`func (o *InvokeContractV1Response) HasTransactionReceipt() bool` + +HasTransactionReceipt returns a boolean if a field has been set. + +### GetCallOutput + +`func (o *InvokeContractV1Response) GetCallOutput() interface{}` + +GetCallOutput returns the CallOutput field if non-nil, zero value otherwise. + +### GetCallOutputOk + +`func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool)` + +GetCallOutputOk returns a tuple with the CallOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallOutput + +`func (o *InvokeContractV1Response) SetCallOutput(v interface{})` + +SetCallOutput sets CallOutput field to given value. + +### HasCallOutput + +`func (o *InvokeContractV1Response) HasCallOutput() bool` + +HasCallOutput returns a boolean if a field has been set. + +### SetCallOutputNil + +`func (o *InvokeContractV1Response) SetCallOutputNil(b bool)` + + SetCallOutputNil sets the value for CallOutput to be an explicit nil + +### UnsetCallOutput +`func (o *InvokeContractV1Response) UnsetCallOutput()` + +UnsetCallOutput ensures that no value is present for CallOutput, not even an explicit nil +### GetSuccess + +`func (o *InvokeContractV1Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InvokeContractV1Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeRequestBaseV1.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeRequestBaseV1.md new file mode 100644 index 00000000000..9c147b89a7f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/InvokeRequestBaseV1.md @@ -0,0 +1,286 @@ +# InvokeRequestBaseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractAddress** | **string** | Address of the solidity contract | +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**InvocationType** | [**EthContractInvocationType**](EthContractInvocationType.md) | | +**MethodName** | **string** | The name of the contract method to invoke. | +**Params** | **[]interface{}** | The list of arguments to pass in to the contract method being invoked. | [default to []] +**Value** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**TimeoutMs** | Pointer to **float32** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND | [optional] [default to 60000] +**ContractJSON** | [**ContractJSON**](ContractJSON.md) | | + +## Methods + +### NewInvokeRequestBaseV1 + +`func NewInvokeRequestBaseV1(contractAddress string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractJSON ContractJSON, ) *InvokeRequestBaseV1` + +NewInvokeRequestBaseV1 instantiates a new InvokeRequestBaseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInvokeRequestBaseV1WithDefaults + +`func NewInvokeRequestBaseV1WithDefaults() *InvokeRequestBaseV1` + +NewInvokeRequestBaseV1WithDefaults instantiates a new InvokeRequestBaseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractAddress + +`func (o *InvokeRequestBaseV1) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *InvokeRequestBaseV1) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *InvokeRequestBaseV1) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + + +### GetWeb3SigningCredential + +`func (o *InvokeRequestBaseV1) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *InvokeRequestBaseV1) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *InvokeRequestBaseV1) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetInvocationType + +`func (o *InvokeRequestBaseV1) GetInvocationType() EthContractInvocationType` + +GetInvocationType returns the InvocationType field if non-nil, zero value otherwise. + +### GetInvocationTypeOk + +`func (o *InvokeRequestBaseV1) GetInvocationTypeOk() (*EthContractInvocationType, bool)` + +GetInvocationTypeOk returns a tuple with the InvocationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationType + +`func (o *InvokeRequestBaseV1) SetInvocationType(v EthContractInvocationType)` + +SetInvocationType sets InvocationType field to given value. + + +### GetMethodName + +`func (o *InvokeRequestBaseV1) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InvokeRequestBaseV1) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InvokeRequestBaseV1) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + + +### GetParams + +`func (o *InvokeRequestBaseV1) GetParams() []interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InvokeRequestBaseV1) GetParamsOk() (*[]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InvokeRequestBaseV1) SetParams(v []interface{})` + +SetParams sets Params field to given value. + + +### GetValue + +`func (o *InvokeRequestBaseV1) GetValue() XdaiTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InvokeRequestBaseV1) GetValueOk() (*XdaiTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InvokeRequestBaseV1) SetValue(v XdaiTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InvokeRequestBaseV1) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *InvokeRequestBaseV1) GetGas() XdaiTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *InvokeRequestBaseV1) GetGasOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *InvokeRequestBaseV1) SetGas(v XdaiTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *InvokeRequestBaseV1) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *InvokeRequestBaseV1) GetGasPrice() XdaiTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *InvokeRequestBaseV1) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *InvokeRequestBaseV1) SetGasPrice(v XdaiTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *InvokeRequestBaseV1) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *InvokeRequestBaseV1) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *InvokeRequestBaseV1) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *InvokeRequestBaseV1) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *InvokeRequestBaseV1) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetTimeoutMs + +`func (o *InvokeRequestBaseV1) GetTimeoutMs() float32` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *InvokeRequestBaseV1) GetTimeoutMsOk() (*float32, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *InvokeRequestBaseV1) SetTimeoutMs(v float32)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *InvokeRequestBaseV1) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + +### GetContractJSON + +`func (o *InvokeRequestBaseV1) GetContractJSON() ContractJSON` + +GetContractJSON returns the ContractJSON field if non-nil, zero value otherwise. + +### GetContractJSONOk + +`func (o *InvokeRequestBaseV1) GetContractJSONOk() (*ContractJSON, bool)` + +GetContractJSONOk returns a tuple with the ContractJSON field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractJSON + +`func (o *InvokeRequestBaseV1) SetContractJSON(v ContractJSON)` + +SetContractJSON sets ContractJSON field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ReceiptType.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ReceiptType.md new file mode 100644 index 00000000000..021b052f828 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/ReceiptType.md @@ -0,0 +1,13 @@ +# ReceiptType + +## Enum + + +* `NODE_TX_POOL_ACK` (value: `"NODE_TX_POOL_ACK"`) + +* `LEDGER_BLOCK_ACK` (value: `"LEDGER_BLOCK_ACK"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Request.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Request.md new file mode 100644 index 00000000000..0231653d97d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Request.md @@ -0,0 +1,93 @@ +# RunTransactionV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Web3SigningCredential** | [**Web3SigningCredential**](Web3SigningCredential.md) | | +**TransactionConfig** | [**XdaiTransactionConfig**](XdaiTransactionConfig.md) | | +**ConsistencyStrategy** | [**ConsistencyStrategy**](ConsistencyStrategy.md) | | + +## Methods + +### NewRunTransactionV1Request + +`func NewRunTransactionV1Request(web3SigningCredential Web3SigningCredential, transactionConfig XdaiTransactionConfig, consistencyStrategy ConsistencyStrategy, ) *RunTransactionV1Request` + +NewRunTransactionV1Request instantiates a new RunTransactionV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionV1RequestWithDefaults + +`func NewRunTransactionV1RequestWithDefaults() *RunTransactionV1Request` + +NewRunTransactionV1RequestWithDefaults instantiates a new RunTransactionV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWeb3SigningCredential + +`func (o *RunTransactionV1Request) GetWeb3SigningCredential() Web3SigningCredential` + +GetWeb3SigningCredential returns the Web3SigningCredential field if non-nil, zero value otherwise. + +### GetWeb3SigningCredentialOk + +`func (o *RunTransactionV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool)` + +GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeb3SigningCredential + +`func (o *RunTransactionV1Request) SetWeb3SigningCredential(v Web3SigningCredential)` + +SetWeb3SigningCredential sets Web3SigningCredential field to given value. + + +### GetTransactionConfig + +`func (o *RunTransactionV1Request) GetTransactionConfig() XdaiTransactionConfig` + +GetTransactionConfig returns the TransactionConfig field if non-nil, zero value otherwise. + +### GetTransactionConfigOk + +`func (o *RunTransactionV1Request) GetTransactionConfigOk() (*XdaiTransactionConfig, bool)` + +GetTransactionConfigOk returns a tuple with the TransactionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionConfig + +`func (o *RunTransactionV1Request) SetTransactionConfig(v XdaiTransactionConfig)` + +SetTransactionConfig sets TransactionConfig field to given value. + + +### GetConsistencyStrategy + +`func (o *RunTransactionV1Request) GetConsistencyStrategy() ConsistencyStrategy` + +GetConsistencyStrategy returns the ConsistencyStrategy field if non-nil, zero value otherwise. + +### GetConsistencyStrategyOk + +`func (o *RunTransactionV1Request) GetConsistencyStrategyOk() (*ConsistencyStrategy, bool)` + +GetConsistencyStrategyOk returns a tuple with the ConsistencyStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsistencyStrategy + +`func (o *RunTransactionV1Request) SetConsistencyStrategy(v ConsistencyStrategy)` + +SetConsistencyStrategy sets ConsistencyStrategy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Response.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Response.md new file mode 100644 index 00000000000..7b07bb21e83 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/RunTransactionV1Response.md @@ -0,0 +1,51 @@ +# RunTransactionV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionReceipt** | [**Web3TransactionReceipt**](Web3TransactionReceipt.md) | | + +## Methods + +### NewRunTransactionV1Response + +`func NewRunTransactionV1Response(transactionReceipt Web3TransactionReceipt, ) *RunTransactionV1Response` + +NewRunTransactionV1Response instantiates a new RunTransactionV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunTransactionV1ResponseWithDefaults + +`func NewRunTransactionV1ResponseWithDefaults() *RunTransactionV1Response` + +NewRunTransactionV1ResponseWithDefaults instantiates a new RunTransactionV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactionReceipt + +`func (o *RunTransactionV1Response) GetTransactionReceipt() Web3TransactionReceipt` + +GetTransactionReceipt returns the TransactionReceipt field if non-nil, zero value otherwise. + +### GetTransactionReceiptOk + +`func (o *RunTransactionV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool)` + +GetTransactionReceiptOk returns a tuple with the TransactionReceipt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionReceipt + +`func (o *RunTransactionV1Response) SetTransactionReceipt(v Web3TransactionReceipt)` + +SetTransactionReceipt sets TransactionReceipt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md new file mode 100644 index 00000000000..602f52bdc3e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifact.md @@ -0,0 +1,285 @@ +# SolidityContractJsonArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractName** | **string** | | +**Metadata** | Pointer to **string** | | [optional] +**Bytecode** | Pointer to **string** | | [optional] +**DeployedBytecode** | Pointer to **string** | | [optional] +**SourceMap** | Pointer to **string** | | [optional] +**DeployedSourceMap** | Pointer to **string** | | [optional] +**SourcePath** | Pointer to **string** | | [optional] +**Compiler** | Pointer to [**SolidityContractJsonArtifactCompiler**](SolidityContractJsonArtifactCompiler.md) | | [optional] +**FunctionHashes** | Pointer to **map[string]interface{}** | | [optional] +**GasEstimates** | Pointer to [**SolidityContractJsonArtifactGasEstimates**](SolidityContractJsonArtifactGasEstimates.md) | | [optional] + +## Methods + +### NewSolidityContractJsonArtifact + +`func NewSolidityContractJsonArtifact(contractName string, ) *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactWithDefaults + +`func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact` + +NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContractName + +`func (o *SolidityContractJsonArtifact) GetContractName() string` + +GetContractName returns the ContractName field if non-nil, zero value otherwise. + +### GetContractNameOk + +`func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool)` + +GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractName + +`func (o *SolidityContractJsonArtifact) SetContractName(v string)` + +SetContractName sets ContractName field to given value. + + +### GetMetadata + +`func (o *SolidityContractJsonArtifact) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *SolidityContractJsonArtifact) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *SolidityContractJsonArtifact) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetBytecode + +`func (o *SolidityContractJsonArtifact) GetBytecode() string` + +GetBytecode returns the Bytecode field if non-nil, zero value otherwise. + +### GetBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool)` + +GetBytecodeOk returns a tuple with the Bytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytecode + +`func (o *SolidityContractJsonArtifact) SetBytecode(v string)` + +SetBytecode sets Bytecode field to given value. + +### HasBytecode + +`func (o *SolidityContractJsonArtifact) HasBytecode() bool` + +HasBytecode returns a boolean if a field has been set. + +### GetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string` + +GetDeployedBytecode returns the DeployedBytecode field if non-nil, zero value otherwise. + +### GetDeployedBytecodeOk + +`func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool)` + +GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedBytecode + +`func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string)` + +SetDeployedBytecode sets DeployedBytecode field to given value. + +### HasDeployedBytecode + +`func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool` + +HasDeployedBytecode returns a boolean if a field has been set. + +### GetSourceMap + +`func (o *SolidityContractJsonArtifact) GetSourceMap() string` + +GetSourceMap returns the SourceMap field if non-nil, zero value otherwise. + +### GetSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool)` + +GetSourceMapOk returns a tuple with the SourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceMap + +`func (o *SolidityContractJsonArtifact) SetSourceMap(v string)` + +SetSourceMap sets SourceMap field to given value. + +### HasSourceMap + +`func (o *SolidityContractJsonArtifact) HasSourceMap() bool` + +HasSourceMap returns a boolean if a field has been set. + +### GetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string` + +GetDeployedSourceMap returns the DeployedSourceMap field if non-nil, zero value otherwise. + +### GetDeployedSourceMapOk + +`func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool)` + +GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string)` + +SetDeployedSourceMap sets DeployedSourceMap field to given value. + +### HasDeployedSourceMap + +`func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool` + +HasDeployedSourceMap returns a boolean if a field has been set. + +### GetSourcePath + +`func (o *SolidityContractJsonArtifact) GetSourcePath() string` + +GetSourcePath returns the SourcePath field if non-nil, zero value otherwise. + +### GetSourcePathOk + +`func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool)` + +GetSourcePathOk returns a tuple with the SourcePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePath + +`func (o *SolidityContractJsonArtifact) SetSourcePath(v string)` + +SetSourcePath sets SourcePath field to given value. + +### HasSourcePath + +`func (o *SolidityContractJsonArtifact) HasSourcePath() bool` + +HasSourcePath returns a boolean if a field has been set. + +### GetCompiler + +`func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler)` + +SetCompiler sets Compiler field to given value. + +### HasCompiler + +`func (o *SolidityContractJsonArtifact) HasCompiler() bool` + +HasCompiler returns a boolean if a field has been set. + +### GetFunctionHashes + +`func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{}` + +GetFunctionHashes returns the FunctionHashes field if non-nil, zero value otherwise. + +### GetFunctionHashesOk + +`func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (*map[string]interface{}, bool)` + +GetFunctionHashesOk returns a tuple with the FunctionHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionHashes + +`func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{})` + +SetFunctionHashes sets FunctionHashes field to given value. + +### HasFunctionHashes + +`func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool` + +HasFunctionHashes returns a boolean if a field has been set. + +### GetGasEstimates + +`func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates` + +GetGasEstimates returns the GasEstimates field if non-nil, zero value otherwise. + +### GetGasEstimatesOk + +`func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool)` + +GetGasEstimatesOk returns a tuple with the GasEstimates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasEstimates + +`func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates)` + +SetGasEstimates sets GasEstimates field to given value. + +### HasGasEstimates + +`func (o *SolidityContractJsonArtifact) HasGasEstimates() bool` + +HasGasEstimates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md new file mode 100644 index 00000000000..28cebed22e0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactCompiler.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactCompiler + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactCompiler + +`func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactCompilerWithDefaults + +`func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler` + +NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SolidityContractJsonArtifactCompiler) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SolidityContractJsonArtifactCompiler) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SolidityContractJsonArtifactCompiler) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SolidityContractJsonArtifactCompiler) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md new file mode 100644 index 00000000000..f95a4cda04a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimates.md @@ -0,0 +1,82 @@ +# SolidityContractJsonArtifactGasEstimates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Creation** | Pointer to [**SolidityContractJsonArtifactGasEstimatesCreation**](SolidityContractJsonArtifactGasEstimatesCreation.md) | | [optional] +**External** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimates + +`func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates` + +NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation` + +GetCreation returns the Creation field if non-nil, zero value otherwise. + +### GetCreationOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool)` + +GetCreationOk returns a tuple with the Creation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation)` + +SetCreation sets Creation field to given value. + +### HasCreation + +`func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool` + +HasCreation returns a boolean if a field has been set. + +### GetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{}` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (*map[string]interface{}, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{})` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md new file mode 100644 index 00000000000..8f123dca41d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/SolidityContractJsonArtifactGasEstimatesCreation.md @@ -0,0 +1,108 @@ +# SolidityContractJsonArtifactGasEstimatesCreation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeDepositCost** | Pointer to **string** | | [optional] +**ExecutionCost** | Pointer to **string** | | [optional] +**TotalCost** | Pointer to **string** | | [optional] + +## Methods + +### NewSolidityContractJsonArtifactGasEstimatesCreation + +`func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults + +`func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation` + +NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string` + +GetCodeDepositCost returns the CodeDepositCost field if non-nil, zero value otherwise. + +### GetCodeDepositCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool)` + +GetCodeDepositCostOk returns a tuple with the CodeDepositCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string)` + +SetCodeDepositCost sets CodeDepositCost field to given value. + +### HasCodeDepositCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool` + +HasCodeDepositCost returns a boolean if a field has been set. + +### GetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string` + +GetExecutionCost returns the ExecutionCost field if non-nil, zero value otherwise. + +### GetExecutionCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool)` + +GetExecutionCostOk returns a tuple with the ExecutionCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string)` + +SetExecutionCost sets ExecutionCost field to given value. + +### HasExecutionCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool` + +HasExecutionCost returns a boolean if a field has been set. + +### GetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string` + +GetTotalCost returns the TotalCost field if non-nil, zero value otherwise. + +### GetTotalCostOk + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool)` + +GetTotalCostOk returns a tuple with the TotalCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string)` + +SetTotalCost sets TotalCost field to given value. + +### HasTotalCost + +`func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool` + +HasTotalCost returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md new file mode 100644 index 00000000000..bcd385ee609 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredential.md @@ -0,0 +1,135 @@ +# Web3SigningCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredential + +`func NewWeb3SigningCredential(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, secret string, ) *Web3SigningCredential` + +NewWeb3SigningCredential instantiates a new Web3SigningCredential object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialWithDefaults + +`func NewWeb3SigningCredentialWithDefaults() *Web3SigningCredential` + +NewWeb3SigningCredentialWithDefaults instantiates a new Web3SigningCredential object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredential) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredential) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredential) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredential) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredential) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredential) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredential) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredential) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredential) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredential) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredential) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredential) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + +### GetSecret + +`func (o *Web3SigningCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md new file mode 100644 index 00000000000..8a08034fcaa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialCactusKeychainRef.md @@ -0,0 +1,114 @@ +# Web3SigningCredentialCactusKeychainRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**KeychainEntryKey** | **string** | The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. | +**KeychainId** | **string** | The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. | + +## Methods + +### NewWeb3SigningCredentialCactusKeychainRef + +`func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string, ) *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialCactusKeychainRefWithDefaults + +`func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef` + +NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string` + +GetKeychainEntryKey returns the KeychainEntryKey field if non-nil, zero value otherwise. + +### GetKeychainEntryKeyOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool)` + +GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainEntryKey + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string)` + +SetKeychainEntryKey sets KeychainEntryKey field to given value. + + +### GetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string` + +GetKeychainId returns the KeychainId field if non-nil, zero value otherwise. + +### GetKeychainIdOk + +`func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool)` + +GetKeychainIdOk returns a tuple with the KeychainId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeychainId + +`func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string)` + +SetKeychainId sets KeychainId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md new file mode 100644 index 00000000000..34817fcbf12 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialNone.md @@ -0,0 +1,51 @@ +# Web3SigningCredentialNone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | + +## Methods + +### NewWeb3SigningCredentialNone + +`func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType, ) *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialNoneWithDefaults + +`func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone` + +NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md new file mode 100644 index 00000000000..a181b6727e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialPrivateKeyHex.md @@ -0,0 +1,93 @@ +# Web3SigningCredentialPrivateKeyHex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**Web3SigningCredentialType**](Web3SigningCredentialType.md) | | +**EthAccount** | **string** | The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. | +**Secret** | **string** | The HEX encoded private key of an eth account. | + +## Methods + +### NewWeb3SigningCredentialPrivateKeyHex + +`func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string, ) *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3SigningCredentialPrivateKeyHexWithDefaults + +`func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex` + +NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType)` + +SetType sets Type field to given value. + + +### GetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string` + +GetEthAccount returns the EthAccount field if non-nil, zero value otherwise. + +### GetEthAccountOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool)` + +GetEthAccountOk returns a tuple with the EthAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthAccount + +`func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string)` + +SetEthAccount sets EthAccount field to given value. + + +### GetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md new file mode 100644 index 00000000000..12516b8f3e7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3SigningCredentialType.md @@ -0,0 +1,17 @@ +# Web3SigningCredentialType + +## Enum + + +* `CACTUS_KEYCHAIN_REF` (value: `"CACTUS_KEYCHAIN_REF"`) + +* `GETH_KEYCHAIN_PASSWORD` (value: `"GETH_KEYCHAIN_PASSWORD"`) + +* `PRIVATE_KEY_HEX` (value: `"PRIVATE_KEY_HEX"`) + +* `NONE` (value: `"NONE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md new file mode 100644 index 00000000000..f44682c74a0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/Web3TransactionReceipt.md @@ -0,0 +1,234 @@ +# Web3TransactionReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **bool** | | +**TransactionHash** | **string** | | +**TransactionIndex** | **float32** | | +**BlockHash** | **string** | | +**BlockNumber** | **float32** | | +**GasUsed** | **float32** | | +**ContractAddress** | Pointer to **NullableString** | | [optional] +**From** | **string** | | +**To** | **string** | | + +## Methods + +### NewWeb3TransactionReceipt + +`func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string, ) *Web3TransactionReceipt` + +NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWeb3TransactionReceiptWithDefaults + +`func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt` + +NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *Web3TransactionReceipt) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Web3TransactionReceipt) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + +### GetTransactionHash + +`func (o *Web3TransactionReceipt) GetTransactionHash() string` + +GetTransactionHash returns the TransactionHash field if non-nil, zero value otherwise. + +### GetTransactionHashOk + +`func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool)` + +GetTransactionHashOk returns a tuple with the TransactionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionHash + +`func (o *Web3TransactionReceipt) SetTransactionHash(v string)` + +SetTransactionHash sets TransactionHash field to given value. + + +### GetTransactionIndex + +`func (o *Web3TransactionReceipt) GetTransactionIndex() float32` + +GetTransactionIndex returns the TransactionIndex field if non-nil, zero value otherwise. + +### GetTransactionIndexOk + +`func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool)` + +GetTransactionIndexOk returns a tuple with the TransactionIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionIndex + +`func (o *Web3TransactionReceipt) SetTransactionIndex(v float32)` + +SetTransactionIndex sets TransactionIndex field to given value. + + +### GetBlockHash + +`func (o *Web3TransactionReceipt) GetBlockHash() string` + +GetBlockHash returns the BlockHash field if non-nil, zero value otherwise. + +### GetBlockHashOk + +`func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool)` + +GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockHash + +`func (o *Web3TransactionReceipt) SetBlockHash(v string)` + +SetBlockHash sets BlockHash field to given value. + + +### GetBlockNumber + +`func (o *Web3TransactionReceipt) GetBlockNumber() float32` + +GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise. + +### GetBlockNumberOk + +`func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool)` + +GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockNumber + +`func (o *Web3TransactionReceipt) SetBlockNumber(v float32)` + +SetBlockNumber sets BlockNumber field to given value. + + +### GetGasUsed + +`func (o *Web3TransactionReceipt) GetGasUsed() float32` + +GetGasUsed returns the GasUsed field if non-nil, zero value otherwise. + +### GetGasUsedOk + +`func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool)` + +GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasUsed + +`func (o *Web3TransactionReceipt) SetGasUsed(v float32)` + +SetGasUsed sets GasUsed field to given value. + + +### GetContractAddress + +`func (o *Web3TransactionReceipt) GetContractAddress() string` + +GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. + +### GetContractAddressOk + +`func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool)` + +GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractAddress + +`func (o *Web3TransactionReceipt) SetContractAddress(v string)` + +SetContractAddress sets ContractAddress field to given value. + +### HasContractAddress + +`func (o *Web3TransactionReceipt) HasContractAddress() bool` + +HasContractAddress returns a boolean if a field has been set. + +### SetContractAddressNil + +`func (o *Web3TransactionReceipt) SetContractAddressNil(b bool)` + + SetContractAddressNil sets the value for ContractAddress to be an explicit nil + +### UnsetContractAddress +`func (o *Web3TransactionReceipt) UnsetContractAddress()` + +UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +### GetFrom + +`func (o *Web3TransactionReceipt) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *Web3TransactionReceipt) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *Web3TransactionReceipt) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *Web3TransactionReceipt) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *Web3TransactionReceipt) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *Web3TransactionReceipt) SetTo(v string)` + +SetTo sets To field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfig.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfig.md new file mode 100644 index 00000000000..a0f66c27fcd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfig.md @@ -0,0 +1,238 @@ +# XdaiTransactionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RawTransaction** | Pointer to **string** | | [optional] +**From** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**To** | Pointer to [**XdaiTransactionConfigTo**](XdaiTransactionConfigTo.md) | | [optional] +**Value** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Gas** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**GasPrice** | Pointer to [**XdaiTransactionConfigFrom**](XdaiTransactionConfigFrom.md) | | [optional] +**Nonce** | Pointer to **float32** | | [optional] +**Data** | Pointer to [**XdaiTransactionConfigTo**](XdaiTransactionConfigTo.md) | | [optional] + +## Methods + +### NewXdaiTransactionConfig + +`func NewXdaiTransactionConfig() *XdaiTransactionConfig` + +NewXdaiTransactionConfig instantiates a new XdaiTransactionConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewXdaiTransactionConfigWithDefaults + +`func NewXdaiTransactionConfigWithDefaults() *XdaiTransactionConfig` + +NewXdaiTransactionConfigWithDefaults instantiates a new XdaiTransactionConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRawTransaction + +`func (o *XdaiTransactionConfig) GetRawTransaction() string` + +GetRawTransaction returns the RawTransaction field if non-nil, zero value otherwise. + +### GetRawTransactionOk + +`func (o *XdaiTransactionConfig) GetRawTransactionOk() (*string, bool)` + +GetRawTransactionOk returns a tuple with the RawTransaction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawTransaction + +`func (o *XdaiTransactionConfig) SetRawTransaction(v string)` + +SetRawTransaction sets RawTransaction field to given value. + +### HasRawTransaction + +`func (o *XdaiTransactionConfig) HasRawTransaction() bool` + +HasRawTransaction returns a boolean if a field has been set. + +### GetFrom + +`func (o *XdaiTransactionConfig) GetFrom() XdaiTransactionConfigFrom` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *XdaiTransactionConfig) GetFromOk() (*XdaiTransactionConfigFrom, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *XdaiTransactionConfig) SetFrom(v XdaiTransactionConfigFrom)` + +SetFrom sets From field to given value. + +### HasFrom + +`func (o *XdaiTransactionConfig) HasFrom() bool` + +HasFrom returns a boolean if a field has been set. + +### GetTo + +`func (o *XdaiTransactionConfig) GetTo() XdaiTransactionConfigTo` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *XdaiTransactionConfig) GetToOk() (*XdaiTransactionConfigTo, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *XdaiTransactionConfig) SetTo(v XdaiTransactionConfigTo)` + +SetTo sets To field to given value. + +### HasTo + +`func (o *XdaiTransactionConfig) HasTo() bool` + +HasTo returns a boolean if a field has been set. + +### GetValue + +`func (o *XdaiTransactionConfig) GetValue() XdaiTransactionConfigFrom` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *XdaiTransactionConfig) GetValueOk() (*XdaiTransactionConfigFrom, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *XdaiTransactionConfig) SetValue(v XdaiTransactionConfigFrom)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *XdaiTransactionConfig) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetGas + +`func (o *XdaiTransactionConfig) GetGas() XdaiTransactionConfigFrom` + +GetGas returns the Gas field if non-nil, zero value otherwise. + +### GetGasOk + +`func (o *XdaiTransactionConfig) GetGasOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasOk returns a tuple with the Gas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGas + +`func (o *XdaiTransactionConfig) SetGas(v XdaiTransactionConfigFrom)` + +SetGas sets Gas field to given value. + +### HasGas + +`func (o *XdaiTransactionConfig) HasGas() bool` + +HasGas returns a boolean if a field has been set. + +### GetGasPrice + +`func (o *XdaiTransactionConfig) GetGasPrice() XdaiTransactionConfigFrom` + +GetGasPrice returns the GasPrice field if non-nil, zero value otherwise. + +### GetGasPriceOk + +`func (o *XdaiTransactionConfig) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool)` + +GetGasPriceOk returns a tuple with the GasPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGasPrice + +`func (o *XdaiTransactionConfig) SetGasPrice(v XdaiTransactionConfigFrom)` + +SetGasPrice sets GasPrice field to given value. + +### HasGasPrice + +`func (o *XdaiTransactionConfig) HasGasPrice() bool` + +HasGasPrice returns a boolean if a field has been set. + +### GetNonce + +`func (o *XdaiTransactionConfig) GetNonce() float32` + +GetNonce returns the Nonce field if non-nil, zero value otherwise. + +### GetNonceOk + +`func (o *XdaiTransactionConfig) GetNonceOk() (*float32, bool)` + +GetNonceOk returns a tuple with the Nonce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonce + +`func (o *XdaiTransactionConfig) SetNonce(v float32)` + +SetNonce sets Nonce field to given value. + +### HasNonce + +`func (o *XdaiTransactionConfig) HasNonce() bool` + +HasNonce returns a boolean if a field has been set. + +### GetData + +`func (o *XdaiTransactionConfig) GetData() XdaiTransactionConfigTo` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *XdaiTransactionConfig) GetDataOk() (*XdaiTransactionConfigTo, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *XdaiTransactionConfig) SetData(v XdaiTransactionConfigTo)` + +SetData sets Data field to given value. + +### HasData + +`func (o *XdaiTransactionConfig) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigFrom.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigFrom.md new file mode 100644 index 00000000000..8d76d7a2683 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigFrom.md @@ -0,0 +1,30 @@ +# XdaiTransactionConfigFrom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewXdaiTransactionConfigFrom + +`func NewXdaiTransactionConfigFrom() *XdaiTransactionConfigFrom` + +NewXdaiTransactionConfigFrom instantiates a new XdaiTransactionConfigFrom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewXdaiTransactionConfigFromWithDefaults + +`func NewXdaiTransactionConfigFromWithDefaults() *XdaiTransactionConfigFrom` + +NewXdaiTransactionConfigFromWithDefaults instantiates a new XdaiTransactionConfigFrom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigTo.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigTo.md new file mode 100644 index 00000000000..8f2aefc0d0e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/docs/XdaiTransactionConfigTo.md @@ -0,0 +1,30 @@ +# XdaiTransactionConfigTo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewXdaiTransactionConfigTo + +`func NewXdaiTransactionConfigTo() *XdaiTransactionConfigTo` + +NewXdaiTransactionConfigTo instantiates a new XdaiTransactionConfigTo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewXdaiTransactionConfigToWithDefaults + +`func NewXdaiTransactionConfigToWithDefaults() *XdaiTransactionConfigTo` + +NewXdaiTransactionConfigToWithDefaults instantiates a new XdaiTransactionConfigTo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..730c1976bf0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..7c5df5e5cef --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_consistency_strategy.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_consistency_strategy.go new file mode 100644 index 00000000000..b7b4e162b67 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_consistency_strategy.go @@ -0,0 +1,219 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the ConsistencyStrategy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConsistencyStrategy{} + +// ConsistencyStrategy struct for ConsistencyStrategy +type ConsistencyStrategy struct { + ReceiptType ReceiptType `json:"receiptType"` + // The amount of milliseconds to wait for the receipt to arrive to the connector. Defaults to 0 which means to wait for an unlimited amount of time. Note that this wait may be interrupted still by other parts of the infrastructure such as load balancers cutting of HTTP requests after some time even if they are the type that is supposed to be kept alive. The question of re-entrance is a broader topic not in scope to discuss here, but it is important to mention it. + TimeoutMs *int32 `json:"timeoutMs,omitempty"` + // The number of blocks to wait to be confirmed in addition to the block containing the transaction in question. Note that if the receipt type is set to only wait for node transaction pool ACK and this parameter is set to anything, but zero then the API will not accept the request due to conflicting parameters. + BlockConfirmations int32 `json:"blockConfirmations"` + // The amount of time (in milliseconds) connector will wait before making another confiramtion request to the network in case of previous confiramtion request fails + PollIntervalMs *int32 `json:"pollIntervalMs,omitempty"` +} + +// NewConsistencyStrategy instantiates a new ConsistencyStrategy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsistencyStrategy(receiptType ReceiptType, blockConfirmations int32) *ConsistencyStrategy { + this := ConsistencyStrategy{} + this.ReceiptType = receiptType + this.BlockConfirmations = blockConfirmations + return &this +} + +// NewConsistencyStrategyWithDefaults instantiates a new ConsistencyStrategy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsistencyStrategyWithDefaults() *ConsistencyStrategy { + this := ConsistencyStrategy{} + return &this +} + +// GetReceiptType returns the ReceiptType field value +func (o *ConsistencyStrategy) GetReceiptType() ReceiptType { + if o == nil { + var ret ReceiptType + return ret + } + + return o.ReceiptType +} + +// GetReceiptTypeOk returns a tuple with the ReceiptType field value +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetReceiptTypeOk() (*ReceiptType, bool) { + if o == nil { + return nil, false + } + return &o.ReceiptType, true +} + +// SetReceiptType sets field value +func (o *ConsistencyStrategy) SetReceiptType(v ReceiptType) { + o.ReceiptType = v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *ConsistencyStrategy) GetTimeoutMs() int32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret int32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetTimeoutMsOk() (*int32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *ConsistencyStrategy) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given int32 and assigns it to the TimeoutMs field. +func (o *ConsistencyStrategy) SetTimeoutMs(v int32) { + o.TimeoutMs = &v +} + +// GetBlockConfirmations returns the BlockConfirmations field value +func (o *ConsistencyStrategy) GetBlockConfirmations() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.BlockConfirmations +} + +// GetBlockConfirmationsOk returns a tuple with the BlockConfirmations field value +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetBlockConfirmationsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.BlockConfirmations, true +} + +// SetBlockConfirmations sets field value +func (o *ConsistencyStrategy) SetBlockConfirmations(v int32) { + o.BlockConfirmations = v +} + +// GetPollIntervalMs returns the PollIntervalMs field value if set, zero value otherwise. +func (o *ConsistencyStrategy) GetPollIntervalMs() int32 { + if o == nil || IsNil(o.PollIntervalMs) { + var ret int32 + return ret + } + return *o.PollIntervalMs +} + +// GetPollIntervalMsOk returns a tuple with the PollIntervalMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsistencyStrategy) GetPollIntervalMsOk() (*int32, bool) { + if o == nil || IsNil(o.PollIntervalMs) { + return nil, false + } + return o.PollIntervalMs, true +} + +// HasPollIntervalMs returns a boolean if a field has been set. +func (o *ConsistencyStrategy) HasPollIntervalMs() bool { + if o != nil && !IsNil(o.PollIntervalMs) { + return true + } + + return false +} + +// SetPollIntervalMs gets a reference to the given int32 and assigns it to the PollIntervalMs field. +func (o *ConsistencyStrategy) SetPollIntervalMs(v int32) { + o.PollIntervalMs = &v +} + +func (o ConsistencyStrategy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConsistencyStrategy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["receiptType"] = o.ReceiptType + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["blockConfirmations"] = o.BlockConfirmations + if !IsNil(o.PollIntervalMs) { + toSerialize["pollIntervalMs"] = o.PollIntervalMs + } + return toSerialize, nil +} + +type NullableConsistencyStrategy struct { + value *ConsistencyStrategy + isSet bool +} + +func (v NullableConsistencyStrategy) Get() *ConsistencyStrategy { + return v.value +} + +func (v *NullableConsistencyStrategy) Set(val *ConsistencyStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableConsistencyStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableConsistencyStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsistencyStrategy(val *ConsistencyStrategy) *NullableConsistencyStrategy { + return &NullableConsistencyStrategy{value: val, isSet: true} +} + +func (v NullableConsistencyStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsistencyStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_contract_json.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_contract_json.go new file mode 100644 index 00000000000..3e013910526 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_contract_json.go @@ -0,0 +1,570 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the ContractJSON type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ContractJSON{} + +// ContractJSON struct for ContractJSON +type ContractJSON struct { + ContractName string `json:"contractName"` + // See https://ethereum.stackexchange.com/a/47556 regarding the maximum length of the bytecode + Bytecode string `json:"bytecode"` + // The application binary interface of the solidity contract, optional parameter + Abi []interface{} `json:"abi"` + Metadata *string `json:"metadata,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler map[string]interface{} `json:"compiler,omitempty"` + Networks map[string]interface{} `json:"networks,omitempty"` + Ast map[string]interface{} `json:"ast,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates map[string]interface{} `json:"gasEstimates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ContractJSON ContractJSON + +// NewContractJSON instantiates a new ContractJSON object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewContractJSON(contractName string, bytecode string, abi []interface{}) *ContractJSON { + this := ContractJSON{} + this.ContractName = contractName + this.Bytecode = bytecode + this.Abi = abi + return &this +} + +// NewContractJSONWithDefaults instantiates a new ContractJSON object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewContractJSONWithDefaults() *ContractJSON { + this := ContractJSON{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *ContractJSON) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *ContractJSON) SetContractName(v string) { + o.ContractName = v +} + +// GetBytecode returns the Bytecode field value +func (o *ContractJSON) GetBytecode() string { + if o == nil { + var ret string + return ret + } + + return o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetBytecodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Bytecode, true +} + +// SetBytecode sets field value +func (o *ContractJSON) SetBytecode(v string) { + o.Bytecode = v +} + +// GetAbi returns the Abi field value +func (o *ContractJSON) GetAbi() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Abi +} + +// GetAbiOk returns a tuple with the Abi field value +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAbiOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Abi, true +} + +// SetAbi sets field value +func (o *ContractJSON) SetAbi(v []interface{}) { + o.Abi = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ContractJSON) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ContractJSON) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *ContractJSON) SetMetadata(v string) { + o.Metadata = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedBytecode() string { + if o == nil || IsNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedBytecode() bool { + if o != nil && !IsNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *ContractJSON) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetSourceMap() string { + if o == nil || IsNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasSourceMap() bool { + if o != nil && !IsNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *ContractJSON) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *ContractJSON) GetDeployedSourceMap() string { + if o == nil || IsNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *ContractJSON) HasDeployedSourceMap() bool { + if o != nil && !IsNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *ContractJSON) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *ContractJSON) GetSourcePath() string { + if o == nil || IsNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetSourcePathOk() (*string, bool) { + if o == nil || IsNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *ContractJSON) HasSourcePath() bool { + if o != nil && !IsNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *ContractJSON) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *ContractJSON) GetCompiler() map[string]interface{} { + if o == nil || IsNil(o.Compiler) { + var ret map[string]interface{} + return ret + } + return o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetCompilerOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Compiler) { + return map[string]interface{}{}, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *ContractJSON) HasCompiler() bool { + if o != nil && !IsNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given map[string]interface{} and assigns it to the Compiler field. +func (o *ContractJSON) SetCompiler(v map[string]interface{}) { + o.Compiler = v +} + +// GetNetworks returns the Networks field value if set, zero value otherwise. +func (o *ContractJSON) GetNetworks() map[string]interface{} { + if o == nil || IsNil(o.Networks) { + var ret map[string]interface{} + return ret + } + return o.Networks +} + +// GetNetworksOk returns a tuple with the Networks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetNetworksOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Networks) { + return map[string]interface{}{}, false + } + return o.Networks, true +} + +// HasNetworks returns a boolean if a field has been set. +func (o *ContractJSON) HasNetworks() bool { + if o != nil && !IsNil(o.Networks) { + return true + } + + return false +} + +// SetNetworks gets a reference to the given map[string]interface{} and assigns it to the Networks field. +func (o *ContractJSON) SetNetworks(v map[string]interface{}) { + o.Networks = v +} + +// GetAst returns the Ast field value if set, zero value otherwise. +func (o *ContractJSON) GetAst() map[string]interface{} { + if o == nil || IsNil(o.Ast) { + var ret map[string]interface{} + return ret + } + return o.Ast +} + +// GetAstOk returns a tuple with the Ast field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetAstOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Ast) { + return map[string]interface{}{}, false + } + return o.Ast, true +} + +// HasAst returns a boolean if a field has been set. +func (o *ContractJSON) HasAst() bool { + if o != nil && !IsNil(o.Ast) { + return true + } + + return false +} + +// SetAst gets a reference to the given map[string]interface{} and assigns it to the Ast field. +func (o *ContractJSON) SetAst(v map[string]interface{}) { + o.Ast = v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *ContractJSON) GetFunctionHashes() map[string]interface{} { + if o == nil || IsNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *ContractJSON) HasFunctionHashes() bool { + if o != nil && !IsNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *ContractJSON) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *ContractJSON) GetGasEstimates() map[string]interface{} { + if o == nil || IsNil(o.GasEstimates) { + var ret map[string]interface{} + return ret + } + return o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContractJSON) GetGasEstimatesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.GasEstimates) { + return map[string]interface{}{}, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *ContractJSON) HasGasEstimates() bool { + if o != nil && !IsNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given map[string]interface{} and assigns it to the GasEstimates field. +func (o *ContractJSON) SetGasEstimates(v map[string]interface{}) { + o.GasEstimates = v +} + +func (o ContractJSON) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ContractJSON) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["bytecode"] = o.Bytecode + toSerialize["abi"] = o.Abi + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !IsNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !IsNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !IsNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !IsNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !IsNil(o.Networks) { + toSerialize["networks"] = o.Networks + } + if !IsNil(o.Ast) { + toSerialize["ast"] = o.Ast + } + if !IsNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !IsNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ContractJSON) UnmarshalJSON(bytes []byte) (err error) { + varContractJSON := _ContractJSON{} + + if err = json.Unmarshal(bytes, &varContractJSON); err == nil { + *o = ContractJSON(varContractJSON) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "contractName") + delete(additionalProperties, "bytecode") + delete(additionalProperties, "abi") + delete(additionalProperties, "metadata") + delete(additionalProperties, "deployedBytecode") + delete(additionalProperties, "sourceMap") + delete(additionalProperties, "deployedSourceMap") + delete(additionalProperties, "sourcePath") + delete(additionalProperties, "compiler") + delete(additionalProperties, "networks") + delete(additionalProperties, "ast") + delete(additionalProperties, "functionHashes") + delete(additionalProperties, "gasEstimates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableContractJSON struct { + value *ContractJSON + isSet bool +} + +func (v NullableContractJSON) Get() *ContractJSON { + return v.value +} + +func (v *NullableContractJSON) Set(val *ContractJSON) { + v.value = val + v.isSet = true +} + +func (v NullableContractJSON) IsSet() bool { + return v.isSet +} + +func (v *NullableContractJSON) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableContractJSON(val *ContractJSON) *NullableContractJSON { + return &NullableContractJSON{value: val, isSet: true} +} + +func (v NullableContractJSON) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableContractJSON) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_json_object_v1_request.go new file mode 100644 index 00000000000..154d5061729 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_json_object_v1_request.go @@ -0,0 +1,294 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the DeployContractJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractJsonObjectV1Request{} + +// DeployContractJsonObjectV1Request struct for DeployContractJsonObjectV1Request +type DeployContractJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` + // The list of arguments to pass in to the constructor of the contract being deployed. + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` +} + +// NewDeployContractJsonObjectV1Request instantiates a new DeployContractJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, contractJSON ContractJSON) *DeployContractJsonObjectV1Request { + this := DeployContractJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewDeployContractJsonObjectV1RequestWithDefaults instantiates a new DeployContractJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractJsonObjectV1RequestWithDefaults() *DeployContractJsonObjectV1Request { + this := DeployContractJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractJsonObjectV1Request) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractJsonObjectV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractJsonObjectV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractJsonObjectV1Request) GetGasPrice() string { + if o == nil || IsNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetGasPriceOk() (*string, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *DeployContractJsonObjectV1Request) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *DeployContractJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *DeployContractJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractJsonObjectV1Request) GetConstructorArgs() []interface{} { + if o == nil || IsNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractJsonObjectV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractJsonObjectV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractJsonObjectV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +func (o DeployContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + return toSerialize, nil +} + +type NullableDeployContractJsonObjectV1Request struct { + value *DeployContractJsonObjectV1Request + isSet bool +} + +func (v NullableDeployContractJsonObjectV1Request) Get() *DeployContractJsonObjectV1Request { + return v.value +} + +func (v *NullableDeployContractJsonObjectV1Request) Set(val *DeployContractJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractJsonObjectV1Request(val *DeployContractJsonObjectV1Request) *NullableDeployContractJsonObjectV1Request { + return &NullableDeployContractJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go new file mode 100644 index 00000000000..cf5226bd526 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_request.go @@ -0,0 +1,322 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the DeployContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractV1Request{} + +// DeployContractV1Request struct for DeployContractV1Request +type DeployContractV1Request struct { + // The contract name for retrieve the contracts json on the keychain. + ContractName string `json:"contractName"` + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` + Gas *float32 `json:"gas,omitempty"` + GasPrice *string `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` +} + +// NewDeployContractV1Request instantiates a new DeployContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, keychainId string) *DeployContractV1Request { + this := DeployContractV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.KeychainId = keychainId + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewDeployContractV1RequestWithDefaults instantiates a new DeployContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractV1RequestWithDefaults() *DeployContractV1Request { + this := DeployContractV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *DeployContractV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *DeployContractV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetConstructorArgs() []interface{} { + if o == nil || IsNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployContractV1Request) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployContractV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetKeychainId returns the KeychainId field value +func (o *DeployContractV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *DeployContractV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetGas() float32 { + if o == nil || IsNil(o.Gas) { + var ret float32 + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetGasOk() (*float32, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given float32 and assigns it to the Gas field. +func (o *DeployContractV1Request) SetGas(v float32) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetGasPrice() string { + if o == nil || IsNil(o.GasPrice) { + var ret string + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetGasPriceOk() (*string, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given string and assigns it to the GasPrice field. +func (o *DeployContractV1Request) SetGasPrice(v string) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployContractV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployContractV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployContractV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployContractV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +func (o DeployContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["keychainId"] = o.KeychainId + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + return toSerialize, nil +} + +type NullableDeployContractV1Request struct { + value *DeployContractV1Request + isSet bool +} + +func (v NullableDeployContractV1Request) Get() *DeployContractV1Request { + return v.value +} + +func (v *NullableDeployContractV1Request) Set(val *DeployContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractV1Request(val *DeployContractV1Request) *NullableDeployContractV1Request { + return &NullableDeployContractV1Request{value: val, isSet: true} +} + +func (v NullableDeployContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go new file mode 100644 index 00000000000..0ba0a0413f6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_contract_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the DeployContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployContractV1Response{} + +// DeployContractV1Response struct for DeployContractV1Response +type DeployContractV1Response struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewDeployContractV1Response instantiates a new DeployContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployContractV1Response(transactionReceipt Web3TransactionReceipt) *DeployContractV1Response { + this := DeployContractV1Response{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewDeployContractV1ResponseWithDefaults instantiates a new DeployContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployContractV1ResponseWithDefaults() *DeployContractV1Response { + this := DeployContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *DeployContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *DeployContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *DeployContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o DeployContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableDeployContractV1Response struct { + value *DeployContractV1Response + isSet bool +} + +func (v NullableDeployContractV1Response) Get() *DeployContractV1Response { + return v.value +} + +func (v *NullableDeployContractV1Response) Set(val *DeployContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeployContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployContractV1Response(val *DeployContractV1Response) *NullableDeployContractV1Response { + return &NullableDeployContractV1Response{value: val, isSet: true} +} + +func (v NullableDeployContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_request_base_v1.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_request_base_v1.go new file mode 100644 index 00000000000..d0b57f32cbe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_deploy_request_base_v1.go @@ -0,0 +1,293 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the DeployRequestBaseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeployRequestBaseV1{} + +// DeployRequestBaseV1 struct for DeployRequestBaseV1 +type DeployRequestBaseV1 struct { + ContractJSON ContractJSON `json:"contractJSON"` + ConstructorArgs []interface{} `json:"constructorArgs,omitempty"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + Gas *XdaiTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *XdaiTransactionConfigFrom `json:"gasPrice,omitempty"` + // The amount of milliseconds to wait for a transaction receipt with theaddress of the contract(which indicates successful deployment) beforegiving up and crashing. + TimeoutMs *float32 `json:"timeoutMs,omitempty"` +} + +// NewDeployRequestBaseV1 instantiates a new DeployRequestBaseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeployRequestBaseV1(contractJSON ContractJSON, web3SigningCredential Web3SigningCredential) *DeployRequestBaseV1 { + this := DeployRequestBaseV1{} + this.ContractJSON = contractJSON + this.Web3SigningCredential = web3SigningCredential + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// NewDeployRequestBaseV1WithDefaults instantiates a new DeployRequestBaseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeployRequestBaseV1WithDefaults() *DeployRequestBaseV1 { + this := DeployRequestBaseV1{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractJSON returns the ContractJSON field value +func (o *DeployRequestBaseV1) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *DeployRequestBaseV1) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +// GetConstructorArgs returns the ConstructorArgs field value if set, zero value otherwise. +func (o *DeployRequestBaseV1) GetConstructorArgs() []interface{} { + if o == nil || IsNil(o.ConstructorArgs) { + var ret []interface{} + return ret + } + return o.ConstructorArgs +} + +// GetConstructorArgsOk returns a tuple with the ConstructorArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetConstructorArgsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConstructorArgs) { + return nil, false + } + return o.ConstructorArgs, true +} + +// HasConstructorArgs returns a boolean if a field has been set. +func (o *DeployRequestBaseV1) HasConstructorArgs() bool { + if o != nil && !IsNil(o.ConstructorArgs) { + return true + } + + return false +} + +// SetConstructorArgs gets a reference to the given []interface{} and assigns it to the ConstructorArgs field. +func (o *DeployRequestBaseV1) SetConstructorArgs(v []interface{}) { + o.ConstructorArgs = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *DeployRequestBaseV1) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *DeployRequestBaseV1) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *DeployRequestBaseV1) GetGas() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetGasOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *DeployRequestBaseV1) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Gas field. +func (o *DeployRequestBaseV1) SetGas(v XdaiTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *DeployRequestBaseV1) GetGasPrice() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *DeployRequestBaseV1) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given XdaiTransactionConfigFrom and assigns it to the GasPrice field. +func (o *DeployRequestBaseV1) SetGasPrice(v XdaiTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *DeployRequestBaseV1) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeployRequestBaseV1) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *DeployRequestBaseV1) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *DeployRequestBaseV1) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +func (o DeployRequestBaseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeployRequestBaseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractJSON"] = o.ContractJSON + if !IsNil(o.ConstructorArgs) { + toSerialize["constructorArgs"] = o.ConstructorArgs + } + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + return toSerialize, nil +} + +type NullableDeployRequestBaseV1 struct { + value *DeployRequestBaseV1 + isSet bool +} + +func (v NullableDeployRequestBaseV1) Get() *DeployRequestBaseV1 { + return v.value +} + +func (v *NullableDeployRequestBaseV1) Set(val *DeployRequestBaseV1) { + v.value = val + v.isSet = true +} + +func (v NullableDeployRequestBaseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployRequestBaseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployRequestBaseV1(val *DeployRequestBaseV1) *NullableDeployRequestBaseV1 { + return &NullableDeployRequestBaseV1{value: val, isSet: true} +} + +func (v NullableDeployRequestBaseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployRequestBaseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go new file mode 100644 index 00000000000..51fcea9c06b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_eth_contract_invocation_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// EthContractInvocationType the model 'EthContractInvocationType' +type EthContractInvocationType string + +// List of EthContractInvocationType +const ( + SEND EthContractInvocationType = "SEND" + CALL EthContractInvocationType = "CALL" +) + +// All allowed values of EthContractInvocationType enum +var AllowedEthContractInvocationTypeEnumValues = []EthContractInvocationType{ + "SEND", + "CALL", +} + +func (v *EthContractInvocationType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EthContractInvocationType(value) + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EthContractInvocationType", value) +} + +// NewEthContractInvocationTypeFromValue returns a pointer to a valid EthContractInvocationType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEthContractInvocationTypeFromValue(v string) (*EthContractInvocationType, error) { + ev := EthContractInvocationType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EthContractInvocationType: valid values are %v", v, AllowedEthContractInvocationTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EthContractInvocationType) IsValid() bool { + for _, existing := range AllowedEthContractInvocationTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EthContractInvocationType value +func (v EthContractInvocationType) Ptr() *EthContractInvocationType { + return &v +} + +type NullableEthContractInvocationType struct { + value *EthContractInvocationType + isSet bool +} + +func (v NullableEthContractInvocationType) Get() *EthContractInvocationType { + return v.value +} + +func (v *NullableEthContractInvocationType) Set(val *EthContractInvocationType) { + v.value = val + v.isSet = true +} + +func (v NullableEthContractInvocationType) IsSet() bool { + return v.isSet +} + +func (v *NullableEthContractInvocationType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEthContractInvocationType(val *EthContractInvocationType) *NullableEthContractInvocationType { + return &NullableEthContractInvocationType{value: val, isSet: true} +} + +func (v NullableEthContractInvocationType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEthContractInvocationType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go new file mode 100644 index 00000000000..87bb34ba358 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_json_object_v1_request.go @@ -0,0 +1,440 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the InvokeContractJsonObjectV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractJsonObjectV1Request{} + +// InvokeContractJsonObjectV1Request struct for InvokeContractJsonObjectV1Request +type InvokeContractJsonObjectV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + // Address of the solidity contract + ContractAddress string `json:"contractAddress"` + Value *XdaiTransactionConfigFrom `json:"value,omitempty"` + Gas *XdaiTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *XdaiTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` +} + +// NewInvokeContractJsonObjectV1Request instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractJsonObjectV1Request(web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractAddress string, contractJSON ContractJSON) *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + this.ContractAddress = contractAddress + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewInvokeContractJsonObjectV1RequestWithDefaults instantiates a new InvokeContractJsonObjectV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractJsonObjectV1RequestWithDefaults() *InvokeContractJsonObjectV1Request { + this := InvokeContractJsonObjectV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractJsonObjectV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractJsonObjectV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractJsonObjectV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractJsonObjectV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractJsonObjectV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractJsonObjectV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractJsonObjectV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetContractAddress returns the ContractAddress field value +func (o *InvokeContractJsonObjectV1Request) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetValue() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetValueOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractJsonObjectV1Request) SetValue(v XdaiTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGas() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractJsonObjectV1Request) SetGas(v XdaiTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetGasPrice() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given XdaiTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractJsonObjectV1Request) SetGasPrice(v XdaiTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractJsonObjectV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractJsonObjectV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractJsonObjectV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *InvokeContractJsonObjectV1Request) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *InvokeContractJsonObjectV1Request) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *InvokeContractJsonObjectV1Request) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +func (o InvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractJsonObjectV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + toSerialize["contractAddress"] = o.ContractAddress + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + return toSerialize, nil +} + +type NullableInvokeContractJsonObjectV1Request struct { + value *InvokeContractJsonObjectV1Request + isSet bool +} + +func (v NullableInvokeContractJsonObjectV1Request) Get() *InvokeContractJsonObjectV1Request { + return v.value +} + +func (v *NullableInvokeContractJsonObjectV1Request) Set(val *InvokeContractJsonObjectV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractJsonObjectV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractJsonObjectV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractJsonObjectV1Request(val *InvokeContractJsonObjectV1Request) *NullableInvokeContractJsonObjectV1Request { + return &NullableInvokeContractJsonObjectV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractJsonObjectV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractJsonObjectV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go new file mode 100644 index 00000000000..1b75eee5602 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_request.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Request{} + +// InvokeContractV1Request struct for InvokeContractV1Request +type InvokeContractV1Request struct { + // The contract name to find it in the keychain plugin + ContractName string `json:"contractName"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + Value *XdaiTransactionConfigFrom `json:"value,omitempty"` + Gas *XdaiTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *XdaiTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + // The keychainId for retrieve the contracts json. + KeychainId string `json:"keychainId"` +} + +// NewInvokeContractV1Request instantiates a new InvokeContractV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Request(contractName string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, keychainId string) *InvokeContractV1Request { + this := InvokeContractV1Request{} + this.ContractName = contractName + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.KeychainId = keychainId + return &this +} + +// NewInvokeContractV1RequestWithDefaults instantiates a new InvokeContractV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1RequestWithDefaults() *InvokeContractV1Request { + this := InvokeContractV1Request{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractName returns the ContractName field value +func (o *InvokeContractV1Request) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *InvokeContractV1Request) SetContractName(v string) { + o.ContractName = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeContractV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeContractV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeContractV1Request) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeContractV1Request) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeContractV1Request) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeContractV1Request) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeContractV1Request) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeContractV1Request) SetParams(v []interface{}) { + o.Params = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetValue() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetValueOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeContractV1Request) SetValue(v XdaiTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGas() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeContractV1Request) SetGas(v XdaiTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetGasPrice() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given XdaiTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeContractV1Request) SetGasPrice(v XdaiTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeContractV1Request) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeContractV1Request) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeContractV1Request) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeContractV1Request) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetKeychainId returns the KeychainId field value +func (o *InvokeContractV1Request) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Request) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *InvokeContractV1Request) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o InvokeContractV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableInvokeContractV1Request struct { + value *InvokeContractV1Request + isSet bool +} + +func (v NullableInvokeContractV1Request) Get() *InvokeContractV1Request { + return v.value +} + +func (v *NullableInvokeContractV1Request) Set(val *InvokeContractV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Request(val *InvokeContractV1Request) *NullableInvokeContractV1Request { + return &NullableInvokeContractV1Request{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go new file mode 100644 index 00000000000..83a9511ab85 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_contract_v1_response.go @@ -0,0 +1,190 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the InvokeContractV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeContractV1Response{} + +// InvokeContractV1Response struct for InvokeContractV1Response +type InvokeContractV1Response struct { + TransactionReceipt *Web3TransactionReceipt `json:"transactionReceipt,omitempty"` + CallOutput interface{} `json:"callOutput,omitempty"` + Success bool `json:"success"` +} + +// NewInvokeContractV1Response instantiates a new InvokeContractV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeContractV1Response(success bool) *InvokeContractV1Response { + this := InvokeContractV1Response{} + this.Success = success + return &this +} + +// NewInvokeContractV1ResponseWithDefaults instantiates a new InvokeContractV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeContractV1ResponseWithDefaults() *InvokeContractV1Response { + this := InvokeContractV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value if set, zero value otherwise. +func (o *InvokeContractV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil || IsNil(o.TransactionReceipt) { + var ret Web3TransactionReceipt + return ret + } + return *o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil || IsNil(o.TransactionReceipt) { + return nil, false + } + return o.TransactionReceipt, true +} + +// HasTransactionReceipt returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasTransactionReceipt() bool { + if o != nil && !IsNil(o.TransactionReceipt) { + return true + } + + return false +} + +// SetTransactionReceipt gets a reference to the given Web3TransactionReceipt and assigns it to the TransactionReceipt field. +func (o *InvokeContractV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = &v +} + +// GetCallOutput returns the CallOutput field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InvokeContractV1Response) GetCallOutput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CallOutput +} + +// GetCallOutputOk returns a tuple with the CallOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InvokeContractV1Response) GetCallOutputOk() (*interface{}, bool) { + if o == nil || IsNil(o.CallOutput) { + return nil, false + } + return &o.CallOutput, true +} + +// HasCallOutput returns a boolean if a field has been set. +func (o *InvokeContractV1Response) HasCallOutput() bool { + if o != nil && IsNil(o.CallOutput) { + return true + } + + return false +} + +// SetCallOutput gets a reference to the given interface{} and assigns it to the CallOutput field. +func (o *InvokeContractV1Response) SetCallOutput(v interface{}) { + o.CallOutput = v +} + +// GetSuccess returns the Success field value +func (o *InvokeContractV1Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InvokeContractV1Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InvokeContractV1Response) SetSuccess(v bool) { + o.Success = v +} + +func (o InvokeContractV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeContractV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TransactionReceipt) { + toSerialize["transactionReceipt"] = o.TransactionReceipt + } + if o.CallOutput != nil { + toSerialize["callOutput"] = o.CallOutput + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableInvokeContractV1Response struct { + value *InvokeContractV1Response + isSet bool +} + +func (v NullableInvokeContractV1Response) Get() *InvokeContractV1Response { + return v.value +} + +func (v *NullableInvokeContractV1Response) Set(val *InvokeContractV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeContractV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeContractV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeContractV1Response(val *InvokeContractV1Response) *NullableInvokeContractV1Response { + return &NullableInvokeContractV1Response{value: val, isSet: true} +} + +func (v NullableInvokeContractV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeContractV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_request_base_v1.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_request_base_v1.go new file mode 100644 index 00000000000..3126f75bf32 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_invoke_request_base_v1.go @@ -0,0 +1,440 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the InvokeRequestBaseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InvokeRequestBaseV1{} + +// InvokeRequestBaseV1 struct for InvokeRequestBaseV1 +type InvokeRequestBaseV1 struct { + // Address of the solidity contract + ContractAddress string `json:"contractAddress"` + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + InvocationType EthContractInvocationType `json:"invocationType"` + // The name of the contract method to invoke. + MethodName string `json:"methodName"` + // The list of arguments to pass in to the contract method being invoked. + Params []interface{} `json:"params"` + Value *XdaiTransactionConfigFrom `json:"value,omitempty"` + Gas *XdaiTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *XdaiTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + // The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND + TimeoutMs *float32 `json:"timeoutMs,omitempty"` + ContractJSON ContractJSON `json:"contractJSON"` +} + +// NewInvokeRequestBaseV1 instantiates a new InvokeRequestBaseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInvokeRequestBaseV1(contractAddress string, web3SigningCredential Web3SigningCredential, invocationType EthContractInvocationType, methodName string, params []interface{}, contractJSON ContractJSON) *InvokeRequestBaseV1 { + this := InvokeRequestBaseV1{} + this.ContractAddress = contractAddress + this.Web3SigningCredential = web3SigningCredential + this.InvocationType = invocationType + this.MethodName = methodName + this.Params = params + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + this.ContractJSON = contractJSON + return &this +} + +// NewInvokeRequestBaseV1WithDefaults instantiates a new InvokeRequestBaseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInvokeRequestBaseV1WithDefaults() *InvokeRequestBaseV1 { + this := InvokeRequestBaseV1{} + var timeoutMs float32 = 60000 + this.TimeoutMs = &timeoutMs + return &this +} + +// GetContractAddress returns the ContractAddress field value +func (o *InvokeRequestBaseV1) GetContractAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ContractAddress +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractAddress, true +} + +// SetContractAddress sets field value +func (o *InvokeRequestBaseV1) SetContractAddress(v string) { + o.ContractAddress = v +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *InvokeRequestBaseV1) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *InvokeRequestBaseV1) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetInvocationType returns the InvocationType field value +func (o *InvokeRequestBaseV1) GetInvocationType() EthContractInvocationType { + if o == nil { + var ret EthContractInvocationType + return ret + } + + return o.InvocationType +} + +// GetInvocationTypeOk returns a tuple with the InvocationType field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetInvocationTypeOk() (*EthContractInvocationType, bool) { + if o == nil { + return nil, false + } + return &o.InvocationType, true +} + +// SetInvocationType sets field value +func (o *InvokeRequestBaseV1) SetInvocationType(v EthContractInvocationType) { + o.InvocationType = v +} + +// GetMethodName returns the MethodName field value +func (o *InvokeRequestBaseV1) GetMethodName() string { + if o == nil { + var ret string + return ret + } + + return o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetMethodNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MethodName, true +} + +// SetMethodName sets field value +func (o *InvokeRequestBaseV1) SetMethodName(v string) { + o.MethodName = v +} + +// GetParams returns the Params field value +func (o *InvokeRequestBaseV1) GetParams() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetParamsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *InvokeRequestBaseV1) SetParams(v []interface{}) { + o.Params = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InvokeRequestBaseV1) GetValue() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetValueOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InvokeRequestBaseV1) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Value field. +func (o *InvokeRequestBaseV1) SetValue(v XdaiTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *InvokeRequestBaseV1) GetGas() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetGasOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *InvokeRequestBaseV1) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Gas field. +func (o *InvokeRequestBaseV1) SetGas(v XdaiTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *InvokeRequestBaseV1) GetGasPrice() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *InvokeRequestBaseV1) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given XdaiTransactionConfigFrom and assigns it to the GasPrice field. +func (o *InvokeRequestBaseV1) SetGasPrice(v XdaiTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *InvokeRequestBaseV1) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *InvokeRequestBaseV1) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *InvokeRequestBaseV1) SetNonce(v float32) { + o.Nonce = &v +} + +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *InvokeRequestBaseV1) GetTimeoutMs() float32 { + if o == nil || IsNil(o.TimeoutMs) { + var ret float32 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeoutMs) { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *InvokeRequestBaseV1) HasTimeoutMs() bool { + if o != nil && !IsNil(o.TimeoutMs) { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given float32 and assigns it to the TimeoutMs field. +func (o *InvokeRequestBaseV1) SetTimeoutMs(v float32) { + o.TimeoutMs = &v +} + +// GetContractJSON returns the ContractJSON field value +func (o *InvokeRequestBaseV1) GetContractJSON() ContractJSON { + if o == nil { + var ret ContractJSON + return ret + } + + return o.ContractJSON +} + +// GetContractJSONOk returns a tuple with the ContractJSON field value +// and a boolean to check if the value has been set. +func (o *InvokeRequestBaseV1) GetContractJSONOk() (*ContractJSON, bool) { + if o == nil { + return nil, false + } + return &o.ContractJSON, true +} + +// SetContractJSON sets field value +func (o *InvokeRequestBaseV1) SetContractJSON(v ContractJSON) { + o.ContractJSON = v +} + +func (o InvokeRequestBaseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InvokeRequestBaseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractAddress"] = o.ContractAddress + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["invocationType"] = o.InvocationType + toSerialize["methodName"] = o.MethodName + toSerialize["params"] = o.Params + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.TimeoutMs) { + toSerialize["timeoutMs"] = o.TimeoutMs + } + toSerialize["contractJSON"] = o.ContractJSON + return toSerialize, nil +} + +type NullableInvokeRequestBaseV1 struct { + value *InvokeRequestBaseV1 + isSet bool +} + +func (v NullableInvokeRequestBaseV1) Get() *InvokeRequestBaseV1 { + return v.value +} + +func (v *NullableInvokeRequestBaseV1) Set(val *InvokeRequestBaseV1) { + v.value = val + v.isSet = true +} + +func (v NullableInvokeRequestBaseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableInvokeRequestBaseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInvokeRequestBaseV1(val *InvokeRequestBaseV1) *NullableInvokeRequestBaseV1 { + return &NullableInvokeRequestBaseV1{value: val, isSet: true} +} + +func (v NullableInvokeRequestBaseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInvokeRequestBaseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_receipt_type.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_receipt_type.go new file mode 100644 index 00000000000..a1517ac4442 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_receipt_type.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// ReceiptType Enumerates the possible types of receipts that can be waited for by someone or something that has requested the execution of a transaction on a ledger. +type ReceiptType string + +// List of ReceiptType +const ( + NODE_TX_POOL_ACK ReceiptType = "NODE_TX_POOL_ACK" + LEDGER_BLOCK_ACK ReceiptType = "LEDGER_BLOCK_ACK" +) + +// All allowed values of ReceiptType enum +var AllowedReceiptTypeEnumValues = []ReceiptType{ + "NODE_TX_POOL_ACK", + "LEDGER_BLOCK_ACK", +} + +func (v *ReceiptType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ReceiptType(value) + for _, existing := range AllowedReceiptTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ReceiptType", value) +} + +// NewReceiptTypeFromValue returns a pointer to a valid ReceiptType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewReceiptTypeFromValue(v string) (*ReceiptType, error) { + ev := ReceiptType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ReceiptType: valid values are %v", v, AllowedReceiptTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ReceiptType) IsValid() bool { + for _, existing := range AllowedReceiptTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ReceiptType value +func (v ReceiptType) Ptr() *ReceiptType { + return &v +} + +type NullableReceiptType struct { + value *ReceiptType + isSet bool +} + +func (v NullableReceiptType) Get() *ReceiptType { + return v.value +} + +func (v *NullableReceiptType) Set(val *ReceiptType) { + v.value = val + v.isSet = true +} + +func (v NullableReceiptType) IsSet() bool { + return v.isSet +} + +func (v *NullableReceiptType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReceiptType(val *ReceiptType) *NullableReceiptType { + return &NullableReceiptType{value: val, isSet: true} +} + +func (v NullableReceiptType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReceiptType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_request.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_request.go new file mode 100644 index 00000000000..17a33107c58 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_request.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the RunTransactionV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionV1Request{} + +// RunTransactionV1Request struct for RunTransactionV1Request +type RunTransactionV1Request struct { + Web3SigningCredential Web3SigningCredential `json:"web3SigningCredential"` + TransactionConfig XdaiTransactionConfig `json:"transactionConfig"` + ConsistencyStrategy ConsistencyStrategy `json:"consistencyStrategy"` +} + +// NewRunTransactionV1Request instantiates a new RunTransactionV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionV1Request(web3SigningCredential Web3SigningCredential, transactionConfig XdaiTransactionConfig, consistencyStrategy ConsistencyStrategy) *RunTransactionV1Request { + this := RunTransactionV1Request{} + this.Web3SigningCredential = web3SigningCredential + this.TransactionConfig = transactionConfig + this.ConsistencyStrategy = consistencyStrategy + return &this +} + +// NewRunTransactionV1RequestWithDefaults instantiates a new RunTransactionV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionV1RequestWithDefaults() *RunTransactionV1Request { + this := RunTransactionV1Request{} + return &this +} + +// GetWeb3SigningCredential returns the Web3SigningCredential field value +func (o *RunTransactionV1Request) GetWeb3SigningCredential() Web3SigningCredential { + if o == nil { + var ret Web3SigningCredential + return ret + } + + return o.Web3SigningCredential +} + +// GetWeb3SigningCredentialOk returns a tuple with the Web3SigningCredential field value +// and a boolean to check if the value has been set. +func (o *RunTransactionV1Request) GetWeb3SigningCredentialOk() (*Web3SigningCredential, bool) { + if o == nil { + return nil, false + } + return &o.Web3SigningCredential, true +} + +// SetWeb3SigningCredential sets field value +func (o *RunTransactionV1Request) SetWeb3SigningCredential(v Web3SigningCredential) { + o.Web3SigningCredential = v +} + +// GetTransactionConfig returns the TransactionConfig field value +func (o *RunTransactionV1Request) GetTransactionConfig() XdaiTransactionConfig { + if o == nil { + var ret XdaiTransactionConfig + return ret + } + + return o.TransactionConfig +} + +// GetTransactionConfigOk returns a tuple with the TransactionConfig field value +// and a boolean to check if the value has been set. +func (o *RunTransactionV1Request) GetTransactionConfigOk() (*XdaiTransactionConfig, bool) { + if o == nil { + return nil, false + } + return &o.TransactionConfig, true +} + +// SetTransactionConfig sets field value +func (o *RunTransactionV1Request) SetTransactionConfig(v XdaiTransactionConfig) { + o.TransactionConfig = v +} + +// GetConsistencyStrategy returns the ConsistencyStrategy field value +func (o *RunTransactionV1Request) GetConsistencyStrategy() ConsistencyStrategy { + if o == nil { + var ret ConsistencyStrategy + return ret + } + + return o.ConsistencyStrategy +} + +// GetConsistencyStrategyOk returns a tuple with the ConsistencyStrategy field value +// and a boolean to check if the value has been set. +func (o *RunTransactionV1Request) GetConsistencyStrategyOk() (*ConsistencyStrategy, bool) { + if o == nil { + return nil, false + } + return &o.ConsistencyStrategy, true +} + +// SetConsistencyStrategy sets field value +func (o *RunTransactionV1Request) SetConsistencyStrategy(v ConsistencyStrategy) { + o.ConsistencyStrategy = v +} + +func (o RunTransactionV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["web3SigningCredential"] = o.Web3SigningCredential + toSerialize["transactionConfig"] = o.TransactionConfig + toSerialize["consistencyStrategy"] = o.ConsistencyStrategy + return toSerialize, nil +} + +type NullableRunTransactionV1Request struct { + value *RunTransactionV1Request + isSet bool +} + +func (v NullableRunTransactionV1Request) Get() *RunTransactionV1Request { + return v.value +} + +func (v *NullableRunTransactionV1Request) Set(val *RunTransactionV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionV1Request(val *RunTransactionV1Request) *NullableRunTransactionV1Request { + return &NullableRunTransactionV1Request{value: val, isSet: true} +} + +func (v NullableRunTransactionV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_response.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_response.go new file mode 100644 index 00000000000..1b253866cdf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_run_transaction_v1_response.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the RunTransactionV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunTransactionV1Response{} + +// RunTransactionV1Response struct for RunTransactionV1Response +type RunTransactionV1Response struct { + TransactionReceipt Web3TransactionReceipt `json:"transactionReceipt"` +} + +// NewRunTransactionV1Response instantiates a new RunTransactionV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunTransactionV1Response(transactionReceipt Web3TransactionReceipt) *RunTransactionV1Response { + this := RunTransactionV1Response{} + this.TransactionReceipt = transactionReceipt + return &this +} + +// NewRunTransactionV1ResponseWithDefaults instantiates a new RunTransactionV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunTransactionV1ResponseWithDefaults() *RunTransactionV1Response { + this := RunTransactionV1Response{} + return &this +} + +// GetTransactionReceipt returns the TransactionReceipt field value +func (o *RunTransactionV1Response) GetTransactionReceipt() Web3TransactionReceipt { + if o == nil { + var ret Web3TransactionReceipt + return ret + } + + return o.TransactionReceipt +} + +// GetTransactionReceiptOk returns a tuple with the TransactionReceipt field value +// and a boolean to check if the value has been set. +func (o *RunTransactionV1Response) GetTransactionReceiptOk() (*Web3TransactionReceipt, bool) { + if o == nil { + return nil, false + } + return &o.TransactionReceipt, true +} + +// SetTransactionReceipt sets field value +func (o *RunTransactionV1Response) SetTransactionReceipt(v Web3TransactionReceipt) { + o.TransactionReceipt = v +} + +func (o RunTransactionV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunTransactionV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["transactionReceipt"] = o.TransactionReceipt + return toSerialize, nil +} + +type NullableRunTransactionV1Response struct { + value *RunTransactionV1Response + isSet bool +} + +func (v NullableRunTransactionV1Response) Get() *RunTransactionV1Response { + return v.value +} + +func (v *NullableRunTransactionV1Response) Set(val *RunTransactionV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableRunTransactionV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRunTransactionV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunTransactionV1Response(val *RunTransactionV1Response) *NullableRunTransactionV1Response { + return &NullableRunTransactionV1Response{value: val, isSet: true} +} + +func (v NullableRunTransactionV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunTransactionV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go new file mode 100644 index 00000000000..6e24373a43f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact.go @@ -0,0 +1,441 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifact{} + +// SolidityContractJsonArtifact struct for SolidityContractJsonArtifact +type SolidityContractJsonArtifact struct { + ContractName string `json:"contractName"` + Metadata *string `json:"metadata,omitempty"` + Bytecode *string `json:"bytecode,omitempty"` + DeployedBytecode *string `json:"deployedBytecode,omitempty"` + SourceMap *string `json:"sourceMap,omitempty"` + DeployedSourceMap *string `json:"deployedSourceMap,omitempty"` + SourcePath *string `json:"sourcePath,omitempty"` + Compiler *SolidityContractJsonArtifactCompiler `json:"compiler,omitempty"` + FunctionHashes map[string]interface{} `json:"functionHashes,omitempty"` + GasEstimates *SolidityContractJsonArtifactGasEstimates `json:"gasEstimates,omitempty"` +} + +// NewSolidityContractJsonArtifact instantiates a new SolidityContractJsonArtifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifact(contractName string) *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + this.ContractName = contractName + return &this +} + +// NewSolidityContractJsonArtifactWithDefaults instantiates a new SolidityContractJsonArtifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactWithDefaults() *SolidityContractJsonArtifact { + this := SolidityContractJsonArtifact{} + return &this +} + +// GetContractName returns the ContractName field value +func (o *SolidityContractJsonArtifact) GetContractName() string { + if o == nil { + var ret string + return ret + } + + return o.ContractName +} + +// GetContractNameOk returns a tuple with the ContractName field value +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetContractNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContractName, true +} + +// SetContractName sets field value +func (o *SolidityContractJsonArtifact) SetContractName(v string) { + o.ContractName = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *SolidityContractJsonArtifact) SetMetadata(v string) { + o.Metadata = &v +} + +// GetBytecode returns the Bytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetBytecode() string { + if o == nil || IsNil(o.Bytecode) { + var ret string + return ret + } + return *o.Bytecode +} + +// GetBytecodeOk returns a tuple with the Bytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.Bytecode) { + return nil, false + } + return o.Bytecode, true +} + +// HasBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasBytecode() bool { + if o != nil && !IsNil(o.Bytecode) { + return true + } + + return false +} + +// SetBytecode gets a reference to the given string and assigns it to the Bytecode field. +func (o *SolidityContractJsonArtifact) SetBytecode(v string) { + o.Bytecode = &v +} + +// GetDeployedBytecode returns the DeployedBytecode field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedBytecode() string { + if o == nil || IsNil(o.DeployedBytecode) { + var ret string + return ret + } + return *o.DeployedBytecode +} + +// GetDeployedBytecodeOk returns a tuple with the DeployedBytecode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedBytecodeOk() (*string, bool) { + if o == nil || IsNil(o.DeployedBytecode) { + return nil, false + } + return o.DeployedBytecode, true +} + +// HasDeployedBytecode returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedBytecode() bool { + if o != nil && !IsNil(o.DeployedBytecode) { + return true + } + + return false +} + +// SetDeployedBytecode gets a reference to the given string and assigns it to the DeployedBytecode field. +func (o *SolidityContractJsonArtifact) SetDeployedBytecode(v string) { + o.DeployedBytecode = &v +} + +// GetSourceMap returns the SourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourceMap() string { + if o == nil || IsNil(o.SourceMap) { + var ret string + return ret + } + return *o.SourceMap +} + +// GetSourceMapOk returns a tuple with the SourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.SourceMap) { + return nil, false + } + return o.SourceMap, true +} + +// HasSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourceMap() bool { + if o != nil && !IsNil(o.SourceMap) { + return true + } + + return false +} + +// SetSourceMap gets a reference to the given string and assigns it to the SourceMap field. +func (o *SolidityContractJsonArtifact) SetSourceMap(v string) { + o.SourceMap = &v +} + +// GetDeployedSourceMap returns the DeployedSourceMap field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMap() string { + if o == nil || IsNil(o.DeployedSourceMap) { + var ret string + return ret + } + return *o.DeployedSourceMap +} + +// GetDeployedSourceMapOk returns a tuple with the DeployedSourceMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetDeployedSourceMapOk() (*string, bool) { + if o == nil || IsNil(o.DeployedSourceMap) { + return nil, false + } + return o.DeployedSourceMap, true +} + +// HasDeployedSourceMap returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasDeployedSourceMap() bool { + if o != nil && !IsNil(o.DeployedSourceMap) { + return true + } + + return false +} + +// SetDeployedSourceMap gets a reference to the given string and assigns it to the DeployedSourceMap field. +func (o *SolidityContractJsonArtifact) SetDeployedSourceMap(v string) { + o.DeployedSourceMap = &v +} + +// GetSourcePath returns the SourcePath field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetSourcePath() string { + if o == nil || IsNil(o.SourcePath) { + var ret string + return ret + } + return *o.SourcePath +} + +// GetSourcePathOk returns a tuple with the SourcePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetSourcePathOk() (*string, bool) { + if o == nil || IsNil(o.SourcePath) { + return nil, false + } + return o.SourcePath, true +} + +// HasSourcePath returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasSourcePath() bool { + if o != nil && !IsNil(o.SourcePath) { + return true + } + + return false +} + +// SetSourcePath gets a reference to the given string and assigns it to the SourcePath field. +func (o *SolidityContractJsonArtifact) SetSourcePath(v string) { + o.SourcePath = &v +} + +// GetCompiler returns the Compiler field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetCompiler() SolidityContractJsonArtifactCompiler { + if o == nil || IsNil(o.Compiler) { + var ret SolidityContractJsonArtifactCompiler + return ret + } + return *o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetCompilerOk() (*SolidityContractJsonArtifactCompiler, bool) { + if o == nil || IsNil(o.Compiler) { + return nil, false + } + return o.Compiler, true +} + +// HasCompiler returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasCompiler() bool { + if o != nil && !IsNil(o.Compiler) { + return true + } + + return false +} + +// SetCompiler gets a reference to the given SolidityContractJsonArtifactCompiler and assigns it to the Compiler field. +func (o *SolidityContractJsonArtifact) SetCompiler(v SolidityContractJsonArtifactCompiler) { + o.Compiler = &v +} + +// GetFunctionHashes returns the FunctionHashes field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetFunctionHashes() map[string]interface{} { + if o == nil || IsNil(o.FunctionHashes) { + var ret map[string]interface{} + return ret + } + return o.FunctionHashes +} + +// GetFunctionHashesOk returns a tuple with the FunctionHashes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetFunctionHashesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.FunctionHashes) { + return map[string]interface{}{}, false + } + return o.FunctionHashes, true +} + +// HasFunctionHashes returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasFunctionHashes() bool { + if o != nil && !IsNil(o.FunctionHashes) { + return true + } + + return false +} + +// SetFunctionHashes gets a reference to the given map[string]interface{} and assigns it to the FunctionHashes field. +func (o *SolidityContractJsonArtifact) SetFunctionHashes(v map[string]interface{}) { + o.FunctionHashes = v +} + +// GetGasEstimates returns the GasEstimates field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifact) GetGasEstimates() SolidityContractJsonArtifactGasEstimates { + if o == nil || IsNil(o.GasEstimates) { + var ret SolidityContractJsonArtifactGasEstimates + return ret + } + return *o.GasEstimates +} + +// GetGasEstimatesOk returns a tuple with the GasEstimates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifact) GetGasEstimatesOk() (*SolidityContractJsonArtifactGasEstimates, bool) { + if o == nil || IsNil(o.GasEstimates) { + return nil, false + } + return o.GasEstimates, true +} + +// HasGasEstimates returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifact) HasGasEstimates() bool { + if o != nil && !IsNil(o.GasEstimates) { + return true + } + + return false +} + +// SetGasEstimates gets a reference to the given SolidityContractJsonArtifactGasEstimates and assigns it to the GasEstimates field. +func (o *SolidityContractJsonArtifact) SetGasEstimates(v SolidityContractJsonArtifactGasEstimates) { + o.GasEstimates = &v +} + +func (o SolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contractName"] = o.ContractName + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Bytecode) { + toSerialize["bytecode"] = o.Bytecode + } + if !IsNil(o.DeployedBytecode) { + toSerialize["deployedBytecode"] = o.DeployedBytecode + } + if !IsNil(o.SourceMap) { + toSerialize["sourceMap"] = o.SourceMap + } + if !IsNil(o.DeployedSourceMap) { + toSerialize["deployedSourceMap"] = o.DeployedSourceMap + } + if !IsNil(o.SourcePath) { + toSerialize["sourcePath"] = o.SourcePath + } + if !IsNil(o.Compiler) { + toSerialize["compiler"] = o.Compiler + } + if !IsNil(o.FunctionHashes) { + toSerialize["functionHashes"] = o.FunctionHashes + } + if !IsNil(o.GasEstimates) { + toSerialize["gasEstimates"] = o.GasEstimates + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifact struct { + value *SolidityContractJsonArtifact + isSet bool +} + +func (v NullableSolidityContractJsonArtifact) Get() *SolidityContractJsonArtifact { + return v.value +} + +func (v *NullableSolidityContractJsonArtifact) Set(val *SolidityContractJsonArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifact(val *SolidityContractJsonArtifact) *NullableSolidityContractJsonArtifact { + return &NullableSolidityContractJsonArtifact{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go new file mode 100644 index 00000000000..2003dfa5f13 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_compiler.go @@ -0,0 +1,188 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactCompiler type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactCompiler{} + +// SolidityContractJsonArtifactCompiler struct for SolidityContractJsonArtifactCompiler +type SolidityContractJsonArtifactCompiler struct { + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SolidityContractJsonArtifactCompiler SolidityContractJsonArtifactCompiler + +// NewSolidityContractJsonArtifactCompiler instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactCompiler() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// NewSolidityContractJsonArtifactCompilerWithDefaults instantiates a new SolidityContractJsonArtifactCompiler object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactCompilerWithDefaults() *SolidityContractJsonArtifactCompiler { + this := SolidityContractJsonArtifactCompiler{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SolidityContractJsonArtifactCompiler) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactCompiler) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactCompiler) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactCompiler) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SolidityContractJsonArtifactCompiler) SetVersion(v string) { + o.Version = &v +} + +func (o SolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactCompiler) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SolidityContractJsonArtifactCompiler) UnmarshalJSON(bytes []byte) (err error) { + varSolidityContractJsonArtifactCompiler := _SolidityContractJsonArtifactCompiler{} + + if err = json.Unmarshal(bytes, &varSolidityContractJsonArtifactCompiler); err == nil { + *o = SolidityContractJsonArtifactCompiler(varSolidityContractJsonArtifactCompiler) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSolidityContractJsonArtifactCompiler struct { + value *SolidityContractJsonArtifactCompiler + isSet bool +} + +func (v NullableSolidityContractJsonArtifactCompiler) Get() *SolidityContractJsonArtifactCompiler { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Set(val *SolidityContractJsonArtifactCompiler) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactCompiler) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactCompiler) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactCompiler(val *SolidityContractJsonArtifactCompiler) *NullableSolidityContractJsonArtifactCompiler { + return &NullableSolidityContractJsonArtifactCompiler{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactCompiler) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactCompiler) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go new file mode 100644 index 00000000000..3ed5d47ffd8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimates{} + +// SolidityContractJsonArtifactGasEstimates struct for SolidityContractJsonArtifactGasEstimates +type SolidityContractJsonArtifactGasEstimates struct { + Creation *SolidityContractJsonArtifactGasEstimatesCreation `json:"creation,omitempty"` + External map[string]interface{} `json:"external,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimates instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimates() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesWithDefaults() *SolidityContractJsonArtifactGasEstimates { + this := SolidityContractJsonArtifactGasEstimates{} + return &this +} + +// GetCreation returns the Creation field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreation() SolidityContractJsonArtifactGasEstimatesCreation { + if o == nil || IsNil(o.Creation) { + var ret SolidityContractJsonArtifactGasEstimatesCreation + return ret + } + return *o.Creation +} + +// GetCreationOk returns a tuple with the Creation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetCreationOk() (*SolidityContractJsonArtifactGasEstimatesCreation, bool) { + if o == nil || IsNil(o.Creation) { + return nil, false + } + return o.Creation, true +} + +// HasCreation returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasCreation() bool { + if o != nil && !IsNil(o.Creation) { + return true + } + + return false +} + +// SetCreation gets a reference to the given SolidityContractJsonArtifactGasEstimatesCreation and assigns it to the Creation field. +func (o *SolidityContractJsonArtifactGasEstimates) SetCreation(v SolidityContractJsonArtifactGasEstimatesCreation) { + o.Creation = &v +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternal() map[string]interface{} { + if o == nil || IsNil(o.External) { + var ret map[string]interface{} + return ret + } + return o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimates) GetExternalOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.External) { + return map[string]interface{}{}, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimates) HasExternal() bool { + if o != nil && !IsNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given map[string]interface{} and assigns it to the External field. +func (o *SolidityContractJsonArtifactGasEstimates) SetExternal(v map[string]interface{}) { + o.External = v +} + +func (o SolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Creation) { + toSerialize["creation"] = o.Creation + } + if !IsNil(o.External) { + toSerialize["external"] = o.External + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimates struct { + value *SolidityContractJsonArtifactGasEstimates + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) Get() *SolidityContractJsonArtifactGasEstimates { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Set(val *SolidityContractJsonArtifactGasEstimates) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimates(val *SolidityContractJsonArtifactGasEstimates) *NullableSolidityContractJsonArtifactGasEstimates { + return &NullableSolidityContractJsonArtifactGasEstimates{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go new file mode 100644 index 00000000000..2d9b1b04385 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_solidity_contract_json_artifact_gas_estimates_creation.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the SolidityContractJsonArtifactGasEstimatesCreation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SolidityContractJsonArtifactGasEstimatesCreation{} + +// SolidityContractJsonArtifactGasEstimatesCreation struct for SolidityContractJsonArtifactGasEstimatesCreation +type SolidityContractJsonArtifactGasEstimatesCreation struct { + CodeDepositCost *string `json:"codeDepositCost,omitempty"` + ExecutionCost *string `json:"executionCost,omitempty"` + TotalCost *string `json:"totalCost,omitempty"` +} + +// NewSolidityContractJsonArtifactGasEstimatesCreation instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSolidityContractJsonArtifactGasEstimatesCreation() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults instantiates a new SolidityContractJsonArtifactGasEstimatesCreation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSolidityContractJsonArtifactGasEstimatesCreationWithDefaults() *SolidityContractJsonArtifactGasEstimatesCreation { + this := SolidityContractJsonArtifactGasEstimatesCreation{} + return &this +} + +// GetCodeDepositCost returns the CodeDepositCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCost() string { + if o == nil || IsNil(o.CodeDepositCost) { + var ret string + return ret + } + return *o.CodeDepositCost +} + +// GetCodeDepositCostOk returns a tuple with the CodeDepositCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetCodeDepositCostOk() (*string, bool) { + if o == nil || IsNil(o.CodeDepositCost) { + return nil, false + } + return o.CodeDepositCost, true +} + +// HasCodeDepositCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasCodeDepositCost() bool { + if o != nil && !IsNil(o.CodeDepositCost) { + return true + } + + return false +} + +// SetCodeDepositCost gets a reference to the given string and assigns it to the CodeDepositCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetCodeDepositCost(v string) { + o.CodeDepositCost = &v +} + +// GetExecutionCost returns the ExecutionCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCost() string { + if o == nil || IsNil(o.ExecutionCost) { + var ret string + return ret + } + return *o.ExecutionCost +} + +// GetExecutionCostOk returns a tuple with the ExecutionCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetExecutionCostOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionCost) { + return nil, false + } + return o.ExecutionCost, true +} + +// HasExecutionCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasExecutionCost() bool { + if o != nil && !IsNil(o.ExecutionCost) { + return true + } + + return false +} + +// SetExecutionCost gets a reference to the given string and assigns it to the ExecutionCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetExecutionCost(v string) { + o.ExecutionCost = &v +} + +// GetTotalCost returns the TotalCost field value if set, zero value otherwise. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCost() string { + if o == nil || IsNil(o.TotalCost) { + var ret string + return ret + } + return *o.TotalCost +} + +// GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) GetTotalCostOk() (*string, bool) { + if o == nil || IsNil(o.TotalCost) { + return nil, false + } + return o.TotalCost, true +} + +// HasTotalCost returns a boolean if a field has been set. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) HasTotalCost() bool { + if o != nil && !IsNil(o.TotalCost) { + return true + } + + return false +} + +// SetTotalCost gets a reference to the given string and assigns it to the TotalCost field. +func (o *SolidityContractJsonArtifactGasEstimatesCreation) SetTotalCost(v string) { + o.TotalCost = &v +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SolidityContractJsonArtifactGasEstimatesCreation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CodeDepositCost) { + toSerialize["codeDepositCost"] = o.CodeDepositCost + } + if !IsNil(o.ExecutionCost) { + toSerialize["executionCost"] = o.ExecutionCost + } + if !IsNil(o.TotalCost) { + toSerialize["totalCost"] = o.TotalCost + } + return toSerialize, nil +} + +type NullableSolidityContractJsonArtifactGasEstimatesCreation struct { + value *SolidityContractJsonArtifactGasEstimatesCreation + isSet bool +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) Get() *SolidityContractJsonArtifactGasEstimatesCreation { + return v.value +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Set(val *SolidityContractJsonArtifactGasEstimatesCreation) { + v.value = val + v.isSet = true +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) IsSet() bool { + return v.isSet +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSolidityContractJsonArtifactGasEstimatesCreation(val *SolidityContractJsonArtifactGasEstimatesCreation) *NullableSolidityContractJsonArtifactGasEstimatesCreation { + return &NullableSolidityContractJsonArtifactGasEstimatesCreation{value: val, isSet: true} +} + +func (v NullableSolidityContractJsonArtifactGasEstimatesCreation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSolidityContractJsonArtifactGasEstimatesCreation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go new file mode 100644 index 00000000000..37643c270fe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential.go @@ -0,0 +1,178 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredential - struct for Web3SigningCredential +type Web3SigningCredential struct { + Web3SigningCredentialCactusKeychainRef *Web3SigningCredentialCactusKeychainRef + Web3SigningCredentialNone *Web3SigningCredentialNone + Web3SigningCredentialPrivateKeyHex *Web3SigningCredentialPrivateKeyHex +} + +// Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialCactusKeychainRef wrapped in Web3SigningCredential +func Web3SigningCredentialCactusKeychainRefAsWeb3SigningCredential(v *Web3SigningCredentialCactusKeychainRef) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialCactusKeychainRef: v, + } +} + +// Web3SigningCredentialNoneAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialNone wrapped in Web3SigningCredential +func Web3SigningCredentialNoneAsWeb3SigningCredential(v *Web3SigningCredentialNone) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialNone: v, + } +} + +// Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential is a convenience function that returns Web3SigningCredentialPrivateKeyHex wrapped in Web3SigningCredential +func Web3SigningCredentialPrivateKeyHexAsWeb3SigningCredential(v *Web3SigningCredentialPrivateKeyHex) Web3SigningCredential { + return Web3SigningCredential{ + Web3SigningCredentialPrivateKeyHex: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Web3SigningCredential) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Web3SigningCredentialCactusKeychainRef + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialCactusKeychainRef) + if err == nil { + jsonWeb3SigningCredentialCactusKeychainRef, _ := json.Marshal(dst.Web3SigningCredentialCactusKeychainRef) + if string(jsonWeb3SigningCredentialCactusKeychainRef) == "{}" { // empty struct + dst.Web3SigningCredentialCactusKeychainRef = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialCactusKeychainRef = nil + } + + // try to unmarshal data into Web3SigningCredentialNone + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialNone) + if err == nil { + jsonWeb3SigningCredentialNone, _ := json.Marshal(dst.Web3SigningCredentialNone) + if string(jsonWeb3SigningCredentialNone) == "{}" { // empty struct + dst.Web3SigningCredentialNone = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialNone = nil + } + + // try to unmarshal data into Web3SigningCredentialPrivateKeyHex + err = newStrictDecoder(data).Decode(&dst.Web3SigningCredentialPrivateKeyHex) + if err == nil { + jsonWeb3SigningCredentialPrivateKeyHex, _ := json.Marshal(dst.Web3SigningCredentialPrivateKeyHex) + if string(jsonWeb3SigningCredentialPrivateKeyHex) == "{}" { // empty struct + dst.Web3SigningCredentialPrivateKeyHex = nil + } else { + match++ + } + } else { + dst.Web3SigningCredentialPrivateKeyHex = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Web3SigningCredentialCactusKeychainRef = nil + dst.Web3SigningCredentialNone = nil + dst.Web3SigningCredentialPrivateKeyHex = nil + + return fmt.Errorf("data matches more than one schema in oneOf(Web3SigningCredential)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Web3SigningCredential)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Web3SigningCredential) MarshalJSON() ([]byte, error) { + if src.Web3SigningCredentialCactusKeychainRef != nil { + return json.Marshal(&src.Web3SigningCredentialCactusKeychainRef) + } + + if src.Web3SigningCredentialNone != nil { + return json.Marshal(&src.Web3SigningCredentialNone) + } + + if src.Web3SigningCredentialPrivateKeyHex != nil { + return json.Marshal(&src.Web3SigningCredentialPrivateKeyHex) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *Web3SigningCredential) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Web3SigningCredentialCactusKeychainRef != nil { + return obj.Web3SigningCredentialCactusKeychainRef + } + + if obj.Web3SigningCredentialNone != nil { + return obj.Web3SigningCredentialNone + } + + if obj.Web3SigningCredentialPrivateKeyHex != nil { + return obj.Web3SigningCredentialPrivateKeyHex + } + + // all schemas are nil + return nil +} + +type NullableWeb3SigningCredential struct { + value *Web3SigningCredential + isSet bool +} + +func (v NullableWeb3SigningCredential) Get() *Web3SigningCredential { + return v.value +} + +func (v *NullableWeb3SigningCredential) Set(val *Web3SigningCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredential(val *Web3SigningCredential) *NullableWeb3SigningCredential { + return &NullableWeb3SigningCredential{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go new file mode 100644 index 00000000000..9199de0d1fe --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_cactus_keychain_ref.go @@ -0,0 +1,201 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialCactusKeychainRef type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialCactusKeychainRef{} + +// Web3SigningCredentialCactusKeychainRef struct for Web3SigningCredentialCactusKeychainRef +type Web3SigningCredentialCactusKeychainRef struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The key to use when looking up the the keychain entry holding the secret pointed to by the keychainEntryKey parameter. + KeychainEntryKey string `json:"keychainEntryKey"` + // The keychain ID to use when looking up the the keychain plugin instance that will be used to retrieve the secret pointed to by the keychainEntryKey parameter. + KeychainId string `json:"keychainId"` +} + +// NewWeb3SigningCredentialCactusKeychainRef instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialCactusKeychainRef(type_ Web3SigningCredentialType, ethAccount string, keychainEntryKey string, keychainId string) *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + this.Type = type_ + this.EthAccount = ethAccount + this.KeychainEntryKey = keychainEntryKey + this.KeychainId = keychainId + return &this +} + +// NewWeb3SigningCredentialCactusKeychainRefWithDefaults instantiates a new Web3SigningCredentialCactusKeychainRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialCactusKeychainRefWithDefaults() *Web3SigningCredentialCactusKeychainRef { + this := Web3SigningCredentialCactusKeychainRef{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialCactusKeychainRef) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetKeychainEntryKey returns the KeychainEntryKey field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKey() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainEntryKey +} + +// GetKeychainEntryKeyOk returns a tuple with the KeychainEntryKey field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainEntryKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainEntryKey, true +} + +// SetKeychainEntryKey sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainEntryKey(v string) { + o.KeychainEntryKey = v +} + +// GetKeychainId returns the KeychainId field value +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainId() string { + if o == nil { + var ret string + return ret + } + + return o.KeychainId +} + +// GetKeychainIdOk returns a tuple with the KeychainId field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialCactusKeychainRef) GetKeychainIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeychainId, true +} + +// SetKeychainId sets field value +func (o *Web3SigningCredentialCactusKeychainRef) SetKeychainId(v string) { + o.KeychainId = v +} + +func (o Web3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialCactusKeychainRef) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["keychainEntryKey"] = o.KeychainEntryKey + toSerialize["keychainId"] = o.KeychainId + return toSerialize, nil +} + +type NullableWeb3SigningCredentialCactusKeychainRef struct { + value *Web3SigningCredentialCactusKeychainRef + isSet bool +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) Get() *Web3SigningCredentialCactusKeychainRef { + return v.value +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Set(val *Web3SigningCredentialCactusKeychainRef) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialCactusKeychainRef(val *Web3SigningCredentialCactusKeychainRef) *NullableWeb3SigningCredentialCactusKeychainRef { + return &NullableWeb3SigningCredentialCactusKeychainRef{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialCactusKeychainRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialCactusKeychainRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go new file mode 100644 index 00000000000..9ce317ce691 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_none.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialNone type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialNone{} + +// Web3SigningCredentialNone Using this denotes that there is no signing required because the transaction is pre-signed. +type Web3SigningCredentialNone struct { + Type Web3SigningCredentialType `json:"type"` +} + +// NewWeb3SigningCredentialNone instantiates a new Web3SigningCredentialNone object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialNone(type_ Web3SigningCredentialType) *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + this.Type = type_ + return &this +} + +// NewWeb3SigningCredentialNoneWithDefaults instantiates a new Web3SigningCredentialNone object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialNoneWithDefaults() *Web3SigningCredentialNone { + this := Web3SigningCredentialNone{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialNone) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialNone) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialNone) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +func (o Web3SigningCredentialNone) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialNone) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableWeb3SigningCredentialNone struct { + value *Web3SigningCredentialNone + isSet bool +} + +func (v NullableWeb3SigningCredentialNone) Get() *Web3SigningCredentialNone { + return v.value +} + +func (v *NullableWeb3SigningCredentialNone) Set(val *Web3SigningCredentialNone) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialNone) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialNone) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialNone(val *Web3SigningCredentialNone) *NullableWeb3SigningCredentialNone { + return &NullableWeb3SigningCredentialNone{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialNone) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialNone) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go new file mode 100644 index 00000000000..a82d092f697 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_private_key_hex.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the Web3SigningCredentialPrivateKeyHex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3SigningCredentialPrivateKeyHex{} + +// Web3SigningCredentialPrivateKeyHex struct for Web3SigningCredentialPrivateKeyHex +type Web3SigningCredentialPrivateKeyHex struct { + Type Web3SigningCredentialType `json:"type"` + // The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication. + EthAccount string `json:"ethAccount"` + // The HEX encoded private key of an eth account. + Secret string `json:"secret"` +} + +// NewWeb3SigningCredentialPrivateKeyHex instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3SigningCredentialPrivateKeyHex(type_ Web3SigningCredentialType, ethAccount string, secret string) *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + this.Type = type_ + this.EthAccount = ethAccount + this.Secret = secret + return &this +} + +// NewWeb3SigningCredentialPrivateKeyHexWithDefaults instantiates a new Web3SigningCredentialPrivateKeyHex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3SigningCredentialPrivateKeyHexWithDefaults() *Web3SigningCredentialPrivateKeyHex { + this := Web3SigningCredentialPrivateKeyHex{} + return &this +} + +// GetType returns the Type field value +func (o *Web3SigningCredentialPrivateKeyHex) GetType() Web3SigningCredentialType { + if o == nil { + var ret Web3SigningCredentialType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetTypeOk() (*Web3SigningCredentialType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetType(v Web3SigningCredentialType) { + o.Type = v +} + +// GetEthAccount returns the EthAccount field value +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccount() string { + if o == nil { + var ret string + return ret + } + + return o.EthAccount +} + +// GetEthAccountOk returns a tuple with the EthAccount field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetEthAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EthAccount, true +} + +// SetEthAccount sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetEthAccount(v string) { + o.EthAccount = v +} + +// GetSecret returns the Secret field value +func (o *Web3SigningCredentialPrivateKeyHex) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *Web3SigningCredentialPrivateKeyHex) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *Web3SigningCredentialPrivateKeyHex) SetSecret(v string) { + o.Secret = v +} + +func (o Web3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3SigningCredentialPrivateKeyHex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["ethAccount"] = o.EthAccount + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableWeb3SigningCredentialPrivateKeyHex struct { + value *Web3SigningCredentialPrivateKeyHex + isSet bool +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) Get() *Web3SigningCredentialPrivateKeyHex { + return v.value +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Set(val *Web3SigningCredentialPrivateKeyHex) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialPrivateKeyHex(val *Web3SigningCredentialPrivateKeyHex) *NullableWeb3SigningCredentialPrivateKeyHex { + return &NullableWeb3SigningCredentialPrivateKeyHex{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialPrivateKeyHex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialPrivateKeyHex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go new file mode 100644 index 00000000000..7b22377787d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_signing_credential_type.go @@ -0,0 +1,115 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// Web3SigningCredentialType the model 'Web3SigningCredentialType' +type Web3SigningCredentialType string + +// List of Web3SigningCredentialType +const ( + CACTUS_KEYCHAIN_REF Web3SigningCredentialType = "CACTUS_KEYCHAIN_REF" + GETH_KEYCHAIN_PASSWORD Web3SigningCredentialType = "GETH_KEYCHAIN_PASSWORD" + PRIVATE_KEY_HEX Web3SigningCredentialType = "PRIVATE_KEY_HEX" + NONE Web3SigningCredentialType = "NONE" +) + +// All allowed values of Web3SigningCredentialType enum +var AllowedWeb3SigningCredentialTypeEnumValues = []Web3SigningCredentialType{ + "CACTUS_KEYCHAIN_REF", + "GETH_KEYCHAIN_PASSWORD", + "PRIVATE_KEY_HEX", + "NONE", +} + +func (v *Web3SigningCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Web3SigningCredentialType(value) + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Web3SigningCredentialType", value) +} + +// NewWeb3SigningCredentialTypeFromValue returns a pointer to a valid Web3SigningCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWeb3SigningCredentialTypeFromValue(v string) (*Web3SigningCredentialType, error) { + ev := Web3SigningCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Web3SigningCredentialType: valid values are %v", v, AllowedWeb3SigningCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Web3SigningCredentialType) IsValid() bool { + for _, existing := range AllowedWeb3SigningCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Web3SigningCredentialType value +func (v Web3SigningCredentialType) Ptr() *Web3SigningCredentialType { + return &v +} + +type NullableWeb3SigningCredentialType struct { + value *Web3SigningCredentialType + isSet bool +} + +func (v NullableWeb3SigningCredentialType) Get() *Web3SigningCredentialType { + return v.value +} + +func (v *NullableWeb3SigningCredentialType) Set(val *Web3SigningCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3SigningCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3SigningCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3SigningCredentialType(val *Web3SigningCredentialType) *NullableWeb3SigningCredentialType { + return &NullableWeb3SigningCredentialType{value: val, isSet: true} +} + +func (v NullableWeb3SigningCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3SigningCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go new file mode 100644 index 00000000000..7694e8f030e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_web3_transaction_receipt.go @@ -0,0 +1,385 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the Web3TransactionReceipt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Web3TransactionReceipt{} + +// Web3TransactionReceipt struct for Web3TransactionReceipt +type Web3TransactionReceipt struct { + Status bool `json:"status"` + TransactionHash string `json:"transactionHash"` + TransactionIndex float32 `json:"transactionIndex"` + BlockHash string `json:"blockHash"` + BlockNumber float32 `json:"blockNumber"` + GasUsed float32 `json:"gasUsed"` + ContractAddress NullableString `json:"contractAddress,omitempty"` + From string `json:"from"` + To string `json:"to"` + AdditionalProperties map[string]interface{} +} + +type _Web3TransactionReceipt Web3TransactionReceipt + +// NewWeb3TransactionReceipt instantiates a new Web3TransactionReceipt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWeb3TransactionReceipt(status bool, transactionHash string, transactionIndex float32, blockHash string, blockNumber float32, gasUsed float32, from string, to string) *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + this.Status = status + this.TransactionHash = transactionHash + this.TransactionIndex = transactionIndex + this.BlockHash = blockHash + this.BlockNumber = blockNumber + this.GasUsed = gasUsed + this.From = from + this.To = to + return &this +} + +// NewWeb3TransactionReceiptWithDefaults instantiates a new Web3TransactionReceipt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWeb3TransactionReceiptWithDefaults() *Web3TransactionReceipt { + this := Web3TransactionReceipt{} + return &this +} + +// GetStatus returns the Status field value +func (o *Web3TransactionReceipt) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Web3TransactionReceipt) SetStatus(v bool) { + o.Status = v +} + +// GetTransactionHash returns the TransactionHash field value +func (o *Web3TransactionReceipt) GetTransactionHash() string { + if o == nil { + var ret string + return ret + } + + return o.TransactionHash +} + +// GetTransactionHashOk returns a tuple with the TransactionHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TransactionHash, true +} + +// SetTransactionHash sets field value +func (o *Web3TransactionReceipt) SetTransactionHash(v string) { + o.TransactionHash = v +} + +// GetTransactionIndex returns the TransactionIndex field value +func (o *Web3TransactionReceipt) GetTransactionIndex() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TransactionIndex +} + +// GetTransactionIndexOk returns a tuple with the TransactionIndex field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetTransactionIndexOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TransactionIndex, true +} + +// SetTransactionIndex sets field value +func (o *Web3TransactionReceipt) SetTransactionIndex(v float32) { + o.TransactionIndex = v +} + +// GetBlockHash returns the BlockHash field value +func (o *Web3TransactionReceipt) GetBlockHash() string { + if o == nil { + var ret string + return ret + } + + return o.BlockHash +} + +// GetBlockHashOk returns a tuple with the BlockHash field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BlockHash, true +} + +// SetBlockHash sets field value +func (o *Web3TransactionReceipt) SetBlockHash(v string) { + o.BlockHash = v +} + +// GetBlockNumber returns the BlockNumber field value +func (o *Web3TransactionReceipt) GetBlockNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.BlockNumber +} + +// GetBlockNumberOk returns a tuple with the BlockNumber field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetBlockNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.BlockNumber, true +} + +// SetBlockNumber sets field value +func (o *Web3TransactionReceipt) SetBlockNumber(v float32) { + o.BlockNumber = v +} + +// GetGasUsed returns the GasUsed field value +func (o *Web3TransactionReceipt) GetGasUsed() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.GasUsed +} + +// GetGasUsedOk returns a tuple with the GasUsed field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetGasUsedOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.GasUsed, true +} + +// SetGasUsed sets field value +func (o *Web3TransactionReceipt) SetGasUsed(v float32) { + o.GasUsed = v +} + +// GetContractAddress returns the ContractAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Web3TransactionReceipt) GetContractAddress() string { + if o == nil || IsNil(o.ContractAddress.Get()) { + var ret string + return ret + } + return *o.ContractAddress.Get() +} + +// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Web3TransactionReceipt) GetContractAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContractAddress.Get(), o.ContractAddress.IsSet() +} + +// HasContractAddress returns a boolean if a field has been set. +func (o *Web3TransactionReceipt) HasContractAddress() bool { + if o != nil && o.ContractAddress.IsSet() { + return true + } + + return false +} + +// SetContractAddress gets a reference to the given NullableString and assigns it to the ContractAddress field. +func (o *Web3TransactionReceipt) SetContractAddress(v string) { + o.ContractAddress.Set(&v) +} +// SetContractAddressNil sets the value for ContractAddress to be an explicit nil +func (o *Web3TransactionReceipt) SetContractAddressNil() { + o.ContractAddress.Set(nil) +} + +// UnsetContractAddress ensures that no value is present for ContractAddress, not even an explicit nil +func (o *Web3TransactionReceipt) UnsetContractAddress() { + o.ContractAddress.Unset() +} + +// GetFrom returns the From field value +func (o *Web3TransactionReceipt) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *Web3TransactionReceipt) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *Web3TransactionReceipt) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *Web3TransactionReceipt) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *Web3TransactionReceipt) SetTo(v string) { + o.To = v +} + +func (o Web3TransactionReceipt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Web3TransactionReceipt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["transactionHash"] = o.TransactionHash + toSerialize["transactionIndex"] = o.TransactionIndex + toSerialize["blockHash"] = o.BlockHash + toSerialize["blockNumber"] = o.BlockNumber + toSerialize["gasUsed"] = o.GasUsed + if o.ContractAddress.IsSet() { + toSerialize["contractAddress"] = o.ContractAddress.Get() + } + toSerialize["from"] = o.From + toSerialize["to"] = o.To + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Web3TransactionReceipt) UnmarshalJSON(bytes []byte) (err error) { + varWeb3TransactionReceipt := _Web3TransactionReceipt{} + + if err = json.Unmarshal(bytes, &varWeb3TransactionReceipt); err == nil { + *o = Web3TransactionReceipt(varWeb3TransactionReceipt) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "transactionHash") + delete(additionalProperties, "transactionIndex") + delete(additionalProperties, "blockHash") + delete(additionalProperties, "blockNumber") + delete(additionalProperties, "gasUsed") + delete(additionalProperties, "contractAddress") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWeb3TransactionReceipt struct { + value *Web3TransactionReceipt + isSet bool +} + +func (v NullableWeb3TransactionReceipt) Get() *Web3TransactionReceipt { + return v.value +} + +func (v *NullableWeb3TransactionReceipt) Set(val *Web3TransactionReceipt) { + v.value = val + v.isSet = true +} + +func (v NullableWeb3TransactionReceipt) IsSet() bool { + return v.isSet +} + +func (v *NullableWeb3TransactionReceipt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWeb3TransactionReceipt(val *Web3TransactionReceipt) *NullableWeb3TransactionReceipt { + return &NullableWeb3TransactionReceipt{value: val, isSet: true} +} + +func (v NullableWeb3TransactionReceipt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWeb3TransactionReceipt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config.go new file mode 100644 index 00000000000..30edb7c9791 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config.go @@ -0,0 +1,410 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" +) + +// checks if the XdaiTransactionConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &XdaiTransactionConfig{} + +// XdaiTransactionConfig struct for XdaiTransactionConfig +type XdaiTransactionConfig struct { + RawTransaction *string `json:"rawTransaction,omitempty"` + From *XdaiTransactionConfigFrom `json:"from,omitempty"` + To *XdaiTransactionConfigTo `json:"to,omitempty"` + Value *XdaiTransactionConfigFrom `json:"value,omitempty"` + Gas *XdaiTransactionConfigFrom `json:"gas,omitempty"` + GasPrice *XdaiTransactionConfigFrom `json:"gasPrice,omitempty"` + Nonce *float32 `json:"nonce,omitempty"` + Data *XdaiTransactionConfigTo `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _XdaiTransactionConfig XdaiTransactionConfig + +// NewXdaiTransactionConfig instantiates a new XdaiTransactionConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewXdaiTransactionConfig() *XdaiTransactionConfig { + this := XdaiTransactionConfig{} + return &this +} + +// NewXdaiTransactionConfigWithDefaults instantiates a new XdaiTransactionConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewXdaiTransactionConfigWithDefaults() *XdaiTransactionConfig { + this := XdaiTransactionConfig{} + return &this +} + +// GetRawTransaction returns the RawTransaction field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetRawTransaction() string { + if o == nil || IsNil(o.RawTransaction) { + var ret string + return ret + } + return *o.RawTransaction +} + +// GetRawTransactionOk returns a tuple with the RawTransaction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetRawTransactionOk() (*string, bool) { + if o == nil || IsNil(o.RawTransaction) { + return nil, false + } + return o.RawTransaction, true +} + +// HasRawTransaction returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasRawTransaction() bool { + if o != nil && !IsNil(o.RawTransaction) { + return true + } + + return false +} + +// SetRawTransaction gets a reference to the given string and assigns it to the RawTransaction field. +func (o *XdaiTransactionConfig) SetRawTransaction(v string) { + o.RawTransaction = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetFrom() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.From) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetFromOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given XdaiTransactionConfigFrom and assigns it to the From field. +func (o *XdaiTransactionConfig) SetFrom(v XdaiTransactionConfigFrom) { + o.From = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetTo() XdaiTransactionConfigTo { + if o == nil || IsNil(o.To) { + var ret XdaiTransactionConfigTo + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetToOk() (*XdaiTransactionConfigTo, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given XdaiTransactionConfigTo and assigns it to the To field. +func (o *XdaiTransactionConfig) SetTo(v XdaiTransactionConfigTo) { + o.To = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetValue() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Value) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetValueOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Value field. +func (o *XdaiTransactionConfig) SetValue(v XdaiTransactionConfigFrom) { + o.Value = &v +} + +// GetGas returns the Gas field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetGas() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.Gas) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.Gas +} + +// GetGasOk returns a tuple with the Gas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetGasOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.Gas) { + return nil, false + } + return o.Gas, true +} + +// HasGas returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasGas() bool { + if o != nil && !IsNil(o.Gas) { + return true + } + + return false +} + +// SetGas gets a reference to the given XdaiTransactionConfigFrom and assigns it to the Gas field. +func (o *XdaiTransactionConfig) SetGas(v XdaiTransactionConfigFrom) { + o.Gas = &v +} + +// GetGasPrice returns the GasPrice field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetGasPrice() XdaiTransactionConfigFrom { + if o == nil || IsNil(o.GasPrice) { + var ret XdaiTransactionConfigFrom + return ret + } + return *o.GasPrice +} + +// GetGasPriceOk returns a tuple with the GasPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetGasPriceOk() (*XdaiTransactionConfigFrom, bool) { + if o == nil || IsNil(o.GasPrice) { + return nil, false + } + return o.GasPrice, true +} + +// HasGasPrice returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasGasPrice() bool { + if o != nil && !IsNil(o.GasPrice) { + return true + } + + return false +} + +// SetGasPrice gets a reference to the given XdaiTransactionConfigFrom and assigns it to the GasPrice field. +func (o *XdaiTransactionConfig) SetGasPrice(v XdaiTransactionConfigFrom) { + o.GasPrice = &v +} + +// GetNonce returns the Nonce field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetNonce() float32 { + if o == nil || IsNil(o.Nonce) { + var ret float32 + return ret + } + return *o.Nonce +} + +// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetNonceOk() (*float32, bool) { + if o == nil || IsNil(o.Nonce) { + return nil, false + } + return o.Nonce, true +} + +// HasNonce returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasNonce() bool { + if o != nil && !IsNil(o.Nonce) { + return true + } + + return false +} + +// SetNonce gets a reference to the given float32 and assigns it to the Nonce field. +func (o *XdaiTransactionConfig) SetNonce(v float32) { + o.Nonce = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *XdaiTransactionConfig) GetData() XdaiTransactionConfigTo { + if o == nil || IsNil(o.Data) { + var ret XdaiTransactionConfigTo + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *XdaiTransactionConfig) GetDataOk() (*XdaiTransactionConfigTo, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *XdaiTransactionConfig) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given XdaiTransactionConfigTo and assigns it to the Data field. +func (o *XdaiTransactionConfig) SetData(v XdaiTransactionConfigTo) { + o.Data = &v +} + +func (o XdaiTransactionConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o XdaiTransactionConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RawTransaction) { + toSerialize["rawTransaction"] = o.RawTransaction + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Gas) { + toSerialize["gas"] = o.Gas + } + if !IsNil(o.GasPrice) { + toSerialize["gasPrice"] = o.GasPrice + } + if !IsNil(o.Nonce) { + toSerialize["nonce"] = o.Nonce + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *XdaiTransactionConfig) UnmarshalJSON(bytes []byte) (err error) { + varXdaiTransactionConfig := _XdaiTransactionConfig{} + + if err = json.Unmarshal(bytes, &varXdaiTransactionConfig); err == nil { + *o = XdaiTransactionConfig(varXdaiTransactionConfig) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "rawTransaction") + delete(additionalProperties, "from") + delete(additionalProperties, "to") + delete(additionalProperties, "value") + delete(additionalProperties, "gas") + delete(additionalProperties, "gasPrice") + delete(additionalProperties, "nonce") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableXdaiTransactionConfig struct { + value *XdaiTransactionConfig + isSet bool +} + +func (v NullableXdaiTransactionConfig) Get() *XdaiTransactionConfig { + return v.value +} + +func (v *NullableXdaiTransactionConfig) Set(val *XdaiTransactionConfig) { + v.value = val + v.isSet = true +} + +func (v NullableXdaiTransactionConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableXdaiTransactionConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableXdaiTransactionConfig(val *XdaiTransactionConfig) *NullableXdaiTransactionConfig { + return &NullableXdaiTransactionConfig{value: val, isSet: true} +} + +func (v NullableXdaiTransactionConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableXdaiTransactionConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_from.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_from.go new file mode 100644 index 00000000000..683d0b4d309 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_from.go @@ -0,0 +1,148 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// XdaiTransactionConfigFrom - struct for XdaiTransactionConfigFrom +type XdaiTransactionConfigFrom struct { + Float32 *float32 + String *string +} + +// float32AsXdaiTransactionConfigFrom is a convenience function that returns float32 wrapped in XdaiTransactionConfigFrom +func Float32AsXdaiTransactionConfigFrom(v *float32) XdaiTransactionConfigFrom { + return XdaiTransactionConfigFrom{ + Float32: v, + } +} + +// stringAsXdaiTransactionConfigFrom is a convenience function that returns string wrapped in XdaiTransactionConfigFrom +func StringAsXdaiTransactionConfigFrom(v *string) XdaiTransactionConfigFrom { + return XdaiTransactionConfigFrom{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *XdaiTransactionConfigFrom) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Float32 + err = newStrictDecoder(data).Decode(&dst.Float32) + if err == nil { + jsonFloat32, _ := json.Marshal(dst.Float32) + if string(jsonFloat32) == "{}" { // empty struct + dst.Float32 = nil + } else { + match++ + } + } else { + dst.Float32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Float32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(XdaiTransactionConfigFrom)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(XdaiTransactionConfigFrom)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src XdaiTransactionConfigFrom) MarshalJSON() ([]byte, error) { + if src.Float32 != nil { + return json.Marshal(&src.Float32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *XdaiTransactionConfigFrom) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Float32 != nil { + return obj.Float32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableXdaiTransactionConfigFrom struct { + value *XdaiTransactionConfigFrom + isSet bool +} + +func (v NullableXdaiTransactionConfigFrom) Get() *XdaiTransactionConfigFrom { + return v.value +} + +func (v *NullableXdaiTransactionConfigFrom) Set(val *XdaiTransactionConfigFrom) { + v.value = val + v.isSet = true +} + +func (v NullableXdaiTransactionConfigFrom) IsSet() bool { + return v.isSet +} + +func (v *NullableXdaiTransactionConfigFrom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableXdaiTransactionConfigFrom(val *XdaiTransactionConfigFrom) *NullableXdaiTransactionConfigFrom { + return &NullableXdaiTransactionConfigFrom{value: val, isSet: true} +} + +func (v NullableXdaiTransactionConfigFrom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableXdaiTransactionConfigFrom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_to.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_to.go new file mode 100644 index 00000000000..57a984b1d73 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/model_xdai_transaction_config_to.go @@ -0,0 +1,118 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "fmt" +) + +// XdaiTransactionConfigTo - struct for XdaiTransactionConfigTo +type XdaiTransactionConfigTo struct { + String *string +} + +// stringAsXdaiTransactionConfigTo is a convenience function that returns string wrapped in XdaiTransactionConfigTo +func StringAsXdaiTransactionConfigTo(v *string) XdaiTransactionConfigTo { + return XdaiTransactionConfigTo{ + String: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *XdaiTransactionConfigTo) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(XdaiTransactionConfigTo)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(XdaiTransactionConfigTo)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src XdaiTransactionConfigTo) MarshalJSON() ([]byte, error) { + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *XdaiTransactionConfigTo) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableXdaiTransactionConfigTo struct { + value *XdaiTransactionConfigTo + isSet bool +} + +func (v NullableXdaiTransactionConfigTo) Get() *XdaiTransactionConfigTo { + return v.value +} + +func (v *NullableXdaiTransactionConfigTo) Set(val *XdaiTransactionConfigTo) { + v.value = val + v.isSet = true +} + +func (v NullableXdaiTransactionConfigTo) IsSet() bool { + return v.isSet +} + +func (v *NullableXdaiTransactionConfigTo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableXdaiTransactionConfigTo(val *XdaiTransactionConfigTo) *NullableXdaiTransactionConfigTo { + return &NullableXdaiTransactionConfigTo{value: val, isSet: true} +} + +func (v NullableXdaiTransactionConfigTo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableXdaiTransactionConfigTo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..993ff461a05 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..7446b2af014 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,97 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-ledger-connector-xdai_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeployContractJsonObjectV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractJsonObjectV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DeployContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.DeployContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetPrometheusMetricsV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetPrometheusMetricsV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractJsonObject", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractJsonObject(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService InvokeContractV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.InvokeContractV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RunTransactionV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.RunTransactionV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..1c490ad9d5b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Connector Xdai + +Can perform basic tasks on a Xdai ledger + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-ledger-connector-xdai + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/README.md index 06f4387a1f5..d5c493d7224 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Connector Xdai - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata] Can perform basic tasks on a Xdai ledger diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 29e066f9853..410c181a3b6 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index ac1d6f8169a..221adfb1c06 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 64eb93d3af8..619be583f96 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 81dbfce686c..6fe6937d8c4 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 34316abf428..0244fae374b 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index da7829850a4..571bd8a51f3 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 68f9b4e05ad..c65ab65d4fb 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java index 1419128b796..297022516e8 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ConsistencyStrategy.java @@ -51,7 +51,7 @@ /** * ConsistencyStrategy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class ConsistencyStrategy { public static final String SERIALIZED_NAME_RECEIPT_TYPE = "receiptType"; @SerializedName(SERIALIZED_NAME_RECEIPT_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java index 347895706da..5aff5a08933 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ContractJSON.java @@ -52,7 +52,7 @@ /** * ContractJSON */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class ContractJSON { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJsonObjectV1Request.java index e5e471505b6..c846c5b7e2a 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractJsonObjectV1Request.java @@ -55,7 +55,7 @@ /** * DeployContractJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class DeployContractJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java index 265b4b583e9..e9daad200a8 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Request.java @@ -54,7 +54,7 @@ /** * DeployContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class DeployContractV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java index aa743cfb3da..7de74e2cdef 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployContractV1Response.java @@ -51,7 +51,7 @@ /** * DeployContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class DeployContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployRequestBaseV1.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployRequestBaseV1.java index c82793e3325..631f39a7b96 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployRequestBaseV1.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/DeployRequestBaseV1.java @@ -56,7 +56,7 @@ /** * DeployRequestBaseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class DeployRequestBaseV1 { public static final String SERIALIZED_NAME_CONTRACT_J_S_O_N = "contractJSON"; @SerializedName(SERIALIZED_NAME_CONTRACT_J_S_O_N) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java index 67213fe5983..ff634371cf8 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractJsonObjectV1Request.java @@ -57,7 +57,7 @@ /** * InvokeContractJsonObjectV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class InvokeContractJsonObjectV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java index cc241b26574..0af0fdf2623 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Request.java @@ -56,7 +56,7 @@ /** * InvokeContractV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class InvokeContractV1Request { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java index a388b6bb464..af82cffb32a 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeContractV1Response.java @@ -52,7 +52,7 @@ /** * InvokeContractV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class InvokeContractV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRequestBaseV1.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRequestBaseV1.java index bb06730f34a..9ab3d50bc82 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRequestBaseV1.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/InvokeRequestBaseV1.java @@ -57,7 +57,7 @@ /** * InvokeRequestBaseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class InvokeRequestBaseV1 { public static final String SERIALIZED_NAME_CONTRACT_ADDRESS = "contractAddress"; @SerializedName(SERIALIZED_NAME_CONTRACT_ADDRESS) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Request.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Request.java index 524be875a89..44198988af2 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Request.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Request.java @@ -53,7 +53,7 @@ /** * RunTransactionV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class RunTransactionV1Request { public static final String SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL = "web3SigningCredential"; @SerializedName(SERIALIZED_NAME_WEB3_SIGNING_CREDENTIAL) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Response.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Response.java index 3f7295e0532..8961f5e6302 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Response.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RunTransactionV1Response.java @@ -51,7 +51,7 @@ /** * RunTransactionV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class RunTransactionV1Response { public static final String SERIALIZED_NAME_TRANSACTION_RECEIPT = "transactionReceipt"; @SerializedName(SERIALIZED_NAME_TRANSACTION_RECEIPT) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java index 02ea1189945..29e3f326933 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifact.java @@ -54,7 +54,7 @@ /** * SolidityContractJsonArtifact */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifact { public static final String SERIALIZED_NAME_CONTRACT_NAME = "contractName"; @SerializedName(SERIALIZED_NAME_CONTRACT_NAME) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java index 0a58ac18f3d..7f69a249d0d 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactCompiler.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactCompiler */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactCompiler { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java index 75dd307e77b..f5ff5627802 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimates.java @@ -53,7 +53,7 @@ /** * SolidityContractJsonArtifactGasEstimates */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimates { public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java index b42d1cac9c6..4f5760e4a58 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SolidityContractJsonArtifactGasEstimatesCreation.java @@ -50,7 +50,7 @@ /** * SolidityContractJsonArtifactGasEstimatesCreation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class SolidityContractJsonArtifactGasEstimatesCreation { public static final String SERIALIZED_NAME_CODE_DEPOSIT_COST = "codeDepositCost"; @SerializedName(SERIALIZED_NAME_CODE_DEPOSIT_COST) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java index 701366f05fc..a164b1ee087 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredential.java @@ -59,7 +59,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Web3SigningCredential extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Web3SigningCredential.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java index cf74f3e66dd..0ae6bf72dbf 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialCactusKeychainRef.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialCactusKeychainRef */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Web3SigningCredentialCactusKeychainRef { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java index 6706ada7083..2cffaa793d5 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialNone.java @@ -51,7 +51,7 @@ /** * Using this denotes that there is no signing required because the transaction is pre-signed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Web3SigningCredentialNone { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java index 1ebca876998..9397a4ad3da 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3SigningCredentialPrivateKeyHex.java @@ -51,7 +51,7 @@ /** * Web3SigningCredentialPrivateKeyHex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Web3SigningCredentialPrivateKeyHex { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java index 26d17400a84..05631f5d369 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/Web3TransactionReceipt.java @@ -52,7 +52,7 @@ /** * Web3TransactionReceipt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class Web3TransactionReceipt { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfig.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfig.java index 1eff88062b0..d30ffdccb49 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfig.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfig.java @@ -53,7 +53,7 @@ /** * XdaiTransactionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class XdaiTransactionConfig { public static final String SERIALIZED_NAME_RAW_TRANSACTION = "rawTransaction"; @SerializedName(SERIALIZED_NAME_RAW_TRANSACTION) diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigFrom.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigFrom.java index 4c3e93262cc..c5da7377ddb 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigFrom.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigFrom.java @@ -50,7 +50,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class XdaiTransactionConfigFrom extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(XdaiTransactionConfigFrom.class.getName()); diff --git a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigTo.java b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigTo.java index 6c1961dc2f1..83fba1649fa 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigTo.java +++ b/packages/cactus-plugin-ledger-connector-xdai/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/XdaiTransactionConfigTo.java @@ -49,7 +49,7 @@ import org.openapitools.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:19.197083555+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:29.126426033+05:30[Asia/Kolkata]") public class XdaiTransactionConfigTo extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(XdaiTransactionConfigTo.class.getName()); diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..aa5eafa9aef --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,69 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/AssetProfile.md +docs/ClientV1Request.md +docs/ClientV1RequestClientGatewayConfiguration.md +docs/CommitFinalV1Request.md +docs/CommitFinalV1Response.md +docs/CommitPreparationV1Request.md +docs/CommitPreparationV1Response.md +docs/CredentialProfile.md +docs/DefaultApi.md +docs/History.md +docs/LockEvidenceV1Request.md +docs/LockEvidenceV1Response.md +docs/OdapLocalLog.md +docs/OdapMessage.md +docs/OdapMessageActionResponse.md +docs/PayloadProfile.md +docs/RecoverSuccessV1Message.md +docs/RecoverUpdateAckV1Message.md +docs/RecoverUpdateV1Message.md +docs/RecoverV1Message.md +docs/RollbackAckV1Message.md +docs/RollbackV1Message.md +docs/SessionData.md +docs/TransferCommenceV1Request.md +docs/TransferCommenceV1Response.md +docs/TransferCompleteV1Request.md +docs/TransferInitializationV1Request.md +docs/TransferInitializationV1Response.md +git_push.sh +go.mod +go.sum +model_asset_profile.go +model_client_v1_request.go +model_client_v1_request_client_gateway_configuration.go +model_commit_final_v1_request.go +model_commit_final_v1_response.go +model_commit_preparation_v1_request.go +model_commit_preparation_v1_response.go +model_credential_profile.go +model_history.go +model_lock_evidence_v1_request.go +model_lock_evidence_v1_response.go +model_odap_local_log.go +model_odap_message.go +model_odap_message_action_response.go +model_payload_profile.go +model_recover_success_v1_message.go +model_recover_update_ack_v1_message.go +model_recover_update_v1_message.go +model_recover_v1_message.go +model_rollback_ack_v1_message.go +model_rollback_v1_message.go +model_session_data.go +model_transfer_commence_v1_request.go +model_transfer_commence_v1_response.go +model_transfer_complete_v1_request.go +model_transfer_initialization_v1_request.go +model_transfer_initialization_v1_response.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..885530514fb --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,155 @@ +# Go API client for @hyperledger/cactus-plugin-odap-hermes + +Implementation for Odap and Hermes + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-odap-hermes "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-odap-hermes.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-odap-hermes.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-odap-hermes.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-odap-hermes.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**ClientRequestV1**](docs/DefaultApi.md#clientrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/clientrequest | +*DefaultApi* | [**Phase1TransferInitiationRequestV1**](docs/DefaultApi.md#phase1transferinitiationrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationrequest | +*DefaultApi* | [**Phase1TransferInitiationResponseV1**](docs/DefaultApi.md#phase1transferinitiationresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationresponse | +*DefaultApi* | [**Phase2LockEvidenceRequestV1**](docs/DefaultApi.md#phase2lockevidencerequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidencerequest | +*DefaultApi* | [**Phase2LockEvidenceResponseV1**](docs/DefaultApi.md#phase2lockevidenceresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidenceresponse | +*DefaultApi* | [**Phase2TransferCommenceRequestV1**](docs/DefaultApi.md#phase2transfercommencerequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommencerequest | +*DefaultApi* | [**Phase2TransferCommenceResponseV1**](docs/DefaultApi.md#phase2transfercommenceresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommenceresponse | +*DefaultApi* | [**Phase3CommitFinalRequestV1**](docs/DefaultApi.md#phase3commitfinalrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalrequest | +*DefaultApi* | [**Phase3CommitFinalResponseV1**](docs/DefaultApi.md#phase3commitfinalresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalresponse | +*DefaultApi* | [**Phase3CommitPreparationRequestV1**](docs/DefaultApi.md#phase3commitpreparationrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationrequest | +*DefaultApi* | [**Phase3CommitPreparationResponseV1**](docs/DefaultApi.md#phase3commitpreparationresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationresponse | +*DefaultApi* | [**Phase3TransferCompleteRequestV1**](docs/DefaultApi.md#phase3transfercompleterequestv1) | **Get** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/transfercompleterequest | +*DefaultApi* | [**RecoverUpdateAckV1Message**](docs/DefaultApi.md#recoverupdateackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdateackmessage | +*DefaultApi* | [**RecoverUpdateV1Message**](docs/DefaultApi.md#recoverupdatev1message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdatemessage | +*DefaultApi* | [**RecoverV1Message**](docs/DefaultApi.md#recoverv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recovermessage | +*DefaultApi* | [**RecoverV1Success**](docs/DefaultApi.md#recoverv1success) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoversuccessmessage | +*DefaultApi* | [**RollbackAckV1Message**](docs/DefaultApi.md#rollbackackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackackmessage | +*DefaultApi* | [**RollbackV1Message**](docs/DefaultApi.md#rollbackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackmessage | + + +## Documentation For Models + + - [AssetProfile](docs/AssetProfile.md) + - [ClientV1Request](docs/ClientV1Request.md) + - [ClientV1RequestClientGatewayConfiguration](docs/ClientV1RequestClientGatewayConfiguration.md) + - [CommitFinalV1Request](docs/CommitFinalV1Request.md) + - [CommitFinalV1Response](docs/CommitFinalV1Response.md) + - [CommitPreparationV1Request](docs/CommitPreparationV1Request.md) + - [CommitPreparationV1Response](docs/CommitPreparationV1Response.md) + - [CredentialProfile](docs/CredentialProfile.md) + - [History](docs/History.md) + - [LockEvidenceV1Request](docs/LockEvidenceV1Request.md) + - [LockEvidenceV1Response](docs/LockEvidenceV1Response.md) + - [OdapLocalLog](docs/OdapLocalLog.md) + - [OdapMessage](docs/OdapMessage.md) + - [OdapMessageActionResponse](docs/OdapMessageActionResponse.md) + - [PayloadProfile](docs/PayloadProfile.md) + - [RecoverSuccessV1Message](docs/RecoverSuccessV1Message.md) + - [RecoverUpdateAckV1Message](docs/RecoverUpdateAckV1Message.md) + - [RecoverUpdateV1Message](docs/RecoverUpdateV1Message.md) + - [RecoverV1Message](docs/RecoverV1Message.md) + - [RollbackAckV1Message](docs/RollbackAckV1Message.md) + - [RollbackV1Message](docs/RollbackV1Message.md) + - [SessionData](docs/SessionData.md) + - [TransferCommenceV1Request](docs/TransferCommenceV1Request.md) + - [TransferCommenceV1Response](docs/TransferCommenceV1Response.md) + - [TransferCompleteV1Request](docs/TransferCompleteV1Request.md) + - [TransferInitializationV1Request](docs/TransferInitializationV1Request.md) + - [TransferInitializationV1Response](docs/TransferInitializationV1Response.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..bcfe5f94ad5 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,1600 @@ +openapi: 3.0.3 +info: + description: Implementation for Odap and Hermes + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Odap Hermes + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationrequest: + post: + description: "" + operationId: phase1TransferInitiationRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferInitializationV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationrequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommencerequest: + post: + description: "" + operationId: phase2TransferCommenceRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferCommenceV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommencerequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidencerequest: + post: + description: "" + operationId: phase2LockEvidenceRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LockEvidenceV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidencerequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationrequest: + post: + description: "" + operationId: phase3CommitPreparationRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CommitPreparationV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationrequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalrequest: + post: + description: "" + operationId: phase3CommitFinalRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CommitFinalV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalrequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/transfercompleterequest: + get: + description: "" + operationId: phase3TransferCompleteRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferCompleteV1Request' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/transfercompleterequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/clientrequest: + post: + description: "" + operationId: clientRequestV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientV1Request' + responses: + "200": + content: + application/json: + schema: {} + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/clientrequest + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationresponse: + post: + description: "" + operationId: phase1TransferInitiationResponseV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferInitializationV1Response' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationresponse + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommenceresponse: + post: + description: "" + operationId: phase2TransferCommenceResponseV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferCommenceV1Response' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommenceresponse + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidenceresponse: + post: + description: "" + operationId: phase2LockEvidenceResponseV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LockEvidenceV1Response' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidenceresponse + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationresponse: + post: + description: "" + operationId: phase3CommitPreparationResponseV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CommitPreparationV1Response' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationresponse + /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalresponse: + post: + description: "" + operationId: phase3CommitFinalResponseV1 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CommitFinalV1Response' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalresponse + /api/v1/@hyperledger/cactus-plugin-odap-hermes/recovermessage: + post: + description: "" + operationId: RecoverV1Message + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RecoverV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/recovermessage + /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdatemessage: + post: + description: "" + operationId: RecoverUpdateV1Message + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RecoverUpdateV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdatemessage + /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdateackmessage: + post: + description: "" + operationId: RecoverUpdateAckV1Message + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RecoverUpdateAckV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdateackmessage + /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoversuccessmessage: + post: + description: "" + operationId: RecoverV1Success + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RecoverSuccessV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoversuccessmessage + /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackmessage: + post: + description: "" + operationId: RollbackV1Message + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RollbackV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackmessage + /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackackmessage: + post: + description: "" + operationId: RollbackAckV1Message + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RollbackAckV1Message' + responses: + "200": + description: OK + x-hyperledger-cactus: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackackmessage +components: + schemas: + CredentialProfile: + enum: + - SAML + - OAUTH + - X509 + type: string + PayloadProfile: + example: + assetProfile: + ledgerRequirements: + - "" + - "" + keyInformationLink: + - "" + - "" + assetCode: assetCode + issuanceDate: issuanceDate + digitalSignature: digitalSignature + verificationEndPoint: verificationEndPoint + prospectusLink: prospectusLink + issuer: issuer + assetCodeType: assetCodeType + transferRestriction: + - "" + - "" + expirationDate: expirationDate + keyWord: + - "" + - "" + capabilities: capabilities + properties: + assetProfile: + $ref: '#/components/schemas/AssetProfile' + capabilities: + type: string + required: + - assetProfile + type: object + ApplicationProfile: + type: object + Payload: + type: object + AssetProfile: + example: + ledgerRequirements: + - "" + - "" + keyInformationLink: + - "" + - "" + assetCode: assetCode + issuanceDate: issuanceDate + digitalSignature: digitalSignature + verificationEndPoint: verificationEndPoint + prospectusLink: prospectusLink + issuer: issuer + assetCodeType: assetCodeType + transferRestriction: + - "" + - "" + expirationDate: expirationDate + keyWord: + - "" + - "" + properties: + issuer: + type: string + assetCode: + type: string + assetCodeType: + type: string + issuanceDate: + type: string + expirationDate: + type: string + verificationEndPoint: + type: string + digitalSignature: + type: string + prospectusLink: + type: string + keyInformationLink: + items: {} + type: array + keyWord: + items: {} + type: array + transferRestriction: + items: {} + type: array + ledgerRequirements: + items: {} + type: array + required: + - expirationDate + type: object + LoggingProfile: + items: + type: string + type: array + AccessControlProfile: + items: + type: string + type: array + Permissions: + type: object + Transaction: + type: object + ActionCategory: + type: object + History: + example: + Origin: Origin + Transactions: + - null + - null + Destination: Destination + Actions: + - null + - null + CurrentStatus: "{}" + ApplicationSpecificParameters: "{}" + Balance: Balance + properties: + Transactions: + items: + $ref: '#/components/schemas/Transaction' + type: array + Actions: + items: + $ref: '#/components/schemas/ActionCategory' + type: array + Origin: + type: string + Destination: + type: string + Balance: + type: string + CurrentStatus: + type: object + ApplicationSpecificParameters: + type: object + type: object + SenderDltSystem: + type: object + RecipientDltSystem: + type: object + LockEvidenceClaim: + type: object + LockClaimFormat: + type: object + CommitFinalClaim: + type: object + CommitFinalClaimFormat: + type: object + CommitAcknowledgementClaim: + type: object + CommitAcknowledgementClaimFormat: + type: object + SessionData: + properties: + id: + type: string + step: + type: number + version: + type: string + lastSequenceNumber: + type: number + loggingProfile: + type: string + accessControlProfile: + type: string + applicationProfile: + type: string + payloadProfile: + $ref: '#/components/schemas/PayloadProfile' + assetProfile: + $ref: '#/components/schemas/AssetProfile' + allowedSourceBackupGateways: + items: + type: string + type: array + allowedRecipientBackupGateways: + items: + type: string + type: array + sourceBasePath: + type: string + recipientBasePath: + type: string + originatorPubkey: + type: string + beneficiaryPubkey: + type: string + sourceGatewayPubkey: + type: string + sourceGatewayDltSystem: + type: string + recipientGatewayPubkey: + type: string + recipientGatewayDltSystem: + type: string + initializationRequestMessageHash: + type: string + initializationResponseMessageHash: + type: string + initializationRequestMessageRcvTimeStamp: + type: string + initializationRequestMessageProcessedTimeStamp: + type: string + clientSignatureInitializationRequestMessage: + type: string + serverSignatureInitializationResponseMessage: + type: string + transferCommenceMessageRequestHash: + type: string + transferCommenceMessageResponseHash: + type: string + clientSignatureTransferCommenceRequestMessage: + type: string + serverSignatureTransferCommenceResponseMessage: + type: string + lockEvidenceRequestMessageHash: + type: string + lockEvidenceResponseMessageHash: + type: string + clientSignatureLockEvidenceRequestMessage: + type: string + serverSignatureLockEvidenceResponseMessage: + type: string + lockEvidenceClaim: + type: string + commitPrepareRequestMessageHash: + type: string + commitPrepareResponseMessageHash: + type: string + clientSignatureCommitPreparationRequestMessage: + type: string + serverSignatureCommitPreparationResponseMessage: + type: string + commitFinalRequestMessageHash: + type: string + commitFinalResponseMessageHash: + type: string + commitFinalClaim: + type: string + commitFinalClaimFormat: + type: string + commitAcknowledgementClaim: + type: string + commitAcknowledgementClaimFormat: + type: string + clientSignatureCommitFinalRequestMessage: + type: string + serverSignatureCommitFinalResponseMessage: + type: string + transferCompleteMessageHash: + type: string + clientSignatureTransferCompleteMessage: + type: string + maxRetries: + type: number + recipientLedgerAssetID: + type: string + sourceLedgerAssetID: + type: string + maxTimeout: + type: number + lastLogEntryTimestamp: + type: string + unlockAssetClaim: + type: string + recreateAssetClaim: + type: string + deleteAssetClaim: + type: string + lastMessageReceivedTimestamp: + type: string + rollback: + type: boolean + rollbackMessageHash: + type: string + rollbackProofs: + items: + type: string + type: array + rollbackActionsPerformed: + items: + enum: + - CREATE + - DELETE + - LOCK + - UNLOCK + type: string + type: array + type: object + TransferInitializationV1Request: + example: + recipientLedgerAssetID: recipientLedgerAssetID + subsequentCalls: "{}" + backupGatewaysAllowed: + - backupGatewaysAllowed + - backupGatewaysAllowed + signature: signature + credentialProfile: null + origin: origin + destination: destination + recipientGatewayPubkey: recipientGatewayPubkey + sessionID: sessionID + sourceBasePath: sourceBasePath + loggingProfile: loggingProfile + sourceLedgerAssetID: sourceLedgerAssetID + messageType: messageType + permissions: "{}" + multipleClaimsAllowed: true + payloadProfile: + assetProfile: + ledgerRequirements: + - "" + - "" + keyInformationLink: + - "" + - "" + assetCode: assetCode + issuanceDate: issuanceDate + digitalSignature: digitalSignature + verificationEndPoint: verificationEndPoint + prospectusLink: prospectusLink + issuer: issuer + assetCodeType: assetCodeType + transferRestriction: + - "" + - "" + expirationDate: expirationDate + keyWord: + - "" + - "" + capabilities: capabilities + applicationProfile: applicationProfile + sourceGatewayPubkey: sourceGatewayPubkey + recipientGatewayDltSystem: recipientGatewayDltSystem + sequenceNumber: 0 + accessControlProfile: accessControlProfile + developerURN: developerURN + histories: + - Origin: Origin + Transactions: + - null + - null + Destination: Destination + Actions: + - null + - null + CurrentStatus: "{}" + ApplicationSpecificParameters: "{}" + Balance: Balance + - Origin: Origin + Transactions: + - null + - null + Destination: Destination + Actions: + - null + - null + CurrentStatus: "{}" + ApplicationSpecificParameters: "{}" + Balance: Balance + version: version + multipleCancelsAllowed: true + escrowType: FAUCET + maxRetries: 6.027456183070403 + sourceGatewayDltSystem: sourceGatewayDltSystem + recipientBasePath: recipientBasePath + maxTimeout: 1.4658129805029452 + expiryTime: expiryTime + properties: + messageType: + type: string + sessionID: + type: string + version: + type: string + developerURN: + type: string + credentialProfile: + $ref: '#/components/schemas/CredentialProfile' + payloadProfile: + $ref: '#/components/schemas/PayloadProfile' + applicationProfile: + type: string + loggingProfile: + type: string + accessControlProfile: + type: string + signature: + type: string + sourceGatewayPubkey: + type: string + sourceGatewayDltSystem: + type: string + recipientGatewayPubkey: + type: string + recipientGatewayDltSystem: + type: string + escrowType: + enum: + - FAUCET + - TIMELOCK + - HASHLOCK + - HASHTIMELOCK + - MULTICLAIMPC + - DESTROY + - BURN + type: string + expiryTime: + type: string + multipleClaimsAllowed: + type: boolean + multipleCancelsAllowed: + type: boolean + permissions: + type: object + origin: + type: string + destination: + type: string + subsequentCalls: + type: object + histories: + items: + $ref: '#/components/schemas/History' + type: array + sequenceNumber: + type: integer + sourceBasePath: + type: string + recipientBasePath: + type: string + maxRetries: + type: number + maxTimeout: + type: number + backupGatewaysAllowed: + items: + type: string + type: array + recipientLedgerAssetID: + type: string + sourceLedgerAssetID: + type: string + required: + - accessControlProfile + - applicationProfile + - backupGatewaysAllowed + - loggingProfile + - maxRetries + - maxTimeout + - messageType + - payloadProfile + - recipientBasePath + - recipientGatewayDltSystem + - recipientGatewayPubkey + - recipientLedgerAssetID + - sequenceNumber + - sessionID + - signature + - sourceBasePath + - sourceGatewayDltSystem + - sourceGatewayPubkey + - sourceLedgerAssetID + type: object + TransferInitializationV1Response: + example: + timeStamp: timeStamp + sequenceNumber: 0.8008281904610115 + odapPhase: TransferInitialization + initialRequestMessageHash: initialRequestMessageHash + messageType: messageType + backupGatewaysAllowed: + - backupGatewaysAllowed + - backupGatewaysAllowed + processedTimeStamp: processedTimeStamp + signature: signature + destination: destination + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + messageType: + type: string + sessionID: + type: string + sequenceNumber: + type: number + odapPhase: + enum: + - TransferInitialization + - LockEvidenceVerification + - CommitmentEstablishment + type: string + initialRequestMessageHash: + type: string + destination: + type: string + timeStamp: + type: string + processedTimeStamp: + type: string + serverIdentityPubkey: + type: string + signature: + type: string + backupGatewaysAllowed: + items: + type: string + type: array + required: + - backupGatewaysAllowed + - initialRequestMessageHash + - messageType + - processedTimeStamp + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + - timeStamp + type: object + TransferCommenceV1Request: + example: + beneficiaryPubkey: beneficiaryPubkey + sequenceNumber: 1 + hashAssetProfile: hashAssetProfile + clientIdentityPubkey: clientIdentityPubkey + clientTransferNumber: 6 + signature: signature + recipientDltSystem: recipientDltSystem + sessionID: sessionID + hashPrevMessage: hashPrevMessage + serverIdentityPubkey: serverIdentityPubkey + assetUnit: 0 + messageType: messageType + senderDltSystem: senderDltSystem + originatorPubkey: originatorPubkey + properties: + sessionID: + type: string + messageType: + type: string + originatorPubkey: + type: string + beneficiaryPubkey: + type: string + senderDltSystem: + type: string + recipientDltSystem: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashAssetProfile: + type: string + assetUnit: + type: integer + hashPrevMessage: + type: string + clientTransferNumber: + nullable: true + type: integer + signature: + type: string + sequenceNumber: + type: integer + required: + - beneficiaryPubkey + - clientIdentityPubkey + - hashAssetProfile + - hashPrevMessage + - messageType + - originatorPubkey + - recipientDltSystem + - senderDltSystem + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + TransferCommenceV1Response: + example: + sequenceNumber: 6.027456183070403 + clientIdentityPubkey: clientIdentityPubkey + messageType: messageType + signature: signature + serverTransferNumber: 0 + messageHash: messageHash + sessionID: sessionID + hashCommenceRequest: hashCommenceRequest + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashCommenceRequest: + type: string + serverTransferNumber: + nullable: true + type: integer + signature: + type: string + messageType: + type: string + messageHash: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashCommenceRequest + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + LockEvidenceV1Request: + example: + sequenceNumber: 6.027456183070403 + lockEvidenceExpiration: lockEvidenceExpiration + clientIdentityPubkey: clientIdentityPubkey + clientTransferNumber: 0 + messageType: messageType + signature: signature + lockEvidenceClaim: lockEvidenceClaim + lockEvidenceFormat: "{}" + hashCommenceAckRequest: hashCommenceAckRequest + messageHash: messageHash + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + lockEvidenceClaim: + type: string + lockEvidenceFormat: + type: object + lockEvidenceExpiration: + type: string + hashCommenceAckRequest: + type: string + clientTransferNumber: + nullable: true + type: integer + signature: + type: string + messageType: + type: string + messageHash: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashCommenceAckRequest + - lockEvidenceClaim + - lockEvidenceExpiration + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + LockEvidenceV1Response: + example: + sequenceNumber: 6.027456183070403 + clientIdentityPubkey: clientIdentityPubkey + messageType: messageType + signature: signature + serverTransferNumber: 0 + hashLockEvidenceRequest: hashLockEvidenceRequest + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashLockEvidenceRequest: + type: string + serverTransferNumber: + nullable: true + type: integer + signature: + type: string + messageType: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashLockEvidenceRequest + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + CommitPreparationV1Request: + example: + sequenceNumber: 6.027456183070403 + clientIdentityPubkey: clientIdentityPubkey + hashLockEvidenceAck: hashLockEvidenceAck + messageType: messageType + clientTransferNumber: 0 + signature: signature + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + messageType: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashLockEvidenceAck: + type: string + clientTransferNumber: + type: integer + signature: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashLockEvidenceAck + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + CommitPreparationV1Response: + example: + sequenceNumber: 0.8008281904610115 + clientIdentityPubkey: clientIdentityPubkey + messageType: messageType + hashCommitPrep: hashCommitPrep + signature: signature + serverTransferNumber: serverTransferNumber + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + messageType: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashCommitPrep: + type: string + serverTransferNumber: + type: string + signature: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashCommitPrep + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + CommitFinalV1Request: + example: + sequenceNumber: 6.027456183070403 + clientIdentityPubkey: clientIdentityPubkey + messageType: messageType + clientTransferNumber: 0 + signature: signature + commitFinalClaim: commitFinalClaim + commitFinalClaimFormat: "{}" + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + hashCommitPrepareAck: hashCommitPrepareAck + properties: + sessionID: + type: string + messageType: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + commitFinalClaim: + type: string + commitFinalClaimFormat: + type: object + hashCommitPrepareAck: + type: string + clientTransferNumber: + nullable: true + type: integer + signature: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - commitFinalClaim + - hashCommitPrepareAck + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + CommitFinalV1Response: + example: + sequenceNumber: 6.027456183070403 + clientIdentityPubkey: clientIdentityPubkey + messageType: messageType + commitAcknowledgementClaimFormat: "{}" + signature: signature + serverTransferNumber: 0 + commitAcknowledgementClaim: commitAcknowledgementClaim + hashCommitFinal: hashCommitFinal + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + messageType: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + commitAcknowledgementClaim: + type: string + commitAcknowledgementClaimFormat: + type: object + hashCommitFinal: + type: string + serverTransferNumber: + type: integer + signature: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - commitAcknowledgementClaim + - hashCommitFinal + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + TransferCompleteV1Request: + example: + sequenceNumber: 6.027456183070403 + hashCommitFinalAck: hashCommitFinalAck + clientIdentityPubkey: clientIdentityPubkey + hashTransferCommence: hashTransferCommence + messageType: messageType + clientTransferNumber: 0 + signature: signature + sessionID: sessionID + serverIdentityPubkey: serverIdentityPubkey + properties: + sessionID: + type: string + messageType: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + hashCommitFinalAck: + type: string + clientTransferNumber: + nullable: true + type: integer + signature: + type: string + hashTransferCommence: + type: string + sequenceNumber: + type: number + required: + - clientIdentityPubkey + - hashCommitFinalAck + - hashTransferCommence + - messageType + - sequenceNumber + - serverIdentityPubkey + - sessionID + - signature + type: object + ClientV1Request: + example: + assetProfile: + ledgerRequirements: + - "" + - "" + keyInformationLink: + - "" + - "" + assetCode: assetCode + issuanceDate: issuanceDate + digitalSignature: digitalSignature + verificationEndPoint: verificationEndPoint + prospectusLink: prospectusLink + issuer: issuer + assetCodeType: assetCodeType + transferRestriction: + - "" + - "" + expirationDate: expirationDate + keyWord: + - "" + - "" + beneficiaryPubkey: beneficiaryPubkey + recipientLedgerAssetID: recipientLedgerAssetID + clientIdentityPubkey: clientIdentityPubkey + serverDltSystem: serverDltSystem + accessControlProfile: accessControlProfile + recipientGatewayPubkey: recipientGatewayPubkey + assetControlProfile: assetControlProfile + version: version + serverIdentityPubkey: serverIdentityPubkey + loggingProfile: loggingProfile + serverGatewayConfiguration: + apiHost: apiHost + sourceLedgerAssetID: sourceLedgerAssetID + clientGatewayConfiguration: + apiHost: apiHost + maxRetries: 0.8008281904610115 + sourceGatewayDltSystem: sourceGatewayDltSystem + maxTimeout: 6.027456183070403 + applicationProfile: applicationProfile + payloadProfile: + assetProfile: + ledgerRequirements: + - "" + - "" + keyInformationLink: + - "" + - "" + assetCode: assetCode + issuanceDate: issuanceDate + digitalSignature: digitalSignature + verificationEndPoint: verificationEndPoint + prospectusLink: prospectusLink + issuer: issuer + assetCodeType: assetCodeType + transferRestriction: + - "" + - "" + expirationDate: expirationDate + keyWord: + - "" + - "" + capabilities: capabilities + originatorPubkey: originatorPubkey + clientDltSystem: clientDltSystem + recipientGatewayDltSystem: recipientGatewayDltSystem + properties: + version: + type: string + loggingProfile: + type: string + accessControlProfile: + type: string + assetControlProfile: + type: string + applicationProfile: + type: string + assetProfile: + $ref: '#/components/schemas/AssetProfile' + payloadProfile: + $ref: '#/components/schemas/PayloadProfile' + sourceGatewayDltSystem: + type: string + recipientGatewayDltSystem: + type: string + recipientGatewayPubkey: + type: string + originatorPubkey: + type: string + beneficiaryPubkey: + type: string + clientIdentityPubkey: + type: string + serverIdentityPubkey: + type: string + clientDltSystem: + type: string + serverDltSystem: + type: string + clientGatewayConfiguration: + $ref: '#/components/schemas/ClientV1Request_clientGatewayConfiguration' + serverGatewayConfiguration: + $ref: '#/components/schemas/ClientV1Request_clientGatewayConfiguration' + maxRetries: + type: number + maxTimeout: + type: number + sourceLedgerAssetID: + type: string + recipientLedgerAssetID: + type: string + required: + - accessControlProfile + - applicationProfile + - assetControlProfile + - assetProfile + - beneficiaryPubkey + - clientDltSystem + - clientGatewayConfiguration + - clientIdentityPubkey + - loggingProfile + - maxRetries + - maxTimeout + - originatorPubkey + - payloadProfile + - recipientGatewayDltSystem + - recipientGatewayPubkey + - recipientLedgerAssetID + - serverDltSystem + - serverGatewayConfiguration + - serverIdentityPubkey + - sourceGatewayDltSystem + - sourceLedgerAssetID + - version + type: object + RecoverV1Message: + example: + sequenceNumber: 0.8008281904610115 + isBackup: true + odapPhase: odapPhase + signature: signature + sessionID: sessionID + newGatewayPubKey: newGatewayPubKey + newBasePath: newBasePath + lastLogEntryTimestamp: lastLogEntryTimestamp + properties: + sessionID: + type: string + odapPhase: + type: string + sequenceNumber: + type: number + lastLogEntryTimestamp: + type: string + isBackup: + type: boolean + newBasePath: + type: string + newGatewayPubKey: + type: string + signature: + type: string + required: + - isBackup + - lastLogEntryTimestamp + - newBasePath + - odapPhase + - sequenceNumber + - sessionID + - signature + type: object + RecoverUpdateV1Message: + example: + signature: signature + sessionID: sessionID + recoveredLogs: + - data: data + sessionID: sessionID + type: type + operation: operation + key: key + timestamp: timestamp + - data: data + sessionID: sessionID + type: type + operation: operation + key: key + timestamp: timestamp + properties: + sessionID: + type: string + recoveredLogs: + items: + $ref: '#/components/schemas/OdapLocalLog' + type: array + signature: + type: string + required: + - recoveredLogs + - sessionID + - signature + type: object + RecoverUpdateAckV1Message: + example: + signature: signature + success: true + sessionID: sessionID + changedEntriesHash: + - changedEntriesHash + - changedEntriesHash + properties: + sessionID: + type: string + success: + type: boolean + changedEntriesHash: + items: + type: string + type: array + signature: + type: string + required: + - changedEntriesHash + - sessionID + - signature + - success + type: object + RecoverSuccessV1Message: + example: + signature: signature + success: true + sessionID: sessionID + properties: + sessionID: + type: string + success: + type: boolean + signature: + type: string + required: + - sessionID + - signature + - success + type: object + RollbackV1Message: + example: + actionPerformed: + - actionPerformed + - actionPerformed + signature: signature + success: true + proofs: + - proofs + - proofs + sessionID: sessionID + properties: + sessionID: + type: string + success: + type: boolean + actionPerformed: + items: + type: string + type: array + proofs: + items: + type: string + type: array + signature: + type: string + required: + - actionPerformed + - proofs + - sessionID + - signature + - success + type: object + RollbackAckV1Message: + example: + signature: signature + success: true + sessionID: sessionID + properties: + sessionID: + type: string + success: + type: boolean + signature: + type: string + required: + - sessionID + - signature + - success + type: object + OdapLocalLog: + example: + data: data + sessionID: sessionID + type: type + operation: operation + key: key + timestamp: timestamp + properties: + key: + type: string + sessionID: + type: string + data: + type: string + type: + type: string + operation: + type: string + timestamp: + type: string + required: + - operation + - sessionID + - type + type: object + OdapMessage: + properties: + SequenceNumber: + type: number + Phase: + enum: + - TransferInitialization + - LockEvidenceVerification + - CommitmentEstablishment + type: string + ResourceURL: + type: string + DeveloperURN: + type: string + ActionResponse: + $ref: '#/components/schemas/OdapMessage_ActionResponse' + CredentialProfile: + enum: + - SAML + - OAuth + - X509 + type: string + CredentialBlock: + items: {} + type: array + CredentialsProfile: + $ref: '#/components/schemas/PayloadProfile' + ApplicationProfile: + type: object + Payload: + type: object + PayloadHash: + type: string + MessageSignature: + type: string + type: object + ClientV1Request_clientGatewayConfiguration: + example: + apiHost: apiHost + properties: + apiHost: + type: string + required: + - apiHost + type: object + OdapMessage_ActionResponse: + properties: + ResponseCode: + enum: + - "200" + - "404" + type: string + x-enum-varnames: + - OK + - RESOURCE_NOT_FOUND + Arguments: + items: {} + type: array + type: object diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..f2b0359f13f --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,1762 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiClientRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + clientV1Request *ClientV1Request +} + +func (r ApiClientRequestV1Request) ClientV1Request(clientV1Request ClientV1Request) ApiClientRequestV1Request { + r.clientV1Request = &clientV1Request + return r +} + +func (r ApiClientRequestV1Request) Execute() (interface{}, *http.Response, error) { + return r.ApiService.ClientRequestV1Execute(r) +} + +/* +ClientRequestV1 Method for ClientRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiClientRequestV1Request +*/ +func (a *DefaultApiService) ClientRequestV1(ctx context.Context) ApiClientRequestV1Request { + return ApiClientRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return interface{} +func (a *DefaultApiService) ClientRequestV1Execute(r ApiClientRequestV1Request) (interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ClientRequestV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/clientrequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clientV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPhase1TransferInitiationRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transferInitializationV1Request *TransferInitializationV1Request +} + +func (r ApiPhase1TransferInitiationRequestV1Request) TransferInitializationV1Request(transferInitializationV1Request TransferInitializationV1Request) ApiPhase1TransferInitiationRequestV1Request { + r.transferInitializationV1Request = &transferInitializationV1Request + return r +} + +func (r ApiPhase1TransferInitiationRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase1TransferInitiationRequestV1Execute(r) +} + +/* +Phase1TransferInitiationRequestV1 Method for Phase1TransferInitiationRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase1TransferInitiationRequestV1Request +*/ +func (a *DefaultApiService) Phase1TransferInitiationRequestV1(ctx context.Context) ApiPhase1TransferInitiationRequestV1Request { + return ApiPhase1TransferInitiationRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase1TransferInitiationRequestV1Execute(r ApiPhase1TransferInitiationRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase1TransferInitiationRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationrequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferInitializationV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase1TransferInitiationResponseV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transferInitializationV1Response *TransferInitializationV1Response +} + +func (r ApiPhase1TransferInitiationResponseV1Request) TransferInitializationV1Response(transferInitializationV1Response TransferInitializationV1Response) ApiPhase1TransferInitiationResponseV1Request { + r.transferInitializationV1Response = &transferInitializationV1Response + return r +} + +func (r ApiPhase1TransferInitiationResponseV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase1TransferInitiationResponseV1Execute(r) +} + +/* +Phase1TransferInitiationResponseV1 Method for Phase1TransferInitiationResponseV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase1TransferInitiationResponseV1Request +*/ +func (a *DefaultApiService) Phase1TransferInitiationResponseV1(ctx context.Context) ApiPhase1TransferInitiationResponseV1Request { + return ApiPhase1TransferInitiationResponseV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase1TransferInitiationResponseV1Execute(r ApiPhase1TransferInitiationResponseV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase1TransferInitiationResponseV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationresponse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferInitializationV1Response + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase2LockEvidenceRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + lockEvidenceV1Request *LockEvidenceV1Request +} + +func (r ApiPhase2LockEvidenceRequestV1Request) LockEvidenceV1Request(lockEvidenceV1Request LockEvidenceV1Request) ApiPhase2LockEvidenceRequestV1Request { + r.lockEvidenceV1Request = &lockEvidenceV1Request + return r +} + +func (r ApiPhase2LockEvidenceRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase2LockEvidenceRequestV1Execute(r) +} + +/* +Phase2LockEvidenceRequestV1 Method for Phase2LockEvidenceRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase2LockEvidenceRequestV1Request +*/ +func (a *DefaultApiService) Phase2LockEvidenceRequestV1(ctx context.Context) ApiPhase2LockEvidenceRequestV1Request { + return ApiPhase2LockEvidenceRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase2LockEvidenceRequestV1Execute(r ApiPhase2LockEvidenceRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2LockEvidenceRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidencerequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.lockEvidenceV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase2LockEvidenceResponseV1Request struct { + ctx context.Context + ApiService *DefaultApiService + lockEvidenceV1Response *LockEvidenceV1Response +} + +func (r ApiPhase2LockEvidenceResponseV1Request) LockEvidenceV1Response(lockEvidenceV1Response LockEvidenceV1Response) ApiPhase2LockEvidenceResponseV1Request { + r.lockEvidenceV1Response = &lockEvidenceV1Response + return r +} + +func (r ApiPhase2LockEvidenceResponseV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase2LockEvidenceResponseV1Execute(r) +} + +/* +Phase2LockEvidenceResponseV1 Method for Phase2LockEvidenceResponseV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase2LockEvidenceResponseV1Request +*/ +func (a *DefaultApiService) Phase2LockEvidenceResponseV1(ctx context.Context) ApiPhase2LockEvidenceResponseV1Request { + return ApiPhase2LockEvidenceResponseV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase2LockEvidenceResponseV1Execute(r ApiPhase2LockEvidenceResponseV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2LockEvidenceResponseV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidenceresponse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.lockEvidenceV1Response + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase2TransferCommenceRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transferCommenceV1Request *TransferCommenceV1Request +} + +func (r ApiPhase2TransferCommenceRequestV1Request) TransferCommenceV1Request(transferCommenceV1Request TransferCommenceV1Request) ApiPhase2TransferCommenceRequestV1Request { + r.transferCommenceV1Request = &transferCommenceV1Request + return r +} + +func (r ApiPhase2TransferCommenceRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase2TransferCommenceRequestV1Execute(r) +} + +/* +Phase2TransferCommenceRequestV1 Method for Phase2TransferCommenceRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase2TransferCommenceRequestV1Request +*/ +func (a *DefaultApiService) Phase2TransferCommenceRequestV1(ctx context.Context) ApiPhase2TransferCommenceRequestV1Request { + return ApiPhase2TransferCommenceRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase2TransferCommenceRequestV1Execute(r ApiPhase2TransferCommenceRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2TransferCommenceRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommencerequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferCommenceV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase2TransferCommenceResponseV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transferCommenceV1Response *TransferCommenceV1Response +} + +func (r ApiPhase2TransferCommenceResponseV1Request) TransferCommenceV1Response(transferCommenceV1Response TransferCommenceV1Response) ApiPhase2TransferCommenceResponseV1Request { + r.transferCommenceV1Response = &transferCommenceV1Response + return r +} + +func (r ApiPhase2TransferCommenceResponseV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase2TransferCommenceResponseV1Execute(r) +} + +/* +Phase2TransferCommenceResponseV1 Method for Phase2TransferCommenceResponseV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase2TransferCommenceResponseV1Request +*/ +func (a *DefaultApiService) Phase2TransferCommenceResponseV1(ctx context.Context) ApiPhase2TransferCommenceResponseV1Request { + return ApiPhase2TransferCommenceResponseV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase2TransferCommenceResponseV1Execute(r ApiPhase2TransferCommenceResponseV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2TransferCommenceResponseV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommenceresponse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferCommenceV1Response + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase3CommitFinalRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + commitFinalV1Request *CommitFinalV1Request +} + +func (r ApiPhase3CommitFinalRequestV1Request) CommitFinalV1Request(commitFinalV1Request CommitFinalV1Request) ApiPhase3CommitFinalRequestV1Request { + r.commitFinalV1Request = &commitFinalV1Request + return r +} + +func (r ApiPhase3CommitFinalRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase3CommitFinalRequestV1Execute(r) +} + +/* +Phase3CommitFinalRequestV1 Method for Phase3CommitFinalRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase3CommitFinalRequestV1Request +*/ +func (a *DefaultApiService) Phase3CommitFinalRequestV1(ctx context.Context) ApiPhase3CommitFinalRequestV1Request { + return ApiPhase3CommitFinalRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase3CommitFinalRequestV1Execute(r ApiPhase3CommitFinalRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitFinalRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalrequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.commitFinalV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase3CommitFinalResponseV1Request struct { + ctx context.Context + ApiService *DefaultApiService + commitFinalV1Response *CommitFinalV1Response +} + +func (r ApiPhase3CommitFinalResponseV1Request) CommitFinalV1Response(commitFinalV1Response CommitFinalV1Response) ApiPhase3CommitFinalResponseV1Request { + r.commitFinalV1Response = &commitFinalV1Response + return r +} + +func (r ApiPhase3CommitFinalResponseV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase3CommitFinalResponseV1Execute(r) +} + +/* +Phase3CommitFinalResponseV1 Method for Phase3CommitFinalResponseV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase3CommitFinalResponseV1Request +*/ +func (a *DefaultApiService) Phase3CommitFinalResponseV1(ctx context.Context) ApiPhase3CommitFinalResponseV1Request { + return ApiPhase3CommitFinalResponseV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase3CommitFinalResponseV1Execute(r ApiPhase3CommitFinalResponseV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitFinalResponseV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalresponse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.commitFinalV1Response + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase3CommitPreparationRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + commitPreparationV1Request *CommitPreparationV1Request +} + +func (r ApiPhase3CommitPreparationRequestV1Request) CommitPreparationV1Request(commitPreparationV1Request CommitPreparationV1Request) ApiPhase3CommitPreparationRequestV1Request { + r.commitPreparationV1Request = &commitPreparationV1Request + return r +} + +func (r ApiPhase3CommitPreparationRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase3CommitPreparationRequestV1Execute(r) +} + +/* +Phase3CommitPreparationRequestV1 Method for Phase3CommitPreparationRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase3CommitPreparationRequestV1Request +*/ +func (a *DefaultApiService) Phase3CommitPreparationRequestV1(ctx context.Context) ApiPhase3CommitPreparationRequestV1Request { + return ApiPhase3CommitPreparationRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase3CommitPreparationRequestV1Execute(r ApiPhase3CommitPreparationRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitPreparationRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationrequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.commitPreparationV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase3CommitPreparationResponseV1Request struct { + ctx context.Context + ApiService *DefaultApiService + commitPreparationV1Response *CommitPreparationV1Response +} + +func (r ApiPhase3CommitPreparationResponseV1Request) CommitPreparationV1Response(commitPreparationV1Response CommitPreparationV1Response) ApiPhase3CommitPreparationResponseV1Request { + r.commitPreparationV1Response = &commitPreparationV1Response + return r +} + +func (r ApiPhase3CommitPreparationResponseV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase3CommitPreparationResponseV1Execute(r) +} + +/* +Phase3CommitPreparationResponseV1 Method for Phase3CommitPreparationResponseV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase3CommitPreparationResponseV1Request +*/ +func (a *DefaultApiService) Phase3CommitPreparationResponseV1(ctx context.Context) ApiPhase3CommitPreparationResponseV1Request { + return ApiPhase3CommitPreparationResponseV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase3CommitPreparationResponseV1Execute(r ApiPhase3CommitPreparationResponseV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitPreparationResponseV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationresponse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.commitPreparationV1Response + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPhase3TransferCompleteRequestV1Request struct { + ctx context.Context + ApiService *DefaultApiService + transferCompleteV1Request *TransferCompleteV1Request +} + +func (r ApiPhase3TransferCompleteRequestV1Request) TransferCompleteV1Request(transferCompleteV1Request TransferCompleteV1Request) ApiPhase3TransferCompleteRequestV1Request { + r.transferCompleteV1Request = &transferCompleteV1Request + return r +} + +func (r ApiPhase3TransferCompleteRequestV1Request) Execute() (*http.Response, error) { + return r.ApiService.Phase3TransferCompleteRequestV1Execute(r) +} + +/* +Phase3TransferCompleteRequestV1 Method for Phase3TransferCompleteRequestV1 + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPhase3TransferCompleteRequestV1Request +*/ +func (a *DefaultApiService) Phase3TransferCompleteRequestV1(ctx context.Context) ApiPhase3TransferCompleteRequestV1Request { + return ApiPhase3TransferCompleteRequestV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) Phase3TransferCompleteRequestV1Execute(r ApiPhase3TransferCompleteRequestV1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3TransferCompleteRequestV1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/transfercompleterequest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferCompleteV1Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRecoverUpdateAckV1MessageRequest struct { + ctx context.Context + ApiService *DefaultApiService + recoverUpdateAckV1Message *RecoverUpdateAckV1Message +} + +func (r ApiRecoverUpdateAckV1MessageRequest) RecoverUpdateAckV1Message(recoverUpdateAckV1Message RecoverUpdateAckV1Message) ApiRecoverUpdateAckV1MessageRequest { + r.recoverUpdateAckV1Message = &recoverUpdateAckV1Message + return r +} + +func (r ApiRecoverUpdateAckV1MessageRequest) Execute() (*http.Response, error) { + return r.ApiService.RecoverUpdateAckV1MessageExecute(r) +} + +/* +RecoverUpdateAckV1Message Method for RecoverUpdateAckV1Message + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecoverUpdateAckV1MessageRequest +*/ +func (a *DefaultApiService) RecoverUpdateAckV1Message(ctx context.Context) ApiRecoverUpdateAckV1MessageRequest { + return ApiRecoverUpdateAckV1MessageRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RecoverUpdateAckV1MessageExecute(r ApiRecoverUpdateAckV1MessageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverUpdateAckV1Message") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdateackmessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.recoverUpdateAckV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRecoverUpdateV1MessageRequest struct { + ctx context.Context + ApiService *DefaultApiService + recoverUpdateV1Message *RecoverUpdateV1Message +} + +func (r ApiRecoverUpdateV1MessageRequest) RecoverUpdateV1Message(recoverUpdateV1Message RecoverUpdateV1Message) ApiRecoverUpdateV1MessageRequest { + r.recoverUpdateV1Message = &recoverUpdateV1Message + return r +} + +func (r ApiRecoverUpdateV1MessageRequest) Execute() (*http.Response, error) { + return r.ApiService.RecoverUpdateV1MessageExecute(r) +} + +/* +RecoverUpdateV1Message Method for RecoverUpdateV1Message + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecoverUpdateV1MessageRequest +*/ +func (a *DefaultApiService) RecoverUpdateV1Message(ctx context.Context) ApiRecoverUpdateV1MessageRequest { + return ApiRecoverUpdateV1MessageRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RecoverUpdateV1MessageExecute(r ApiRecoverUpdateV1MessageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverUpdateV1Message") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdatemessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.recoverUpdateV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRecoverV1MessageRequest struct { + ctx context.Context + ApiService *DefaultApiService + recoverV1Message *RecoverV1Message +} + +func (r ApiRecoverV1MessageRequest) RecoverV1Message(recoverV1Message RecoverV1Message) ApiRecoverV1MessageRequest { + r.recoverV1Message = &recoverV1Message + return r +} + +func (r ApiRecoverV1MessageRequest) Execute() (*http.Response, error) { + return r.ApiService.RecoverV1MessageExecute(r) +} + +/* +RecoverV1Message Method for RecoverV1Message + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecoverV1MessageRequest +*/ +func (a *DefaultApiService) RecoverV1Message(ctx context.Context) ApiRecoverV1MessageRequest { + return ApiRecoverV1MessageRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RecoverV1MessageExecute(r ApiRecoverV1MessageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverV1Message") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/recovermessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.recoverV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRecoverV1SuccessRequest struct { + ctx context.Context + ApiService *DefaultApiService + recoverSuccessV1Message *RecoverSuccessV1Message +} + +func (r ApiRecoverV1SuccessRequest) RecoverSuccessV1Message(recoverSuccessV1Message RecoverSuccessV1Message) ApiRecoverV1SuccessRequest { + r.recoverSuccessV1Message = &recoverSuccessV1Message + return r +} + +func (r ApiRecoverV1SuccessRequest) Execute() (*http.Response, error) { + return r.ApiService.RecoverV1SuccessExecute(r) +} + +/* +RecoverV1Success Method for RecoverV1Success + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecoverV1SuccessRequest +*/ +func (a *DefaultApiService) RecoverV1Success(ctx context.Context) ApiRecoverV1SuccessRequest { + return ApiRecoverV1SuccessRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RecoverV1SuccessExecute(r ApiRecoverV1SuccessRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverV1Success") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/recoversuccessmessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.recoverSuccessV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRollbackAckV1MessageRequest struct { + ctx context.Context + ApiService *DefaultApiService + rollbackAckV1Message *RollbackAckV1Message +} + +func (r ApiRollbackAckV1MessageRequest) RollbackAckV1Message(rollbackAckV1Message RollbackAckV1Message) ApiRollbackAckV1MessageRequest { + r.rollbackAckV1Message = &rollbackAckV1Message + return r +} + +func (r ApiRollbackAckV1MessageRequest) Execute() (*http.Response, error) { + return r.ApiService.RollbackAckV1MessageExecute(r) +} + +/* +RollbackAckV1Message Method for RollbackAckV1Message + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRollbackAckV1MessageRequest +*/ +func (a *DefaultApiService) RollbackAckV1Message(ctx context.Context) ApiRollbackAckV1MessageRequest { + return ApiRollbackAckV1MessageRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RollbackAckV1MessageExecute(r ApiRollbackAckV1MessageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RollbackAckV1Message") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackackmessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rollbackAckV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRollbackV1MessageRequest struct { + ctx context.Context + ApiService *DefaultApiService + rollbackV1Message *RollbackV1Message +} + +func (r ApiRollbackV1MessageRequest) RollbackV1Message(rollbackV1Message RollbackV1Message) ApiRollbackV1MessageRequest { + r.rollbackV1Message = &rollbackV1Message + return r +} + +func (r ApiRollbackV1MessageRequest) Execute() (*http.Response, error) { + return r.ApiService.RollbackV1MessageExecute(r) +} + +/* +RollbackV1Message Method for RollbackV1Message + + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRollbackV1MessageRequest +*/ +func (a *DefaultApiService) RollbackV1Message(ctx context.Context) ApiRollbackV1MessageRequest { + return ApiRollbackV1MessageRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) RollbackV1MessageExecute(r ApiRollbackV1MessageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RollbackV1Message") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackmessage" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rollbackV1Message + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..181cb2dc415 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Odap Hermes API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..68fb29b878f --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/AssetProfile.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/AssetProfile.md new file mode 100644 index 00000000000..0f3c47102bd --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/AssetProfile.md @@ -0,0 +1,337 @@ +# AssetProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Issuer** | Pointer to **string** | | [optional] +**AssetCode** | Pointer to **string** | | [optional] +**AssetCodeType** | Pointer to **string** | | [optional] +**IssuanceDate** | Pointer to **string** | | [optional] +**ExpirationDate** | **string** | | +**VerificationEndPoint** | Pointer to **string** | | [optional] +**DigitalSignature** | Pointer to **string** | | [optional] +**ProspectusLink** | Pointer to **string** | | [optional] +**KeyInformationLink** | Pointer to **[]interface{}** | | [optional] +**KeyWord** | Pointer to **[]interface{}** | | [optional] +**TransferRestriction** | Pointer to **[]interface{}** | | [optional] +**LedgerRequirements** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewAssetProfile + +`func NewAssetProfile(expirationDate string, ) *AssetProfile` + +NewAssetProfile instantiates a new AssetProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAssetProfileWithDefaults + +`func NewAssetProfileWithDefaults() *AssetProfile` + +NewAssetProfileWithDefaults instantiates a new AssetProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIssuer + +`func (o *AssetProfile) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *AssetProfile) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *AssetProfile) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + +### HasIssuer + +`func (o *AssetProfile) HasIssuer() bool` + +HasIssuer returns a boolean if a field has been set. + +### GetAssetCode + +`func (o *AssetProfile) GetAssetCode() string` + +GetAssetCode returns the AssetCode field if non-nil, zero value otherwise. + +### GetAssetCodeOk + +`func (o *AssetProfile) GetAssetCodeOk() (*string, bool)` + +GetAssetCodeOk returns a tuple with the AssetCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetCode + +`func (o *AssetProfile) SetAssetCode(v string)` + +SetAssetCode sets AssetCode field to given value. + +### HasAssetCode + +`func (o *AssetProfile) HasAssetCode() bool` + +HasAssetCode returns a boolean if a field has been set. + +### GetAssetCodeType + +`func (o *AssetProfile) GetAssetCodeType() string` + +GetAssetCodeType returns the AssetCodeType field if non-nil, zero value otherwise. + +### GetAssetCodeTypeOk + +`func (o *AssetProfile) GetAssetCodeTypeOk() (*string, bool)` + +GetAssetCodeTypeOk returns a tuple with the AssetCodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetCodeType + +`func (o *AssetProfile) SetAssetCodeType(v string)` + +SetAssetCodeType sets AssetCodeType field to given value. + +### HasAssetCodeType + +`func (o *AssetProfile) HasAssetCodeType() bool` + +HasAssetCodeType returns a boolean if a field has been set. + +### GetIssuanceDate + +`func (o *AssetProfile) GetIssuanceDate() string` + +GetIssuanceDate returns the IssuanceDate field if non-nil, zero value otherwise. + +### GetIssuanceDateOk + +`func (o *AssetProfile) GetIssuanceDateOk() (*string, bool)` + +GetIssuanceDateOk returns a tuple with the IssuanceDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceDate + +`func (o *AssetProfile) SetIssuanceDate(v string)` + +SetIssuanceDate sets IssuanceDate field to given value. + +### HasIssuanceDate + +`func (o *AssetProfile) HasIssuanceDate() bool` + +HasIssuanceDate returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *AssetProfile) GetExpirationDate() string` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *AssetProfile) GetExpirationDateOk() (*string, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *AssetProfile) SetExpirationDate(v string)` + +SetExpirationDate sets ExpirationDate field to given value. + + +### GetVerificationEndPoint + +`func (o *AssetProfile) GetVerificationEndPoint() string` + +GetVerificationEndPoint returns the VerificationEndPoint field if non-nil, zero value otherwise. + +### GetVerificationEndPointOk + +`func (o *AssetProfile) GetVerificationEndPointOk() (*string, bool)` + +GetVerificationEndPointOk returns a tuple with the VerificationEndPoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerificationEndPoint + +`func (o *AssetProfile) SetVerificationEndPoint(v string)` + +SetVerificationEndPoint sets VerificationEndPoint field to given value. + +### HasVerificationEndPoint + +`func (o *AssetProfile) HasVerificationEndPoint() bool` + +HasVerificationEndPoint returns a boolean if a field has been set. + +### GetDigitalSignature + +`func (o *AssetProfile) GetDigitalSignature() string` + +GetDigitalSignature returns the DigitalSignature field if non-nil, zero value otherwise. + +### GetDigitalSignatureOk + +`func (o *AssetProfile) GetDigitalSignatureOk() (*string, bool)` + +GetDigitalSignatureOk returns a tuple with the DigitalSignature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigitalSignature + +`func (o *AssetProfile) SetDigitalSignature(v string)` + +SetDigitalSignature sets DigitalSignature field to given value. + +### HasDigitalSignature + +`func (o *AssetProfile) HasDigitalSignature() bool` + +HasDigitalSignature returns a boolean if a field has been set. + +### GetProspectusLink + +`func (o *AssetProfile) GetProspectusLink() string` + +GetProspectusLink returns the ProspectusLink field if non-nil, zero value otherwise. + +### GetProspectusLinkOk + +`func (o *AssetProfile) GetProspectusLinkOk() (*string, bool)` + +GetProspectusLinkOk returns a tuple with the ProspectusLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProspectusLink + +`func (o *AssetProfile) SetProspectusLink(v string)` + +SetProspectusLink sets ProspectusLink field to given value. + +### HasProspectusLink + +`func (o *AssetProfile) HasProspectusLink() bool` + +HasProspectusLink returns a boolean if a field has been set. + +### GetKeyInformationLink + +`func (o *AssetProfile) GetKeyInformationLink() []interface{}` + +GetKeyInformationLink returns the KeyInformationLink field if non-nil, zero value otherwise. + +### GetKeyInformationLinkOk + +`func (o *AssetProfile) GetKeyInformationLinkOk() (*[]interface{}, bool)` + +GetKeyInformationLinkOk returns a tuple with the KeyInformationLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInformationLink + +`func (o *AssetProfile) SetKeyInformationLink(v []interface{})` + +SetKeyInformationLink sets KeyInformationLink field to given value. + +### HasKeyInformationLink + +`func (o *AssetProfile) HasKeyInformationLink() bool` + +HasKeyInformationLink returns a boolean if a field has been set. + +### GetKeyWord + +`func (o *AssetProfile) GetKeyWord() []interface{}` + +GetKeyWord returns the KeyWord field if non-nil, zero value otherwise. + +### GetKeyWordOk + +`func (o *AssetProfile) GetKeyWordOk() (*[]interface{}, bool)` + +GetKeyWordOk returns a tuple with the KeyWord field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyWord + +`func (o *AssetProfile) SetKeyWord(v []interface{})` + +SetKeyWord sets KeyWord field to given value. + +### HasKeyWord + +`func (o *AssetProfile) HasKeyWord() bool` + +HasKeyWord returns a boolean if a field has been set. + +### GetTransferRestriction + +`func (o *AssetProfile) GetTransferRestriction() []interface{}` + +GetTransferRestriction returns the TransferRestriction field if non-nil, zero value otherwise. + +### GetTransferRestrictionOk + +`func (o *AssetProfile) GetTransferRestrictionOk() (*[]interface{}, bool)` + +GetTransferRestrictionOk returns a tuple with the TransferRestriction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferRestriction + +`func (o *AssetProfile) SetTransferRestriction(v []interface{})` + +SetTransferRestriction sets TransferRestriction field to given value. + +### HasTransferRestriction + +`func (o *AssetProfile) HasTransferRestriction() bool` + +HasTransferRestriction returns a boolean if a field has been set. + +### GetLedgerRequirements + +`func (o *AssetProfile) GetLedgerRequirements() []interface{}` + +GetLedgerRequirements returns the LedgerRequirements field if non-nil, zero value otherwise. + +### GetLedgerRequirementsOk + +`func (o *AssetProfile) GetLedgerRequirementsOk() (*[]interface{}, bool)` + +GetLedgerRequirementsOk returns a tuple with the LedgerRequirements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerRequirements + +`func (o *AssetProfile) SetLedgerRequirements(v []interface{})` + +SetLedgerRequirements sets LedgerRequirements field to given value. + +### HasLedgerRequirements + +`func (o *AssetProfile) HasLedgerRequirements() bool` + +HasLedgerRequirements returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1Request.md new file mode 100644 index 00000000000..c98e32d0a79 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1Request.md @@ -0,0 +1,492 @@ +# ClientV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | | +**LoggingProfile** | **string** | | +**AccessControlProfile** | **string** | | +**AssetControlProfile** | **string** | | +**ApplicationProfile** | **string** | | +**AssetProfile** | [**AssetProfile**](AssetProfile.md) | | +**PayloadProfile** | [**PayloadProfile**](PayloadProfile.md) | | +**SourceGatewayDltSystem** | **string** | | +**RecipientGatewayDltSystem** | **string** | | +**RecipientGatewayPubkey** | **string** | | +**OriginatorPubkey** | **string** | | +**BeneficiaryPubkey** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**ClientDltSystem** | **string** | | +**ServerDltSystem** | **string** | | +**ClientGatewayConfiguration** | [**ClientV1RequestClientGatewayConfiguration**](ClientV1RequestClientGatewayConfiguration.md) | | +**ServerGatewayConfiguration** | [**ClientV1RequestClientGatewayConfiguration**](ClientV1RequestClientGatewayConfiguration.md) | | +**MaxRetries** | **float32** | | +**MaxTimeout** | **float32** | | +**SourceLedgerAssetID** | **string** | | +**RecipientLedgerAssetID** | **string** | | + +## Methods + +### NewClientV1Request + +`func NewClientV1Request(version string, loggingProfile string, accessControlProfile string, assetControlProfile string, applicationProfile string, assetProfile AssetProfile, payloadProfile PayloadProfile, sourceGatewayDltSystem string, recipientGatewayDltSystem string, recipientGatewayPubkey string, originatorPubkey string, beneficiaryPubkey string, clientIdentityPubkey string, serverIdentityPubkey string, clientDltSystem string, serverDltSystem string, clientGatewayConfiguration ClientV1RequestClientGatewayConfiguration, serverGatewayConfiguration ClientV1RequestClientGatewayConfiguration, maxRetries float32, maxTimeout float32, sourceLedgerAssetID string, recipientLedgerAssetID string, ) *ClientV1Request` + +NewClientV1Request instantiates a new ClientV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientV1RequestWithDefaults + +`func NewClientV1RequestWithDefaults() *ClientV1Request` + +NewClientV1RequestWithDefaults instantiates a new ClientV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVersion + +`func (o *ClientV1Request) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ClientV1Request) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ClientV1Request) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetLoggingProfile + +`func (o *ClientV1Request) GetLoggingProfile() string` + +GetLoggingProfile returns the LoggingProfile field if non-nil, zero value otherwise. + +### GetLoggingProfileOk + +`func (o *ClientV1Request) GetLoggingProfileOk() (*string, bool)` + +GetLoggingProfileOk returns a tuple with the LoggingProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoggingProfile + +`func (o *ClientV1Request) SetLoggingProfile(v string)` + +SetLoggingProfile sets LoggingProfile field to given value. + + +### GetAccessControlProfile + +`func (o *ClientV1Request) GetAccessControlProfile() string` + +GetAccessControlProfile returns the AccessControlProfile field if non-nil, zero value otherwise. + +### GetAccessControlProfileOk + +`func (o *ClientV1Request) GetAccessControlProfileOk() (*string, bool)` + +GetAccessControlProfileOk returns a tuple with the AccessControlProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessControlProfile + +`func (o *ClientV1Request) SetAccessControlProfile(v string)` + +SetAccessControlProfile sets AccessControlProfile field to given value. + + +### GetAssetControlProfile + +`func (o *ClientV1Request) GetAssetControlProfile() string` + +GetAssetControlProfile returns the AssetControlProfile field if non-nil, zero value otherwise. + +### GetAssetControlProfileOk + +`func (o *ClientV1Request) GetAssetControlProfileOk() (*string, bool)` + +GetAssetControlProfileOk returns a tuple with the AssetControlProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetControlProfile + +`func (o *ClientV1Request) SetAssetControlProfile(v string)` + +SetAssetControlProfile sets AssetControlProfile field to given value. + + +### GetApplicationProfile + +`func (o *ClientV1Request) GetApplicationProfile() string` + +GetApplicationProfile returns the ApplicationProfile field if non-nil, zero value otherwise. + +### GetApplicationProfileOk + +`func (o *ClientV1Request) GetApplicationProfileOk() (*string, bool)` + +GetApplicationProfileOk returns a tuple with the ApplicationProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationProfile + +`func (o *ClientV1Request) SetApplicationProfile(v string)` + +SetApplicationProfile sets ApplicationProfile field to given value. + + +### GetAssetProfile + +`func (o *ClientV1Request) GetAssetProfile() AssetProfile` + +GetAssetProfile returns the AssetProfile field if non-nil, zero value otherwise. + +### GetAssetProfileOk + +`func (o *ClientV1Request) GetAssetProfileOk() (*AssetProfile, bool)` + +GetAssetProfileOk returns a tuple with the AssetProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetProfile + +`func (o *ClientV1Request) SetAssetProfile(v AssetProfile)` + +SetAssetProfile sets AssetProfile field to given value. + + +### GetPayloadProfile + +`func (o *ClientV1Request) GetPayloadProfile() PayloadProfile` + +GetPayloadProfile returns the PayloadProfile field if non-nil, zero value otherwise. + +### GetPayloadProfileOk + +`func (o *ClientV1Request) GetPayloadProfileOk() (*PayloadProfile, bool)` + +GetPayloadProfileOk returns a tuple with the PayloadProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayloadProfile + +`func (o *ClientV1Request) SetPayloadProfile(v PayloadProfile)` + +SetPayloadProfile sets PayloadProfile field to given value. + + +### GetSourceGatewayDltSystem + +`func (o *ClientV1Request) GetSourceGatewayDltSystem() string` + +GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field if non-nil, zero value otherwise. + +### GetSourceGatewayDltSystemOk + +`func (o *ClientV1Request) GetSourceGatewayDltSystemOk() (*string, bool)` + +GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceGatewayDltSystem + +`func (o *ClientV1Request) SetSourceGatewayDltSystem(v string)` + +SetSourceGatewayDltSystem sets SourceGatewayDltSystem field to given value. + + +### GetRecipientGatewayDltSystem + +`func (o *ClientV1Request) GetRecipientGatewayDltSystem() string` + +GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field if non-nil, zero value otherwise. + +### GetRecipientGatewayDltSystemOk + +`func (o *ClientV1Request) GetRecipientGatewayDltSystemOk() (*string, bool)` + +GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayDltSystem + +`func (o *ClientV1Request) SetRecipientGatewayDltSystem(v string)` + +SetRecipientGatewayDltSystem sets RecipientGatewayDltSystem field to given value. + + +### GetRecipientGatewayPubkey + +`func (o *ClientV1Request) GetRecipientGatewayPubkey() string` + +GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field if non-nil, zero value otherwise. + +### GetRecipientGatewayPubkeyOk + +`func (o *ClientV1Request) GetRecipientGatewayPubkeyOk() (*string, bool)` + +GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayPubkey + +`func (o *ClientV1Request) SetRecipientGatewayPubkey(v string)` + +SetRecipientGatewayPubkey sets RecipientGatewayPubkey field to given value. + + +### GetOriginatorPubkey + +`func (o *ClientV1Request) GetOriginatorPubkey() string` + +GetOriginatorPubkey returns the OriginatorPubkey field if non-nil, zero value otherwise. + +### GetOriginatorPubkeyOk + +`func (o *ClientV1Request) GetOriginatorPubkeyOk() (*string, bool)` + +GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginatorPubkey + +`func (o *ClientV1Request) SetOriginatorPubkey(v string)` + +SetOriginatorPubkey sets OriginatorPubkey field to given value. + + +### GetBeneficiaryPubkey + +`func (o *ClientV1Request) GetBeneficiaryPubkey() string` + +GetBeneficiaryPubkey returns the BeneficiaryPubkey field if non-nil, zero value otherwise. + +### GetBeneficiaryPubkeyOk + +`func (o *ClientV1Request) GetBeneficiaryPubkeyOk() (*string, bool)` + +GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBeneficiaryPubkey + +`func (o *ClientV1Request) SetBeneficiaryPubkey(v string)` + +SetBeneficiaryPubkey sets BeneficiaryPubkey field to given value. + + +### GetClientIdentityPubkey + +`func (o *ClientV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *ClientV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *ClientV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *ClientV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *ClientV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *ClientV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetClientDltSystem + +`func (o *ClientV1Request) GetClientDltSystem() string` + +GetClientDltSystem returns the ClientDltSystem field if non-nil, zero value otherwise. + +### GetClientDltSystemOk + +`func (o *ClientV1Request) GetClientDltSystemOk() (*string, bool)` + +GetClientDltSystemOk returns a tuple with the ClientDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientDltSystem + +`func (o *ClientV1Request) SetClientDltSystem(v string)` + +SetClientDltSystem sets ClientDltSystem field to given value. + + +### GetServerDltSystem + +`func (o *ClientV1Request) GetServerDltSystem() string` + +GetServerDltSystem returns the ServerDltSystem field if non-nil, zero value otherwise. + +### GetServerDltSystemOk + +`func (o *ClientV1Request) GetServerDltSystemOk() (*string, bool)` + +GetServerDltSystemOk returns a tuple with the ServerDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerDltSystem + +`func (o *ClientV1Request) SetServerDltSystem(v string)` + +SetServerDltSystem sets ServerDltSystem field to given value. + + +### GetClientGatewayConfiguration + +`func (o *ClientV1Request) GetClientGatewayConfiguration() ClientV1RequestClientGatewayConfiguration` + +GetClientGatewayConfiguration returns the ClientGatewayConfiguration field if non-nil, zero value otherwise. + +### GetClientGatewayConfigurationOk + +`func (o *ClientV1Request) GetClientGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool)` + +GetClientGatewayConfigurationOk returns a tuple with the ClientGatewayConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientGatewayConfiguration + +`func (o *ClientV1Request) SetClientGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration)` + +SetClientGatewayConfiguration sets ClientGatewayConfiguration field to given value. + + +### GetServerGatewayConfiguration + +`func (o *ClientV1Request) GetServerGatewayConfiguration() ClientV1RequestClientGatewayConfiguration` + +GetServerGatewayConfiguration returns the ServerGatewayConfiguration field if non-nil, zero value otherwise. + +### GetServerGatewayConfigurationOk + +`func (o *ClientV1Request) GetServerGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool)` + +GetServerGatewayConfigurationOk returns a tuple with the ServerGatewayConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGatewayConfiguration + +`func (o *ClientV1Request) SetServerGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration)` + +SetServerGatewayConfiguration sets ServerGatewayConfiguration field to given value. + + +### GetMaxRetries + +`func (o *ClientV1Request) GetMaxRetries() float32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *ClientV1Request) GetMaxRetriesOk() (*float32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *ClientV1Request) SetMaxRetries(v float32)` + +SetMaxRetries sets MaxRetries field to given value. + + +### GetMaxTimeout + +`func (o *ClientV1Request) GetMaxTimeout() float32` + +GetMaxTimeout returns the MaxTimeout field if non-nil, zero value otherwise. + +### GetMaxTimeoutOk + +`func (o *ClientV1Request) GetMaxTimeoutOk() (*float32, bool)` + +GetMaxTimeoutOk returns a tuple with the MaxTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTimeout + +`func (o *ClientV1Request) SetMaxTimeout(v float32)` + +SetMaxTimeout sets MaxTimeout field to given value. + + +### GetSourceLedgerAssetID + +`func (o *ClientV1Request) GetSourceLedgerAssetID() string` + +GetSourceLedgerAssetID returns the SourceLedgerAssetID field if non-nil, zero value otherwise. + +### GetSourceLedgerAssetIDOk + +`func (o *ClientV1Request) GetSourceLedgerAssetIDOk() (*string, bool)` + +GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLedgerAssetID + +`func (o *ClientV1Request) SetSourceLedgerAssetID(v string)` + +SetSourceLedgerAssetID sets SourceLedgerAssetID field to given value. + + +### GetRecipientLedgerAssetID + +`func (o *ClientV1Request) GetRecipientLedgerAssetID() string` + +GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field if non-nil, zero value otherwise. + +### GetRecipientLedgerAssetIDOk + +`func (o *ClientV1Request) GetRecipientLedgerAssetIDOk() (*string, bool)` + +GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientLedgerAssetID + +`func (o *ClientV1Request) SetRecipientLedgerAssetID(v string)` + +SetRecipientLedgerAssetID sets RecipientLedgerAssetID field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1RequestClientGatewayConfiguration.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1RequestClientGatewayConfiguration.md new file mode 100644 index 00000000000..883f9b7d951 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/ClientV1RequestClientGatewayConfiguration.md @@ -0,0 +1,51 @@ +# ClientV1RequestClientGatewayConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiHost** | **string** | | + +## Methods + +### NewClientV1RequestClientGatewayConfiguration + +`func NewClientV1RequestClientGatewayConfiguration(apiHost string, ) *ClientV1RequestClientGatewayConfiguration` + +NewClientV1RequestClientGatewayConfiguration instantiates a new ClientV1RequestClientGatewayConfiguration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientV1RequestClientGatewayConfigurationWithDefaults + +`func NewClientV1RequestClientGatewayConfigurationWithDefaults() *ClientV1RequestClientGatewayConfiguration` + +NewClientV1RequestClientGatewayConfigurationWithDefaults instantiates a new ClientV1RequestClientGatewayConfiguration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiHost + +`func (o *ClientV1RequestClientGatewayConfiguration) GetApiHost() string` + +GetApiHost returns the ApiHost field if non-nil, zero value otherwise. + +### GetApiHostOk + +`func (o *ClientV1RequestClientGatewayConfiguration) GetApiHostOk() (*string, bool)` + +GetApiHostOk returns a tuple with the ApiHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiHost + +`func (o *ClientV1RequestClientGatewayConfiguration) SetApiHost(v string)` + +SetApiHost sets ApiHost field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Request.md new file mode 100644 index 00000000000..131bf35ceb2 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Request.md @@ -0,0 +1,260 @@ +# CommitFinalV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**CommitFinalClaim** | **string** | | +**CommitFinalClaimFormat** | Pointer to **map[string]interface{}** | | [optional] +**HashCommitPrepareAck** | **string** | | +**ClientTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewCommitFinalV1Request + +`func NewCommitFinalV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitFinalClaim string, hashCommitPrepareAck string, signature string, sequenceNumber float32, ) *CommitFinalV1Request` + +NewCommitFinalV1Request instantiates a new CommitFinalV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCommitFinalV1RequestWithDefaults + +`func NewCommitFinalV1RequestWithDefaults() *CommitFinalV1Request` + +NewCommitFinalV1RequestWithDefaults instantiates a new CommitFinalV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *CommitFinalV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *CommitFinalV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *CommitFinalV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *CommitFinalV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *CommitFinalV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *CommitFinalV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetClientIdentityPubkey + +`func (o *CommitFinalV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *CommitFinalV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *CommitFinalV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *CommitFinalV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *CommitFinalV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *CommitFinalV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetCommitFinalClaim + +`func (o *CommitFinalV1Request) GetCommitFinalClaim() string` + +GetCommitFinalClaim returns the CommitFinalClaim field if non-nil, zero value otherwise. + +### GetCommitFinalClaimOk + +`func (o *CommitFinalV1Request) GetCommitFinalClaimOk() (*string, bool)` + +GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalClaim + +`func (o *CommitFinalV1Request) SetCommitFinalClaim(v string)` + +SetCommitFinalClaim sets CommitFinalClaim field to given value. + + +### GetCommitFinalClaimFormat + +`func (o *CommitFinalV1Request) GetCommitFinalClaimFormat() map[string]interface{}` + +GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field if non-nil, zero value otherwise. + +### GetCommitFinalClaimFormatOk + +`func (o *CommitFinalV1Request) GetCommitFinalClaimFormatOk() (*map[string]interface{}, bool)` + +GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalClaimFormat + +`func (o *CommitFinalV1Request) SetCommitFinalClaimFormat(v map[string]interface{})` + +SetCommitFinalClaimFormat sets CommitFinalClaimFormat field to given value. + +### HasCommitFinalClaimFormat + +`func (o *CommitFinalV1Request) HasCommitFinalClaimFormat() bool` + +HasCommitFinalClaimFormat returns a boolean if a field has been set. + +### GetHashCommitPrepareAck + +`func (o *CommitFinalV1Request) GetHashCommitPrepareAck() string` + +GetHashCommitPrepareAck returns the HashCommitPrepareAck field if non-nil, zero value otherwise. + +### GetHashCommitPrepareAckOk + +`func (o *CommitFinalV1Request) GetHashCommitPrepareAckOk() (*string, bool)` + +GetHashCommitPrepareAckOk returns a tuple with the HashCommitPrepareAck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommitPrepareAck + +`func (o *CommitFinalV1Request) SetHashCommitPrepareAck(v string)` + +SetHashCommitPrepareAck sets HashCommitPrepareAck field to given value. + + +### GetClientTransferNumber + +`func (o *CommitFinalV1Request) GetClientTransferNumber() int32` + +GetClientTransferNumber returns the ClientTransferNumber field if non-nil, zero value otherwise. + +### GetClientTransferNumberOk + +`func (o *CommitFinalV1Request) GetClientTransferNumberOk() (*int32, bool)` + +GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTransferNumber + +`func (o *CommitFinalV1Request) SetClientTransferNumber(v int32)` + +SetClientTransferNumber sets ClientTransferNumber field to given value. + +### HasClientTransferNumber + +`func (o *CommitFinalV1Request) HasClientTransferNumber() bool` + +HasClientTransferNumber returns a boolean if a field has been set. + +### SetClientTransferNumberNil + +`func (o *CommitFinalV1Request) SetClientTransferNumberNil(b bool)` + + SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil + +### UnsetClientTransferNumber +`func (o *CommitFinalV1Request) UnsetClientTransferNumber()` + +UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +### GetSignature + +`func (o *CommitFinalV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *CommitFinalV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *CommitFinalV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSequenceNumber + +`func (o *CommitFinalV1Request) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *CommitFinalV1Request) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *CommitFinalV1Request) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Response.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Response.md new file mode 100644 index 00000000000..0137b48470b --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitFinalV1Response.md @@ -0,0 +1,250 @@ +# CommitFinalV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**CommitAcknowledgementClaim** | **string** | | +**CommitAcknowledgementClaimFormat** | Pointer to **map[string]interface{}** | | [optional] +**HashCommitFinal** | **string** | | +**ServerTransferNumber** | Pointer to **int32** | | [optional] +**Signature** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewCommitFinalV1Response + +`func NewCommitFinalV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitAcknowledgementClaim string, hashCommitFinal string, signature string, sequenceNumber float32, ) *CommitFinalV1Response` + +NewCommitFinalV1Response instantiates a new CommitFinalV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCommitFinalV1ResponseWithDefaults + +`func NewCommitFinalV1ResponseWithDefaults() *CommitFinalV1Response` + +NewCommitFinalV1ResponseWithDefaults instantiates a new CommitFinalV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *CommitFinalV1Response) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *CommitFinalV1Response) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *CommitFinalV1Response) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *CommitFinalV1Response) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *CommitFinalV1Response) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *CommitFinalV1Response) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetClientIdentityPubkey + +`func (o *CommitFinalV1Response) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *CommitFinalV1Response) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *CommitFinalV1Response) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *CommitFinalV1Response) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *CommitFinalV1Response) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *CommitFinalV1Response) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetCommitAcknowledgementClaim + +`func (o *CommitFinalV1Response) GetCommitAcknowledgementClaim() string` + +GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field if non-nil, zero value otherwise. + +### GetCommitAcknowledgementClaimOk + +`func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimOk() (*string, bool)` + +GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitAcknowledgementClaim + +`func (o *CommitFinalV1Response) SetCommitAcknowledgementClaim(v string)` + +SetCommitAcknowledgementClaim sets CommitAcknowledgementClaim field to given value. + + +### GetCommitAcknowledgementClaimFormat + +`func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormat() map[string]interface{}` + +GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field if non-nil, zero value otherwise. + +### GetCommitAcknowledgementClaimFormatOk + +`func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormatOk() (*map[string]interface{}, bool)` + +GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitAcknowledgementClaimFormat + +`func (o *CommitFinalV1Response) SetCommitAcknowledgementClaimFormat(v map[string]interface{})` + +SetCommitAcknowledgementClaimFormat sets CommitAcknowledgementClaimFormat field to given value. + +### HasCommitAcknowledgementClaimFormat + +`func (o *CommitFinalV1Response) HasCommitAcknowledgementClaimFormat() bool` + +HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. + +### GetHashCommitFinal + +`func (o *CommitFinalV1Response) GetHashCommitFinal() string` + +GetHashCommitFinal returns the HashCommitFinal field if non-nil, zero value otherwise. + +### GetHashCommitFinalOk + +`func (o *CommitFinalV1Response) GetHashCommitFinalOk() (*string, bool)` + +GetHashCommitFinalOk returns a tuple with the HashCommitFinal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommitFinal + +`func (o *CommitFinalV1Response) SetHashCommitFinal(v string)` + +SetHashCommitFinal sets HashCommitFinal field to given value. + + +### GetServerTransferNumber + +`func (o *CommitFinalV1Response) GetServerTransferNumber() int32` + +GetServerTransferNumber returns the ServerTransferNumber field if non-nil, zero value otherwise. + +### GetServerTransferNumberOk + +`func (o *CommitFinalV1Response) GetServerTransferNumberOk() (*int32, bool)` + +GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerTransferNumber + +`func (o *CommitFinalV1Response) SetServerTransferNumber(v int32)` + +SetServerTransferNumber sets ServerTransferNumber field to given value. + +### HasServerTransferNumber + +`func (o *CommitFinalV1Response) HasServerTransferNumber() bool` + +HasServerTransferNumber returns a boolean if a field has been set. + +### GetSignature + +`func (o *CommitFinalV1Response) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *CommitFinalV1Response) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *CommitFinalV1Response) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSequenceNumber + +`func (o *CommitFinalV1Response) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *CommitFinalV1Response) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *CommitFinalV1Response) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Request.md new file mode 100644 index 00000000000..bb3c9174867 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Request.md @@ -0,0 +1,203 @@ +# CommitPreparationV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashLockEvidenceAck** | **string** | | +**ClientTransferNumber** | Pointer to **int32** | | [optional] +**Signature** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewCommitPreparationV1Request + +`func NewCommitPreparationV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceAck string, signature string, sequenceNumber float32, ) *CommitPreparationV1Request` + +NewCommitPreparationV1Request instantiates a new CommitPreparationV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCommitPreparationV1RequestWithDefaults + +`func NewCommitPreparationV1RequestWithDefaults() *CommitPreparationV1Request` + +NewCommitPreparationV1RequestWithDefaults instantiates a new CommitPreparationV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *CommitPreparationV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *CommitPreparationV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *CommitPreparationV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *CommitPreparationV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *CommitPreparationV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *CommitPreparationV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetClientIdentityPubkey + +`func (o *CommitPreparationV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *CommitPreparationV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *CommitPreparationV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *CommitPreparationV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *CommitPreparationV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *CommitPreparationV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashLockEvidenceAck + +`func (o *CommitPreparationV1Request) GetHashLockEvidenceAck() string` + +GetHashLockEvidenceAck returns the HashLockEvidenceAck field if non-nil, zero value otherwise. + +### GetHashLockEvidenceAckOk + +`func (o *CommitPreparationV1Request) GetHashLockEvidenceAckOk() (*string, bool)` + +GetHashLockEvidenceAckOk returns a tuple with the HashLockEvidenceAck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashLockEvidenceAck + +`func (o *CommitPreparationV1Request) SetHashLockEvidenceAck(v string)` + +SetHashLockEvidenceAck sets HashLockEvidenceAck field to given value. + + +### GetClientTransferNumber + +`func (o *CommitPreparationV1Request) GetClientTransferNumber() int32` + +GetClientTransferNumber returns the ClientTransferNumber field if non-nil, zero value otherwise. + +### GetClientTransferNumberOk + +`func (o *CommitPreparationV1Request) GetClientTransferNumberOk() (*int32, bool)` + +GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTransferNumber + +`func (o *CommitPreparationV1Request) SetClientTransferNumber(v int32)` + +SetClientTransferNumber sets ClientTransferNumber field to given value. + +### HasClientTransferNumber + +`func (o *CommitPreparationV1Request) HasClientTransferNumber() bool` + +HasClientTransferNumber returns a boolean if a field has been set. + +### GetSignature + +`func (o *CommitPreparationV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *CommitPreparationV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *CommitPreparationV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSequenceNumber + +`func (o *CommitPreparationV1Request) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *CommitPreparationV1Request) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *CommitPreparationV1Request) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Response.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Response.md new file mode 100644 index 00000000000..cb0c47d8c31 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CommitPreparationV1Response.md @@ -0,0 +1,203 @@ +# CommitPreparationV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashCommitPrep** | **string** | | +**ServerTransferNumber** | Pointer to **string** | | [optional] +**Signature** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewCommitPreparationV1Response + +`func NewCommitPreparationV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitPrep string, signature string, sequenceNumber float32, ) *CommitPreparationV1Response` + +NewCommitPreparationV1Response instantiates a new CommitPreparationV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCommitPreparationV1ResponseWithDefaults + +`func NewCommitPreparationV1ResponseWithDefaults() *CommitPreparationV1Response` + +NewCommitPreparationV1ResponseWithDefaults instantiates a new CommitPreparationV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *CommitPreparationV1Response) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *CommitPreparationV1Response) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *CommitPreparationV1Response) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *CommitPreparationV1Response) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *CommitPreparationV1Response) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *CommitPreparationV1Response) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetClientIdentityPubkey + +`func (o *CommitPreparationV1Response) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *CommitPreparationV1Response) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *CommitPreparationV1Response) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *CommitPreparationV1Response) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *CommitPreparationV1Response) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *CommitPreparationV1Response) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashCommitPrep + +`func (o *CommitPreparationV1Response) GetHashCommitPrep() string` + +GetHashCommitPrep returns the HashCommitPrep field if non-nil, zero value otherwise. + +### GetHashCommitPrepOk + +`func (o *CommitPreparationV1Response) GetHashCommitPrepOk() (*string, bool)` + +GetHashCommitPrepOk returns a tuple with the HashCommitPrep field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommitPrep + +`func (o *CommitPreparationV1Response) SetHashCommitPrep(v string)` + +SetHashCommitPrep sets HashCommitPrep field to given value. + + +### GetServerTransferNumber + +`func (o *CommitPreparationV1Response) GetServerTransferNumber() string` + +GetServerTransferNumber returns the ServerTransferNumber field if non-nil, zero value otherwise. + +### GetServerTransferNumberOk + +`func (o *CommitPreparationV1Response) GetServerTransferNumberOk() (*string, bool)` + +GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerTransferNumber + +`func (o *CommitPreparationV1Response) SetServerTransferNumber(v string)` + +SetServerTransferNumber sets ServerTransferNumber field to given value. + +### HasServerTransferNumber + +`func (o *CommitPreparationV1Response) HasServerTransferNumber() bool` + +HasServerTransferNumber returns a boolean if a field has been set. + +### GetSignature + +`func (o *CommitPreparationV1Response) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *CommitPreparationV1Response) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *CommitPreparationV1Response) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSequenceNumber + +`func (o *CommitPreparationV1Response) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *CommitPreparationV1Response) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *CommitPreparationV1Response) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CredentialProfile.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CredentialProfile.md new file mode 100644 index 00000000000..19497ed8b24 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/CredentialProfile.md @@ -0,0 +1,15 @@ +# CredentialProfile + +## Enum + + +* `SAML` (value: `"SAML"`) + +* `OAUTH` (value: `"OAUTH"`) + +* `X509` (value: `"X509"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..9a087c4e6b7 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,1180 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClientRequestV1**](DefaultApi.md#ClientRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/clientrequest | +[**Phase1TransferInitiationRequestV1**](DefaultApi.md#Phase1TransferInitiationRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationrequest | +[**Phase1TransferInitiationResponseV1**](DefaultApi.md#Phase1TransferInitiationResponseV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase1/transferinitiationresponse | +[**Phase2LockEvidenceRequestV1**](DefaultApi.md#Phase2LockEvidenceRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidencerequest | +[**Phase2LockEvidenceResponseV1**](DefaultApi.md#Phase2LockEvidenceResponseV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/lockevidenceresponse | +[**Phase2TransferCommenceRequestV1**](DefaultApi.md#Phase2TransferCommenceRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommencerequest | +[**Phase2TransferCommenceResponseV1**](DefaultApi.md#Phase2TransferCommenceResponseV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase2/transfercommenceresponse | +[**Phase3CommitFinalRequestV1**](DefaultApi.md#Phase3CommitFinalRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalrequest | +[**Phase3CommitFinalResponseV1**](DefaultApi.md#Phase3CommitFinalResponseV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitfinalresponse | +[**Phase3CommitPreparationRequestV1**](DefaultApi.md#Phase3CommitPreparationRequestV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationrequest | +[**Phase3CommitPreparationResponseV1**](DefaultApi.md#Phase3CommitPreparationResponseV1) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/commitpreparationresponse | +[**Phase3TransferCompleteRequestV1**](DefaultApi.md#Phase3TransferCompleteRequestV1) | **Get** /api/v1/@hyperledger/cactus-plugin-odap-hermes/phase3/transfercompleterequest | +[**RecoverUpdateAckV1Message**](DefaultApi.md#RecoverUpdateAckV1Message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdateackmessage | +[**RecoverUpdateV1Message**](DefaultApi.md#RecoverUpdateV1Message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoverupdatemessage | +[**RecoverV1Message**](DefaultApi.md#RecoverV1Message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recovermessage | +[**RecoverV1Success**](DefaultApi.md#RecoverV1Success) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/recoversuccessmessage | +[**RollbackAckV1Message**](DefaultApi.md#RollbackAckV1Message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackackmessage | +[**RollbackV1Message**](DefaultApi.md#RollbackV1Message) | **Post** /api/v1/@hyperledger/cactus-plugin-odap-hermes/rollbackmessage | + + + +## ClientRequestV1 + +> interface{} ClientRequestV1(ctx).ClientV1Request(clientV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + clientV1Request := *openapiclient.NewClientV1Request("Version_example", "LoggingProfile_example", "AccessControlProfile_example", "AssetControlProfile_example", "ApplicationProfile_example", *openapiclient.NewAssetProfile("ExpirationDate_example"), *openapiclient.NewPayloadProfile(*openapiclient.NewAssetProfile("ExpirationDate_example")), "SourceGatewayDltSystem_example", "RecipientGatewayDltSystem_example", "RecipientGatewayPubkey_example", "OriginatorPubkey_example", "BeneficiaryPubkey_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "ClientDltSystem_example", "ServerDltSystem_example", *openapiclient.NewClientV1RequestClientGatewayConfiguration("ApiHost_example"), *openapiclient.NewClientV1RequestClientGatewayConfiguration("ApiHost_example"), float32(123), float32(123), "SourceLedgerAssetID_example", "RecipientLedgerAssetID_example") // ClientV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.ClientRequestV1(context.Background()).ClientV1Request(clientV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ClientRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ClientRequestV1`: interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ClientRequestV1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiClientRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientV1Request** | [**ClientV1Request**](ClientV1Request.md) | | + +### Return type + +**interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase1TransferInitiationRequestV1 + +> Phase1TransferInitiationRequestV1(ctx).TransferInitializationV1Request(transferInitializationV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + transferInitializationV1Request := *openapiclient.NewTransferInitializationV1Request("MessageType_example", "SessionID_example", *openapiclient.NewPayloadProfile(*openapiclient.NewAssetProfile("ExpirationDate_example")), "ApplicationProfile_example", "LoggingProfile_example", "AccessControlProfile_example", "Signature_example", "SourceGatewayPubkey_example", "SourceGatewayDltSystem_example", "RecipientGatewayPubkey_example", "RecipientGatewayDltSystem_example", int32(123), "SourceBasePath_example", "RecipientBasePath_example", float32(123), float32(123), []string{"BackupGatewaysAllowed_example"}, "RecipientLedgerAssetID_example", "SourceLedgerAssetID_example") // TransferInitializationV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase1TransferInitiationRequestV1(context.Background()).TransferInitializationV1Request(transferInitializationV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase1TransferInitiationRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase1TransferInitiationRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferInitializationV1Request** | [**TransferInitializationV1Request**](TransferInitializationV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase1TransferInitiationResponseV1 + +> Phase1TransferInitiationResponseV1(ctx).TransferInitializationV1Response(transferInitializationV1Response).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + transferInitializationV1Response := *openapiclient.NewTransferInitializationV1Response("MessageType_example", "SessionID_example", float32(123), "InitialRequestMessageHash_example", "TimeStamp_example", "ProcessedTimeStamp_example", "ServerIdentityPubkey_example", "Signature_example", []string{"BackupGatewaysAllowed_example"}) // TransferInitializationV1Response | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase1TransferInitiationResponseV1(context.Background()).TransferInitializationV1Response(transferInitializationV1Response).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase1TransferInitiationResponseV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase1TransferInitiationResponseV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferInitializationV1Response** | [**TransferInitializationV1Response**](TransferInitializationV1Response.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase2LockEvidenceRequestV1 + +> Phase2LockEvidenceRequestV1(ctx).LockEvidenceV1Request(lockEvidenceV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + lockEvidenceV1Request := *openapiclient.NewLockEvidenceV1Request("SessionID_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "LockEvidenceClaim_example", "LockEvidenceExpiration_example", "HashCommenceAckRequest_example", "Signature_example", "MessageType_example", float32(123)) // LockEvidenceV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase2LockEvidenceRequestV1(context.Background()).LockEvidenceV1Request(lockEvidenceV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase2LockEvidenceRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase2LockEvidenceRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lockEvidenceV1Request** | [**LockEvidenceV1Request**](LockEvidenceV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase2LockEvidenceResponseV1 + +> Phase2LockEvidenceResponseV1(ctx).LockEvidenceV1Response(lockEvidenceV1Response).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + lockEvidenceV1Response := *openapiclient.NewLockEvidenceV1Response("SessionID_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashLockEvidenceRequest_example", "Signature_example", "MessageType_example", float32(123)) // LockEvidenceV1Response | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase2LockEvidenceResponseV1(context.Background()).LockEvidenceV1Response(lockEvidenceV1Response).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase2LockEvidenceResponseV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase2LockEvidenceResponseV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lockEvidenceV1Response** | [**LockEvidenceV1Response**](LockEvidenceV1Response.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase2TransferCommenceRequestV1 + +> Phase2TransferCommenceRequestV1(ctx).TransferCommenceV1Request(transferCommenceV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + transferCommenceV1Request := *openapiclient.NewTransferCommenceV1Request("SessionID_example", "MessageType_example", "OriginatorPubkey_example", "BeneficiaryPubkey_example", "SenderDltSystem_example", "RecipientDltSystem_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashAssetProfile_example", "HashPrevMessage_example", "Signature_example", int32(123)) // TransferCommenceV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase2TransferCommenceRequestV1(context.Background()).TransferCommenceV1Request(transferCommenceV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase2TransferCommenceRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase2TransferCommenceRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferCommenceV1Request** | [**TransferCommenceV1Request**](TransferCommenceV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase2TransferCommenceResponseV1 + +> Phase2TransferCommenceResponseV1(ctx).TransferCommenceV1Response(transferCommenceV1Response).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + transferCommenceV1Response := *openapiclient.NewTransferCommenceV1Response("SessionID_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashCommenceRequest_example", "Signature_example", "MessageType_example", float32(123)) // TransferCommenceV1Response | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase2TransferCommenceResponseV1(context.Background()).TransferCommenceV1Response(transferCommenceV1Response).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase2TransferCommenceResponseV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase2TransferCommenceResponseV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferCommenceV1Response** | [**TransferCommenceV1Response**](TransferCommenceV1Response.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase3CommitFinalRequestV1 + +> Phase3CommitFinalRequestV1(ctx).CommitFinalV1Request(commitFinalV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + commitFinalV1Request := *openapiclient.NewCommitFinalV1Request("SessionID_example", "MessageType_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "CommitFinalClaim_example", "HashCommitPrepareAck_example", "Signature_example", float32(123)) // CommitFinalV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase3CommitFinalRequestV1(context.Background()).CommitFinalV1Request(commitFinalV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase3CommitFinalRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase3CommitFinalRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitFinalV1Request** | [**CommitFinalV1Request**](CommitFinalV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase3CommitFinalResponseV1 + +> Phase3CommitFinalResponseV1(ctx).CommitFinalV1Response(commitFinalV1Response).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + commitFinalV1Response := *openapiclient.NewCommitFinalV1Response("SessionID_example", "MessageType_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "CommitAcknowledgementClaim_example", "HashCommitFinal_example", "Signature_example", float32(123)) // CommitFinalV1Response | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase3CommitFinalResponseV1(context.Background()).CommitFinalV1Response(commitFinalV1Response).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase3CommitFinalResponseV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase3CommitFinalResponseV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitFinalV1Response** | [**CommitFinalV1Response**](CommitFinalV1Response.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase3CommitPreparationRequestV1 + +> Phase3CommitPreparationRequestV1(ctx).CommitPreparationV1Request(commitPreparationV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + commitPreparationV1Request := *openapiclient.NewCommitPreparationV1Request("SessionID_example", "MessageType_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashLockEvidenceAck_example", "Signature_example", float32(123)) // CommitPreparationV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase3CommitPreparationRequestV1(context.Background()).CommitPreparationV1Request(commitPreparationV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase3CommitPreparationRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase3CommitPreparationRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitPreparationV1Request** | [**CommitPreparationV1Request**](CommitPreparationV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase3CommitPreparationResponseV1 + +> Phase3CommitPreparationResponseV1(ctx).CommitPreparationV1Response(commitPreparationV1Response).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + commitPreparationV1Response := *openapiclient.NewCommitPreparationV1Response("SessionID_example", "MessageType_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashCommitPrep_example", "Signature_example", float32(123)) // CommitPreparationV1Response | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase3CommitPreparationResponseV1(context.Background()).CommitPreparationV1Response(commitPreparationV1Response).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase3CommitPreparationResponseV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase3CommitPreparationResponseV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitPreparationV1Response** | [**CommitPreparationV1Response**](CommitPreparationV1Response.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Phase3TransferCompleteRequestV1 + +> Phase3TransferCompleteRequestV1(ctx).TransferCompleteV1Request(transferCompleteV1Request).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + transferCompleteV1Request := *openapiclient.NewTransferCompleteV1Request("SessionID_example", "MessageType_example", "ClientIdentityPubkey_example", "ServerIdentityPubkey_example", "HashCommitFinalAck_example", "Signature_example", "HashTransferCommence_example", float32(123)) // TransferCompleteV1Request | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.Phase3TransferCompleteRequestV1(context.Background()).TransferCompleteV1Request(transferCompleteV1Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Phase3TransferCompleteRequestV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPhase3TransferCompleteRequestV1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferCompleteV1Request** | [**TransferCompleteV1Request**](TransferCompleteV1Request.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RecoverUpdateAckV1Message + +> RecoverUpdateAckV1Message(ctx).RecoverUpdateAckV1Message(recoverUpdateAckV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + recoverUpdateAckV1Message := *openapiclient.NewRecoverUpdateAckV1Message("SessionID_example", false, []string{"ChangedEntriesHash_example"}, "Signature_example") // RecoverUpdateAckV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RecoverUpdateAckV1Message(context.Background()).RecoverUpdateAckV1Message(recoverUpdateAckV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RecoverUpdateAckV1Message``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecoverUpdateAckV1MessageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **recoverUpdateAckV1Message** | [**RecoverUpdateAckV1Message**](RecoverUpdateAckV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RecoverUpdateV1Message + +> RecoverUpdateV1Message(ctx).RecoverUpdateV1Message(recoverUpdateV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + recoverUpdateV1Message := *openapiclient.NewRecoverUpdateV1Message("SessionID_example", []openapiclient.OdapLocalLog{*openapiclient.NewOdapLocalLog("SessionID_example", "Type_example", "Operation_example")}, "Signature_example") // RecoverUpdateV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RecoverUpdateV1Message(context.Background()).RecoverUpdateV1Message(recoverUpdateV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RecoverUpdateV1Message``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecoverUpdateV1MessageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **recoverUpdateV1Message** | [**RecoverUpdateV1Message**](RecoverUpdateV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RecoverV1Message + +> RecoverV1Message(ctx).RecoverV1Message(recoverV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + recoverV1Message := *openapiclient.NewRecoverV1Message("SessionID_example", "OdapPhase_example", float32(123), "LastLogEntryTimestamp_example", false, "NewBasePath_example", "Signature_example") // RecoverV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RecoverV1Message(context.Background()).RecoverV1Message(recoverV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RecoverV1Message``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecoverV1MessageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **recoverV1Message** | [**RecoverV1Message**](RecoverV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RecoverV1Success + +> RecoverV1Success(ctx).RecoverSuccessV1Message(recoverSuccessV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + recoverSuccessV1Message := *openapiclient.NewRecoverSuccessV1Message("SessionID_example", false, "Signature_example") // RecoverSuccessV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RecoverV1Success(context.Background()).RecoverSuccessV1Message(recoverSuccessV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RecoverV1Success``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecoverV1SuccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **recoverSuccessV1Message** | [**RecoverSuccessV1Message**](RecoverSuccessV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RollbackAckV1Message + +> RollbackAckV1Message(ctx).RollbackAckV1Message(rollbackAckV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + rollbackAckV1Message := *openapiclient.NewRollbackAckV1Message("SessionID_example", false, "Signature_example") // RollbackAckV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RollbackAckV1Message(context.Background()).RollbackAckV1Message(rollbackAckV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RollbackAckV1Message``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRollbackAckV1MessageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rollbackAckV1Message** | [**RollbackAckV1Message**](RollbackAckV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RollbackV1Message + +> RollbackV1Message(ctx).RollbackV1Message(rollbackV1Message).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func main() { + rollbackV1Message := *openapiclient.NewRollbackV1Message("SessionID_example", false, []string{"ActionPerformed_example"}, []string{"Proofs_example"}, "Signature_example") // RollbackV1Message | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.RollbackV1Message(context.Background()).RollbackV1Message(rollbackV1Message).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RollbackV1Message``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRollbackV1MessageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rollbackV1Message** | [**RollbackV1Message**](RollbackV1Message.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/History.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/History.md new file mode 100644 index 00000000000..cc1215bc91d --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/History.md @@ -0,0 +1,212 @@ +# History + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Transactions** | Pointer to **[]map[string]interface{}** | | [optional] +**Actions** | Pointer to **[]map[string]interface{}** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**Destination** | Pointer to **string** | | [optional] +**Balance** | Pointer to **string** | | [optional] +**CurrentStatus** | Pointer to **map[string]interface{}** | | [optional] +**ApplicationSpecificParameters** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewHistory + +`func NewHistory() *History` + +NewHistory instantiates a new History object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoryWithDefaults + +`func NewHistoryWithDefaults() *History` + +NewHistoryWithDefaults instantiates a new History object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransactions + +`func (o *History) GetTransactions() []map[string]interface{}` + +GetTransactions returns the Transactions field if non-nil, zero value otherwise. + +### GetTransactionsOk + +`func (o *History) GetTransactionsOk() (*[]map[string]interface{}, bool)` + +GetTransactionsOk returns a tuple with the Transactions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactions + +`func (o *History) SetTransactions(v []map[string]interface{})` + +SetTransactions sets Transactions field to given value. + +### HasTransactions + +`func (o *History) HasTransactions() bool` + +HasTransactions returns a boolean if a field has been set. + +### GetActions + +`func (o *History) GetActions() []map[string]interface{}` + +GetActions returns the Actions field if non-nil, zero value otherwise. + +### GetActionsOk + +`func (o *History) GetActionsOk() (*[]map[string]interface{}, bool)` + +GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActions + +`func (o *History) SetActions(v []map[string]interface{})` + +SetActions sets Actions field to given value. + +### HasActions + +`func (o *History) HasActions() bool` + +HasActions returns a boolean if a field has been set. + +### GetOrigin + +`func (o *History) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *History) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *History) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *History) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetDestination + +`func (o *History) GetDestination() string` + +GetDestination returns the Destination field if non-nil, zero value otherwise. + +### GetDestinationOk + +`func (o *History) GetDestinationOk() (*string, bool)` + +GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestination + +`func (o *History) SetDestination(v string)` + +SetDestination sets Destination field to given value. + +### HasDestination + +`func (o *History) HasDestination() bool` + +HasDestination returns a boolean if a field has been set. + +### GetBalance + +`func (o *History) GetBalance() string` + +GetBalance returns the Balance field if non-nil, zero value otherwise. + +### GetBalanceOk + +`func (o *History) GetBalanceOk() (*string, bool)` + +GetBalanceOk returns a tuple with the Balance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBalance + +`func (o *History) SetBalance(v string)` + +SetBalance sets Balance field to given value. + +### HasBalance + +`func (o *History) HasBalance() bool` + +HasBalance returns a boolean if a field has been set. + +### GetCurrentStatus + +`func (o *History) GetCurrentStatus() map[string]interface{}` + +GetCurrentStatus returns the CurrentStatus field if non-nil, zero value otherwise. + +### GetCurrentStatusOk + +`func (o *History) GetCurrentStatusOk() (*map[string]interface{}, bool)` + +GetCurrentStatusOk returns a tuple with the CurrentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStatus + +`func (o *History) SetCurrentStatus(v map[string]interface{})` + +SetCurrentStatus sets CurrentStatus field to given value. + +### HasCurrentStatus + +`func (o *History) HasCurrentStatus() bool` + +HasCurrentStatus returns a boolean if a field has been set. + +### GetApplicationSpecificParameters + +`func (o *History) GetApplicationSpecificParameters() map[string]interface{}` + +GetApplicationSpecificParameters returns the ApplicationSpecificParameters field if non-nil, zero value otherwise. + +### GetApplicationSpecificParametersOk + +`func (o *History) GetApplicationSpecificParametersOk() (*map[string]interface{}, bool)` + +GetApplicationSpecificParametersOk returns a tuple with the ApplicationSpecificParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationSpecificParameters + +`func (o *History) SetApplicationSpecificParameters(v map[string]interface{})` + +SetApplicationSpecificParameters sets ApplicationSpecificParameters field to given value. + +### HasApplicationSpecificParameters + +`func (o *History) HasApplicationSpecificParameters() bool` + +HasApplicationSpecificParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Request.md new file mode 100644 index 00000000000..682db543c8e --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Request.md @@ -0,0 +1,307 @@ +# LockEvidenceV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**LockEvidenceClaim** | **string** | | +**LockEvidenceFormat** | Pointer to **map[string]interface{}** | | [optional] +**LockEvidenceExpiration** | **string** | | +**HashCommenceAckRequest** | **string** | | +**ClientTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**MessageType** | **string** | | +**MessageHash** | Pointer to **string** | | [optional] +**SequenceNumber** | **float32** | | + +## Methods + +### NewLockEvidenceV1Request + +`func NewLockEvidenceV1Request(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, lockEvidenceClaim string, lockEvidenceExpiration string, hashCommenceAckRequest string, signature string, messageType string, sequenceNumber float32, ) *LockEvidenceV1Request` + +NewLockEvidenceV1Request instantiates a new LockEvidenceV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLockEvidenceV1RequestWithDefaults + +`func NewLockEvidenceV1RequestWithDefaults() *LockEvidenceV1Request` + +NewLockEvidenceV1RequestWithDefaults instantiates a new LockEvidenceV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *LockEvidenceV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *LockEvidenceV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *LockEvidenceV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetClientIdentityPubkey + +`func (o *LockEvidenceV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *LockEvidenceV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *LockEvidenceV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *LockEvidenceV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *LockEvidenceV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *LockEvidenceV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetLockEvidenceClaim + +`func (o *LockEvidenceV1Request) GetLockEvidenceClaim() string` + +GetLockEvidenceClaim returns the LockEvidenceClaim field if non-nil, zero value otherwise. + +### GetLockEvidenceClaimOk + +`func (o *LockEvidenceV1Request) GetLockEvidenceClaimOk() (*string, bool)` + +GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceClaim + +`func (o *LockEvidenceV1Request) SetLockEvidenceClaim(v string)` + +SetLockEvidenceClaim sets LockEvidenceClaim field to given value. + + +### GetLockEvidenceFormat + +`func (o *LockEvidenceV1Request) GetLockEvidenceFormat() map[string]interface{}` + +GetLockEvidenceFormat returns the LockEvidenceFormat field if non-nil, zero value otherwise. + +### GetLockEvidenceFormatOk + +`func (o *LockEvidenceV1Request) GetLockEvidenceFormatOk() (*map[string]interface{}, bool)` + +GetLockEvidenceFormatOk returns a tuple with the LockEvidenceFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceFormat + +`func (o *LockEvidenceV1Request) SetLockEvidenceFormat(v map[string]interface{})` + +SetLockEvidenceFormat sets LockEvidenceFormat field to given value. + +### HasLockEvidenceFormat + +`func (o *LockEvidenceV1Request) HasLockEvidenceFormat() bool` + +HasLockEvidenceFormat returns a boolean if a field has been set. + +### GetLockEvidenceExpiration + +`func (o *LockEvidenceV1Request) GetLockEvidenceExpiration() string` + +GetLockEvidenceExpiration returns the LockEvidenceExpiration field if non-nil, zero value otherwise. + +### GetLockEvidenceExpirationOk + +`func (o *LockEvidenceV1Request) GetLockEvidenceExpirationOk() (*string, bool)` + +GetLockEvidenceExpirationOk returns a tuple with the LockEvidenceExpiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceExpiration + +`func (o *LockEvidenceV1Request) SetLockEvidenceExpiration(v string)` + +SetLockEvidenceExpiration sets LockEvidenceExpiration field to given value. + + +### GetHashCommenceAckRequest + +`func (o *LockEvidenceV1Request) GetHashCommenceAckRequest() string` + +GetHashCommenceAckRequest returns the HashCommenceAckRequest field if non-nil, zero value otherwise. + +### GetHashCommenceAckRequestOk + +`func (o *LockEvidenceV1Request) GetHashCommenceAckRequestOk() (*string, bool)` + +GetHashCommenceAckRequestOk returns a tuple with the HashCommenceAckRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommenceAckRequest + +`func (o *LockEvidenceV1Request) SetHashCommenceAckRequest(v string)` + +SetHashCommenceAckRequest sets HashCommenceAckRequest field to given value. + + +### GetClientTransferNumber + +`func (o *LockEvidenceV1Request) GetClientTransferNumber() int32` + +GetClientTransferNumber returns the ClientTransferNumber field if non-nil, zero value otherwise. + +### GetClientTransferNumberOk + +`func (o *LockEvidenceV1Request) GetClientTransferNumberOk() (*int32, bool)` + +GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTransferNumber + +`func (o *LockEvidenceV1Request) SetClientTransferNumber(v int32)` + +SetClientTransferNumber sets ClientTransferNumber field to given value. + +### HasClientTransferNumber + +`func (o *LockEvidenceV1Request) HasClientTransferNumber() bool` + +HasClientTransferNumber returns a boolean if a field has been set. + +### SetClientTransferNumberNil + +`func (o *LockEvidenceV1Request) SetClientTransferNumberNil(b bool)` + + SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil + +### UnsetClientTransferNumber +`func (o *LockEvidenceV1Request) UnsetClientTransferNumber()` + +UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +### GetSignature + +`func (o *LockEvidenceV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *LockEvidenceV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *LockEvidenceV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetMessageType + +`func (o *LockEvidenceV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *LockEvidenceV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *LockEvidenceV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetMessageHash + +`func (o *LockEvidenceV1Request) GetMessageHash() string` + +GetMessageHash returns the MessageHash field if non-nil, zero value otherwise. + +### GetMessageHashOk + +`func (o *LockEvidenceV1Request) GetMessageHashOk() (*string, bool)` + +GetMessageHashOk returns a tuple with the MessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageHash + +`func (o *LockEvidenceV1Request) SetMessageHash(v string)` + +SetMessageHash sets MessageHash field to given value. + +### HasMessageHash + +`func (o *LockEvidenceV1Request) HasMessageHash() bool` + +HasMessageHash returns a boolean if a field has been set. + +### GetSequenceNumber + +`func (o *LockEvidenceV1Request) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *LockEvidenceV1Request) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *LockEvidenceV1Request) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Response.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Response.md new file mode 100644 index 00000000000..2d5eddf0976 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/LockEvidenceV1Response.md @@ -0,0 +1,213 @@ +# LockEvidenceV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashLockEvidenceRequest** | **string** | | +**ServerTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**MessageType** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewLockEvidenceV1Response + +`func NewLockEvidenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceRequest string, signature string, messageType string, sequenceNumber float32, ) *LockEvidenceV1Response` + +NewLockEvidenceV1Response instantiates a new LockEvidenceV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLockEvidenceV1ResponseWithDefaults + +`func NewLockEvidenceV1ResponseWithDefaults() *LockEvidenceV1Response` + +NewLockEvidenceV1ResponseWithDefaults instantiates a new LockEvidenceV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *LockEvidenceV1Response) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *LockEvidenceV1Response) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *LockEvidenceV1Response) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetClientIdentityPubkey + +`func (o *LockEvidenceV1Response) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *LockEvidenceV1Response) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *LockEvidenceV1Response) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *LockEvidenceV1Response) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *LockEvidenceV1Response) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *LockEvidenceV1Response) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashLockEvidenceRequest + +`func (o *LockEvidenceV1Response) GetHashLockEvidenceRequest() string` + +GetHashLockEvidenceRequest returns the HashLockEvidenceRequest field if non-nil, zero value otherwise. + +### GetHashLockEvidenceRequestOk + +`func (o *LockEvidenceV1Response) GetHashLockEvidenceRequestOk() (*string, bool)` + +GetHashLockEvidenceRequestOk returns a tuple with the HashLockEvidenceRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashLockEvidenceRequest + +`func (o *LockEvidenceV1Response) SetHashLockEvidenceRequest(v string)` + +SetHashLockEvidenceRequest sets HashLockEvidenceRequest field to given value. + + +### GetServerTransferNumber + +`func (o *LockEvidenceV1Response) GetServerTransferNumber() int32` + +GetServerTransferNumber returns the ServerTransferNumber field if non-nil, zero value otherwise. + +### GetServerTransferNumberOk + +`func (o *LockEvidenceV1Response) GetServerTransferNumberOk() (*int32, bool)` + +GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerTransferNumber + +`func (o *LockEvidenceV1Response) SetServerTransferNumber(v int32)` + +SetServerTransferNumber sets ServerTransferNumber field to given value. + +### HasServerTransferNumber + +`func (o *LockEvidenceV1Response) HasServerTransferNumber() bool` + +HasServerTransferNumber returns a boolean if a field has been set. + +### SetServerTransferNumberNil + +`func (o *LockEvidenceV1Response) SetServerTransferNumberNil(b bool)` + + SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil + +### UnsetServerTransferNumber +`func (o *LockEvidenceV1Response) UnsetServerTransferNumber()` + +UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil +### GetSignature + +`func (o *LockEvidenceV1Response) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *LockEvidenceV1Response) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *LockEvidenceV1Response) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetMessageType + +`func (o *LockEvidenceV1Response) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *LockEvidenceV1Response) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *LockEvidenceV1Response) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetSequenceNumber + +`func (o *LockEvidenceV1Response) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *LockEvidenceV1Response) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *LockEvidenceV1Response) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapLocalLog.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapLocalLog.md new file mode 100644 index 00000000000..dda94db060b --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapLocalLog.md @@ -0,0 +1,171 @@ +# OdapLocalLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | | [optional] +**SessionID** | **string** | | +**Data** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Operation** | **string** | | +**Timestamp** | Pointer to **string** | | [optional] + +## Methods + +### NewOdapLocalLog + +`func NewOdapLocalLog(sessionID string, type_ string, operation string, ) *OdapLocalLog` + +NewOdapLocalLog instantiates a new OdapLocalLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOdapLocalLogWithDefaults + +`func NewOdapLocalLogWithDefaults() *OdapLocalLog` + +NewOdapLocalLogWithDefaults instantiates a new OdapLocalLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *OdapLocalLog) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *OdapLocalLog) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *OdapLocalLog) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *OdapLocalLog) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetSessionID + +`func (o *OdapLocalLog) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *OdapLocalLog) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *OdapLocalLog) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetData + +`func (o *OdapLocalLog) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OdapLocalLog) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OdapLocalLog) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OdapLocalLog) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *OdapLocalLog) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OdapLocalLog) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OdapLocalLog) SetType(v string)` + +SetType sets Type field to given value. + + +### GetOperation + +`func (o *OdapLocalLog) GetOperation() string` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *OdapLocalLog) GetOperationOk() (*string, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *OdapLocalLog) SetOperation(v string)` + +SetOperation sets Operation field to given value. + + +### GetTimestamp + +`func (o *OdapLocalLog) GetTimestamp() string` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *OdapLocalLog) GetTimestampOk() (*string, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *OdapLocalLog) SetTimestamp(v string)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *OdapLocalLog) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessage.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessage.md new file mode 100644 index 00000000000..d3c3ea5f2ab --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessage.md @@ -0,0 +1,342 @@ +# OdapMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SequenceNumber** | Pointer to **float32** | | [optional] +**Phase** | Pointer to **string** | | [optional] +**ResourceURL** | Pointer to **string** | | [optional] +**DeveloperURN** | Pointer to **string** | | [optional] +**ActionResponse** | Pointer to [**OdapMessageActionResponse**](OdapMessageActionResponse.md) | | [optional] +**CredentialProfile** | Pointer to **string** | | [optional] +**CredentialBlock** | Pointer to **[]interface{}** | | [optional] +**CredentialsProfile** | Pointer to [**PayloadProfile**](PayloadProfile.md) | | [optional] +**ApplicationProfile** | Pointer to **map[string]interface{}** | | [optional] +**Payload** | Pointer to **map[string]interface{}** | | [optional] +**PayloadHash** | Pointer to **string** | | [optional] +**MessageSignature** | Pointer to **string** | | [optional] + +## Methods + +### NewOdapMessage + +`func NewOdapMessage() *OdapMessage` + +NewOdapMessage instantiates a new OdapMessage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOdapMessageWithDefaults + +`func NewOdapMessageWithDefaults() *OdapMessage` + +NewOdapMessageWithDefaults instantiates a new OdapMessage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSequenceNumber + +`func (o *OdapMessage) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *OdapMessage) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *OdapMessage) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + +### HasSequenceNumber + +`func (o *OdapMessage) HasSequenceNumber() bool` + +HasSequenceNumber returns a boolean if a field has been set. + +### GetPhase + +`func (o *OdapMessage) GetPhase() string` + +GetPhase returns the Phase field if non-nil, zero value otherwise. + +### GetPhaseOk + +`func (o *OdapMessage) GetPhaseOk() (*string, bool)` + +GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhase + +`func (o *OdapMessage) SetPhase(v string)` + +SetPhase sets Phase field to given value. + +### HasPhase + +`func (o *OdapMessage) HasPhase() bool` + +HasPhase returns a boolean if a field has been set. + +### GetResourceURL + +`func (o *OdapMessage) GetResourceURL() string` + +GetResourceURL returns the ResourceURL field if non-nil, zero value otherwise. + +### GetResourceURLOk + +`func (o *OdapMessage) GetResourceURLOk() (*string, bool)` + +GetResourceURLOk returns a tuple with the ResourceURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceURL + +`func (o *OdapMessage) SetResourceURL(v string)` + +SetResourceURL sets ResourceURL field to given value. + +### HasResourceURL + +`func (o *OdapMessage) HasResourceURL() bool` + +HasResourceURL returns a boolean if a field has been set. + +### GetDeveloperURN + +`func (o *OdapMessage) GetDeveloperURN() string` + +GetDeveloperURN returns the DeveloperURN field if non-nil, zero value otherwise. + +### GetDeveloperURNOk + +`func (o *OdapMessage) GetDeveloperURNOk() (*string, bool)` + +GetDeveloperURNOk returns a tuple with the DeveloperURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeveloperURN + +`func (o *OdapMessage) SetDeveloperURN(v string)` + +SetDeveloperURN sets DeveloperURN field to given value. + +### HasDeveloperURN + +`func (o *OdapMessage) HasDeveloperURN() bool` + +HasDeveloperURN returns a boolean if a field has been set. + +### GetActionResponse + +`func (o *OdapMessage) GetActionResponse() OdapMessageActionResponse` + +GetActionResponse returns the ActionResponse field if non-nil, zero value otherwise. + +### GetActionResponseOk + +`func (o *OdapMessage) GetActionResponseOk() (*OdapMessageActionResponse, bool)` + +GetActionResponseOk returns a tuple with the ActionResponse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionResponse + +`func (o *OdapMessage) SetActionResponse(v OdapMessageActionResponse)` + +SetActionResponse sets ActionResponse field to given value. + +### HasActionResponse + +`func (o *OdapMessage) HasActionResponse() bool` + +HasActionResponse returns a boolean if a field has been set. + +### GetCredentialProfile + +`func (o *OdapMessage) GetCredentialProfile() string` + +GetCredentialProfile returns the CredentialProfile field if non-nil, zero value otherwise. + +### GetCredentialProfileOk + +`func (o *OdapMessage) GetCredentialProfileOk() (*string, bool)` + +GetCredentialProfileOk returns a tuple with the CredentialProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialProfile + +`func (o *OdapMessage) SetCredentialProfile(v string)` + +SetCredentialProfile sets CredentialProfile field to given value. + +### HasCredentialProfile + +`func (o *OdapMessage) HasCredentialProfile() bool` + +HasCredentialProfile returns a boolean if a field has been set. + +### GetCredentialBlock + +`func (o *OdapMessage) GetCredentialBlock() []interface{}` + +GetCredentialBlock returns the CredentialBlock field if non-nil, zero value otherwise. + +### GetCredentialBlockOk + +`func (o *OdapMessage) GetCredentialBlockOk() (*[]interface{}, bool)` + +GetCredentialBlockOk returns a tuple with the CredentialBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialBlock + +`func (o *OdapMessage) SetCredentialBlock(v []interface{})` + +SetCredentialBlock sets CredentialBlock field to given value. + +### HasCredentialBlock + +`func (o *OdapMessage) HasCredentialBlock() bool` + +HasCredentialBlock returns a boolean if a field has been set. + +### GetCredentialsProfile + +`func (o *OdapMessage) GetCredentialsProfile() PayloadProfile` + +GetCredentialsProfile returns the CredentialsProfile field if non-nil, zero value otherwise. + +### GetCredentialsProfileOk + +`func (o *OdapMessage) GetCredentialsProfileOk() (*PayloadProfile, bool)` + +GetCredentialsProfileOk returns a tuple with the CredentialsProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialsProfile + +`func (o *OdapMessage) SetCredentialsProfile(v PayloadProfile)` + +SetCredentialsProfile sets CredentialsProfile field to given value. + +### HasCredentialsProfile + +`func (o *OdapMessage) HasCredentialsProfile() bool` + +HasCredentialsProfile returns a boolean if a field has been set. + +### GetApplicationProfile + +`func (o *OdapMessage) GetApplicationProfile() map[string]interface{}` + +GetApplicationProfile returns the ApplicationProfile field if non-nil, zero value otherwise. + +### GetApplicationProfileOk + +`func (o *OdapMessage) GetApplicationProfileOk() (*map[string]interface{}, bool)` + +GetApplicationProfileOk returns a tuple with the ApplicationProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationProfile + +`func (o *OdapMessage) SetApplicationProfile(v map[string]interface{})` + +SetApplicationProfile sets ApplicationProfile field to given value. + +### HasApplicationProfile + +`func (o *OdapMessage) HasApplicationProfile() bool` + +HasApplicationProfile returns a boolean if a field has been set. + +### GetPayload + +`func (o *OdapMessage) GetPayload() map[string]interface{}` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *OdapMessage) GetPayloadOk() (*map[string]interface{}, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *OdapMessage) SetPayload(v map[string]interface{})` + +SetPayload sets Payload field to given value. + +### HasPayload + +`func (o *OdapMessage) HasPayload() bool` + +HasPayload returns a boolean if a field has been set. + +### GetPayloadHash + +`func (o *OdapMessage) GetPayloadHash() string` + +GetPayloadHash returns the PayloadHash field if non-nil, zero value otherwise. + +### GetPayloadHashOk + +`func (o *OdapMessage) GetPayloadHashOk() (*string, bool)` + +GetPayloadHashOk returns a tuple with the PayloadHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayloadHash + +`func (o *OdapMessage) SetPayloadHash(v string)` + +SetPayloadHash sets PayloadHash field to given value. + +### HasPayloadHash + +`func (o *OdapMessage) HasPayloadHash() bool` + +HasPayloadHash returns a boolean if a field has been set. + +### GetMessageSignature + +`func (o *OdapMessage) GetMessageSignature() string` + +GetMessageSignature returns the MessageSignature field if non-nil, zero value otherwise. + +### GetMessageSignatureOk + +`func (o *OdapMessage) GetMessageSignatureOk() (*string, bool)` + +GetMessageSignatureOk returns a tuple with the MessageSignature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageSignature + +`func (o *OdapMessage) SetMessageSignature(v string)` + +SetMessageSignature sets MessageSignature field to given value. + +### HasMessageSignature + +`func (o *OdapMessage) HasMessageSignature() bool` + +HasMessageSignature returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessageActionResponse.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessageActionResponse.md new file mode 100644 index 00000000000..9bb9b700f9e --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/OdapMessageActionResponse.md @@ -0,0 +1,82 @@ +# OdapMessageActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResponseCode** | Pointer to **string** | | [optional] +**Arguments** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewOdapMessageActionResponse + +`func NewOdapMessageActionResponse() *OdapMessageActionResponse` + +NewOdapMessageActionResponse instantiates a new OdapMessageActionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOdapMessageActionResponseWithDefaults + +`func NewOdapMessageActionResponseWithDefaults() *OdapMessageActionResponse` + +NewOdapMessageActionResponseWithDefaults instantiates a new OdapMessageActionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResponseCode + +`func (o *OdapMessageActionResponse) GetResponseCode() string` + +GetResponseCode returns the ResponseCode field if non-nil, zero value otherwise. + +### GetResponseCodeOk + +`func (o *OdapMessageActionResponse) GetResponseCodeOk() (*string, bool)` + +GetResponseCodeOk returns a tuple with the ResponseCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseCode + +`func (o *OdapMessageActionResponse) SetResponseCode(v string)` + +SetResponseCode sets ResponseCode field to given value. + +### HasResponseCode + +`func (o *OdapMessageActionResponse) HasResponseCode() bool` + +HasResponseCode returns a boolean if a field has been set. + +### GetArguments + +`func (o *OdapMessageActionResponse) GetArguments() []interface{}` + +GetArguments returns the Arguments field if non-nil, zero value otherwise. + +### GetArgumentsOk + +`func (o *OdapMessageActionResponse) GetArgumentsOk() (*[]interface{}, bool)` + +GetArgumentsOk returns a tuple with the Arguments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArguments + +`func (o *OdapMessageActionResponse) SetArguments(v []interface{})` + +SetArguments sets Arguments field to given value. + +### HasArguments + +`func (o *OdapMessageActionResponse) HasArguments() bool` + +HasArguments returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/PayloadProfile.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/PayloadProfile.md new file mode 100644 index 00000000000..9bd1dd2b80c --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/PayloadProfile.md @@ -0,0 +1,77 @@ +# PayloadProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetProfile** | [**AssetProfile**](AssetProfile.md) | | +**Capabilities** | Pointer to **string** | | [optional] + +## Methods + +### NewPayloadProfile + +`func NewPayloadProfile(assetProfile AssetProfile, ) *PayloadProfile` + +NewPayloadProfile instantiates a new PayloadProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPayloadProfileWithDefaults + +`func NewPayloadProfileWithDefaults() *PayloadProfile` + +NewPayloadProfileWithDefaults instantiates a new PayloadProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetProfile + +`func (o *PayloadProfile) GetAssetProfile() AssetProfile` + +GetAssetProfile returns the AssetProfile field if non-nil, zero value otherwise. + +### GetAssetProfileOk + +`func (o *PayloadProfile) GetAssetProfileOk() (*AssetProfile, bool)` + +GetAssetProfileOk returns a tuple with the AssetProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetProfile + +`func (o *PayloadProfile) SetAssetProfile(v AssetProfile)` + +SetAssetProfile sets AssetProfile field to given value. + + +### GetCapabilities + +`func (o *PayloadProfile) GetCapabilities() string` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *PayloadProfile) GetCapabilitiesOk() (*string, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *PayloadProfile) SetCapabilities(v string)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *PayloadProfile) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverSuccessV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverSuccessV1Message.md new file mode 100644 index 00000000000..8a49a95e5a2 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverSuccessV1Message.md @@ -0,0 +1,93 @@ +# RecoverSuccessV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**Success** | **bool** | | +**Signature** | **string** | | + +## Methods + +### NewRecoverSuccessV1Message + +`func NewRecoverSuccessV1Message(sessionID string, success bool, signature string, ) *RecoverSuccessV1Message` + +NewRecoverSuccessV1Message instantiates a new RecoverSuccessV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRecoverSuccessV1MessageWithDefaults + +`func NewRecoverSuccessV1MessageWithDefaults() *RecoverSuccessV1Message` + +NewRecoverSuccessV1MessageWithDefaults instantiates a new RecoverSuccessV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RecoverSuccessV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RecoverSuccessV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RecoverSuccessV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetSuccess + +`func (o *RecoverSuccessV1Message) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RecoverSuccessV1Message) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RecoverSuccessV1Message) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetSignature + +`func (o *RecoverSuccessV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RecoverSuccessV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RecoverSuccessV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateAckV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateAckV1Message.md new file mode 100644 index 00000000000..b45ae9d3855 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateAckV1Message.md @@ -0,0 +1,114 @@ +# RecoverUpdateAckV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**Success** | **bool** | | +**ChangedEntriesHash** | **[]string** | | +**Signature** | **string** | | + +## Methods + +### NewRecoverUpdateAckV1Message + +`func NewRecoverUpdateAckV1Message(sessionID string, success bool, changedEntriesHash []string, signature string, ) *RecoverUpdateAckV1Message` + +NewRecoverUpdateAckV1Message instantiates a new RecoverUpdateAckV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRecoverUpdateAckV1MessageWithDefaults + +`func NewRecoverUpdateAckV1MessageWithDefaults() *RecoverUpdateAckV1Message` + +NewRecoverUpdateAckV1MessageWithDefaults instantiates a new RecoverUpdateAckV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RecoverUpdateAckV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RecoverUpdateAckV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RecoverUpdateAckV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetSuccess + +`func (o *RecoverUpdateAckV1Message) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RecoverUpdateAckV1Message) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RecoverUpdateAckV1Message) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetChangedEntriesHash + +`func (o *RecoverUpdateAckV1Message) GetChangedEntriesHash() []string` + +GetChangedEntriesHash returns the ChangedEntriesHash field if non-nil, zero value otherwise. + +### GetChangedEntriesHashOk + +`func (o *RecoverUpdateAckV1Message) GetChangedEntriesHashOk() (*[]string, bool)` + +GetChangedEntriesHashOk returns a tuple with the ChangedEntriesHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedEntriesHash + +`func (o *RecoverUpdateAckV1Message) SetChangedEntriesHash(v []string)` + +SetChangedEntriesHash sets ChangedEntriesHash field to given value. + + +### GetSignature + +`func (o *RecoverUpdateAckV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RecoverUpdateAckV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RecoverUpdateAckV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateV1Message.md new file mode 100644 index 00000000000..2d7b7f47492 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverUpdateV1Message.md @@ -0,0 +1,93 @@ +# RecoverUpdateV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**RecoveredLogs** | [**[]OdapLocalLog**](OdapLocalLog.md) | | +**Signature** | **string** | | + +## Methods + +### NewRecoverUpdateV1Message + +`func NewRecoverUpdateV1Message(sessionID string, recoveredLogs []OdapLocalLog, signature string, ) *RecoverUpdateV1Message` + +NewRecoverUpdateV1Message instantiates a new RecoverUpdateV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRecoverUpdateV1MessageWithDefaults + +`func NewRecoverUpdateV1MessageWithDefaults() *RecoverUpdateV1Message` + +NewRecoverUpdateV1MessageWithDefaults instantiates a new RecoverUpdateV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RecoverUpdateV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RecoverUpdateV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RecoverUpdateV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetRecoveredLogs + +`func (o *RecoverUpdateV1Message) GetRecoveredLogs() []OdapLocalLog` + +GetRecoveredLogs returns the RecoveredLogs field if non-nil, zero value otherwise. + +### GetRecoveredLogsOk + +`func (o *RecoverUpdateV1Message) GetRecoveredLogsOk() (*[]OdapLocalLog, bool)` + +GetRecoveredLogsOk returns a tuple with the RecoveredLogs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecoveredLogs + +`func (o *RecoverUpdateV1Message) SetRecoveredLogs(v []OdapLocalLog)` + +SetRecoveredLogs sets RecoveredLogs field to given value. + + +### GetSignature + +`func (o *RecoverUpdateV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RecoverUpdateV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RecoverUpdateV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverV1Message.md new file mode 100644 index 00000000000..11ee0804087 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RecoverV1Message.md @@ -0,0 +1,203 @@ +# RecoverV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**OdapPhase** | **string** | | +**SequenceNumber** | **float32** | | +**LastLogEntryTimestamp** | **string** | | +**IsBackup** | **bool** | | +**NewBasePath** | **string** | | +**NewGatewayPubKey** | Pointer to **string** | | [optional] +**Signature** | **string** | | + +## Methods + +### NewRecoverV1Message + +`func NewRecoverV1Message(sessionID string, odapPhase string, sequenceNumber float32, lastLogEntryTimestamp string, isBackup bool, newBasePath string, signature string, ) *RecoverV1Message` + +NewRecoverV1Message instantiates a new RecoverV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRecoverV1MessageWithDefaults + +`func NewRecoverV1MessageWithDefaults() *RecoverV1Message` + +NewRecoverV1MessageWithDefaults instantiates a new RecoverV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RecoverV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RecoverV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RecoverV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetOdapPhase + +`func (o *RecoverV1Message) GetOdapPhase() string` + +GetOdapPhase returns the OdapPhase field if non-nil, zero value otherwise. + +### GetOdapPhaseOk + +`func (o *RecoverV1Message) GetOdapPhaseOk() (*string, bool)` + +GetOdapPhaseOk returns a tuple with the OdapPhase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOdapPhase + +`func (o *RecoverV1Message) SetOdapPhase(v string)` + +SetOdapPhase sets OdapPhase field to given value. + + +### GetSequenceNumber + +`func (o *RecoverV1Message) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *RecoverV1Message) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *RecoverV1Message) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + +### GetLastLogEntryTimestamp + +`func (o *RecoverV1Message) GetLastLogEntryTimestamp() string` + +GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field if non-nil, zero value otherwise. + +### GetLastLogEntryTimestampOk + +`func (o *RecoverV1Message) GetLastLogEntryTimestampOk() (*string, bool)` + +GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogEntryTimestamp + +`func (o *RecoverV1Message) SetLastLogEntryTimestamp(v string)` + +SetLastLogEntryTimestamp sets LastLogEntryTimestamp field to given value. + + +### GetIsBackup + +`func (o *RecoverV1Message) GetIsBackup() bool` + +GetIsBackup returns the IsBackup field if non-nil, zero value otherwise. + +### GetIsBackupOk + +`func (o *RecoverV1Message) GetIsBackupOk() (*bool, bool)` + +GetIsBackupOk returns a tuple with the IsBackup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBackup + +`func (o *RecoverV1Message) SetIsBackup(v bool)` + +SetIsBackup sets IsBackup field to given value. + + +### GetNewBasePath + +`func (o *RecoverV1Message) GetNewBasePath() string` + +GetNewBasePath returns the NewBasePath field if non-nil, zero value otherwise. + +### GetNewBasePathOk + +`func (o *RecoverV1Message) GetNewBasePathOk() (*string, bool)` + +GetNewBasePathOk returns a tuple with the NewBasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewBasePath + +`func (o *RecoverV1Message) SetNewBasePath(v string)` + +SetNewBasePath sets NewBasePath field to given value. + + +### GetNewGatewayPubKey + +`func (o *RecoverV1Message) GetNewGatewayPubKey() string` + +GetNewGatewayPubKey returns the NewGatewayPubKey field if non-nil, zero value otherwise. + +### GetNewGatewayPubKeyOk + +`func (o *RecoverV1Message) GetNewGatewayPubKeyOk() (*string, bool)` + +GetNewGatewayPubKeyOk returns a tuple with the NewGatewayPubKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewGatewayPubKey + +`func (o *RecoverV1Message) SetNewGatewayPubKey(v string)` + +SetNewGatewayPubKey sets NewGatewayPubKey field to given value. + +### HasNewGatewayPubKey + +`func (o *RecoverV1Message) HasNewGatewayPubKey() bool` + +HasNewGatewayPubKey returns a boolean if a field has been set. + +### GetSignature + +`func (o *RecoverV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RecoverV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RecoverV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackAckV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackAckV1Message.md new file mode 100644 index 00000000000..cef263384b5 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackAckV1Message.md @@ -0,0 +1,93 @@ +# RollbackAckV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**Success** | **bool** | | +**Signature** | **string** | | + +## Methods + +### NewRollbackAckV1Message + +`func NewRollbackAckV1Message(sessionID string, success bool, signature string, ) *RollbackAckV1Message` + +NewRollbackAckV1Message instantiates a new RollbackAckV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRollbackAckV1MessageWithDefaults + +`func NewRollbackAckV1MessageWithDefaults() *RollbackAckV1Message` + +NewRollbackAckV1MessageWithDefaults instantiates a new RollbackAckV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RollbackAckV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RollbackAckV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RollbackAckV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetSuccess + +`func (o *RollbackAckV1Message) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RollbackAckV1Message) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RollbackAckV1Message) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetSignature + +`func (o *RollbackAckV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RollbackAckV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RollbackAckV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackV1Message.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackV1Message.md new file mode 100644 index 00000000000..908626ddd00 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/RollbackV1Message.md @@ -0,0 +1,135 @@ +# RollbackV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**Success** | **bool** | | +**ActionPerformed** | **[]string** | | +**Proofs** | **[]string** | | +**Signature** | **string** | | + +## Methods + +### NewRollbackV1Message + +`func NewRollbackV1Message(sessionID string, success bool, actionPerformed []string, proofs []string, signature string, ) *RollbackV1Message` + +NewRollbackV1Message instantiates a new RollbackV1Message object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRollbackV1MessageWithDefaults + +`func NewRollbackV1MessageWithDefaults() *RollbackV1Message` + +NewRollbackV1MessageWithDefaults instantiates a new RollbackV1Message object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *RollbackV1Message) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *RollbackV1Message) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *RollbackV1Message) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetSuccess + +`func (o *RollbackV1Message) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RollbackV1Message) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RollbackV1Message) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetActionPerformed + +`func (o *RollbackV1Message) GetActionPerformed() []string` + +GetActionPerformed returns the ActionPerformed field if non-nil, zero value otherwise. + +### GetActionPerformedOk + +`func (o *RollbackV1Message) GetActionPerformedOk() (*[]string, bool)` + +GetActionPerformedOk returns a tuple with the ActionPerformed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionPerformed + +`func (o *RollbackV1Message) SetActionPerformed(v []string)` + +SetActionPerformed sets ActionPerformed field to given value. + + +### GetProofs + +`func (o *RollbackV1Message) GetProofs() []string` + +GetProofs returns the Proofs field if non-nil, zero value otherwise. + +### GetProofsOk + +`func (o *RollbackV1Message) GetProofsOk() (*[]string, bool)` + +GetProofsOk returns a tuple with the Proofs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProofs + +`func (o *RollbackV1Message) SetProofs(v []string)` + +SetProofs sets Proofs field to given value. + + +### GetSignature + +`func (o *RollbackV1Message) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *RollbackV1Message) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *RollbackV1Message) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/SessionData.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/SessionData.md new file mode 100644 index 00000000000..3c12316efea --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/SessionData.md @@ -0,0 +1,1616 @@ +# SessionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Step** | Pointer to **float32** | | [optional] +**Version** | Pointer to **string** | | [optional] +**LastSequenceNumber** | Pointer to **float32** | | [optional] +**LoggingProfile** | Pointer to **string** | | [optional] +**AccessControlProfile** | Pointer to **string** | | [optional] +**ApplicationProfile** | Pointer to **string** | | [optional] +**PayloadProfile** | Pointer to [**PayloadProfile**](PayloadProfile.md) | | [optional] +**AssetProfile** | Pointer to [**AssetProfile**](AssetProfile.md) | | [optional] +**AllowedSourceBackupGateways** | Pointer to **[]string** | | [optional] +**AllowedRecipientBackupGateways** | Pointer to **[]string** | | [optional] +**SourceBasePath** | Pointer to **string** | | [optional] +**RecipientBasePath** | Pointer to **string** | | [optional] +**OriginatorPubkey** | Pointer to **string** | | [optional] +**BeneficiaryPubkey** | Pointer to **string** | | [optional] +**SourceGatewayPubkey** | Pointer to **string** | | [optional] +**SourceGatewayDltSystem** | Pointer to **string** | | [optional] +**RecipientGatewayPubkey** | Pointer to **string** | | [optional] +**RecipientGatewayDltSystem** | Pointer to **string** | | [optional] +**InitializationRequestMessageHash** | Pointer to **string** | | [optional] +**InitializationResponseMessageHash** | Pointer to **string** | | [optional] +**InitializationRequestMessageRcvTimeStamp** | Pointer to **string** | | [optional] +**InitializationRequestMessageProcessedTimeStamp** | Pointer to **string** | | [optional] +**ClientSignatureInitializationRequestMessage** | Pointer to **string** | | [optional] +**ServerSignatureInitializationResponseMessage** | Pointer to **string** | | [optional] +**TransferCommenceMessageRequestHash** | Pointer to **string** | | [optional] +**TransferCommenceMessageResponseHash** | Pointer to **string** | | [optional] +**ClientSignatureTransferCommenceRequestMessage** | Pointer to **string** | | [optional] +**ServerSignatureTransferCommenceResponseMessage** | Pointer to **string** | | [optional] +**LockEvidenceRequestMessageHash** | Pointer to **string** | | [optional] +**LockEvidenceResponseMessageHash** | Pointer to **string** | | [optional] +**ClientSignatureLockEvidenceRequestMessage** | Pointer to **string** | | [optional] +**ServerSignatureLockEvidenceResponseMessage** | Pointer to **string** | | [optional] +**LockEvidenceClaim** | Pointer to **string** | | [optional] +**CommitPrepareRequestMessageHash** | Pointer to **string** | | [optional] +**CommitPrepareResponseMessageHash** | Pointer to **string** | | [optional] +**ClientSignatureCommitPreparationRequestMessage** | Pointer to **string** | | [optional] +**ServerSignatureCommitPreparationResponseMessage** | Pointer to **string** | | [optional] +**CommitFinalRequestMessageHash** | Pointer to **string** | | [optional] +**CommitFinalResponseMessageHash** | Pointer to **string** | | [optional] +**CommitFinalClaim** | Pointer to **string** | | [optional] +**CommitFinalClaimFormat** | Pointer to **string** | | [optional] +**CommitAcknowledgementClaim** | Pointer to **string** | | [optional] +**CommitAcknowledgementClaimFormat** | Pointer to **string** | | [optional] +**ClientSignatureCommitFinalRequestMessage** | Pointer to **string** | | [optional] +**ServerSignatureCommitFinalResponseMessage** | Pointer to **string** | | [optional] +**TransferCompleteMessageHash** | Pointer to **string** | | [optional] +**ClientSignatureTransferCompleteMessage** | Pointer to **string** | | [optional] +**MaxRetries** | Pointer to **float32** | | [optional] +**RecipientLedgerAssetID** | Pointer to **string** | | [optional] +**SourceLedgerAssetID** | Pointer to **string** | | [optional] +**MaxTimeout** | Pointer to **float32** | | [optional] +**LastLogEntryTimestamp** | Pointer to **string** | | [optional] +**UnlockAssetClaim** | Pointer to **string** | | [optional] +**RecreateAssetClaim** | Pointer to **string** | | [optional] +**DeleteAssetClaim** | Pointer to **string** | | [optional] +**LastMessageReceivedTimestamp** | Pointer to **string** | | [optional] +**Rollback** | Pointer to **bool** | | [optional] +**RollbackMessageHash** | Pointer to **string** | | [optional] +**RollbackProofs** | Pointer to **[]string** | | [optional] +**RollbackActionsPerformed** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSessionData + +`func NewSessionData() *SessionData` + +NewSessionData instantiates a new SessionData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSessionDataWithDefaults + +`func NewSessionDataWithDefaults() *SessionData` + +NewSessionDataWithDefaults instantiates a new SessionData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SessionData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SessionData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SessionData) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SessionData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStep + +`func (o *SessionData) GetStep() float32` + +GetStep returns the Step field if non-nil, zero value otherwise. + +### GetStepOk + +`func (o *SessionData) GetStepOk() (*float32, bool)` + +GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStep + +`func (o *SessionData) SetStep(v float32)` + +SetStep sets Step field to given value. + +### HasStep + +`func (o *SessionData) HasStep() bool` + +HasStep returns a boolean if a field has been set. + +### GetVersion + +`func (o *SessionData) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SessionData) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SessionData) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SessionData) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetLastSequenceNumber + +`func (o *SessionData) GetLastSequenceNumber() float32` + +GetLastSequenceNumber returns the LastSequenceNumber field if non-nil, zero value otherwise. + +### GetLastSequenceNumberOk + +`func (o *SessionData) GetLastSequenceNumberOk() (*float32, bool)` + +GetLastSequenceNumberOk returns a tuple with the LastSequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSequenceNumber + +`func (o *SessionData) SetLastSequenceNumber(v float32)` + +SetLastSequenceNumber sets LastSequenceNumber field to given value. + +### HasLastSequenceNumber + +`func (o *SessionData) HasLastSequenceNumber() bool` + +HasLastSequenceNumber returns a boolean if a field has been set. + +### GetLoggingProfile + +`func (o *SessionData) GetLoggingProfile() string` + +GetLoggingProfile returns the LoggingProfile field if non-nil, zero value otherwise. + +### GetLoggingProfileOk + +`func (o *SessionData) GetLoggingProfileOk() (*string, bool)` + +GetLoggingProfileOk returns a tuple with the LoggingProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoggingProfile + +`func (o *SessionData) SetLoggingProfile(v string)` + +SetLoggingProfile sets LoggingProfile field to given value. + +### HasLoggingProfile + +`func (o *SessionData) HasLoggingProfile() bool` + +HasLoggingProfile returns a boolean if a field has been set. + +### GetAccessControlProfile + +`func (o *SessionData) GetAccessControlProfile() string` + +GetAccessControlProfile returns the AccessControlProfile field if non-nil, zero value otherwise. + +### GetAccessControlProfileOk + +`func (o *SessionData) GetAccessControlProfileOk() (*string, bool)` + +GetAccessControlProfileOk returns a tuple with the AccessControlProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessControlProfile + +`func (o *SessionData) SetAccessControlProfile(v string)` + +SetAccessControlProfile sets AccessControlProfile field to given value. + +### HasAccessControlProfile + +`func (o *SessionData) HasAccessControlProfile() bool` + +HasAccessControlProfile returns a boolean if a field has been set. + +### GetApplicationProfile + +`func (o *SessionData) GetApplicationProfile() string` + +GetApplicationProfile returns the ApplicationProfile field if non-nil, zero value otherwise. + +### GetApplicationProfileOk + +`func (o *SessionData) GetApplicationProfileOk() (*string, bool)` + +GetApplicationProfileOk returns a tuple with the ApplicationProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationProfile + +`func (o *SessionData) SetApplicationProfile(v string)` + +SetApplicationProfile sets ApplicationProfile field to given value. + +### HasApplicationProfile + +`func (o *SessionData) HasApplicationProfile() bool` + +HasApplicationProfile returns a boolean if a field has been set. + +### GetPayloadProfile + +`func (o *SessionData) GetPayloadProfile() PayloadProfile` + +GetPayloadProfile returns the PayloadProfile field if non-nil, zero value otherwise. + +### GetPayloadProfileOk + +`func (o *SessionData) GetPayloadProfileOk() (*PayloadProfile, bool)` + +GetPayloadProfileOk returns a tuple with the PayloadProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayloadProfile + +`func (o *SessionData) SetPayloadProfile(v PayloadProfile)` + +SetPayloadProfile sets PayloadProfile field to given value. + +### HasPayloadProfile + +`func (o *SessionData) HasPayloadProfile() bool` + +HasPayloadProfile returns a boolean if a field has been set. + +### GetAssetProfile + +`func (o *SessionData) GetAssetProfile() AssetProfile` + +GetAssetProfile returns the AssetProfile field if non-nil, zero value otherwise. + +### GetAssetProfileOk + +`func (o *SessionData) GetAssetProfileOk() (*AssetProfile, bool)` + +GetAssetProfileOk returns a tuple with the AssetProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetProfile + +`func (o *SessionData) SetAssetProfile(v AssetProfile)` + +SetAssetProfile sets AssetProfile field to given value. + +### HasAssetProfile + +`func (o *SessionData) HasAssetProfile() bool` + +HasAssetProfile returns a boolean if a field has been set. + +### GetAllowedSourceBackupGateways + +`func (o *SessionData) GetAllowedSourceBackupGateways() []string` + +GetAllowedSourceBackupGateways returns the AllowedSourceBackupGateways field if non-nil, zero value otherwise. + +### GetAllowedSourceBackupGatewaysOk + +`func (o *SessionData) GetAllowedSourceBackupGatewaysOk() (*[]string, bool)` + +GetAllowedSourceBackupGatewaysOk returns a tuple with the AllowedSourceBackupGateways field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedSourceBackupGateways + +`func (o *SessionData) SetAllowedSourceBackupGateways(v []string)` + +SetAllowedSourceBackupGateways sets AllowedSourceBackupGateways field to given value. + +### HasAllowedSourceBackupGateways + +`func (o *SessionData) HasAllowedSourceBackupGateways() bool` + +HasAllowedSourceBackupGateways returns a boolean if a field has been set. + +### GetAllowedRecipientBackupGateways + +`func (o *SessionData) GetAllowedRecipientBackupGateways() []string` + +GetAllowedRecipientBackupGateways returns the AllowedRecipientBackupGateways field if non-nil, zero value otherwise. + +### GetAllowedRecipientBackupGatewaysOk + +`func (o *SessionData) GetAllowedRecipientBackupGatewaysOk() (*[]string, bool)` + +GetAllowedRecipientBackupGatewaysOk returns a tuple with the AllowedRecipientBackupGateways field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRecipientBackupGateways + +`func (o *SessionData) SetAllowedRecipientBackupGateways(v []string)` + +SetAllowedRecipientBackupGateways sets AllowedRecipientBackupGateways field to given value. + +### HasAllowedRecipientBackupGateways + +`func (o *SessionData) HasAllowedRecipientBackupGateways() bool` + +HasAllowedRecipientBackupGateways returns a boolean if a field has been set. + +### GetSourceBasePath + +`func (o *SessionData) GetSourceBasePath() string` + +GetSourceBasePath returns the SourceBasePath field if non-nil, zero value otherwise. + +### GetSourceBasePathOk + +`func (o *SessionData) GetSourceBasePathOk() (*string, bool)` + +GetSourceBasePathOk returns a tuple with the SourceBasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceBasePath + +`func (o *SessionData) SetSourceBasePath(v string)` + +SetSourceBasePath sets SourceBasePath field to given value. + +### HasSourceBasePath + +`func (o *SessionData) HasSourceBasePath() bool` + +HasSourceBasePath returns a boolean if a field has been set. + +### GetRecipientBasePath + +`func (o *SessionData) GetRecipientBasePath() string` + +GetRecipientBasePath returns the RecipientBasePath field if non-nil, zero value otherwise. + +### GetRecipientBasePathOk + +`func (o *SessionData) GetRecipientBasePathOk() (*string, bool)` + +GetRecipientBasePathOk returns a tuple with the RecipientBasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientBasePath + +`func (o *SessionData) SetRecipientBasePath(v string)` + +SetRecipientBasePath sets RecipientBasePath field to given value. + +### HasRecipientBasePath + +`func (o *SessionData) HasRecipientBasePath() bool` + +HasRecipientBasePath returns a boolean if a field has been set. + +### GetOriginatorPubkey + +`func (o *SessionData) GetOriginatorPubkey() string` + +GetOriginatorPubkey returns the OriginatorPubkey field if non-nil, zero value otherwise. + +### GetOriginatorPubkeyOk + +`func (o *SessionData) GetOriginatorPubkeyOk() (*string, bool)` + +GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginatorPubkey + +`func (o *SessionData) SetOriginatorPubkey(v string)` + +SetOriginatorPubkey sets OriginatorPubkey field to given value. + +### HasOriginatorPubkey + +`func (o *SessionData) HasOriginatorPubkey() bool` + +HasOriginatorPubkey returns a boolean if a field has been set. + +### GetBeneficiaryPubkey + +`func (o *SessionData) GetBeneficiaryPubkey() string` + +GetBeneficiaryPubkey returns the BeneficiaryPubkey field if non-nil, zero value otherwise. + +### GetBeneficiaryPubkeyOk + +`func (o *SessionData) GetBeneficiaryPubkeyOk() (*string, bool)` + +GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBeneficiaryPubkey + +`func (o *SessionData) SetBeneficiaryPubkey(v string)` + +SetBeneficiaryPubkey sets BeneficiaryPubkey field to given value. + +### HasBeneficiaryPubkey + +`func (o *SessionData) HasBeneficiaryPubkey() bool` + +HasBeneficiaryPubkey returns a boolean if a field has been set. + +### GetSourceGatewayPubkey + +`func (o *SessionData) GetSourceGatewayPubkey() string` + +GetSourceGatewayPubkey returns the SourceGatewayPubkey field if non-nil, zero value otherwise. + +### GetSourceGatewayPubkeyOk + +`func (o *SessionData) GetSourceGatewayPubkeyOk() (*string, bool)` + +GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceGatewayPubkey + +`func (o *SessionData) SetSourceGatewayPubkey(v string)` + +SetSourceGatewayPubkey sets SourceGatewayPubkey field to given value. + +### HasSourceGatewayPubkey + +`func (o *SessionData) HasSourceGatewayPubkey() bool` + +HasSourceGatewayPubkey returns a boolean if a field has been set. + +### GetSourceGatewayDltSystem + +`func (o *SessionData) GetSourceGatewayDltSystem() string` + +GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field if non-nil, zero value otherwise. + +### GetSourceGatewayDltSystemOk + +`func (o *SessionData) GetSourceGatewayDltSystemOk() (*string, bool)` + +GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceGatewayDltSystem + +`func (o *SessionData) SetSourceGatewayDltSystem(v string)` + +SetSourceGatewayDltSystem sets SourceGatewayDltSystem field to given value. + +### HasSourceGatewayDltSystem + +`func (o *SessionData) HasSourceGatewayDltSystem() bool` + +HasSourceGatewayDltSystem returns a boolean if a field has been set. + +### GetRecipientGatewayPubkey + +`func (o *SessionData) GetRecipientGatewayPubkey() string` + +GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field if non-nil, zero value otherwise. + +### GetRecipientGatewayPubkeyOk + +`func (o *SessionData) GetRecipientGatewayPubkeyOk() (*string, bool)` + +GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayPubkey + +`func (o *SessionData) SetRecipientGatewayPubkey(v string)` + +SetRecipientGatewayPubkey sets RecipientGatewayPubkey field to given value. + +### HasRecipientGatewayPubkey + +`func (o *SessionData) HasRecipientGatewayPubkey() bool` + +HasRecipientGatewayPubkey returns a boolean if a field has been set. + +### GetRecipientGatewayDltSystem + +`func (o *SessionData) GetRecipientGatewayDltSystem() string` + +GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field if non-nil, zero value otherwise. + +### GetRecipientGatewayDltSystemOk + +`func (o *SessionData) GetRecipientGatewayDltSystemOk() (*string, bool)` + +GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayDltSystem + +`func (o *SessionData) SetRecipientGatewayDltSystem(v string)` + +SetRecipientGatewayDltSystem sets RecipientGatewayDltSystem field to given value. + +### HasRecipientGatewayDltSystem + +`func (o *SessionData) HasRecipientGatewayDltSystem() bool` + +HasRecipientGatewayDltSystem returns a boolean if a field has been set. + +### GetInitializationRequestMessageHash + +`func (o *SessionData) GetInitializationRequestMessageHash() string` + +GetInitializationRequestMessageHash returns the InitializationRequestMessageHash field if non-nil, zero value otherwise. + +### GetInitializationRequestMessageHashOk + +`func (o *SessionData) GetInitializationRequestMessageHashOk() (*string, bool)` + +GetInitializationRequestMessageHashOk returns a tuple with the InitializationRequestMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitializationRequestMessageHash + +`func (o *SessionData) SetInitializationRequestMessageHash(v string)` + +SetInitializationRequestMessageHash sets InitializationRequestMessageHash field to given value. + +### HasInitializationRequestMessageHash + +`func (o *SessionData) HasInitializationRequestMessageHash() bool` + +HasInitializationRequestMessageHash returns a boolean if a field has been set. + +### GetInitializationResponseMessageHash + +`func (o *SessionData) GetInitializationResponseMessageHash() string` + +GetInitializationResponseMessageHash returns the InitializationResponseMessageHash field if non-nil, zero value otherwise. + +### GetInitializationResponseMessageHashOk + +`func (o *SessionData) GetInitializationResponseMessageHashOk() (*string, bool)` + +GetInitializationResponseMessageHashOk returns a tuple with the InitializationResponseMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitializationResponseMessageHash + +`func (o *SessionData) SetInitializationResponseMessageHash(v string)` + +SetInitializationResponseMessageHash sets InitializationResponseMessageHash field to given value. + +### HasInitializationResponseMessageHash + +`func (o *SessionData) HasInitializationResponseMessageHash() bool` + +HasInitializationResponseMessageHash returns a boolean if a field has been set. + +### GetInitializationRequestMessageRcvTimeStamp + +`func (o *SessionData) GetInitializationRequestMessageRcvTimeStamp() string` + +GetInitializationRequestMessageRcvTimeStamp returns the InitializationRequestMessageRcvTimeStamp field if non-nil, zero value otherwise. + +### GetInitializationRequestMessageRcvTimeStampOk + +`func (o *SessionData) GetInitializationRequestMessageRcvTimeStampOk() (*string, bool)` + +GetInitializationRequestMessageRcvTimeStampOk returns a tuple with the InitializationRequestMessageRcvTimeStamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitializationRequestMessageRcvTimeStamp + +`func (o *SessionData) SetInitializationRequestMessageRcvTimeStamp(v string)` + +SetInitializationRequestMessageRcvTimeStamp sets InitializationRequestMessageRcvTimeStamp field to given value. + +### HasInitializationRequestMessageRcvTimeStamp + +`func (o *SessionData) HasInitializationRequestMessageRcvTimeStamp() bool` + +HasInitializationRequestMessageRcvTimeStamp returns a boolean if a field has been set. + +### GetInitializationRequestMessageProcessedTimeStamp + +`func (o *SessionData) GetInitializationRequestMessageProcessedTimeStamp() string` + +GetInitializationRequestMessageProcessedTimeStamp returns the InitializationRequestMessageProcessedTimeStamp field if non-nil, zero value otherwise. + +### GetInitializationRequestMessageProcessedTimeStampOk + +`func (o *SessionData) GetInitializationRequestMessageProcessedTimeStampOk() (*string, bool)` + +GetInitializationRequestMessageProcessedTimeStampOk returns a tuple with the InitializationRequestMessageProcessedTimeStamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitializationRequestMessageProcessedTimeStamp + +`func (o *SessionData) SetInitializationRequestMessageProcessedTimeStamp(v string)` + +SetInitializationRequestMessageProcessedTimeStamp sets InitializationRequestMessageProcessedTimeStamp field to given value. + +### HasInitializationRequestMessageProcessedTimeStamp + +`func (o *SessionData) HasInitializationRequestMessageProcessedTimeStamp() bool` + +HasInitializationRequestMessageProcessedTimeStamp returns a boolean if a field has been set. + +### GetClientSignatureInitializationRequestMessage + +`func (o *SessionData) GetClientSignatureInitializationRequestMessage() string` + +GetClientSignatureInitializationRequestMessage returns the ClientSignatureInitializationRequestMessage field if non-nil, zero value otherwise. + +### GetClientSignatureInitializationRequestMessageOk + +`func (o *SessionData) GetClientSignatureInitializationRequestMessageOk() (*string, bool)` + +GetClientSignatureInitializationRequestMessageOk returns a tuple with the ClientSignatureInitializationRequestMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureInitializationRequestMessage + +`func (o *SessionData) SetClientSignatureInitializationRequestMessage(v string)` + +SetClientSignatureInitializationRequestMessage sets ClientSignatureInitializationRequestMessage field to given value. + +### HasClientSignatureInitializationRequestMessage + +`func (o *SessionData) HasClientSignatureInitializationRequestMessage() bool` + +HasClientSignatureInitializationRequestMessage returns a boolean if a field has been set. + +### GetServerSignatureInitializationResponseMessage + +`func (o *SessionData) GetServerSignatureInitializationResponseMessage() string` + +GetServerSignatureInitializationResponseMessage returns the ServerSignatureInitializationResponseMessage field if non-nil, zero value otherwise. + +### GetServerSignatureInitializationResponseMessageOk + +`func (o *SessionData) GetServerSignatureInitializationResponseMessageOk() (*string, bool)` + +GetServerSignatureInitializationResponseMessageOk returns a tuple with the ServerSignatureInitializationResponseMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerSignatureInitializationResponseMessage + +`func (o *SessionData) SetServerSignatureInitializationResponseMessage(v string)` + +SetServerSignatureInitializationResponseMessage sets ServerSignatureInitializationResponseMessage field to given value. + +### HasServerSignatureInitializationResponseMessage + +`func (o *SessionData) HasServerSignatureInitializationResponseMessage() bool` + +HasServerSignatureInitializationResponseMessage returns a boolean if a field has been set. + +### GetTransferCommenceMessageRequestHash + +`func (o *SessionData) GetTransferCommenceMessageRequestHash() string` + +GetTransferCommenceMessageRequestHash returns the TransferCommenceMessageRequestHash field if non-nil, zero value otherwise. + +### GetTransferCommenceMessageRequestHashOk + +`func (o *SessionData) GetTransferCommenceMessageRequestHashOk() (*string, bool)` + +GetTransferCommenceMessageRequestHashOk returns a tuple with the TransferCommenceMessageRequestHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferCommenceMessageRequestHash + +`func (o *SessionData) SetTransferCommenceMessageRequestHash(v string)` + +SetTransferCommenceMessageRequestHash sets TransferCommenceMessageRequestHash field to given value. + +### HasTransferCommenceMessageRequestHash + +`func (o *SessionData) HasTransferCommenceMessageRequestHash() bool` + +HasTransferCommenceMessageRequestHash returns a boolean if a field has been set. + +### GetTransferCommenceMessageResponseHash + +`func (o *SessionData) GetTransferCommenceMessageResponseHash() string` + +GetTransferCommenceMessageResponseHash returns the TransferCommenceMessageResponseHash field if non-nil, zero value otherwise. + +### GetTransferCommenceMessageResponseHashOk + +`func (o *SessionData) GetTransferCommenceMessageResponseHashOk() (*string, bool)` + +GetTransferCommenceMessageResponseHashOk returns a tuple with the TransferCommenceMessageResponseHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferCommenceMessageResponseHash + +`func (o *SessionData) SetTransferCommenceMessageResponseHash(v string)` + +SetTransferCommenceMessageResponseHash sets TransferCommenceMessageResponseHash field to given value. + +### HasTransferCommenceMessageResponseHash + +`func (o *SessionData) HasTransferCommenceMessageResponseHash() bool` + +HasTransferCommenceMessageResponseHash returns a boolean if a field has been set. + +### GetClientSignatureTransferCommenceRequestMessage + +`func (o *SessionData) GetClientSignatureTransferCommenceRequestMessage() string` + +GetClientSignatureTransferCommenceRequestMessage returns the ClientSignatureTransferCommenceRequestMessage field if non-nil, zero value otherwise. + +### GetClientSignatureTransferCommenceRequestMessageOk + +`func (o *SessionData) GetClientSignatureTransferCommenceRequestMessageOk() (*string, bool)` + +GetClientSignatureTransferCommenceRequestMessageOk returns a tuple with the ClientSignatureTransferCommenceRequestMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureTransferCommenceRequestMessage + +`func (o *SessionData) SetClientSignatureTransferCommenceRequestMessage(v string)` + +SetClientSignatureTransferCommenceRequestMessage sets ClientSignatureTransferCommenceRequestMessage field to given value. + +### HasClientSignatureTransferCommenceRequestMessage + +`func (o *SessionData) HasClientSignatureTransferCommenceRequestMessage() bool` + +HasClientSignatureTransferCommenceRequestMessage returns a boolean if a field has been set. + +### GetServerSignatureTransferCommenceResponseMessage + +`func (o *SessionData) GetServerSignatureTransferCommenceResponseMessage() string` + +GetServerSignatureTransferCommenceResponseMessage returns the ServerSignatureTransferCommenceResponseMessage field if non-nil, zero value otherwise. + +### GetServerSignatureTransferCommenceResponseMessageOk + +`func (o *SessionData) GetServerSignatureTransferCommenceResponseMessageOk() (*string, bool)` + +GetServerSignatureTransferCommenceResponseMessageOk returns a tuple with the ServerSignatureTransferCommenceResponseMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerSignatureTransferCommenceResponseMessage + +`func (o *SessionData) SetServerSignatureTransferCommenceResponseMessage(v string)` + +SetServerSignatureTransferCommenceResponseMessage sets ServerSignatureTransferCommenceResponseMessage field to given value. + +### HasServerSignatureTransferCommenceResponseMessage + +`func (o *SessionData) HasServerSignatureTransferCommenceResponseMessage() bool` + +HasServerSignatureTransferCommenceResponseMessage returns a boolean if a field has been set. + +### GetLockEvidenceRequestMessageHash + +`func (o *SessionData) GetLockEvidenceRequestMessageHash() string` + +GetLockEvidenceRequestMessageHash returns the LockEvidenceRequestMessageHash field if non-nil, zero value otherwise. + +### GetLockEvidenceRequestMessageHashOk + +`func (o *SessionData) GetLockEvidenceRequestMessageHashOk() (*string, bool)` + +GetLockEvidenceRequestMessageHashOk returns a tuple with the LockEvidenceRequestMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceRequestMessageHash + +`func (o *SessionData) SetLockEvidenceRequestMessageHash(v string)` + +SetLockEvidenceRequestMessageHash sets LockEvidenceRequestMessageHash field to given value. + +### HasLockEvidenceRequestMessageHash + +`func (o *SessionData) HasLockEvidenceRequestMessageHash() bool` + +HasLockEvidenceRequestMessageHash returns a boolean if a field has been set. + +### GetLockEvidenceResponseMessageHash + +`func (o *SessionData) GetLockEvidenceResponseMessageHash() string` + +GetLockEvidenceResponseMessageHash returns the LockEvidenceResponseMessageHash field if non-nil, zero value otherwise. + +### GetLockEvidenceResponseMessageHashOk + +`func (o *SessionData) GetLockEvidenceResponseMessageHashOk() (*string, bool)` + +GetLockEvidenceResponseMessageHashOk returns a tuple with the LockEvidenceResponseMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceResponseMessageHash + +`func (o *SessionData) SetLockEvidenceResponseMessageHash(v string)` + +SetLockEvidenceResponseMessageHash sets LockEvidenceResponseMessageHash field to given value. + +### HasLockEvidenceResponseMessageHash + +`func (o *SessionData) HasLockEvidenceResponseMessageHash() bool` + +HasLockEvidenceResponseMessageHash returns a boolean if a field has been set. + +### GetClientSignatureLockEvidenceRequestMessage + +`func (o *SessionData) GetClientSignatureLockEvidenceRequestMessage() string` + +GetClientSignatureLockEvidenceRequestMessage returns the ClientSignatureLockEvidenceRequestMessage field if non-nil, zero value otherwise. + +### GetClientSignatureLockEvidenceRequestMessageOk + +`func (o *SessionData) GetClientSignatureLockEvidenceRequestMessageOk() (*string, bool)` + +GetClientSignatureLockEvidenceRequestMessageOk returns a tuple with the ClientSignatureLockEvidenceRequestMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureLockEvidenceRequestMessage + +`func (o *SessionData) SetClientSignatureLockEvidenceRequestMessage(v string)` + +SetClientSignatureLockEvidenceRequestMessage sets ClientSignatureLockEvidenceRequestMessage field to given value. + +### HasClientSignatureLockEvidenceRequestMessage + +`func (o *SessionData) HasClientSignatureLockEvidenceRequestMessage() bool` + +HasClientSignatureLockEvidenceRequestMessage returns a boolean if a field has been set. + +### GetServerSignatureLockEvidenceResponseMessage + +`func (o *SessionData) GetServerSignatureLockEvidenceResponseMessage() string` + +GetServerSignatureLockEvidenceResponseMessage returns the ServerSignatureLockEvidenceResponseMessage field if non-nil, zero value otherwise. + +### GetServerSignatureLockEvidenceResponseMessageOk + +`func (o *SessionData) GetServerSignatureLockEvidenceResponseMessageOk() (*string, bool)` + +GetServerSignatureLockEvidenceResponseMessageOk returns a tuple with the ServerSignatureLockEvidenceResponseMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerSignatureLockEvidenceResponseMessage + +`func (o *SessionData) SetServerSignatureLockEvidenceResponseMessage(v string)` + +SetServerSignatureLockEvidenceResponseMessage sets ServerSignatureLockEvidenceResponseMessage field to given value. + +### HasServerSignatureLockEvidenceResponseMessage + +`func (o *SessionData) HasServerSignatureLockEvidenceResponseMessage() bool` + +HasServerSignatureLockEvidenceResponseMessage returns a boolean if a field has been set. + +### GetLockEvidenceClaim + +`func (o *SessionData) GetLockEvidenceClaim() string` + +GetLockEvidenceClaim returns the LockEvidenceClaim field if non-nil, zero value otherwise. + +### GetLockEvidenceClaimOk + +`func (o *SessionData) GetLockEvidenceClaimOk() (*string, bool)` + +GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockEvidenceClaim + +`func (o *SessionData) SetLockEvidenceClaim(v string)` + +SetLockEvidenceClaim sets LockEvidenceClaim field to given value. + +### HasLockEvidenceClaim + +`func (o *SessionData) HasLockEvidenceClaim() bool` + +HasLockEvidenceClaim returns a boolean if a field has been set. + +### GetCommitPrepareRequestMessageHash + +`func (o *SessionData) GetCommitPrepareRequestMessageHash() string` + +GetCommitPrepareRequestMessageHash returns the CommitPrepareRequestMessageHash field if non-nil, zero value otherwise. + +### GetCommitPrepareRequestMessageHashOk + +`func (o *SessionData) GetCommitPrepareRequestMessageHashOk() (*string, bool)` + +GetCommitPrepareRequestMessageHashOk returns a tuple with the CommitPrepareRequestMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitPrepareRequestMessageHash + +`func (o *SessionData) SetCommitPrepareRequestMessageHash(v string)` + +SetCommitPrepareRequestMessageHash sets CommitPrepareRequestMessageHash field to given value. + +### HasCommitPrepareRequestMessageHash + +`func (o *SessionData) HasCommitPrepareRequestMessageHash() bool` + +HasCommitPrepareRequestMessageHash returns a boolean if a field has been set. + +### GetCommitPrepareResponseMessageHash + +`func (o *SessionData) GetCommitPrepareResponseMessageHash() string` + +GetCommitPrepareResponseMessageHash returns the CommitPrepareResponseMessageHash field if non-nil, zero value otherwise. + +### GetCommitPrepareResponseMessageHashOk + +`func (o *SessionData) GetCommitPrepareResponseMessageHashOk() (*string, bool)` + +GetCommitPrepareResponseMessageHashOk returns a tuple with the CommitPrepareResponseMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitPrepareResponseMessageHash + +`func (o *SessionData) SetCommitPrepareResponseMessageHash(v string)` + +SetCommitPrepareResponseMessageHash sets CommitPrepareResponseMessageHash field to given value. + +### HasCommitPrepareResponseMessageHash + +`func (o *SessionData) HasCommitPrepareResponseMessageHash() bool` + +HasCommitPrepareResponseMessageHash returns a boolean if a field has been set. + +### GetClientSignatureCommitPreparationRequestMessage + +`func (o *SessionData) GetClientSignatureCommitPreparationRequestMessage() string` + +GetClientSignatureCommitPreparationRequestMessage returns the ClientSignatureCommitPreparationRequestMessage field if non-nil, zero value otherwise. + +### GetClientSignatureCommitPreparationRequestMessageOk + +`func (o *SessionData) GetClientSignatureCommitPreparationRequestMessageOk() (*string, bool)` + +GetClientSignatureCommitPreparationRequestMessageOk returns a tuple with the ClientSignatureCommitPreparationRequestMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureCommitPreparationRequestMessage + +`func (o *SessionData) SetClientSignatureCommitPreparationRequestMessage(v string)` + +SetClientSignatureCommitPreparationRequestMessage sets ClientSignatureCommitPreparationRequestMessage field to given value. + +### HasClientSignatureCommitPreparationRequestMessage + +`func (o *SessionData) HasClientSignatureCommitPreparationRequestMessage() bool` + +HasClientSignatureCommitPreparationRequestMessage returns a boolean if a field has been set. + +### GetServerSignatureCommitPreparationResponseMessage + +`func (o *SessionData) GetServerSignatureCommitPreparationResponseMessage() string` + +GetServerSignatureCommitPreparationResponseMessage returns the ServerSignatureCommitPreparationResponseMessage field if non-nil, zero value otherwise. + +### GetServerSignatureCommitPreparationResponseMessageOk + +`func (o *SessionData) GetServerSignatureCommitPreparationResponseMessageOk() (*string, bool)` + +GetServerSignatureCommitPreparationResponseMessageOk returns a tuple with the ServerSignatureCommitPreparationResponseMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerSignatureCommitPreparationResponseMessage + +`func (o *SessionData) SetServerSignatureCommitPreparationResponseMessage(v string)` + +SetServerSignatureCommitPreparationResponseMessage sets ServerSignatureCommitPreparationResponseMessage field to given value. + +### HasServerSignatureCommitPreparationResponseMessage + +`func (o *SessionData) HasServerSignatureCommitPreparationResponseMessage() bool` + +HasServerSignatureCommitPreparationResponseMessage returns a boolean if a field has been set. + +### GetCommitFinalRequestMessageHash + +`func (o *SessionData) GetCommitFinalRequestMessageHash() string` + +GetCommitFinalRequestMessageHash returns the CommitFinalRequestMessageHash field if non-nil, zero value otherwise. + +### GetCommitFinalRequestMessageHashOk + +`func (o *SessionData) GetCommitFinalRequestMessageHashOk() (*string, bool)` + +GetCommitFinalRequestMessageHashOk returns a tuple with the CommitFinalRequestMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalRequestMessageHash + +`func (o *SessionData) SetCommitFinalRequestMessageHash(v string)` + +SetCommitFinalRequestMessageHash sets CommitFinalRequestMessageHash field to given value. + +### HasCommitFinalRequestMessageHash + +`func (o *SessionData) HasCommitFinalRequestMessageHash() bool` + +HasCommitFinalRequestMessageHash returns a boolean if a field has been set. + +### GetCommitFinalResponseMessageHash + +`func (o *SessionData) GetCommitFinalResponseMessageHash() string` + +GetCommitFinalResponseMessageHash returns the CommitFinalResponseMessageHash field if non-nil, zero value otherwise. + +### GetCommitFinalResponseMessageHashOk + +`func (o *SessionData) GetCommitFinalResponseMessageHashOk() (*string, bool)` + +GetCommitFinalResponseMessageHashOk returns a tuple with the CommitFinalResponseMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalResponseMessageHash + +`func (o *SessionData) SetCommitFinalResponseMessageHash(v string)` + +SetCommitFinalResponseMessageHash sets CommitFinalResponseMessageHash field to given value. + +### HasCommitFinalResponseMessageHash + +`func (o *SessionData) HasCommitFinalResponseMessageHash() bool` + +HasCommitFinalResponseMessageHash returns a boolean if a field has been set. + +### GetCommitFinalClaim + +`func (o *SessionData) GetCommitFinalClaim() string` + +GetCommitFinalClaim returns the CommitFinalClaim field if non-nil, zero value otherwise. + +### GetCommitFinalClaimOk + +`func (o *SessionData) GetCommitFinalClaimOk() (*string, bool)` + +GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalClaim + +`func (o *SessionData) SetCommitFinalClaim(v string)` + +SetCommitFinalClaim sets CommitFinalClaim field to given value. + +### HasCommitFinalClaim + +`func (o *SessionData) HasCommitFinalClaim() bool` + +HasCommitFinalClaim returns a boolean if a field has been set. + +### GetCommitFinalClaimFormat + +`func (o *SessionData) GetCommitFinalClaimFormat() string` + +GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field if non-nil, zero value otherwise. + +### GetCommitFinalClaimFormatOk + +`func (o *SessionData) GetCommitFinalClaimFormatOk() (*string, bool)` + +GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitFinalClaimFormat + +`func (o *SessionData) SetCommitFinalClaimFormat(v string)` + +SetCommitFinalClaimFormat sets CommitFinalClaimFormat field to given value. + +### HasCommitFinalClaimFormat + +`func (o *SessionData) HasCommitFinalClaimFormat() bool` + +HasCommitFinalClaimFormat returns a boolean if a field has been set. + +### GetCommitAcknowledgementClaim + +`func (o *SessionData) GetCommitAcknowledgementClaim() string` + +GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field if non-nil, zero value otherwise. + +### GetCommitAcknowledgementClaimOk + +`func (o *SessionData) GetCommitAcknowledgementClaimOk() (*string, bool)` + +GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitAcknowledgementClaim + +`func (o *SessionData) SetCommitAcknowledgementClaim(v string)` + +SetCommitAcknowledgementClaim sets CommitAcknowledgementClaim field to given value. + +### HasCommitAcknowledgementClaim + +`func (o *SessionData) HasCommitAcknowledgementClaim() bool` + +HasCommitAcknowledgementClaim returns a boolean if a field has been set. + +### GetCommitAcknowledgementClaimFormat + +`func (o *SessionData) GetCommitAcknowledgementClaimFormat() string` + +GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field if non-nil, zero value otherwise. + +### GetCommitAcknowledgementClaimFormatOk + +`func (o *SessionData) GetCommitAcknowledgementClaimFormatOk() (*string, bool)` + +GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitAcknowledgementClaimFormat + +`func (o *SessionData) SetCommitAcknowledgementClaimFormat(v string)` + +SetCommitAcknowledgementClaimFormat sets CommitAcknowledgementClaimFormat field to given value. + +### HasCommitAcknowledgementClaimFormat + +`func (o *SessionData) HasCommitAcknowledgementClaimFormat() bool` + +HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. + +### GetClientSignatureCommitFinalRequestMessage + +`func (o *SessionData) GetClientSignatureCommitFinalRequestMessage() string` + +GetClientSignatureCommitFinalRequestMessage returns the ClientSignatureCommitFinalRequestMessage field if non-nil, zero value otherwise. + +### GetClientSignatureCommitFinalRequestMessageOk + +`func (o *SessionData) GetClientSignatureCommitFinalRequestMessageOk() (*string, bool)` + +GetClientSignatureCommitFinalRequestMessageOk returns a tuple with the ClientSignatureCommitFinalRequestMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureCommitFinalRequestMessage + +`func (o *SessionData) SetClientSignatureCommitFinalRequestMessage(v string)` + +SetClientSignatureCommitFinalRequestMessage sets ClientSignatureCommitFinalRequestMessage field to given value. + +### HasClientSignatureCommitFinalRequestMessage + +`func (o *SessionData) HasClientSignatureCommitFinalRequestMessage() bool` + +HasClientSignatureCommitFinalRequestMessage returns a boolean if a field has been set. + +### GetServerSignatureCommitFinalResponseMessage + +`func (o *SessionData) GetServerSignatureCommitFinalResponseMessage() string` + +GetServerSignatureCommitFinalResponseMessage returns the ServerSignatureCommitFinalResponseMessage field if non-nil, zero value otherwise. + +### GetServerSignatureCommitFinalResponseMessageOk + +`func (o *SessionData) GetServerSignatureCommitFinalResponseMessageOk() (*string, bool)` + +GetServerSignatureCommitFinalResponseMessageOk returns a tuple with the ServerSignatureCommitFinalResponseMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerSignatureCommitFinalResponseMessage + +`func (o *SessionData) SetServerSignatureCommitFinalResponseMessage(v string)` + +SetServerSignatureCommitFinalResponseMessage sets ServerSignatureCommitFinalResponseMessage field to given value. + +### HasServerSignatureCommitFinalResponseMessage + +`func (o *SessionData) HasServerSignatureCommitFinalResponseMessage() bool` + +HasServerSignatureCommitFinalResponseMessage returns a boolean if a field has been set. + +### GetTransferCompleteMessageHash + +`func (o *SessionData) GetTransferCompleteMessageHash() string` + +GetTransferCompleteMessageHash returns the TransferCompleteMessageHash field if non-nil, zero value otherwise. + +### GetTransferCompleteMessageHashOk + +`func (o *SessionData) GetTransferCompleteMessageHashOk() (*string, bool)` + +GetTransferCompleteMessageHashOk returns a tuple with the TransferCompleteMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferCompleteMessageHash + +`func (o *SessionData) SetTransferCompleteMessageHash(v string)` + +SetTransferCompleteMessageHash sets TransferCompleteMessageHash field to given value. + +### HasTransferCompleteMessageHash + +`func (o *SessionData) HasTransferCompleteMessageHash() bool` + +HasTransferCompleteMessageHash returns a boolean if a field has been set. + +### GetClientSignatureTransferCompleteMessage + +`func (o *SessionData) GetClientSignatureTransferCompleteMessage() string` + +GetClientSignatureTransferCompleteMessage returns the ClientSignatureTransferCompleteMessage field if non-nil, zero value otherwise. + +### GetClientSignatureTransferCompleteMessageOk + +`func (o *SessionData) GetClientSignatureTransferCompleteMessageOk() (*string, bool)` + +GetClientSignatureTransferCompleteMessageOk returns a tuple with the ClientSignatureTransferCompleteMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSignatureTransferCompleteMessage + +`func (o *SessionData) SetClientSignatureTransferCompleteMessage(v string)` + +SetClientSignatureTransferCompleteMessage sets ClientSignatureTransferCompleteMessage field to given value. + +### HasClientSignatureTransferCompleteMessage + +`func (o *SessionData) HasClientSignatureTransferCompleteMessage() bool` + +HasClientSignatureTransferCompleteMessage returns a boolean if a field has been set. + +### GetMaxRetries + +`func (o *SessionData) GetMaxRetries() float32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *SessionData) GetMaxRetriesOk() (*float32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *SessionData) SetMaxRetries(v float32)` + +SetMaxRetries sets MaxRetries field to given value. + +### HasMaxRetries + +`func (o *SessionData) HasMaxRetries() bool` + +HasMaxRetries returns a boolean if a field has been set. + +### GetRecipientLedgerAssetID + +`func (o *SessionData) GetRecipientLedgerAssetID() string` + +GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field if non-nil, zero value otherwise. + +### GetRecipientLedgerAssetIDOk + +`func (o *SessionData) GetRecipientLedgerAssetIDOk() (*string, bool)` + +GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientLedgerAssetID + +`func (o *SessionData) SetRecipientLedgerAssetID(v string)` + +SetRecipientLedgerAssetID sets RecipientLedgerAssetID field to given value. + +### HasRecipientLedgerAssetID + +`func (o *SessionData) HasRecipientLedgerAssetID() bool` + +HasRecipientLedgerAssetID returns a boolean if a field has been set. + +### GetSourceLedgerAssetID + +`func (o *SessionData) GetSourceLedgerAssetID() string` + +GetSourceLedgerAssetID returns the SourceLedgerAssetID field if non-nil, zero value otherwise. + +### GetSourceLedgerAssetIDOk + +`func (o *SessionData) GetSourceLedgerAssetIDOk() (*string, bool)` + +GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLedgerAssetID + +`func (o *SessionData) SetSourceLedgerAssetID(v string)` + +SetSourceLedgerAssetID sets SourceLedgerAssetID field to given value. + +### HasSourceLedgerAssetID + +`func (o *SessionData) HasSourceLedgerAssetID() bool` + +HasSourceLedgerAssetID returns a boolean if a field has been set. + +### GetMaxTimeout + +`func (o *SessionData) GetMaxTimeout() float32` + +GetMaxTimeout returns the MaxTimeout field if non-nil, zero value otherwise. + +### GetMaxTimeoutOk + +`func (o *SessionData) GetMaxTimeoutOk() (*float32, bool)` + +GetMaxTimeoutOk returns a tuple with the MaxTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTimeout + +`func (o *SessionData) SetMaxTimeout(v float32)` + +SetMaxTimeout sets MaxTimeout field to given value. + +### HasMaxTimeout + +`func (o *SessionData) HasMaxTimeout() bool` + +HasMaxTimeout returns a boolean if a field has been set. + +### GetLastLogEntryTimestamp + +`func (o *SessionData) GetLastLogEntryTimestamp() string` + +GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field if non-nil, zero value otherwise. + +### GetLastLogEntryTimestampOk + +`func (o *SessionData) GetLastLogEntryTimestampOk() (*string, bool)` + +GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogEntryTimestamp + +`func (o *SessionData) SetLastLogEntryTimestamp(v string)` + +SetLastLogEntryTimestamp sets LastLogEntryTimestamp field to given value. + +### HasLastLogEntryTimestamp + +`func (o *SessionData) HasLastLogEntryTimestamp() bool` + +HasLastLogEntryTimestamp returns a boolean if a field has been set. + +### GetUnlockAssetClaim + +`func (o *SessionData) GetUnlockAssetClaim() string` + +GetUnlockAssetClaim returns the UnlockAssetClaim field if non-nil, zero value otherwise. + +### GetUnlockAssetClaimOk + +`func (o *SessionData) GetUnlockAssetClaimOk() (*string, bool)` + +GetUnlockAssetClaimOk returns a tuple with the UnlockAssetClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnlockAssetClaim + +`func (o *SessionData) SetUnlockAssetClaim(v string)` + +SetUnlockAssetClaim sets UnlockAssetClaim field to given value. + +### HasUnlockAssetClaim + +`func (o *SessionData) HasUnlockAssetClaim() bool` + +HasUnlockAssetClaim returns a boolean if a field has been set. + +### GetRecreateAssetClaim + +`func (o *SessionData) GetRecreateAssetClaim() string` + +GetRecreateAssetClaim returns the RecreateAssetClaim field if non-nil, zero value otherwise. + +### GetRecreateAssetClaimOk + +`func (o *SessionData) GetRecreateAssetClaimOk() (*string, bool)` + +GetRecreateAssetClaimOk returns a tuple with the RecreateAssetClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecreateAssetClaim + +`func (o *SessionData) SetRecreateAssetClaim(v string)` + +SetRecreateAssetClaim sets RecreateAssetClaim field to given value. + +### HasRecreateAssetClaim + +`func (o *SessionData) HasRecreateAssetClaim() bool` + +HasRecreateAssetClaim returns a boolean if a field has been set. + +### GetDeleteAssetClaim + +`func (o *SessionData) GetDeleteAssetClaim() string` + +GetDeleteAssetClaim returns the DeleteAssetClaim field if non-nil, zero value otherwise. + +### GetDeleteAssetClaimOk + +`func (o *SessionData) GetDeleteAssetClaimOk() (*string, bool)` + +GetDeleteAssetClaimOk returns a tuple with the DeleteAssetClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeleteAssetClaim + +`func (o *SessionData) SetDeleteAssetClaim(v string)` + +SetDeleteAssetClaim sets DeleteAssetClaim field to given value. + +### HasDeleteAssetClaim + +`func (o *SessionData) HasDeleteAssetClaim() bool` + +HasDeleteAssetClaim returns a boolean if a field has been set. + +### GetLastMessageReceivedTimestamp + +`func (o *SessionData) GetLastMessageReceivedTimestamp() string` + +GetLastMessageReceivedTimestamp returns the LastMessageReceivedTimestamp field if non-nil, zero value otherwise. + +### GetLastMessageReceivedTimestampOk + +`func (o *SessionData) GetLastMessageReceivedTimestampOk() (*string, bool)` + +GetLastMessageReceivedTimestampOk returns a tuple with the LastMessageReceivedTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastMessageReceivedTimestamp + +`func (o *SessionData) SetLastMessageReceivedTimestamp(v string)` + +SetLastMessageReceivedTimestamp sets LastMessageReceivedTimestamp field to given value. + +### HasLastMessageReceivedTimestamp + +`func (o *SessionData) HasLastMessageReceivedTimestamp() bool` + +HasLastMessageReceivedTimestamp returns a boolean if a field has been set. + +### GetRollback + +`func (o *SessionData) GetRollback() bool` + +GetRollback returns the Rollback field if non-nil, zero value otherwise. + +### GetRollbackOk + +`func (o *SessionData) GetRollbackOk() (*bool, bool)` + +GetRollbackOk returns a tuple with the Rollback field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRollback + +`func (o *SessionData) SetRollback(v bool)` + +SetRollback sets Rollback field to given value. + +### HasRollback + +`func (o *SessionData) HasRollback() bool` + +HasRollback returns a boolean if a field has been set. + +### GetRollbackMessageHash + +`func (o *SessionData) GetRollbackMessageHash() string` + +GetRollbackMessageHash returns the RollbackMessageHash field if non-nil, zero value otherwise. + +### GetRollbackMessageHashOk + +`func (o *SessionData) GetRollbackMessageHashOk() (*string, bool)` + +GetRollbackMessageHashOk returns a tuple with the RollbackMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRollbackMessageHash + +`func (o *SessionData) SetRollbackMessageHash(v string)` + +SetRollbackMessageHash sets RollbackMessageHash field to given value. + +### HasRollbackMessageHash + +`func (o *SessionData) HasRollbackMessageHash() bool` + +HasRollbackMessageHash returns a boolean if a field has been set. + +### GetRollbackProofs + +`func (o *SessionData) GetRollbackProofs() []string` + +GetRollbackProofs returns the RollbackProofs field if non-nil, zero value otherwise. + +### GetRollbackProofsOk + +`func (o *SessionData) GetRollbackProofsOk() (*[]string, bool)` + +GetRollbackProofsOk returns a tuple with the RollbackProofs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRollbackProofs + +`func (o *SessionData) SetRollbackProofs(v []string)` + +SetRollbackProofs sets RollbackProofs field to given value. + +### HasRollbackProofs + +`func (o *SessionData) HasRollbackProofs() bool` + +HasRollbackProofs returns a boolean if a field has been set. + +### GetRollbackActionsPerformed + +`func (o *SessionData) GetRollbackActionsPerformed() []string` + +GetRollbackActionsPerformed returns the RollbackActionsPerformed field if non-nil, zero value otherwise. + +### GetRollbackActionsPerformedOk + +`func (o *SessionData) GetRollbackActionsPerformedOk() (*[]string, bool)` + +GetRollbackActionsPerformedOk returns a tuple with the RollbackActionsPerformed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRollbackActionsPerformed + +`func (o *SessionData) SetRollbackActionsPerformed(v []string)` + +SetRollbackActionsPerformed sets RollbackActionsPerformed field to given value. + +### HasRollbackActionsPerformed + +`func (o *SessionData) HasRollbackActionsPerformed() bool` + +HasRollbackActionsPerformed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Request.md new file mode 100644 index 00000000000..39356f8cf21 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Request.md @@ -0,0 +1,344 @@ +# TransferCommenceV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**OriginatorPubkey** | **string** | | +**BeneficiaryPubkey** | **string** | | +**SenderDltSystem** | **string** | | +**RecipientDltSystem** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashAssetProfile** | **string** | | +**AssetUnit** | Pointer to **int32** | | [optional] +**HashPrevMessage** | **string** | | +**ClientTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**SequenceNumber** | **int32** | | + +## Methods + +### NewTransferCommenceV1Request + +`func NewTransferCommenceV1Request(sessionID string, messageType string, originatorPubkey string, beneficiaryPubkey string, senderDltSystem string, recipientDltSystem string, clientIdentityPubkey string, serverIdentityPubkey string, hashAssetProfile string, hashPrevMessage string, signature string, sequenceNumber int32, ) *TransferCommenceV1Request` + +NewTransferCommenceV1Request instantiates a new TransferCommenceV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferCommenceV1RequestWithDefaults + +`func NewTransferCommenceV1RequestWithDefaults() *TransferCommenceV1Request` + +NewTransferCommenceV1RequestWithDefaults instantiates a new TransferCommenceV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *TransferCommenceV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *TransferCommenceV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *TransferCommenceV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *TransferCommenceV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *TransferCommenceV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *TransferCommenceV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetOriginatorPubkey + +`func (o *TransferCommenceV1Request) GetOriginatorPubkey() string` + +GetOriginatorPubkey returns the OriginatorPubkey field if non-nil, zero value otherwise. + +### GetOriginatorPubkeyOk + +`func (o *TransferCommenceV1Request) GetOriginatorPubkeyOk() (*string, bool)` + +GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginatorPubkey + +`func (o *TransferCommenceV1Request) SetOriginatorPubkey(v string)` + +SetOriginatorPubkey sets OriginatorPubkey field to given value. + + +### GetBeneficiaryPubkey + +`func (o *TransferCommenceV1Request) GetBeneficiaryPubkey() string` + +GetBeneficiaryPubkey returns the BeneficiaryPubkey field if non-nil, zero value otherwise. + +### GetBeneficiaryPubkeyOk + +`func (o *TransferCommenceV1Request) GetBeneficiaryPubkeyOk() (*string, bool)` + +GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBeneficiaryPubkey + +`func (o *TransferCommenceV1Request) SetBeneficiaryPubkey(v string)` + +SetBeneficiaryPubkey sets BeneficiaryPubkey field to given value. + + +### GetSenderDltSystem + +`func (o *TransferCommenceV1Request) GetSenderDltSystem() string` + +GetSenderDltSystem returns the SenderDltSystem field if non-nil, zero value otherwise. + +### GetSenderDltSystemOk + +`func (o *TransferCommenceV1Request) GetSenderDltSystemOk() (*string, bool)` + +GetSenderDltSystemOk returns a tuple with the SenderDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderDltSystem + +`func (o *TransferCommenceV1Request) SetSenderDltSystem(v string)` + +SetSenderDltSystem sets SenderDltSystem field to given value. + + +### GetRecipientDltSystem + +`func (o *TransferCommenceV1Request) GetRecipientDltSystem() string` + +GetRecipientDltSystem returns the RecipientDltSystem field if non-nil, zero value otherwise. + +### GetRecipientDltSystemOk + +`func (o *TransferCommenceV1Request) GetRecipientDltSystemOk() (*string, bool)` + +GetRecipientDltSystemOk returns a tuple with the RecipientDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientDltSystem + +`func (o *TransferCommenceV1Request) SetRecipientDltSystem(v string)` + +SetRecipientDltSystem sets RecipientDltSystem field to given value. + + +### GetClientIdentityPubkey + +`func (o *TransferCommenceV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *TransferCommenceV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *TransferCommenceV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *TransferCommenceV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *TransferCommenceV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *TransferCommenceV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashAssetProfile + +`func (o *TransferCommenceV1Request) GetHashAssetProfile() string` + +GetHashAssetProfile returns the HashAssetProfile field if non-nil, zero value otherwise. + +### GetHashAssetProfileOk + +`func (o *TransferCommenceV1Request) GetHashAssetProfileOk() (*string, bool)` + +GetHashAssetProfileOk returns a tuple with the HashAssetProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashAssetProfile + +`func (o *TransferCommenceV1Request) SetHashAssetProfile(v string)` + +SetHashAssetProfile sets HashAssetProfile field to given value. + + +### GetAssetUnit + +`func (o *TransferCommenceV1Request) GetAssetUnit() int32` + +GetAssetUnit returns the AssetUnit field if non-nil, zero value otherwise. + +### GetAssetUnitOk + +`func (o *TransferCommenceV1Request) GetAssetUnitOk() (*int32, bool)` + +GetAssetUnitOk returns a tuple with the AssetUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetUnit + +`func (o *TransferCommenceV1Request) SetAssetUnit(v int32)` + +SetAssetUnit sets AssetUnit field to given value. + +### HasAssetUnit + +`func (o *TransferCommenceV1Request) HasAssetUnit() bool` + +HasAssetUnit returns a boolean if a field has been set. + +### GetHashPrevMessage + +`func (o *TransferCommenceV1Request) GetHashPrevMessage() string` + +GetHashPrevMessage returns the HashPrevMessage field if non-nil, zero value otherwise. + +### GetHashPrevMessageOk + +`func (o *TransferCommenceV1Request) GetHashPrevMessageOk() (*string, bool)` + +GetHashPrevMessageOk returns a tuple with the HashPrevMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashPrevMessage + +`func (o *TransferCommenceV1Request) SetHashPrevMessage(v string)` + +SetHashPrevMessage sets HashPrevMessage field to given value. + + +### GetClientTransferNumber + +`func (o *TransferCommenceV1Request) GetClientTransferNumber() int32` + +GetClientTransferNumber returns the ClientTransferNumber field if non-nil, zero value otherwise. + +### GetClientTransferNumberOk + +`func (o *TransferCommenceV1Request) GetClientTransferNumberOk() (*int32, bool)` + +GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTransferNumber + +`func (o *TransferCommenceV1Request) SetClientTransferNumber(v int32)` + +SetClientTransferNumber sets ClientTransferNumber field to given value. + +### HasClientTransferNumber + +`func (o *TransferCommenceV1Request) HasClientTransferNumber() bool` + +HasClientTransferNumber returns a boolean if a field has been set. + +### SetClientTransferNumberNil + +`func (o *TransferCommenceV1Request) SetClientTransferNumberNil(b bool)` + + SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil + +### UnsetClientTransferNumber +`func (o *TransferCommenceV1Request) UnsetClientTransferNumber()` + +UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +### GetSignature + +`func (o *TransferCommenceV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransferCommenceV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransferCommenceV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSequenceNumber + +`func (o *TransferCommenceV1Request) GetSequenceNumber() int32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *TransferCommenceV1Request) GetSequenceNumberOk() (*int32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *TransferCommenceV1Request) SetSequenceNumber(v int32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Response.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Response.md new file mode 100644 index 00000000000..adc3f7f8425 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCommenceV1Response.md @@ -0,0 +1,239 @@ +# TransferCommenceV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashCommenceRequest** | **string** | | +**ServerTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**MessageType** | **string** | | +**MessageHash** | Pointer to **string** | | [optional] +**SequenceNumber** | **float32** | | + +## Methods + +### NewTransferCommenceV1Response + +`func NewTransferCommenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommenceRequest string, signature string, messageType string, sequenceNumber float32, ) *TransferCommenceV1Response` + +NewTransferCommenceV1Response instantiates a new TransferCommenceV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferCommenceV1ResponseWithDefaults + +`func NewTransferCommenceV1ResponseWithDefaults() *TransferCommenceV1Response` + +NewTransferCommenceV1ResponseWithDefaults instantiates a new TransferCommenceV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *TransferCommenceV1Response) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *TransferCommenceV1Response) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *TransferCommenceV1Response) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetClientIdentityPubkey + +`func (o *TransferCommenceV1Response) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *TransferCommenceV1Response) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *TransferCommenceV1Response) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *TransferCommenceV1Response) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *TransferCommenceV1Response) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *TransferCommenceV1Response) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashCommenceRequest + +`func (o *TransferCommenceV1Response) GetHashCommenceRequest() string` + +GetHashCommenceRequest returns the HashCommenceRequest field if non-nil, zero value otherwise. + +### GetHashCommenceRequestOk + +`func (o *TransferCommenceV1Response) GetHashCommenceRequestOk() (*string, bool)` + +GetHashCommenceRequestOk returns a tuple with the HashCommenceRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommenceRequest + +`func (o *TransferCommenceV1Response) SetHashCommenceRequest(v string)` + +SetHashCommenceRequest sets HashCommenceRequest field to given value. + + +### GetServerTransferNumber + +`func (o *TransferCommenceV1Response) GetServerTransferNumber() int32` + +GetServerTransferNumber returns the ServerTransferNumber field if non-nil, zero value otherwise. + +### GetServerTransferNumberOk + +`func (o *TransferCommenceV1Response) GetServerTransferNumberOk() (*int32, bool)` + +GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerTransferNumber + +`func (o *TransferCommenceV1Response) SetServerTransferNumber(v int32)` + +SetServerTransferNumber sets ServerTransferNumber field to given value. + +### HasServerTransferNumber + +`func (o *TransferCommenceV1Response) HasServerTransferNumber() bool` + +HasServerTransferNumber returns a boolean if a field has been set. + +### SetServerTransferNumberNil + +`func (o *TransferCommenceV1Response) SetServerTransferNumberNil(b bool)` + + SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil + +### UnsetServerTransferNumber +`func (o *TransferCommenceV1Response) UnsetServerTransferNumber()` + +UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil +### GetSignature + +`func (o *TransferCommenceV1Response) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransferCommenceV1Response) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransferCommenceV1Response) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetMessageType + +`func (o *TransferCommenceV1Response) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *TransferCommenceV1Response) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *TransferCommenceV1Response) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetMessageHash + +`func (o *TransferCommenceV1Response) GetMessageHash() string` + +GetMessageHash returns the MessageHash field if non-nil, zero value otherwise. + +### GetMessageHashOk + +`func (o *TransferCommenceV1Response) GetMessageHashOk() (*string, bool)` + +GetMessageHashOk returns a tuple with the MessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageHash + +`func (o *TransferCommenceV1Response) SetMessageHash(v string)` + +SetMessageHash sets MessageHash field to given value. + +### HasMessageHash + +`func (o *TransferCommenceV1Response) HasMessageHash() bool` + +HasMessageHash returns a boolean if a field has been set. + +### GetSequenceNumber + +`func (o *TransferCommenceV1Response) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *TransferCommenceV1Response) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *TransferCommenceV1Response) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCompleteV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCompleteV1Request.md new file mode 100644 index 00000000000..6c5cfb6a745 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferCompleteV1Request.md @@ -0,0 +1,234 @@ +# TransferCompleteV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | **string** | | +**MessageType** | **string** | | +**ClientIdentityPubkey** | **string** | | +**ServerIdentityPubkey** | **string** | | +**HashCommitFinalAck** | **string** | | +**ClientTransferNumber** | Pointer to **NullableInt32** | | [optional] +**Signature** | **string** | | +**HashTransferCommence** | **string** | | +**SequenceNumber** | **float32** | | + +## Methods + +### NewTransferCompleteV1Request + +`func NewTransferCompleteV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitFinalAck string, signature string, hashTransferCommence string, sequenceNumber float32, ) *TransferCompleteV1Request` + +NewTransferCompleteV1Request instantiates a new TransferCompleteV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferCompleteV1RequestWithDefaults + +`func NewTransferCompleteV1RequestWithDefaults() *TransferCompleteV1Request` + +NewTransferCompleteV1RequestWithDefaults instantiates a new TransferCompleteV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *TransferCompleteV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *TransferCompleteV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *TransferCompleteV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetMessageType + +`func (o *TransferCompleteV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *TransferCompleteV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *TransferCompleteV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetClientIdentityPubkey + +`func (o *TransferCompleteV1Request) GetClientIdentityPubkey() string` + +GetClientIdentityPubkey returns the ClientIdentityPubkey field if non-nil, zero value otherwise. + +### GetClientIdentityPubkeyOk + +`func (o *TransferCompleteV1Request) GetClientIdentityPubkeyOk() (*string, bool)` + +GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIdentityPubkey + +`func (o *TransferCompleteV1Request) SetClientIdentityPubkey(v string)` + +SetClientIdentityPubkey sets ClientIdentityPubkey field to given value. + + +### GetServerIdentityPubkey + +`func (o *TransferCompleteV1Request) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *TransferCompleteV1Request) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *TransferCompleteV1Request) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetHashCommitFinalAck + +`func (o *TransferCompleteV1Request) GetHashCommitFinalAck() string` + +GetHashCommitFinalAck returns the HashCommitFinalAck field if non-nil, zero value otherwise. + +### GetHashCommitFinalAckOk + +`func (o *TransferCompleteV1Request) GetHashCommitFinalAckOk() (*string, bool)` + +GetHashCommitFinalAckOk returns a tuple with the HashCommitFinalAck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashCommitFinalAck + +`func (o *TransferCompleteV1Request) SetHashCommitFinalAck(v string)` + +SetHashCommitFinalAck sets HashCommitFinalAck field to given value. + + +### GetClientTransferNumber + +`func (o *TransferCompleteV1Request) GetClientTransferNumber() int32` + +GetClientTransferNumber returns the ClientTransferNumber field if non-nil, zero value otherwise. + +### GetClientTransferNumberOk + +`func (o *TransferCompleteV1Request) GetClientTransferNumberOk() (*int32, bool)` + +GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientTransferNumber + +`func (o *TransferCompleteV1Request) SetClientTransferNumber(v int32)` + +SetClientTransferNumber sets ClientTransferNumber field to given value. + +### HasClientTransferNumber + +`func (o *TransferCompleteV1Request) HasClientTransferNumber() bool` + +HasClientTransferNumber returns a boolean if a field has been set. + +### SetClientTransferNumberNil + +`func (o *TransferCompleteV1Request) SetClientTransferNumberNil(b bool)` + + SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil + +### UnsetClientTransferNumber +`func (o *TransferCompleteV1Request) UnsetClientTransferNumber()` + +UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +### GetSignature + +`func (o *TransferCompleteV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransferCompleteV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransferCompleteV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetHashTransferCommence + +`func (o *TransferCompleteV1Request) GetHashTransferCommence() string` + +GetHashTransferCommence returns the HashTransferCommence field if non-nil, zero value otherwise. + +### GetHashTransferCommenceOk + +`func (o *TransferCompleteV1Request) GetHashTransferCommenceOk() (*string, bool)` + +GetHashTransferCommenceOk returns a tuple with the HashTransferCommence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashTransferCommence + +`func (o *TransferCompleteV1Request) SetHashTransferCommence(v string)` + +SetHashTransferCommence sets HashTransferCommence field to given value. + + +### GetSequenceNumber + +`func (o *TransferCompleteV1Request) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *TransferCompleteV1Request) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *TransferCompleteV1Request) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Request.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Request.md new file mode 100644 index 00000000000..692986cd8b6 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Request.md @@ -0,0 +1,741 @@ +# TransferInitializationV1Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageType** | **string** | | +**SessionID** | **string** | | +**Version** | Pointer to **string** | | [optional] +**DeveloperURN** | Pointer to **string** | | [optional] +**CredentialProfile** | Pointer to [**CredentialProfile**](CredentialProfile.md) | | [optional] +**PayloadProfile** | [**PayloadProfile**](PayloadProfile.md) | | +**ApplicationProfile** | **string** | | +**LoggingProfile** | **string** | | +**AccessControlProfile** | **string** | | +**Signature** | **string** | | +**SourceGatewayPubkey** | **string** | | +**SourceGatewayDltSystem** | **string** | | +**RecipientGatewayPubkey** | **string** | | +**RecipientGatewayDltSystem** | **string** | | +**EscrowType** | Pointer to **string** | | [optional] +**ExpiryTime** | Pointer to **string** | | [optional] +**MultipleClaimsAllowed** | Pointer to **bool** | | [optional] +**MultipleCancelsAllowed** | Pointer to **bool** | | [optional] +**Permissions** | Pointer to **map[string]interface{}** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**Destination** | Pointer to **string** | | [optional] +**SubsequentCalls** | Pointer to **map[string]interface{}** | | [optional] +**Histories** | Pointer to [**[]History**](History.md) | | [optional] +**SequenceNumber** | **int32** | | +**SourceBasePath** | **string** | | +**RecipientBasePath** | **string** | | +**MaxRetries** | **float32** | | +**MaxTimeout** | **float32** | | +**BackupGatewaysAllowed** | **[]string** | | +**RecipientLedgerAssetID** | **string** | | +**SourceLedgerAssetID** | **string** | | + +## Methods + +### NewTransferInitializationV1Request + +`func NewTransferInitializationV1Request(messageType string, sessionID string, payloadProfile PayloadProfile, applicationProfile string, loggingProfile string, accessControlProfile string, signature string, sourceGatewayPubkey string, sourceGatewayDltSystem string, recipientGatewayPubkey string, recipientGatewayDltSystem string, sequenceNumber int32, sourceBasePath string, recipientBasePath string, maxRetries float32, maxTimeout float32, backupGatewaysAllowed []string, recipientLedgerAssetID string, sourceLedgerAssetID string, ) *TransferInitializationV1Request` + +NewTransferInitializationV1Request instantiates a new TransferInitializationV1Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferInitializationV1RequestWithDefaults + +`func NewTransferInitializationV1RequestWithDefaults() *TransferInitializationV1Request` + +NewTransferInitializationV1RequestWithDefaults instantiates a new TransferInitializationV1Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessageType + +`func (o *TransferInitializationV1Request) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *TransferInitializationV1Request) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *TransferInitializationV1Request) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetSessionID + +`func (o *TransferInitializationV1Request) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *TransferInitializationV1Request) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *TransferInitializationV1Request) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetVersion + +`func (o *TransferInitializationV1Request) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *TransferInitializationV1Request) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *TransferInitializationV1Request) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *TransferInitializationV1Request) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetDeveloperURN + +`func (o *TransferInitializationV1Request) GetDeveloperURN() string` + +GetDeveloperURN returns the DeveloperURN field if non-nil, zero value otherwise. + +### GetDeveloperURNOk + +`func (o *TransferInitializationV1Request) GetDeveloperURNOk() (*string, bool)` + +GetDeveloperURNOk returns a tuple with the DeveloperURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeveloperURN + +`func (o *TransferInitializationV1Request) SetDeveloperURN(v string)` + +SetDeveloperURN sets DeveloperURN field to given value. + +### HasDeveloperURN + +`func (o *TransferInitializationV1Request) HasDeveloperURN() bool` + +HasDeveloperURN returns a boolean if a field has been set. + +### GetCredentialProfile + +`func (o *TransferInitializationV1Request) GetCredentialProfile() CredentialProfile` + +GetCredentialProfile returns the CredentialProfile field if non-nil, zero value otherwise. + +### GetCredentialProfileOk + +`func (o *TransferInitializationV1Request) GetCredentialProfileOk() (*CredentialProfile, bool)` + +GetCredentialProfileOk returns a tuple with the CredentialProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialProfile + +`func (o *TransferInitializationV1Request) SetCredentialProfile(v CredentialProfile)` + +SetCredentialProfile sets CredentialProfile field to given value. + +### HasCredentialProfile + +`func (o *TransferInitializationV1Request) HasCredentialProfile() bool` + +HasCredentialProfile returns a boolean if a field has been set. + +### GetPayloadProfile + +`func (o *TransferInitializationV1Request) GetPayloadProfile() PayloadProfile` + +GetPayloadProfile returns the PayloadProfile field if non-nil, zero value otherwise. + +### GetPayloadProfileOk + +`func (o *TransferInitializationV1Request) GetPayloadProfileOk() (*PayloadProfile, bool)` + +GetPayloadProfileOk returns a tuple with the PayloadProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayloadProfile + +`func (o *TransferInitializationV1Request) SetPayloadProfile(v PayloadProfile)` + +SetPayloadProfile sets PayloadProfile field to given value. + + +### GetApplicationProfile + +`func (o *TransferInitializationV1Request) GetApplicationProfile() string` + +GetApplicationProfile returns the ApplicationProfile field if non-nil, zero value otherwise. + +### GetApplicationProfileOk + +`func (o *TransferInitializationV1Request) GetApplicationProfileOk() (*string, bool)` + +GetApplicationProfileOk returns a tuple with the ApplicationProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationProfile + +`func (o *TransferInitializationV1Request) SetApplicationProfile(v string)` + +SetApplicationProfile sets ApplicationProfile field to given value. + + +### GetLoggingProfile + +`func (o *TransferInitializationV1Request) GetLoggingProfile() string` + +GetLoggingProfile returns the LoggingProfile field if non-nil, zero value otherwise. + +### GetLoggingProfileOk + +`func (o *TransferInitializationV1Request) GetLoggingProfileOk() (*string, bool)` + +GetLoggingProfileOk returns a tuple with the LoggingProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoggingProfile + +`func (o *TransferInitializationV1Request) SetLoggingProfile(v string)` + +SetLoggingProfile sets LoggingProfile field to given value. + + +### GetAccessControlProfile + +`func (o *TransferInitializationV1Request) GetAccessControlProfile() string` + +GetAccessControlProfile returns the AccessControlProfile field if non-nil, zero value otherwise. + +### GetAccessControlProfileOk + +`func (o *TransferInitializationV1Request) GetAccessControlProfileOk() (*string, bool)` + +GetAccessControlProfileOk returns a tuple with the AccessControlProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessControlProfile + +`func (o *TransferInitializationV1Request) SetAccessControlProfile(v string)` + +SetAccessControlProfile sets AccessControlProfile field to given value. + + +### GetSignature + +`func (o *TransferInitializationV1Request) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransferInitializationV1Request) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransferInitializationV1Request) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetSourceGatewayPubkey + +`func (o *TransferInitializationV1Request) GetSourceGatewayPubkey() string` + +GetSourceGatewayPubkey returns the SourceGatewayPubkey field if non-nil, zero value otherwise. + +### GetSourceGatewayPubkeyOk + +`func (o *TransferInitializationV1Request) GetSourceGatewayPubkeyOk() (*string, bool)` + +GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceGatewayPubkey + +`func (o *TransferInitializationV1Request) SetSourceGatewayPubkey(v string)` + +SetSourceGatewayPubkey sets SourceGatewayPubkey field to given value. + + +### GetSourceGatewayDltSystem + +`func (o *TransferInitializationV1Request) GetSourceGatewayDltSystem() string` + +GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field if non-nil, zero value otherwise. + +### GetSourceGatewayDltSystemOk + +`func (o *TransferInitializationV1Request) GetSourceGatewayDltSystemOk() (*string, bool)` + +GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceGatewayDltSystem + +`func (o *TransferInitializationV1Request) SetSourceGatewayDltSystem(v string)` + +SetSourceGatewayDltSystem sets SourceGatewayDltSystem field to given value. + + +### GetRecipientGatewayPubkey + +`func (o *TransferInitializationV1Request) GetRecipientGatewayPubkey() string` + +GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field if non-nil, zero value otherwise. + +### GetRecipientGatewayPubkeyOk + +`func (o *TransferInitializationV1Request) GetRecipientGatewayPubkeyOk() (*string, bool)` + +GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayPubkey + +`func (o *TransferInitializationV1Request) SetRecipientGatewayPubkey(v string)` + +SetRecipientGatewayPubkey sets RecipientGatewayPubkey field to given value. + + +### GetRecipientGatewayDltSystem + +`func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystem() string` + +GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field if non-nil, zero value otherwise. + +### GetRecipientGatewayDltSystemOk + +`func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystemOk() (*string, bool)` + +GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientGatewayDltSystem + +`func (o *TransferInitializationV1Request) SetRecipientGatewayDltSystem(v string)` + +SetRecipientGatewayDltSystem sets RecipientGatewayDltSystem field to given value. + + +### GetEscrowType + +`func (o *TransferInitializationV1Request) GetEscrowType() string` + +GetEscrowType returns the EscrowType field if non-nil, zero value otherwise. + +### GetEscrowTypeOk + +`func (o *TransferInitializationV1Request) GetEscrowTypeOk() (*string, bool)` + +GetEscrowTypeOk returns a tuple with the EscrowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEscrowType + +`func (o *TransferInitializationV1Request) SetEscrowType(v string)` + +SetEscrowType sets EscrowType field to given value. + +### HasEscrowType + +`func (o *TransferInitializationV1Request) HasEscrowType() bool` + +HasEscrowType returns a boolean if a field has been set. + +### GetExpiryTime + +`func (o *TransferInitializationV1Request) GetExpiryTime() string` + +GetExpiryTime returns the ExpiryTime field if non-nil, zero value otherwise. + +### GetExpiryTimeOk + +`func (o *TransferInitializationV1Request) GetExpiryTimeOk() (*string, bool)` + +GetExpiryTimeOk returns a tuple with the ExpiryTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiryTime + +`func (o *TransferInitializationV1Request) SetExpiryTime(v string)` + +SetExpiryTime sets ExpiryTime field to given value. + +### HasExpiryTime + +`func (o *TransferInitializationV1Request) HasExpiryTime() bool` + +HasExpiryTime returns a boolean if a field has been set. + +### GetMultipleClaimsAllowed + +`func (o *TransferInitializationV1Request) GetMultipleClaimsAllowed() bool` + +GetMultipleClaimsAllowed returns the MultipleClaimsAllowed field if non-nil, zero value otherwise. + +### GetMultipleClaimsAllowedOk + +`func (o *TransferInitializationV1Request) GetMultipleClaimsAllowedOk() (*bool, bool)` + +GetMultipleClaimsAllowedOk returns a tuple with the MultipleClaimsAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultipleClaimsAllowed + +`func (o *TransferInitializationV1Request) SetMultipleClaimsAllowed(v bool)` + +SetMultipleClaimsAllowed sets MultipleClaimsAllowed field to given value. + +### HasMultipleClaimsAllowed + +`func (o *TransferInitializationV1Request) HasMultipleClaimsAllowed() bool` + +HasMultipleClaimsAllowed returns a boolean if a field has been set. + +### GetMultipleCancelsAllowed + +`func (o *TransferInitializationV1Request) GetMultipleCancelsAllowed() bool` + +GetMultipleCancelsAllowed returns the MultipleCancelsAllowed field if non-nil, zero value otherwise. + +### GetMultipleCancelsAllowedOk + +`func (o *TransferInitializationV1Request) GetMultipleCancelsAllowedOk() (*bool, bool)` + +GetMultipleCancelsAllowedOk returns a tuple with the MultipleCancelsAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultipleCancelsAllowed + +`func (o *TransferInitializationV1Request) SetMultipleCancelsAllowed(v bool)` + +SetMultipleCancelsAllowed sets MultipleCancelsAllowed field to given value. + +### HasMultipleCancelsAllowed + +`func (o *TransferInitializationV1Request) HasMultipleCancelsAllowed() bool` + +HasMultipleCancelsAllowed returns a boolean if a field has been set. + +### GetPermissions + +`func (o *TransferInitializationV1Request) GetPermissions() map[string]interface{}` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *TransferInitializationV1Request) GetPermissionsOk() (*map[string]interface{}, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *TransferInitializationV1Request) SetPermissions(v map[string]interface{})` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *TransferInitializationV1Request) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### GetOrigin + +`func (o *TransferInitializationV1Request) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *TransferInitializationV1Request) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *TransferInitializationV1Request) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *TransferInitializationV1Request) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetDestination + +`func (o *TransferInitializationV1Request) GetDestination() string` + +GetDestination returns the Destination field if non-nil, zero value otherwise. + +### GetDestinationOk + +`func (o *TransferInitializationV1Request) GetDestinationOk() (*string, bool)` + +GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestination + +`func (o *TransferInitializationV1Request) SetDestination(v string)` + +SetDestination sets Destination field to given value. + +### HasDestination + +`func (o *TransferInitializationV1Request) HasDestination() bool` + +HasDestination returns a boolean if a field has been set. + +### GetSubsequentCalls + +`func (o *TransferInitializationV1Request) GetSubsequentCalls() map[string]interface{}` + +GetSubsequentCalls returns the SubsequentCalls field if non-nil, zero value otherwise. + +### GetSubsequentCallsOk + +`func (o *TransferInitializationV1Request) GetSubsequentCallsOk() (*map[string]interface{}, bool)` + +GetSubsequentCallsOk returns a tuple with the SubsequentCalls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubsequentCalls + +`func (o *TransferInitializationV1Request) SetSubsequentCalls(v map[string]interface{})` + +SetSubsequentCalls sets SubsequentCalls field to given value. + +### HasSubsequentCalls + +`func (o *TransferInitializationV1Request) HasSubsequentCalls() bool` + +HasSubsequentCalls returns a boolean if a field has been set. + +### GetHistories + +`func (o *TransferInitializationV1Request) GetHistories() []History` + +GetHistories returns the Histories field if non-nil, zero value otherwise. + +### GetHistoriesOk + +`func (o *TransferInitializationV1Request) GetHistoriesOk() (*[]History, bool)` + +GetHistoriesOk returns a tuple with the Histories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHistories + +`func (o *TransferInitializationV1Request) SetHistories(v []History)` + +SetHistories sets Histories field to given value. + +### HasHistories + +`func (o *TransferInitializationV1Request) HasHistories() bool` + +HasHistories returns a boolean if a field has been set. + +### GetSequenceNumber + +`func (o *TransferInitializationV1Request) GetSequenceNumber() int32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *TransferInitializationV1Request) GetSequenceNumberOk() (*int32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *TransferInitializationV1Request) SetSequenceNumber(v int32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + +### GetSourceBasePath + +`func (o *TransferInitializationV1Request) GetSourceBasePath() string` + +GetSourceBasePath returns the SourceBasePath field if non-nil, zero value otherwise. + +### GetSourceBasePathOk + +`func (o *TransferInitializationV1Request) GetSourceBasePathOk() (*string, bool)` + +GetSourceBasePathOk returns a tuple with the SourceBasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceBasePath + +`func (o *TransferInitializationV1Request) SetSourceBasePath(v string)` + +SetSourceBasePath sets SourceBasePath field to given value. + + +### GetRecipientBasePath + +`func (o *TransferInitializationV1Request) GetRecipientBasePath() string` + +GetRecipientBasePath returns the RecipientBasePath field if non-nil, zero value otherwise. + +### GetRecipientBasePathOk + +`func (o *TransferInitializationV1Request) GetRecipientBasePathOk() (*string, bool)` + +GetRecipientBasePathOk returns a tuple with the RecipientBasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientBasePath + +`func (o *TransferInitializationV1Request) SetRecipientBasePath(v string)` + +SetRecipientBasePath sets RecipientBasePath field to given value. + + +### GetMaxRetries + +`func (o *TransferInitializationV1Request) GetMaxRetries() float32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *TransferInitializationV1Request) GetMaxRetriesOk() (*float32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *TransferInitializationV1Request) SetMaxRetries(v float32)` + +SetMaxRetries sets MaxRetries field to given value. + + +### GetMaxTimeout + +`func (o *TransferInitializationV1Request) GetMaxTimeout() float32` + +GetMaxTimeout returns the MaxTimeout field if non-nil, zero value otherwise. + +### GetMaxTimeoutOk + +`func (o *TransferInitializationV1Request) GetMaxTimeoutOk() (*float32, bool)` + +GetMaxTimeoutOk returns a tuple with the MaxTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTimeout + +`func (o *TransferInitializationV1Request) SetMaxTimeout(v float32)` + +SetMaxTimeout sets MaxTimeout field to given value. + + +### GetBackupGatewaysAllowed + +`func (o *TransferInitializationV1Request) GetBackupGatewaysAllowed() []string` + +GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field if non-nil, zero value otherwise. + +### GetBackupGatewaysAllowedOk + +`func (o *TransferInitializationV1Request) GetBackupGatewaysAllowedOk() (*[]string, bool)` + +GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackupGatewaysAllowed + +`func (o *TransferInitializationV1Request) SetBackupGatewaysAllowed(v []string)` + +SetBackupGatewaysAllowed sets BackupGatewaysAllowed field to given value. + + +### GetRecipientLedgerAssetID + +`func (o *TransferInitializationV1Request) GetRecipientLedgerAssetID() string` + +GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field if non-nil, zero value otherwise. + +### GetRecipientLedgerAssetIDOk + +`func (o *TransferInitializationV1Request) GetRecipientLedgerAssetIDOk() (*string, bool)` + +GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipientLedgerAssetID + +`func (o *TransferInitializationV1Request) SetRecipientLedgerAssetID(v string)` + +SetRecipientLedgerAssetID sets RecipientLedgerAssetID field to given value. + + +### GetSourceLedgerAssetID + +`func (o *TransferInitializationV1Request) GetSourceLedgerAssetID() string` + +GetSourceLedgerAssetID returns the SourceLedgerAssetID field if non-nil, zero value otherwise. + +### GetSourceLedgerAssetIDOk + +`func (o *TransferInitializationV1Request) GetSourceLedgerAssetIDOk() (*string, bool)` + +GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLedgerAssetID + +`func (o *TransferInitializationV1Request) SetSourceLedgerAssetID(v string)` + +SetSourceLedgerAssetID sets SourceLedgerAssetID field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Response.md b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Response.md new file mode 100644 index 00000000000..43b33b88b99 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/docs/TransferInitializationV1Response.md @@ -0,0 +1,271 @@ +# TransferInitializationV1Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageType** | **string** | | +**SessionID** | **string** | | +**SequenceNumber** | **float32** | | +**OdapPhase** | Pointer to **string** | | [optional] +**InitialRequestMessageHash** | **string** | | +**Destination** | Pointer to **string** | | [optional] +**TimeStamp** | **string** | | +**ProcessedTimeStamp** | **string** | | +**ServerIdentityPubkey** | **string** | | +**Signature** | **string** | | +**BackupGatewaysAllowed** | **[]string** | | + +## Methods + +### NewTransferInitializationV1Response + +`func NewTransferInitializationV1Response(messageType string, sessionID string, sequenceNumber float32, initialRequestMessageHash string, timeStamp string, processedTimeStamp string, serverIdentityPubkey string, signature string, backupGatewaysAllowed []string, ) *TransferInitializationV1Response` + +NewTransferInitializationV1Response instantiates a new TransferInitializationV1Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferInitializationV1ResponseWithDefaults + +`func NewTransferInitializationV1ResponseWithDefaults() *TransferInitializationV1Response` + +NewTransferInitializationV1ResponseWithDefaults instantiates a new TransferInitializationV1Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessageType + +`func (o *TransferInitializationV1Response) GetMessageType() string` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *TransferInitializationV1Response) GetMessageTypeOk() (*string, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *TransferInitializationV1Response) SetMessageType(v string)` + +SetMessageType sets MessageType field to given value. + + +### GetSessionID + +`func (o *TransferInitializationV1Response) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *TransferInitializationV1Response) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *TransferInitializationV1Response) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + + +### GetSequenceNumber + +`func (o *TransferInitializationV1Response) GetSequenceNumber() float32` + +GetSequenceNumber returns the SequenceNumber field if non-nil, zero value otherwise. + +### GetSequenceNumberOk + +`func (o *TransferInitializationV1Response) GetSequenceNumberOk() (*float32, bool)` + +GetSequenceNumberOk returns a tuple with the SequenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceNumber + +`func (o *TransferInitializationV1Response) SetSequenceNumber(v float32)` + +SetSequenceNumber sets SequenceNumber field to given value. + + +### GetOdapPhase + +`func (o *TransferInitializationV1Response) GetOdapPhase() string` + +GetOdapPhase returns the OdapPhase field if non-nil, zero value otherwise. + +### GetOdapPhaseOk + +`func (o *TransferInitializationV1Response) GetOdapPhaseOk() (*string, bool)` + +GetOdapPhaseOk returns a tuple with the OdapPhase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOdapPhase + +`func (o *TransferInitializationV1Response) SetOdapPhase(v string)` + +SetOdapPhase sets OdapPhase field to given value. + +### HasOdapPhase + +`func (o *TransferInitializationV1Response) HasOdapPhase() bool` + +HasOdapPhase returns a boolean if a field has been set. + +### GetInitialRequestMessageHash + +`func (o *TransferInitializationV1Response) GetInitialRequestMessageHash() string` + +GetInitialRequestMessageHash returns the InitialRequestMessageHash field if non-nil, zero value otherwise. + +### GetInitialRequestMessageHashOk + +`func (o *TransferInitializationV1Response) GetInitialRequestMessageHashOk() (*string, bool)` + +GetInitialRequestMessageHashOk returns a tuple with the InitialRequestMessageHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialRequestMessageHash + +`func (o *TransferInitializationV1Response) SetInitialRequestMessageHash(v string)` + +SetInitialRequestMessageHash sets InitialRequestMessageHash field to given value. + + +### GetDestination + +`func (o *TransferInitializationV1Response) GetDestination() string` + +GetDestination returns the Destination field if non-nil, zero value otherwise. + +### GetDestinationOk + +`func (o *TransferInitializationV1Response) GetDestinationOk() (*string, bool)` + +GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestination + +`func (o *TransferInitializationV1Response) SetDestination(v string)` + +SetDestination sets Destination field to given value. + +### HasDestination + +`func (o *TransferInitializationV1Response) HasDestination() bool` + +HasDestination returns a boolean if a field has been set. + +### GetTimeStamp + +`func (o *TransferInitializationV1Response) GetTimeStamp() string` + +GetTimeStamp returns the TimeStamp field if non-nil, zero value otherwise. + +### GetTimeStampOk + +`func (o *TransferInitializationV1Response) GetTimeStampOk() (*string, bool)` + +GetTimeStampOk returns a tuple with the TimeStamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeStamp + +`func (o *TransferInitializationV1Response) SetTimeStamp(v string)` + +SetTimeStamp sets TimeStamp field to given value. + + +### GetProcessedTimeStamp + +`func (o *TransferInitializationV1Response) GetProcessedTimeStamp() string` + +GetProcessedTimeStamp returns the ProcessedTimeStamp field if non-nil, zero value otherwise. + +### GetProcessedTimeStampOk + +`func (o *TransferInitializationV1Response) GetProcessedTimeStampOk() (*string, bool)` + +GetProcessedTimeStampOk returns a tuple with the ProcessedTimeStamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessedTimeStamp + +`func (o *TransferInitializationV1Response) SetProcessedTimeStamp(v string)` + +SetProcessedTimeStamp sets ProcessedTimeStamp field to given value. + + +### GetServerIdentityPubkey + +`func (o *TransferInitializationV1Response) GetServerIdentityPubkey() string` + +GetServerIdentityPubkey returns the ServerIdentityPubkey field if non-nil, zero value otherwise. + +### GetServerIdentityPubkeyOk + +`func (o *TransferInitializationV1Response) GetServerIdentityPubkeyOk() (*string, bool)` + +GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerIdentityPubkey + +`func (o *TransferInitializationV1Response) SetServerIdentityPubkey(v string)` + +SetServerIdentityPubkey sets ServerIdentityPubkey field to given value. + + +### GetSignature + +`func (o *TransferInitializationV1Response) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *TransferInitializationV1Response) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *TransferInitializationV1Response) SetSignature(v string)` + +SetSignature sets Signature field to given value. + + +### GetBackupGatewaysAllowed + +`func (o *TransferInitializationV1Response) GetBackupGatewaysAllowed() []string` + +GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field if non-nil, zero value otherwise. + +### GetBackupGatewaysAllowedOk + +`func (o *TransferInitializationV1Response) GetBackupGatewaysAllowedOk() (*[]string, bool)` + +GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackupGatewaysAllowed + +`func (o *TransferInitializationV1Response) SetBackupGatewaysAllowed(v []string)` + +SetBackupGatewaysAllowed sets BackupGatewaysAllowed field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..731a73a313e --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..058de7e58ca --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go new file mode 100644 index 00000000000..a7135857a08 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go @@ -0,0 +1,513 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the AssetProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetProfile{} + +// AssetProfile struct for AssetProfile +type AssetProfile struct { + Issuer *string `json:"issuer,omitempty"` + AssetCode *string `json:"assetCode,omitempty"` + AssetCodeType *string `json:"assetCodeType,omitempty"` + IssuanceDate *string `json:"issuanceDate,omitempty"` + ExpirationDate string `json:"expirationDate"` + VerificationEndPoint *string `json:"verificationEndPoint,omitempty"` + DigitalSignature *string `json:"digitalSignature,omitempty"` + ProspectusLink *string `json:"prospectusLink,omitempty"` + KeyInformationLink []interface{} `json:"keyInformationLink,omitempty"` + KeyWord []interface{} `json:"keyWord,omitempty"` + TransferRestriction []interface{} `json:"transferRestriction,omitempty"` + LedgerRequirements []interface{} `json:"ledgerRequirements,omitempty"` +} + +// NewAssetProfile instantiates a new AssetProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAssetProfile(expirationDate string) *AssetProfile { + this := AssetProfile{} + this.ExpirationDate = expirationDate + return &this +} + +// NewAssetProfileWithDefaults instantiates a new AssetProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAssetProfileWithDefaults() *AssetProfile { + this := AssetProfile{} + return &this +} + +// GetIssuer returns the Issuer field value if set, zero value otherwise. +func (o *AssetProfile) GetIssuer() string { + if o == nil || IsNil(o.Issuer) { + var ret string + return ret + } + return *o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetIssuerOk() (*string, bool) { + if o == nil || IsNil(o.Issuer) { + return nil, false + } + return o.Issuer, true +} + +// HasIssuer returns a boolean if a field has been set. +func (o *AssetProfile) HasIssuer() bool { + if o != nil && !IsNil(o.Issuer) { + return true + } + + return false +} + +// SetIssuer gets a reference to the given string and assigns it to the Issuer field. +func (o *AssetProfile) SetIssuer(v string) { + o.Issuer = &v +} + +// GetAssetCode returns the AssetCode field value if set, zero value otherwise. +func (o *AssetProfile) GetAssetCode() string { + if o == nil || IsNil(o.AssetCode) { + var ret string + return ret + } + return *o.AssetCode +} + +// GetAssetCodeOk returns a tuple with the AssetCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetAssetCodeOk() (*string, bool) { + if o == nil || IsNil(o.AssetCode) { + return nil, false + } + return o.AssetCode, true +} + +// HasAssetCode returns a boolean if a field has been set. +func (o *AssetProfile) HasAssetCode() bool { + if o != nil && !IsNil(o.AssetCode) { + return true + } + + return false +} + +// SetAssetCode gets a reference to the given string and assigns it to the AssetCode field. +func (o *AssetProfile) SetAssetCode(v string) { + o.AssetCode = &v +} + +// GetAssetCodeType returns the AssetCodeType field value if set, zero value otherwise. +func (o *AssetProfile) GetAssetCodeType() string { + if o == nil || IsNil(o.AssetCodeType) { + var ret string + return ret + } + return *o.AssetCodeType +} + +// GetAssetCodeTypeOk returns a tuple with the AssetCodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetAssetCodeTypeOk() (*string, bool) { + if o == nil || IsNil(o.AssetCodeType) { + return nil, false + } + return o.AssetCodeType, true +} + +// HasAssetCodeType returns a boolean if a field has been set. +func (o *AssetProfile) HasAssetCodeType() bool { + if o != nil && !IsNil(o.AssetCodeType) { + return true + } + + return false +} + +// SetAssetCodeType gets a reference to the given string and assigns it to the AssetCodeType field. +func (o *AssetProfile) SetAssetCodeType(v string) { + o.AssetCodeType = &v +} + +// GetIssuanceDate returns the IssuanceDate field value if set, zero value otherwise. +func (o *AssetProfile) GetIssuanceDate() string { + if o == nil || IsNil(o.IssuanceDate) { + var ret string + return ret + } + return *o.IssuanceDate +} + +// GetIssuanceDateOk returns a tuple with the IssuanceDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetIssuanceDateOk() (*string, bool) { + if o == nil || IsNil(o.IssuanceDate) { + return nil, false + } + return o.IssuanceDate, true +} + +// HasIssuanceDate returns a boolean if a field has been set. +func (o *AssetProfile) HasIssuanceDate() bool { + if o != nil && !IsNil(o.IssuanceDate) { + return true + } + + return false +} + +// SetIssuanceDate gets a reference to the given string and assigns it to the IssuanceDate field. +func (o *AssetProfile) SetIssuanceDate(v string) { + o.IssuanceDate = &v +} + +// GetExpirationDate returns the ExpirationDate field value +func (o *AssetProfile) GetExpirationDate() string { + if o == nil { + var ret string + return ret + } + + return o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetExpirationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExpirationDate, true +} + +// SetExpirationDate sets field value +func (o *AssetProfile) SetExpirationDate(v string) { + o.ExpirationDate = v +} + +// GetVerificationEndPoint returns the VerificationEndPoint field value if set, zero value otherwise. +func (o *AssetProfile) GetVerificationEndPoint() string { + if o == nil || IsNil(o.VerificationEndPoint) { + var ret string + return ret + } + return *o.VerificationEndPoint +} + +// GetVerificationEndPointOk returns a tuple with the VerificationEndPoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetVerificationEndPointOk() (*string, bool) { + if o == nil || IsNil(o.VerificationEndPoint) { + return nil, false + } + return o.VerificationEndPoint, true +} + +// HasVerificationEndPoint returns a boolean if a field has been set. +func (o *AssetProfile) HasVerificationEndPoint() bool { + if o != nil && !IsNil(o.VerificationEndPoint) { + return true + } + + return false +} + +// SetVerificationEndPoint gets a reference to the given string and assigns it to the VerificationEndPoint field. +func (o *AssetProfile) SetVerificationEndPoint(v string) { + o.VerificationEndPoint = &v +} + +// GetDigitalSignature returns the DigitalSignature field value if set, zero value otherwise. +func (o *AssetProfile) GetDigitalSignature() string { + if o == nil || IsNil(o.DigitalSignature) { + var ret string + return ret + } + return *o.DigitalSignature +} + +// GetDigitalSignatureOk returns a tuple with the DigitalSignature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetDigitalSignatureOk() (*string, bool) { + if o == nil || IsNil(o.DigitalSignature) { + return nil, false + } + return o.DigitalSignature, true +} + +// HasDigitalSignature returns a boolean if a field has been set. +func (o *AssetProfile) HasDigitalSignature() bool { + if o != nil && !IsNil(o.DigitalSignature) { + return true + } + + return false +} + +// SetDigitalSignature gets a reference to the given string and assigns it to the DigitalSignature field. +func (o *AssetProfile) SetDigitalSignature(v string) { + o.DigitalSignature = &v +} + +// GetProspectusLink returns the ProspectusLink field value if set, zero value otherwise. +func (o *AssetProfile) GetProspectusLink() string { + if o == nil || IsNil(o.ProspectusLink) { + var ret string + return ret + } + return *o.ProspectusLink +} + +// GetProspectusLinkOk returns a tuple with the ProspectusLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetProspectusLinkOk() (*string, bool) { + if o == nil || IsNil(o.ProspectusLink) { + return nil, false + } + return o.ProspectusLink, true +} + +// HasProspectusLink returns a boolean if a field has been set. +func (o *AssetProfile) HasProspectusLink() bool { + if o != nil && !IsNil(o.ProspectusLink) { + return true + } + + return false +} + +// SetProspectusLink gets a reference to the given string and assigns it to the ProspectusLink field. +func (o *AssetProfile) SetProspectusLink(v string) { + o.ProspectusLink = &v +} + +// GetKeyInformationLink returns the KeyInformationLink field value if set, zero value otherwise. +func (o *AssetProfile) GetKeyInformationLink() []interface{} { + if o == nil || IsNil(o.KeyInformationLink) { + var ret []interface{} + return ret + } + return o.KeyInformationLink +} + +// GetKeyInformationLinkOk returns a tuple with the KeyInformationLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetKeyInformationLinkOk() ([]interface{}, bool) { + if o == nil || IsNil(o.KeyInformationLink) { + return nil, false + } + return o.KeyInformationLink, true +} + +// HasKeyInformationLink returns a boolean if a field has been set. +func (o *AssetProfile) HasKeyInformationLink() bool { + if o != nil && !IsNil(o.KeyInformationLink) { + return true + } + + return false +} + +// SetKeyInformationLink gets a reference to the given []interface{} and assigns it to the KeyInformationLink field. +func (o *AssetProfile) SetKeyInformationLink(v []interface{}) { + o.KeyInformationLink = v +} + +// GetKeyWord returns the KeyWord field value if set, zero value otherwise. +func (o *AssetProfile) GetKeyWord() []interface{} { + if o == nil || IsNil(o.KeyWord) { + var ret []interface{} + return ret + } + return o.KeyWord +} + +// GetKeyWordOk returns a tuple with the KeyWord field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetKeyWordOk() ([]interface{}, bool) { + if o == nil || IsNil(o.KeyWord) { + return nil, false + } + return o.KeyWord, true +} + +// HasKeyWord returns a boolean if a field has been set. +func (o *AssetProfile) HasKeyWord() bool { + if o != nil && !IsNil(o.KeyWord) { + return true + } + + return false +} + +// SetKeyWord gets a reference to the given []interface{} and assigns it to the KeyWord field. +func (o *AssetProfile) SetKeyWord(v []interface{}) { + o.KeyWord = v +} + +// GetTransferRestriction returns the TransferRestriction field value if set, zero value otherwise. +func (o *AssetProfile) GetTransferRestriction() []interface{} { + if o == nil || IsNil(o.TransferRestriction) { + var ret []interface{} + return ret + } + return o.TransferRestriction +} + +// GetTransferRestrictionOk returns a tuple with the TransferRestriction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetTransferRestrictionOk() ([]interface{}, bool) { + if o == nil || IsNil(o.TransferRestriction) { + return nil, false + } + return o.TransferRestriction, true +} + +// HasTransferRestriction returns a boolean if a field has been set. +func (o *AssetProfile) HasTransferRestriction() bool { + if o != nil && !IsNil(o.TransferRestriction) { + return true + } + + return false +} + +// SetTransferRestriction gets a reference to the given []interface{} and assigns it to the TransferRestriction field. +func (o *AssetProfile) SetTransferRestriction(v []interface{}) { + o.TransferRestriction = v +} + +// GetLedgerRequirements returns the LedgerRequirements field value if set, zero value otherwise. +func (o *AssetProfile) GetLedgerRequirements() []interface{} { + if o == nil || IsNil(o.LedgerRequirements) { + var ret []interface{} + return ret + } + return o.LedgerRequirements +} + +// GetLedgerRequirementsOk returns a tuple with the LedgerRequirements field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetProfile) GetLedgerRequirementsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.LedgerRequirements) { + return nil, false + } + return o.LedgerRequirements, true +} + +// HasLedgerRequirements returns a boolean if a field has been set. +func (o *AssetProfile) HasLedgerRequirements() bool { + if o != nil && !IsNil(o.LedgerRequirements) { + return true + } + + return false +} + +// SetLedgerRequirements gets a reference to the given []interface{} and assigns it to the LedgerRequirements field. +func (o *AssetProfile) SetLedgerRequirements(v []interface{}) { + o.LedgerRequirements = v +} + +func (o AssetProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Issuer) { + toSerialize["issuer"] = o.Issuer + } + if !IsNil(o.AssetCode) { + toSerialize["assetCode"] = o.AssetCode + } + if !IsNil(o.AssetCodeType) { + toSerialize["assetCodeType"] = o.AssetCodeType + } + if !IsNil(o.IssuanceDate) { + toSerialize["issuanceDate"] = o.IssuanceDate + } + toSerialize["expirationDate"] = o.ExpirationDate + if !IsNil(o.VerificationEndPoint) { + toSerialize["verificationEndPoint"] = o.VerificationEndPoint + } + if !IsNil(o.DigitalSignature) { + toSerialize["digitalSignature"] = o.DigitalSignature + } + if !IsNil(o.ProspectusLink) { + toSerialize["prospectusLink"] = o.ProspectusLink + } + if !IsNil(o.KeyInformationLink) { + toSerialize["keyInformationLink"] = o.KeyInformationLink + } + if !IsNil(o.KeyWord) { + toSerialize["keyWord"] = o.KeyWord + } + if !IsNil(o.TransferRestriction) { + toSerialize["transferRestriction"] = o.TransferRestriction + } + if !IsNil(o.LedgerRequirements) { + toSerialize["ledgerRequirements"] = o.LedgerRequirements + } + return toSerialize, nil +} + +type NullableAssetProfile struct { + value *AssetProfile + isSet bool +} + +func (v NullableAssetProfile) Get() *AssetProfile { + return v.value +} + +func (v *NullableAssetProfile) Set(val *AssetProfile) { + v.value = val + v.isSet = true +} + +func (v NullableAssetProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetProfile(val *AssetProfile) *NullableAssetProfile { + return &NullableAssetProfile{value: val, isSet: true} +} + +func (v NullableAssetProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go new file mode 100644 index 00000000000..722bfa5abf4 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go @@ -0,0 +1,684 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the ClientV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientV1Request{} + +// ClientV1Request struct for ClientV1Request +type ClientV1Request struct { + Version string `json:"version"` + LoggingProfile string `json:"loggingProfile"` + AccessControlProfile string `json:"accessControlProfile"` + AssetControlProfile string `json:"assetControlProfile"` + ApplicationProfile string `json:"applicationProfile"` + AssetProfile AssetProfile `json:"assetProfile"` + PayloadProfile PayloadProfile `json:"payloadProfile"` + SourceGatewayDltSystem string `json:"sourceGatewayDltSystem"` + RecipientGatewayDltSystem string `json:"recipientGatewayDltSystem"` + RecipientGatewayPubkey string `json:"recipientGatewayPubkey"` + OriginatorPubkey string `json:"originatorPubkey"` + BeneficiaryPubkey string `json:"beneficiaryPubkey"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + ClientDltSystem string `json:"clientDltSystem"` + ServerDltSystem string `json:"serverDltSystem"` + ClientGatewayConfiguration ClientV1RequestClientGatewayConfiguration `json:"clientGatewayConfiguration"` + ServerGatewayConfiguration ClientV1RequestClientGatewayConfiguration `json:"serverGatewayConfiguration"` + MaxRetries float32 `json:"maxRetries"` + MaxTimeout float32 `json:"maxTimeout"` + SourceLedgerAssetID string `json:"sourceLedgerAssetID"` + RecipientLedgerAssetID string `json:"recipientLedgerAssetID"` +} + +// NewClientV1Request instantiates a new ClientV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientV1Request(version string, loggingProfile string, accessControlProfile string, assetControlProfile string, applicationProfile string, assetProfile AssetProfile, payloadProfile PayloadProfile, sourceGatewayDltSystem string, recipientGatewayDltSystem string, recipientGatewayPubkey string, originatorPubkey string, beneficiaryPubkey string, clientIdentityPubkey string, serverIdentityPubkey string, clientDltSystem string, serverDltSystem string, clientGatewayConfiguration ClientV1RequestClientGatewayConfiguration, serverGatewayConfiguration ClientV1RequestClientGatewayConfiguration, maxRetries float32, maxTimeout float32, sourceLedgerAssetID string, recipientLedgerAssetID string) *ClientV1Request { + this := ClientV1Request{} + this.Version = version + this.LoggingProfile = loggingProfile + this.AccessControlProfile = accessControlProfile + this.AssetControlProfile = assetControlProfile + this.ApplicationProfile = applicationProfile + this.AssetProfile = assetProfile + this.PayloadProfile = payloadProfile + this.SourceGatewayDltSystem = sourceGatewayDltSystem + this.RecipientGatewayDltSystem = recipientGatewayDltSystem + this.RecipientGatewayPubkey = recipientGatewayPubkey + this.OriginatorPubkey = originatorPubkey + this.BeneficiaryPubkey = beneficiaryPubkey + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.ClientDltSystem = clientDltSystem + this.ServerDltSystem = serverDltSystem + this.ClientGatewayConfiguration = clientGatewayConfiguration + this.ServerGatewayConfiguration = serverGatewayConfiguration + this.MaxRetries = maxRetries + this.MaxTimeout = maxTimeout + this.SourceLedgerAssetID = sourceLedgerAssetID + this.RecipientLedgerAssetID = recipientLedgerAssetID + return &this +} + +// NewClientV1RequestWithDefaults instantiates a new ClientV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientV1RequestWithDefaults() *ClientV1Request { + this := ClientV1Request{} + return &this +} + +// GetVersion returns the Version field value +func (o *ClientV1Request) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *ClientV1Request) SetVersion(v string) { + o.Version = v +} + +// GetLoggingProfile returns the LoggingProfile field value +func (o *ClientV1Request) GetLoggingProfile() string { + if o == nil { + var ret string + return ret + } + + return o.LoggingProfile +} + +// GetLoggingProfileOk returns a tuple with the LoggingProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetLoggingProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoggingProfile, true +} + +// SetLoggingProfile sets field value +func (o *ClientV1Request) SetLoggingProfile(v string) { + o.LoggingProfile = v +} + +// GetAccessControlProfile returns the AccessControlProfile field value +func (o *ClientV1Request) GetAccessControlProfile() string { + if o == nil { + var ret string + return ret + } + + return o.AccessControlProfile +} + +// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetAccessControlProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessControlProfile, true +} + +// SetAccessControlProfile sets field value +func (o *ClientV1Request) SetAccessControlProfile(v string) { + o.AccessControlProfile = v +} + +// GetAssetControlProfile returns the AssetControlProfile field value +func (o *ClientV1Request) GetAssetControlProfile() string { + if o == nil { + var ret string + return ret + } + + return o.AssetControlProfile +} + +// GetAssetControlProfileOk returns a tuple with the AssetControlProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetAssetControlProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetControlProfile, true +} + +// SetAssetControlProfile sets field value +func (o *ClientV1Request) SetAssetControlProfile(v string) { + o.AssetControlProfile = v +} + +// GetApplicationProfile returns the ApplicationProfile field value +func (o *ClientV1Request) GetApplicationProfile() string { + if o == nil { + var ret string + return ret + } + + return o.ApplicationProfile +} + +// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetApplicationProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApplicationProfile, true +} + +// SetApplicationProfile sets field value +func (o *ClientV1Request) SetApplicationProfile(v string) { + o.ApplicationProfile = v +} + +// GetAssetProfile returns the AssetProfile field value +func (o *ClientV1Request) GetAssetProfile() AssetProfile { + if o == nil { + var ret AssetProfile + return ret + } + + return o.AssetProfile +} + +// GetAssetProfileOk returns a tuple with the AssetProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetAssetProfileOk() (*AssetProfile, bool) { + if o == nil { + return nil, false + } + return &o.AssetProfile, true +} + +// SetAssetProfile sets field value +func (o *ClientV1Request) SetAssetProfile(v AssetProfile) { + o.AssetProfile = v +} + +// GetPayloadProfile returns the PayloadProfile field value +func (o *ClientV1Request) GetPayloadProfile() PayloadProfile { + if o == nil { + var ret PayloadProfile + return ret + } + + return o.PayloadProfile +} + +// GetPayloadProfileOk returns a tuple with the PayloadProfile field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetPayloadProfileOk() (*PayloadProfile, bool) { + if o == nil { + return nil, false + } + return &o.PayloadProfile, true +} + +// SetPayloadProfile sets field value +func (o *ClientV1Request) SetPayloadProfile(v PayloadProfile) { + o.PayloadProfile = v +} + +// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value +func (o *ClientV1Request) GetSourceGatewayDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.SourceGatewayDltSystem +} + +// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetSourceGatewayDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceGatewayDltSystem, true +} + +// SetSourceGatewayDltSystem sets field value +func (o *ClientV1Request) SetSourceGatewayDltSystem(v string) { + o.SourceGatewayDltSystem = v +} + +// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value +func (o *ClientV1Request) GetRecipientGatewayDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientGatewayDltSystem +} + +// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetRecipientGatewayDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientGatewayDltSystem, true +} + +// SetRecipientGatewayDltSystem sets field value +func (o *ClientV1Request) SetRecipientGatewayDltSystem(v string) { + o.RecipientGatewayDltSystem = v +} + +// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value +func (o *ClientV1Request) GetRecipientGatewayPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientGatewayPubkey +} + +// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetRecipientGatewayPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientGatewayPubkey, true +} + +// SetRecipientGatewayPubkey sets field value +func (o *ClientV1Request) SetRecipientGatewayPubkey(v string) { + o.RecipientGatewayPubkey = v +} + +// GetOriginatorPubkey returns the OriginatorPubkey field value +func (o *ClientV1Request) GetOriginatorPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.OriginatorPubkey +} + +// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetOriginatorPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OriginatorPubkey, true +} + +// SetOriginatorPubkey sets field value +func (o *ClientV1Request) SetOriginatorPubkey(v string) { + o.OriginatorPubkey = v +} + +// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value +func (o *ClientV1Request) GetBeneficiaryPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.BeneficiaryPubkey +} + +// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetBeneficiaryPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BeneficiaryPubkey, true +} + +// SetBeneficiaryPubkey sets field value +func (o *ClientV1Request) SetBeneficiaryPubkey(v string) { + o.BeneficiaryPubkey = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *ClientV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *ClientV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *ClientV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *ClientV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetClientDltSystem returns the ClientDltSystem field value +func (o *ClientV1Request) GetClientDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.ClientDltSystem +} + +// GetClientDltSystemOk returns a tuple with the ClientDltSystem field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetClientDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientDltSystem, true +} + +// SetClientDltSystem sets field value +func (o *ClientV1Request) SetClientDltSystem(v string) { + o.ClientDltSystem = v +} + +// GetServerDltSystem returns the ServerDltSystem field value +func (o *ClientV1Request) GetServerDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.ServerDltSystem +} + +// GetServerDltSystemOk returns a tuple with the ServerDltSystem field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetServerDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerDltSystem, true +} + +// SetServerDltSystem sets field value +func (o *ClientV1Request) SetServerDltSystem(v string) { + o.ServerDltSystem = v +} + +// GetClientGatewayConfiguration returns the ClientGatewayConfiguration field value +func (o *ClientV1Request) GetClientGatewayConfiguration() ClientV1RequestClientGatewayConfiguration { + if o == nil { + var ret ClientV1RequestClientGatewayConfiguration + return ret + } + + return o.ClientGatewayConfiguration +} + +// GetClientGatewayConfigurationOk returns a tuple with the ClientGatewayConfiguration field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetClientGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool) { + if o == nil { + return nil, false + } + return &o.ClientGatewayConfiguration, true +} + +// SetClientGatewayConfiguration sets field value +func (o *ClientV1Request) SetClientGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration) { + o.ClientGatewayConfiguration = v +} + +// GetServerGatewayConfiguration returns the ServerGatewayConfiguration field value +func (o *ClientV1Request) GetServerGatewayConfiguration() ClientV1RequestClientGatewayConfiguration { + if o == nil { + var ret ClientV1RequestClientGatewayConfiguration + return ret + } + + return o.ServerGatewayConfiguration +} + +// GetServerGatewayConfigurationOk returns a tuple with the ServerGatewayConfiguration field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetServerGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool) { + if o == nil { + return nil, false + } + return &o.ServerGatewayConfiguration, true +} + +// SetServerGatewayConfiguration sets field value +func (o *ClientV1Request) SetServerGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration) { + o.ServerGatewayConfiguration = v +} + +// GetMaxRetries returns the MaxRetries field value +func (o *ClientV1Request) GetMaxRetries() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetMaxRetriesOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.MaxRetries, true +} + +// SetMaxRetries sets field value +func (o *ClientV1Request) SetMaxRetries(v float32) { + o.MaxRetries = v +} + +// GetMaxTimeout returns the MaxTimeout field value +func (o *ClientV1Request) GetMaxTimeout() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.MaxTimeout +} + +// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetMaxTimeoutOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.MaxTimeout, true +} + +// SetMaxTimeout sets field value +func (o *ClientV1Request) SetMaxTimeout(v float32) { + o.MaxTimeout = v +} + +// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value +func (o *ClientV1Request) GetSourceLedgerAssetID() string { + if o == nil { + var ret string + return ret + } + + return o.SourceLedgerAssetID +} + +// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetSourceLedgerAssetIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceLedgerAssetID, true +} + +// SetSourceLedgerAssetID sets field value +func (o *ClientV1Request) SetSourceLedgerAssetID(v string) { + o.SourceLedgerAssetID = v +} + +// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value +func (o *ClientV1Request) GetRecipientLedgerAssetID() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientLedgerAssetID +} + +// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value +// and a boolean to check if the value has been set. +func (o *ClientV1Request) GetRecipientLedgerAssetIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientLedgerAssetID, true +} + +// SetRecipientLedgerAssetID sets field value +func (o *ClientV1Request) SetRecipientLedgerAssetID(v string) { + o.RecipientLedgerAssetID = v +} + +func (o ClientV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["version"] = o.Version + toSerialize["loggingProfile"] = o.LoggingProfile + toSerialize["accessControlProfile"] = o.AccessControlProfile + toSerialize["assetControlProfile"] = o.AssetControlProfile + toSerialize["applicationProfile"] = o.ApplicationProfile + toSerialize["assetProfile"] = o.AssetProfile + toSerialize["payloadProfile"] = o.PayloadProfile + toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem + toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem + toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey + toSerialize["originatorPubkey"] = o.OriginatorPubkey + toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["clientDltSystem"] = o.ClientDltSystem + toSerialize["serverDltSystem"] = o.ServerDltSystem + toSerialize["clientGatewayConfiguration"] = o.ClientGatewayConfiguration + toSerialize["serverGatewayConfiguration"] = o.ServerGatewayConfiguration + toSerialize["maxRetries"] = o.MaxRetries + toSerialize["maxTimeout"] = o.MaxTimeout + toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID + toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID + return toSerialize, nil +} + +type NullableClientV1Request struct { + value *ClientV1Request + isSet bool +} + +func (v NullableClientV1Request) Get() *ClientV1Request { + return v.value +} + +func (v *NullableClientV1Request) Set(val *ClientV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableClientV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableClientV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientV1Request(val *ClientV1Request) *NullableClientV1Request { + return &NullableClientV1Request{value: val, isSet: true} +} + +func (v NullableClientV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go new file mode 100644 index 00000000000..3e8d75ca264 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go @@ -0,0 +1,117 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the ClientV1RequestClientGatewayConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientV1RequestClientGatewayConfiguration{} + +// ClientV1RequestClientGatewayConfiguration struct for ClientV1RequestClientGatewayConfiguration +type ClientV1RequestClientGatewayConfiguration struct { + ApiHost string `json:"apiHost"` +} + +// NewClientV1RequestClientGatewayConfiguration instantiates a new ClientV1RequestClientGatewayConfiguration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientV1RequestClientGatewayConfiguration(apiHost string) *ClientV1RequestClientGatewayConfiguration { + this := ClientV1RequestClientGatewayConfiguration{} + this.ApiHost = apiHost + return &this +} + +// NewClientV1RequestClientGatewayConfigurationWithDefaults instantiates a new ClientV1RequestClientGatewayConfiguration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientV1RequestClientGatewayConfigurationWithDefaults() *ClientV1RequestClientGatewayConfiguration { + this := ClientV1RequestClientGatewayConfiguration{} + return &this +} + +// GetApiHost returns the ApiHost field value +func (o *ClientV1RequestClientGatewayConfiguration) GetApiHost() string { + if o == nil { + var ret string + return ret + } + + return o.ApiHost +} + +// GetApiHostOk returns a tuple with the ApiHost field value +// and a boolean to check if the value has been set. +func (o *ClientV1RequestClientGatewayConfiguration) GetApiHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiHost, true +} + +// SetApiHost sets field value +func (o *ClientV1RequestClientGatewayConfiguration) SetApiHost(v string) { + o.ApiHost = v +} + +func (o ClientV1RequestClientGatewayConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientV1RequestClientGatewayConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiHost"] = o.ApiHost + return toSerialize, nil +} + +type NullableClientV1RequestClientGatewayConfiguration struct { + value *ClientV1RequestClientGatewayConfiguration + isSet bool +} + +func (v NullableClientV1RequestClientGatewayConfiguration) Get() *ClientV1RequestClientGatewayConfiguration { + return v.value +} + +func (v *NullableClientV1RequestClientGatewayConfiguration) Set(val *ClientV1RequestClientGatewayConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableClientV1RequestClientGatewayConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableClientV1RequestClientGatewayConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientV1RequestClientGatewayConfiguration(val *ClientV1RequestClientGatewayConfiguration) *NullableClientV1RequestClientGatewayConfiguration { + return &NullableClientV1RequestClientGatewayConfiguration{value: val, isSet: true} +} + +func (v NullableClientV1RequestClientGatewayConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientV1RequestClientGatewayConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go new file mode 100644 index 00000000000..cb45eba18bd --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go @@ -0,0 +1,388 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the CommitFinalV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommitFinalV1Request{} + +// CommitFinalV1Request struct for CommitFinalV1Request +type CommitFinalV1Request struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + CommitFinalClaim string `json:"commitFinalClaim"` + CommitFinalClaimFormat map[string]interface{} `json:"commitFinalClaimFormat,omitempty"` + HashCommitPrepareAck string `json:"hashCommitPrepareAck"` + ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` + Signature string `json:"signature"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewCommitFinalV1Request instantiates a new CommitFinalV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCommitFinalV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitFinalClaim string, hashCommitPrepareAck string, signature string, sequenceNumber float32) *CommitFinalV1Request { + this := CommitFinalV1Request{} + this.SessionID = sessionID + this.MessageType = messageType + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.CommitFinalClaim = commitFinalClaim + this.HashCommitPrepareAck = hashCommitPrepareAck + this.Signature = signature + this.SequenceNumber = sequenceNumber + return &this +} + +// NewCommitFinalV1RequestWithDefaults instantiates a new CommitFinalV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCommitFinalV1RequestWithDefaults() *CommitFinalV1Request { + this := CommitFinalV1Request{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *CommitFinalV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *CommitFinalV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *CommitFinalV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *CommitFinalV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *CommitFinalV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *CommitFinalV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *CommitFinalV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *CommitFinalV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetCommitFinalClaim returns the CommitFinalClaim field value +func (o *CommitFinalV1Request) GetCommitFinalClaim() string { + if o == nil { + var ret string + return ret + } + + return o.CommitFinalClaim +} + +// GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetCommitFinalClaimOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommitFinalClaim, true +} + +// SetCommitFinalClaim sets field value +func (o *CommitFinalV1Request) SetCommitFinalClaim(v string) { + o.CommitFinalClaim = v +} + +// GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field value if set, zero value otherwise. +func (o *CommitFinalV1Request) GetCommitFinalClaimFormat() map[string]interface{} { + if o == nil || IsNil(o.CommitFinalClaimFormat) { + var ret map[string]interface{} + return ret + } + return o.CommitFinalClaimFormat +} + +// GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetCommitFinalClaimFormatOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CommitFinalClaimFormat) { + return map[string]interface{}{}, false + } + return o.CommitFinalClaimFormat, true +} + +// HasCommitFinalClaimFormat returns a boolean if a field has been set. +func (o *CommitFinalV1Request) HasCommitFinalClaimFormat() bool { + if o != nil && !IsNil(o.CommitFinalClaimFormat) { + return true + } + + return false +} + +// SetCommitFinalClaimFormat gets a reference to the given map[string]interface{} and assigns it to the CommitFinalClaimFormat field. +func (o *CommitFinalV1Request) SetCommitFinalClaimFormat(v map[string]interface{}) { + o.CommitFinalClaimFormat = v +} + +// GetHashCommitPrepareAck returns the HashCommitPrepareAck field value +func (o *CommitFinalV1Request) GetHashCommitPrepareAck() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommitPrepareAck +} + +// GetHashCommitPrepareAckOk returns a tuple with the HashCommitPrepareAck field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetHashCommitPrepareAckOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommitPrepareAck, true +} + +// SetHashCommitPrepareAck sets field value +func (o *CommitFinalV1Request) SetHashCommitPrepareAck(v string) { + o.HashCommitPrepareAck = v +} + +// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommitFinalV1Request) GetClientTransferNumber() int32 { + if o == nil || IsNil(o.ClientTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ClientTransferNumber.Get() +} + +// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommitFinalV1Request) GetClientTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() +} + +// HasClientTransferNumber returns a boolean if a field has been set. +func (o *CommitFinalV1Request) HasClientTransferNumber() bool { + if o != nil && o.ClientTransferNumber.IsSet() { + return true + } + + return false +} + +// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. +func (o *CommitFinalV1Request) SetClientTransferNumber(v int32) { + o.ClientTransferNumber.Set(&v) +} +// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil +func (o *CommitFinalV1Request) SetClientTransferNumberNil() { + o.ClientTransferNumber.Set(nil) +} + +// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +func (o *CommitFinalV1Request) UnsetClientTransferNumber() { + o.ClientTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *CommitFinalV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *CommitFinalV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *CommitFinalV1Request) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Request) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *CommitFinalV1Request) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o CommitFinalV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommitFinalV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["commitFinalClaim"] = o.CommitFinalClaim + if !IsNil(o.CommitFinalClaimFormat) { + toSerialize["commitFinalClaimFormat"] = o.CommitFinalClaimFormat + } + toSerialize["hashCommitPrepareAck"] = o.HashCommitPrepareAck + if o.ClientTransferNumber.IsSet() { + toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableCommitFinalV1Request struct { + value *CommitFinalV1Request + isSet bool +} + +func (v NullableCommitFinalV1Request) Get() *CommitFinalV1Request { + return v.value +} + +func (v *NullableCommitFinalV1Request) Set(val *CommitFinalV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableCommitFinalV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableCommitFinalV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommitFinalV1Request(val *CommitFinalV1Request) *NullableCommitFinalV1Request { + return &NullableCommitFinalV1Request{value: val, isSet: true} +} + +func (v NullableCommitFinalV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommitFinalV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go new file mode 100644 index 00000000000..2a9e97ef5a1 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go @@ -0,0 +1,378 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the CommitFinalV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommitFinalV1Response{} + +// CommitFinalV1Response struct for CommitFinalV1Response +type CommitFinalV1Response struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + CommitAcknowledgementClaim string `json:"commitAcknowledgementClaim"` + CommitAcknowledgementClaimFormat map[string]interface{} `json:"commitAcknowledgementClaimFormat,omitempty"` + HashCommitFinal string `json:"hashCommitFinal"` + ServerTransferNumber *int32 `json:"serverTransferNumber,omitempty"` + Signature string `json:"signature"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewCommitFinalV1Response instantiates a new CommitFinalV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCommitFinalV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitAcknowledgementClaim string, hashCommitFinal string, signature string, sequenceNumber float32) *CommitFinalV1Response { + this := CommitFinalV1Response{} + this.SessionID = sessionID + this.MessageType = messageType + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.CommitAcknowledgementClaim = commitAcknowledgementClaim + this.HashCommitFinal = hashCommitFinal + this.Signature = signature + this.SequenceNumber = sequenceNumber + return &this +} + +// NewCommitFinalV1ResponseWithDefaults instantiates a new CommitFinalV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCommitFinalV1ResponseWithDefaults() *CommitFinalV1Response { + this := CommitFinalV1Response{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *CommitFinalV1Response) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *CommitFinalV1Response) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *CommitFinalV1Response) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *CommitFinalV1Response) SetMessageType(v string) { + o.MessageType = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *CommitFinalV1Response) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *CommitFinalV1Response) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *CommitFinalV1Response) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *CommitFinalV1Response) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field value +func (o *CommitFinalV1Response) GetCommitAcknowledgementClaim() string { + if o == nil { + var ret string + return ret + } + + return o.CommitAcknowledgementClaim +} + +// GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommitAcknowledgementClaim, true +} + +// SetCommitAcknowledgementClaim sets field value +func (o *CommitFinalV1Response) SetCommitAcknowledgementClaim(v string) { + o.CommitAcknowledgementClaim = v +} + +// GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field value if set, zero value otherwise. +func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormat() map[string]interface{} { + if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { + var ret map[string]interface{} + return ret + } + return o.CommitAcknowledgementClaimFormat +} + +// GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormatOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { + return map[string]interface{}{}, false + } + return o.CommitAcknowledgementClaimFormat, true +} + +// HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. +func (o *CommitFinalV1Response) HasCommitAcknowledgementClaimFormat() bool { + if o != nil && !IsNil(o.CommitAcknowledgementClaimFormat) { + return true + } + + return false +} + +// SetCommitAcknowledgementClaimFormat gets a reference to the given map[string]interface{} and assigns it to the CommitAcknowledgementClaimFormat field. +func (o *CommitFinalV1Response) SetCommitAcknowledgementClaimFormat(v map[string]interface{}) { + o.CommitAcknowledgementClaimFormat = v +} + +// GetHashCommitFinal returns the HashCommitFinal field value +func (o *CommitFinalV1Response) GetHashCommitFinal() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommitFinal +} + +// GetHashCommitFinalOk returns a tuple with the HashCommitFinal field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetHashCommitFinalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommitFinal, true +} + +// SetHashCommitFinal sets field value +func (o *CommitFinalV1Response) SetHashCommitFinal(v string) { + o.HashCommitFinal = v +} + +// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise. +func (o *CommitFinalV1Response) GetServerTransferNumber() int32 { + if o == nil || IsNil(o.ServerTransferNumber) { + var ret int32 + return ret + } + return *o.ServerTransferNumber +} + +// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetServerTransferNumberOk() (*int32, bool) { + if o == nil || IsNil(o.ServerTransferNumber) { + return nil, false + } + return o.ServerTransferNumber, true +} + +// HasServerTransferNumber returns a boolean if a field has been set. +func (o *CommitFinalV1Response) HasServerTransferNumber() bool { + if o != nil && !IsNil(o.ServerTransferNumber) { + return true + } + + return false +} + +// SetServerTransferNumber gets a reference to the given int32 and assigns it to the ServerTransferNumber field. +func (o *CommitFinalV1Response) SetServerTransferNumber(v int32) { + o.ServerTransferNumber = &v +} + +// GetSignature returns the Signature field value +func (o *CommitFinalV1Response) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *CommitFinalV1Response) SetSignature(v string) { + o.Signature = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *CommitFinalV1Response) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *CommitFinalV1Response) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *CommitFinalV1Response) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o CommitFinalV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommitFinalV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["commitAcknowledgementClaim"] = o.CommitAcknowledgementClaim + if !IsNil(o.CommitAcknowledgementClaimFormat) { + toSerialize["commitAcknowledgementClaimFormat"] = o.CommitAcknowledgementClaimFormat + } + toSerialize["hashCommitFinal"] = o.HashCommitFinal + if !IsNil(o.ServerTransferNumber) { + toSerialize["serverTransferNumber"] = o.ServerTransferNumber + } + toSerialize["signature"] = o.Signature + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableCommitFinalV1Response struct { + value *CommitFinalV1Response + isSet bool +} + +func (v NullableCommitFinalV1Response) Get() *CommitFinalV1Response { + return v.value +} + +func (v *NullableCommitFinalV1Response) Set(val *CommitFinalV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableCommitFinalV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCommitFinalV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommitFinalV1Response(val *CommitFinalV1Response) *NullableCommitFinalV1Response { + return &NullableCommitFinalV1Response{value: val, isSet: true} +} + +func (v NullableCommitFinalV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommitFinalV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go new file mode 100644 index 00000000000..3d406a464ff --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go @@ -0,0 +1,315 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the CommitPreparationV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommitPreparationV1Request{} + +// CommitPreparationV1Request struct for CommitPreparationV1Request +type CommitPreparationV1Request struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashLockEvidenceAck string `json:"hashLockEvidenceAck"` + ClientTransferNumber *int32 `json:"clientTransferNumber,omitempty"` + Signature string `json:"signature"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewCommitPreparationV1Request instantiates a new CommitPreparationV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCommitPreparationV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceAck string, signature string, sequenceNumber float32) *CommitPreparationV1Request { + this := CommitPreparationV1Request{} + this.SessionID = sessionID + this.MessageType = messageType + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashLockEvidenceAck = hashLockEvidenceAck + this.Signature = signature + this.SequenceNumber = sequenceNumber + return &this +} + +// NewCommitPreparationV1RequestWithDefaults instantiates a new CommitPreparationV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCommitPreparationV1RequestWithDefaults() *CommitPreparationV1Request { + this := CommitPreparationV1Request{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *CommitPreparationV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *CommitPreparationV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *CommitPreparationV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *CommitPreparationV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *CommitPreparationV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *CommitPreparationV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *CommitPreparationV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *CommitPreparationV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashLockEvidenceAck returns the HashLockEvidenceAck field value +func (o *CommitPreparationV1Request) GetHashLockEvidenceAck() string { + if o == nil { + var ret string + return ret + } + + return o.HashLockEvidenceAck +} + +// GetHashLockEvidenceAckOk returns a tuple with the HashLockEvidenceAck field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetHashLockEvidenceAckOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashLockEvidenceAck, true +} + +// SetHashLockEvidenceAck sets field value +func (o *CommitPreparationV1Request) SetHashLockEvidenceAck(v string) { + o.HashLockEvidenceAck = v +} + +// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise. +func (o *CommitPreparationV1Request) GetClientTransferNumber() int32 { + if o == nil || IsNil(o.ClientTransferNumber) { + var ret int32 + return ret + } + return *o.ClientTransferNumber +} + +// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetClientTransferNumberOk() (*int32, bool) { + if o == nil || IsNil(o.ClientTransferNumber) { + return nil, false + } + return o.ClientTransferNumber, true +} + +// HasClientTransferNumber returns a boolean if a field has been set. +func (o *CommitPreparationV1Request) HasClientTransferNumber() bool { + if o != nil && !IsNil(o.ClientTransferNumber) { + return true + } + + return false +} + +// SetClientTransferNumber gets a reference to the given int32 and assigns it to the ClientTransferNumber field. +func (o *CommitPreparationV1Request) SetClientTransferNumber(v int32) { + o.ClientTransferNumber = &v +} + +// GetSignature returns the Signature field value +func (o *CommitPreparationV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *CommitPreparationV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *CommitPreparationV1Request) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Request) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *CommitPreparationV1Request) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o CommitPreparationV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommitPreparationV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashLockEvidenceAck"] = o.HashLockEvidenceAck + if !IsNil(o.ClientTransferNumber) { + toSerialize["clientTransferNumber"] = o.ClientTransferNumber + } + toSerialize["signature"] = o.Signature + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableCommitPreparationV1Request struct { + value *CommitPreparationV1Request + isSet bool +} + +func (v NullableCommitPreparationV1Request) Get() *CommitPreparationV1Request { + return v.value +} + +func (v *NullableCommitPreparationV1Request) Set(val *CommitPreparationV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableCommitPreparationV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableCommitPreparationV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommitPreparationV1Request(val *CommitPreparationV1Request) *NullableCommitPreparationV1Request { + return &NullableCommitPreparationV1Request{value: val, isSet: true} +} + +func (v NullableCommitPreparationV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommitPreparationV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go new file mode 100644 index 00000000000..5ac6028d608 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go @@ -0,0 +1,315 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the CommitPreparationV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommitPreparationV1Response{} + +// CommitPreparationV1Response struct for CommitPreparationV1Response +type CommitPreparationV1Response struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashCommitPrep string `json:"hashCommitPrep"` + ServerTransferNumber *string `json:"serverTransferNumber,omitempty"` + Signature string `json:"signature"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewCommitPreparationV1Response instantiates a new CommitPreparationV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCommitPreparationV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitPrep string, signature string, sequenceNumber float32) *CommitPreparationV1Response { + this := CommitPreparationV1Response{} + this.SessionID = sessionID + this.MessageType = messageType + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashCommitPrep = hashCommitPrep + this.Signature = signature + this.SequenceNumber = sequenceNumber + return &this +} + +// NewCommitPreparationV1ResponseWithDefaults instantiates a new CommitPreparationV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCommitPreparationV1ResponseWithDefaults() *CommitPreparationV1Response { + this := CommitPreparationV1Response{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *CommitPreparationV1Response) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *CommitPreparationV1Response) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *CommitPreparationV1Response) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *CommitPreparationV1Response) SetMessageType(v string) { + o.MessageType = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *CommitPreparationV1Response) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *CommitPreparationV1Response) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *CommitPreparationV1Response) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *CommitPreparationV1Response) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashCommitPrep returns the HashCommitPrep field value +func (o *CommitPreparationV1Response) GetHashCommitPrep() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommitPrep +} + +// GetHashCommitPrepOk returns a tuple with the HashCommitPrep field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetHashCommitPrepOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommitPrep, true +} + +// SetHashCommitPrep sets field value +func (o *CommitPreparationV1Response) SetHashCommitPrep(v string) { + o.HashCommitPrep = v +} + +// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise. +func (o *CommitPreparationV1Response) GetServerTransferNumber() string { + if o == nil || IsNil(o.ServerTransferNumber) { + var ret string + return ret + } + return *o.ServerTransferNumber +} + +// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetServerTransferNumberOk() (*string, bool) { + if o == nil || IsNil(o.ServerTransferNumber) { + return nil, false + } + return o.ServerTransferNumber, true +} + +// HasServerTransferNumber returns a boolean if a field has been set. +func (o *CommitPreparationV1Response) HasServerTransferNumber() bool { + if o != nil && !IsNil(o.ServerTransferNumber) { + return true + } + + return false +} + +// SetServerTransferNumber gets a reference to the given string and assigns it to the ServerTransferNumber field. +func (o *CommitPreparationV1Response) SetServerTransferNumber(v string) { + o.ServerTransferNumber = &v +} + +// GetSignature returns the Signature field value +func (o *CommitPreparationV1Response) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *CommitPreparationV1Response) SetSignature(v string) { + o.Signature = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *CommitPreparationV1Response) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *CommitPreparationV1Response) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *CommitPreparationV1Response) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o CommitPreparationV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommitPreparationV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashCommitPrep"] = o.HashCommitPrep + if !IsNil(o.ServerTransferNumber) { + toSerialize["serverTransferNumber"] = o.ServerTransferNumber + } + toSerialize["signature"] = o.Signature + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableCommitPreparationV1Response struct { + value *CommitPreparationV1Response + isSet bool +} + +func (v NullableCommitPreparationV1Response) Get() *CommitPreparationV1Response { + return v.value +} + +func (v *NullableCommitPreparationV1Response) Set(val *CommitPreparationV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableCommitPreparationV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCommitPreparationV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommitPreparationV1Response(val *CommitPreparationV1Response) *NullableCommitPreparationV1Response { + return &NullableCommitPreparationV1Response{value: val, isSet: true} +} + +func (v NullableCommitPreparationV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommitPreparationV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go new file mode 100644 index 00000000000..1ba7574775a --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go @@ -0,0 +1,113 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" + "fmt" +) + +// CredentialProfile the model 'CredentialProfile' +type CredentialProfile string + +// List of CredentialProfile +const ( + SAML CredentialProfile = "SAML" + OAUTH CredentialProfile = "OAUTH" + X509 CredentialProfile = "X509" +) + +// All allowed values of CredentialProfile enum +var AllowedCredentialProfileEnumValues = []CredentialProfile{ + "SAML", + "OAUTH", + "X509", +} + +func (v *CredentialProfile) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CredentialProfile(value) + for _, existing := range AllowedCredentialProfileEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CredentialProfile", value) +} + +// NewCredentialProfileFromValue returns a pointer to a valid CredentialProfile +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCredentialProfileFromValue(v string) (*CredentialProfile, error) { + ev := CredentialProfile(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CredentialProfile: valid values are %v", v, AllowedCredentialProfileEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CredentialProfile) IsValid() bool { + for _, existing := range AllowedCredentialProfileEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CredentialProfile value +func (v CredentialProfile) Ptr() *CredentialProfile { + return &v +} + +type NullableCredentialProfile struct { + value *CredentialProfile + isSet bool +} + +func (v NullableCredentialProfile) Get() *CredentialProfile { + return v.value +} + +func (v *NullableCredentialProfile) Set(val *CredentialProfile) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialProfile(val *CredentialProfile) *NullableCredentialProfile { + return &NullableCredentialProfile{value: val, isSet: true} +} + +func (v NullableCredentialProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_history.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_history.go new file mode 100644 index 00000000000..2eea46276bd --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_history.go @@ -0,0 +1,342 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the History type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &History{} + +// History struct for History +type History struct { + Transactions []map[string]interface{} `json:"Transactions,omitempty"` + Actions []map[string]interface{} `json:"Actions,omitempty"` + Origin *string `json:"Origin,omitempty"` + Destination *string `json:"Destination,omitempty"` + Balance *string `json:"Balance,omitempty"` + CurrentStatus map[string]interface{} `json:"CurrentStatus,omitempty"` + ApplicationSpecificParameters map[string]interface{} `json:"ApplicationSpecificParameters,omitempty"` +} + +// NewHistory instantiates a new History object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistory() *History { + this := History{} + return &this +} + +// NewHistoryWithDefaults instantiates a new History object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoryWithDefaults() *History { + this := History{} + return &this +} + +// GetTransactions returns the Transactions field value if set, zero value otherwise. +func (o *History) GetTransactions() []map[string]interface{} { + if o == nil || IsNil(o.Transactions) { + var ret []map[string]interface{} + return ret + } + return o.Transactions +} + +// GetTransactionsOk returns a tuple with the Transactions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetTransactionsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Transactions) { + return nil, false + } + return o.Transactions, true +} + +// HasTransactions returns a boolean if a field has been set. +func (o *History) HasTransactions() bool { + if o != nil && !IsNil(o.Transactions) { + return true + } + + return false +} + +// SetTransactions gets a reference to the given []map[string]interface{} and assigns it to the Transactions field. +func (o *History) SetTransactions(v []map[string]interface{}) { + o.Transactions = v +} + +// GetActions returns the Actions field value if set, zero value otherwise. +func (o *History) GetActions() []map[string]interface{} { + if o == nil || IsNil(o.Actions) { + var ret []map[string]interface{} + return ret + } + return o.Actions +} + +// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetActionsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Actions) { + return nil, false + } + return o.Actions, true +} + +// HasActions returns a boolean if a field has been set. +func (o *History) HasActions() bool { + if o != nil && !IsNil(o.Actions) { + return true + } + + return false +} + +// SetActions gets a reference to the given []map[string]interface{} and assigns it to the Actions field. +func (o *History) SetActions(v []map[string]interface{}) { + o.Actions = v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *History) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *History) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *History) SetOrigin(v string) { + o.Origin = &v +} + +// GetDestination returns the Destination field value if set, zero value otherwise. +func (o *History) GetDestination() string { + if o == nil || IsNil(o.Destination) { + var ret string + return ret + } + return *o.Destination +} + +// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetDestinationOk() (*string, bool) { + if o == nil || IsNil(o.Destination) { + return nil, false + } + return o.Destination, true +} + +// HasDestination returns a boolean if a field has been set. +func (o *History) HasDestination() bool { + if o != nil && !IsNil(o.Destination) { + return true + } + + return false +} + +// SetDestination gets a reference to the given string and assigns it to the Destination field. +func (o *History) SetDestination(v string) { + o.Destination = &v +} + +// GetBalance returns the Balance field value if set, zero value otherwise. +func (o *History) GetBalance() string { + if o == nil || IsNil(o.Balance) { + var ret string + return ret + } + return *o.Balance +} + +// GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetBalanceOk() (*string, bool) { + if o == nil || IsNil(o.Balance) { + return nil, false + } + return o.Balance, true +} + +// HasBalance returns a boolean if a field has been set. +func (o *History) HasBalance() bool { + if o != nil && !IsNil(o.Balance) { + return true + } + + return false +} + +// SetBalance gets a reference to the given string and assigns it to the Balance field. +func (o *History) SetBalance(v string) { + o.Balance = &v +} + +// GetCurrentStatus returns the CurrentStatus field value if set, zero value otherwise. +func (o *History) GetCurrentStatus() map[string]interface{} { + if o == nil || IsNil(o.CurrentStatus) { + var ret map[string]interface{} + return ret + } + return o.CurrentStatus +} + +// GetCurrentStatusOk returns a tuple with the CurrentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetCurrentStatusOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CurrentStatus) { + return map[string]interface{}{}, false + } + return o.CurrentStatus, true +} + +// HasCurrentStatus returns a boolean if a field has been set. +func (o *History) HasCurrentStatus() bool { + if o != nil && !IsNil(o.CurrentStatus) { + return true + } + + return false +} + +// SetCurrentStatus gets a reference to the given map[string]interface{} and assigns it to the CurrentStatus field. +func (o *History) SetCurrentStatus(v map[string]interface{}) { + o.CurrentStatus = v +} + +// GetApplicationSpecificParameters returns the ApplicationSpecificParameters field value if set, zero value otherwise. +func (o *History) GetApplicationSpecificParameters() map[string]interface{} { + if o == nil || IsNil(o.ApplicationSpecificParameters) { + var ret map[string]interface{} + return ret + } + return o.ApplicationSpecificParameters +} + +// GetApplicationSpecificParametersOk returns a tuple with the ApplicationSpecificParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *History) GetApplicationSpecificParametersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ApplicationSpecificParameters) { + return map[string]interface{}{}, false + } + return o.ApplicationSpecificParameters, true +} + +// HasApplicationSpecificParameters returns a boolean if a field has been set. +func (o *History) HasApplicationSpecificParameters() bool { + if o != nil && !IsNil(o.ApplicationSpecificParameters) { + return true + } + + return false +} + +// SetApplicationSpecificParameters gets a reference to the given map[string]interface{} and assigns it to the ApplicationSpecificParameters field. +func (o *History) SetApplicationSpecificParameters(v map[string]interface{}) { + o.ApplicationSpecificParameters = v +} + +func (o History) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o History) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Transactions) { + toSerialize["Transactions"] = o.Transactions + } + if !IsNil(o.Actions) { + toSerialize["Actions"] = o.Actions + } + if !IsNil(o.Origin) { + toSerialize["Origin"] = o.Origin + } + if !IsNil(o.Destination) { + toSerialize["Destination"] = o.Destination + } + if !IsNil(o.Balance) { + toSerialize["Balance"] = o.Balance + } + if !IsNil(o.CurrentStatus) { + toSerialize["CurrentStatus"] = o.CurrentStatus + } + if !IsNil(o.ApplicationSpecificParameters) { + toSerialize["ApplicationSpecificParameters"] = o.ApplicationSpecificParameters + } + return toSerialize, nil +} + +type NullableHistory struct { + value *History + isSet bool +} + +func (v NullableHistory) Get() *History { + return v.value +} + +func (v *NullableHistory) Set(val *History) { + v.value = val + v.isSet = true +} + +func (v NullableHistory) IsSet() bool { + return v.isSet +} + +func (v *NullableHistory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHistory(val *History) *NullableHistory { + return &NullableHistory{value: val, isSet: true} +} + +func (v NullableHistory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHistory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go new file mode 100644 index 00000000000..acb576f223b --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go @@ -0,0 +1,451 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the LockEvidenceV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LockEvidenceV1Request{} + +// LockEvidenceV1Request struct for LockEvidenceV1Request +type LockEvidenceV1Request struct { + SessionID string `json:"sessionID"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + LockEvidenceClaim string `json:"lockEvidenceClaim"` + LockEvidenceFormat map[string]interface{} `json:"lockEvidenceFormat,omitempty"` + LockEvidenceExpiration string `json:"lockEvidenceExpiration"` + HashCommenceAckRequest string `json:"hashCommenceAckRequest"` + ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` + Signature string `json:"signature"` + MessageType string `json:"messageType"` + MessageHash *string `json:"messageHash,omitempty"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewLockEvidenceV1Request instantiates a new LockEvidenceV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLockEvidenceV1Request(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, lockEvidenceClaim string, lockEvidenceExpiration string, hashCommenceAckRequest string, signature string, messageType string, sequenceNumber float32) *LockEvidenceV1Request { + this := LockEvidenceV1Request{} + this.SessionID = sessionID + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.LockEvidenceClaim = lockEvidenceClaim + this.LockEvidenceExpiration = lockEvidenceExpiration + this.HashCommenceAckRequest = hashCommenceAckRequest + this.Signature = signature + this.MessageType = messageType + this.SequenceNumber = sequenceNumber + return &this +} + +// NewLockEvidenceV1RequestWithDefaults instantiates a new LockEvidenceV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLockEvidenceV1RequestWithDefaults() *LockEvidenceV1Request { + this := LockEvidenceV1Request{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *LockEvidenceV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *LockEvidenceV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *LockEvidenceV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *LockEvidenceV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *LockEvidenceV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *LockEvidenceV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetLockEvidenceClaim returns the LockEvidenceClaim field value +func (o *LockEvidenceV1Request) GetLockEvidenceClaim() string { + if o == nil { + var ret string + return ret + } + + return o.LockEvidenceClaim +} + +// GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetLockEvidenceClaimOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LockEvidenceClaim, true +} + +// SetLockEvidenceClaim sets field value +func (o *LockEvidenceV1Request) SetLockEvidenceClaim(v string) { + o.LockEvidenceClaim = v +} + +// GetLockEvidenceFormat returns the LockEvidenceFormat field value if set, zero value otherwise. +func (o *LockEvidenceV1Request) GetLockEvidenceFormat() map[string]interface{} { + if o == nil || IsNil(o.LockEvidenceFormat) { + var ret map[string]interface{} + return ret + } + return o.LockEvidenceFormat +} + +// GetLockEvidenceFormatOk returns a tuple with the LockEvidenceFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetLockEvidenceFormatOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.LockEvidenceFormat) { + return map[string]interface{}{}, false + } + return o.LockEvidenceFormat, true +} + +// HasLockEvidenceFormat returns a boolean if a field has been set. +func (o *LockEvidenceV1Request) HasLockEvidenceFormat() bool { + if o != nil && !IsNil(o.LockEvidenceFormat) { + return true + } + + return false +} + +// SetLockEvidenceFormat gets a reference to the given map[string]interface{} and assigns it to the LockEvidenceFormat field. +func (o *LockEvidenceV1Request) SetLockEvidenceFormat(v map[string]interface{}) { + o.LockEvidenceFormat = v +} + +// GetLockEvidenceExpiration returns the LockEvidenceExpiration field value +func (o *LockEvidenceV1Request) GetLockEvidenceExpiration() string { + if o == nil { + var ret string + return ret + } + + return o.LockEvidenceExpiration +} + +// GetLockEvidenceExpirationOk returns a tuple with the LockEvidenceExpiration field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetLockEvidenceExpirationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LockEvidenceExpiration, true +} + +// SetLockEvidenceExpiration sets field value +func (o *LockEvidenceV1Request) SetLockEvidenceExpiration(v string) { + o.LockEvidenceExpiration = v +} + +// GetHashCommenceAckRequest returns the HashCommenceAckRequest field value +func (o *LockEvidenceV1Request) GetHashCommenceAckRequest() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommenceAckRequest +} + +// GetHashCommenceAckRequestOk returns a tuple with the HashCommenceAckRequest field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetHashCommenceAckRequestOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommenceAckRequest, true +} + +// SetHashCommenceAckRequest sets field value +func (o *LockEvidenceV1Request) SetHashCommenceAckRequest(v string) { + o.HashCommenceAckRequest = v +} + +// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LockEvidenceV1Request) GetClientTransferNumber() int32 { + if o == nil || IsNil(o.ClientTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ClientTransferNumber.Get() +} + +// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LockEvidenceV1Request) GetClientTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() +} + +// HasClientTransferNumber returns a boolean if a field has been set. +func (o *LockEvidenceV1Request) HasClientTransferNumber() bool { + if o != nil && o.ClientTransferNumber.IsSet() { + return true + } + + return false +} + +// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. +func (o *LockEvidenceV1Request) SetClientTransferNumber(v int32) { + o.ClientTransferNumber.Set(&v) +} +// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil +func (o *LockEvidenceV1Request) SetClientTransferNumberNil() { + o.ClientTransferNumber.Set(nil) +} + +// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +func (o *LockEvidenceV1Request) UnsetClientTransferNumber() { + o.ClientTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *LockEvidenceV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *LockEvidenceV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetMessageType returns the MessageType field value +func (o *LockEvidenceV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *LockEvidenceV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetMessageHash returns the MessageHash field value if set, zero value otherwise. +func (o *LockEvidenceV1Request) GetMessageHash() string { + if o == nil || IsNil(o.MessageHash) { + var ret string + return ret + } + return *o.MessageHash +} + +// GetMessageHashOk returns a tuple with the MessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.MessageHash) { + return nil, false + } + return o.MessageHash, true +} + +// HasMessageHash returns a boolean if a field has been set. +func (o *LockEvidenceV1Request) HasMessageHash() bool { + if o != nil && !IsNil(o.MessageHash) { + return true + } + + return false +} + +// SetMessageHash gets a reference to the given string and assigns it to the MessageHash field. +func (o *LockEvidenceV1Request) SetMessageHash(v string) { + o.MessageHash = &v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *LockEvidenceV1Request) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Request) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *LockEvidenceV1Request) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o LockEvidenceV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LockEvidenceV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["lockEvidenceClaim"] = o.LockEvidenceClaim + if !IsNil(o.LockEvidenceFormat) { + toSerialize["lockEvidenceFormat"] = o.LockEvidenceFormat + } + toSerialize["lockEvidenceExpiration"] = o.LockEvidenceExpiration + toSerialize["hashCommenceAckRequest"] = o.HashCommenceAckRequest + if o.ClientTransferNumber.IsSet() { + toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["messageType"] = o.MessageType + if !IsNil(o.MessageHash) { + toSerialize["messageHash"] = o.MessageHash + } + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableLockEvidenceV1Request struct { + value *LockEvidenceV1Request + isSet bool +} + +func (v NullableLockEvidenceV1Request) Get() *LockEvidenceV1Request { + return v.value +} + +func (v *NullableLockEvidenceV1Request) Set(val *LockEvidenceV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableLockEvidenceV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableLockEvidenceV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLockEvidenceV1Request(val *LockEvidenceV1Request) *NullableLockEvidenceV1Request { + return &NullableLockEvidenceV1Request{value: val, isSet: true} +} + +func (v NullableLockEvidenceV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLockEvidenceV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go new file mode 100644 index 00000000000..b5138bd0cf7 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go @@ -0,0 +1,325 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the LockEvidenceV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LockEvidenceV1Response{} + +// LockEvidenceV1Response struct for LockEvidenceV1Response +type LockEvidenceV1Response struct { + SessionID string `json:"sessionID"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashLockEvidenceRequest string `json:"hashLockEvidenceRequest"` + ServerTransferNumber NullableInt32 `json:"serverTransferNumber,omitempty"` + Signature string `json:"signature"` + MessageType string `json:"messageType"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewLockEvidenceV1Response instantiates a new LockEvidenceV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLockEvidenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceRequest string, signature string, messageType string, sequenceNumber float32) *LockEvidenceV1Response { + this := LockEvidenceV1Response{} + this.SessionID = sessionID + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashLockEvidenceRequest = hashLockEvidenceRequest + this.Signature = signature + this.MessageType = messageType + this.SequenceNumber = sequenceNumber + return &this +} + +// NewLockEvidenceV1ResponseWithDefaults instantiates a new LockEvidenceV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLockEvidenceV1ResponseWithDefaults() *LockEvidenceV1Response { + this := LockEvidenceV1Response{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *LockEvidenceV1Response) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *LockEvidenceV1Response) SetSessionID(v string) { + o.SessionID = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *LockEvidenceV1Response) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *LockEvidenceV1Response) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *LockEvidenceV1Response) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *LockEvidenceV1Response) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashLockEvidenceRequest returns the HashLockEvidenceRequest field value +func (o *LockEvidenceV1Response) GetHashLockEvidenceRequest() string { + if o == nil { + var ret string + return ret + } + + return o.HashLockEvidenceRequest +} + +// GetHashLockEvidenceRequestOk returns a tuple with the HashLockEvidenceRequest field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetHashLockEvidenceRequestOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashLockEvidenceRequest, true +} + +// SetHashLockEvidenceRequest sets field value +func (o *LockEvidenceV1Response) SetHashLockEvidenceRequest(v string) { + o.HashLockEvidenceRequest = v +} + +// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LockEvidenceV1Response) GetServerTransferNumber() int32 { + if o == nil || IsNil(o.ServerTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ServerTransferNumber.Get() +} + +// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LockEvidenceV1Response) GetServerTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ServerTransferNumber.Get(), o.ServerTransferNumber.IsSet() +} + +// HasServerTransferNumber returns a boolean if a field has been set. +func (o *LockEvidenceV1Response) HasServerTransferNumber() bool { + if o != nil && o.ServerTransferNumber.IsSet() { + return true + } + + return false +} + +// SetServerTransferNumber gets a reference to the given NullableInt32 and assigns it to the ServerTransferNumber field. +func (o *LockEvidenceV1Response) SetServerTransferNumber(v int32) { + o.ServerTransferNumber.Set(&v) +} +// SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil +func (o *LockEvidenceV1Response) SetServerTransferNumberNil() { + o.ServerTransferNumber.Set(nil) +} + +// UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil +func (o *LockEvidenceV1Response) UnsetServerTransferNumber() { + o.ServerTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *LockEvidenceV1Response) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *LockEvidenceV1Response) SetSignature(v string) { + o.Signature = v +} + +// GetMessageType returns the MessageType field value +func (o *LockEvidenceV1Response) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *LockEvidenceV1Response) SetMessageType(v string) { + o.MessageType = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *LockEvidenceV1Response) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *LockEvidenceV1Response) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *LockEvidenceV1Response) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o LockEvidenceV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LockEvidenceV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashLockEvidenceRequest"] = o.HashLockEvidenceRequest + if o.ServerTransferNumber.IsSet() { + toSerialize["serverTransferNumber"] = o.ServerTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["messageType"] = o.MessageType + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableLockEvidenceV1Response struct { + value *LockEvidenceV1Response + isSet bool +} + +func (v NullableLockEvidenceV1Response) Get() *LockEvidenceV1Response { + return v.value +} + +func (v *NullableLockEvidenceV1Response) Set(val *LockEvidenceV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableLockEvidenceV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableLockEvidenceV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLockEvidenceV1Response(val *LockEvidenceV1Response) *NullableLockEvidenceV1Response { + return &NullableLockEvidenceV1Response{value: val, isSet: true} +} + +func (v NullableLockEvidenceV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLockEvidenceV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_local_log.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_local_log.go new file mode 100644 index 00000000000..66d472a7a7d --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_local_log.go @@ -0,0 +1,279 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the OdapLocalLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OdapLocalLog{} + +// OdapLocalLog struct for OdapLocalLog +type OdapLocalLog struct { + Key *string `json:"key,omitempty"` + SessionID string `json:"sessionID"` + Data *string `json:"data,omitempty"` + Type string `json:"type"` + Operation string `json:"operation"` + Timestamp *string `json:"timestamp,omitempty"` +} + +// NewOdapLocalLog instantiates a new OdapLocalLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOdapLocalLog(sessionID string, type_ string, operation string) *OdapLocalLog { + this := OdapLocalLog{} + this.SessionID = sessionID + this.Type = type_ + this.Operation = operation + return &this +} + +// NewOdapLocalLogWithDefaults instantiates a new OdapLocalLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOdapLocalLogWithDefaults() *OdapLocalLog { + this := OdapLocalLog{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *OdapLocalLog) GetKey() string { + if o == nil || IsNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetKeyOk() (*string, bool) { + if o == nil || IsNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *OdapLocalLog) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *OdapLocalLog) SetKey(v string) { + o.Key = &v +} + +// GetSessionID returns the SessionID field value +func (o *OdapLocalLog) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *OdapLocalLog) SetSessionID(v string) { + o.SessionID = v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OdapLocalLog) GetData() string { + if o == nil || IsNil(o.Data) { + var ret string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetDataOk() (*string, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OdapLocalLog) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *OdapLocalLog) SetData(v string) { + o.Data = &v +} + +// GetType returns the Type field value +func (o *OdapLocalLog) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OdapLocalLog) SetType(v string) { + o.Type = v +} + +// GetOperation returns the Operation field value +func (o *OdapLocalLog) GetOperation() string { + if o == nil { + var ret string + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetOperationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *OdapLocalLog) SetOperation(v string) { + o.Operation = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *OdapLocalLog) GetTimestamp() string { + if o == nil || IsNil(o.Timestamp) { + var ret string + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapLocalLog) GetTimestampOk() (*string, bool) { + if o == nil || IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *OdapLocalLog) HasTimestamp() bool { + if o != nil && !IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field. +func (o *OdapLocalLog) SetTimestamp(v string) { + o.Timestamp = &v +} + +func (o OdapLocalLog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OdapLocalLog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + toSerialize["sessionID"] = o.SessionID + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + toSerialize["type"] = o.Type + toSerialize["operation"] = o.Operation + if !IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } + return toSerialize, nil +} + +type NullableOdapLocalLog struct { + value *OdapLocalLog + isSet bool +} + +func (v NullableOdapLocalLog) Get() *OdapLocalLog { + return v.value +} + +func (v *NullableOdapLocalLog) Set(val *OdapLocalLog) { + v.value = val + v.isSet = true +} + +func (v NullableOdapLocalLog) IsSet() bool { + return v.isSet +} + +func (v *NullableOdapLocalLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOdapLocalLog(val *OdapLocalLog) *NullableOdapLocalLog { + return &NullableOdapLocalLog{value: val, isSet: true} +} + +func (v NullableOdapLocalLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOdapLocalLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message.go new file mode 100644 index 00000000000..08e4b9c2e18 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message.go @@ -0,0 +1,522 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the OdapMessage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OdapMessage{} + +// OdapMessage struct for OdapMessage +type OdapMessage struct { + SequenceNumber *float32 `json:"SequenceNumber,omitempty"` + Phase *string `json:"Phase,omitempty"` + ResourceURL *string `json:"ResourceURL,omitempty"` + DeveloperURN *string `json:"DeveloperURN,omitempty"` + ActionResponse *OdapMessageActionResponse `json:"ActionResponse,omitempty"` + CredentialProfile *string `json:"CredentialProfile,omitempty"` + CredentialBlock []interface{} `json:"CredentialBlock,omitempty"` + CredentialsProfile *PayloadProfile `json:"CredentialsProfile,omitempty"` + ApplicationProfile map[string]interface{} `json:"ApplicationProfile,omitempty"` + Payload map[string]interface{} `json:"Payload,omitempty"` + PayloadHash *string `json:"PayloadHash,omitempty"` + MessageSignature *string `json:"MessageSignature,omitempty"` +} + +// NewOdapMessage instantiates a new OdapMessage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOdapMessage() *OdapMessage { + this := OdapMessage{} + return &this +} + +// NewOdapMessageWithDefaults instantiates a new OdapMessage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOdapMessageWithDefaults() *OdapMessage { + this := OdapMessage{} + return &this +} + +// GetSequenceNumber returns the SequenceNumber field value if set, zero value otherwise. +func (o *OdapMessage) GetSequenceNumber() float32 { + if o == nil || IsNil(o.SequenceNumber) { + var ret float32 + return ret + } + return *o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetSequenceNumberOk() (*float32, bool) { + if o == nil || IsNil(o.SequenceNumber) { + return nil, false + } + return o.SequenceNumber, true +} + +// HasSequenceNumber returns a boolean if a field has been set. +func (o *OdapMessage) HasSequenceNumber() bool { + if o != nil && !IsNil(o.SequenceNumber) { + return true + } + + return false +} + +// SetSequenceNumber gets a reference to the given float32 and assigns it to the SequenceNumber field. +func (o *OdapMessage) SetSequenceNumber(v float32) { + o.SequenceNumber = &v +} + +// GetPhase returns the Phase field value if set, zero value otherwise. +func (o *OdapMessage) GetPhase() string { + if o == nil || IsNil(o.Phase) { + var ret string + return ret + } + return *o.Phase +} + +// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetPhaseOk() (*string, bool) { + if o == nil || IsNil(o.Phase) { + return nil, false + } + return o.Phase, true +} + +// HasPhase returns a boolean if a field has been set. +func (o *OdapMessage) HasPhase() bool { + if o != nil && !IsNil(o.Phase) { + return true + } + + return false +} + +// SetPhase gets a reference to the given string and assigns it to the Phase field. +func (o *OdapMessage) SetPhase(v string) { + o.Phase = &v +} + +// GetResourceURL returns the ResourceURL field value if set, zero value otherwise. +func (o *OdapMessage) GetResourceURL() string { + if o == nil || IsNil(o.ResourceURL) { + var ret string + return ret + } + return *o.ResourceURL +} + +// GetResourceURLOk returns a tuple with the ResourceURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetResourceURLOk() (*string, bool) { + if o == nil || IsNil(o.ResourceURL) { + return nil, false + } + return o.ResourceURL, true +} + +// HasResourceURL returns a boolean if a field has been set. +func (o *OdapMessage) HasResourceURL() bool { + if o != nil && !IsNil(o.ResourceURL) { + return true + } + + return false +} + +// SetResourceURL gets a reference to the given string and assigns it to the ResourceURL field. +func (o *OdapMessage) SetResourceURL(v string) { + o.ResourceURL = &v +} + +// GetDeveloperURN returns the DeveloperURN field value if set, zero value otherwise. +func (o *OdapMessage) GetDeveloperURN() string { + if o == nil || IsNil(o.DeveloperURN) { + var ret string + return ret + } + return *o.DeveloperURN +} + +// GetDeveloperURNOk returns a tuple with the DeveloperURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetDeveloperURNOk() (*string, bool) { + if o == nil || IsNil(o.DeveloperURN) { + return nil, false + } + return o.DeveloperURN, true +} + +// HasDeveloperURN returns a boolean if a field has been set. +func (o *OdapMessage) HasDeveloperURN() bool { + if o != nil && !IsNil(o.DeveloperURN) { + return true + } + + return false +} + +// SetDeveloperURN gets a reference to the given string and assigns it to the DeveloperURN field. +func (o *OdapMessage) SetDeveloperURN(v string) { + o.DeveloperURN = &v +} + +// GetActionResponse returns the ActionResponse field value if set, zero value otherwise. +func (o *OdapMessage) GetActionResponse() OdapMessageActionResponse { + if o == nil || IsNil(o.ActionResponse) { + var ret OdapMessageActionResponse + return ret + } + return *o.ActionResponse +} + +// GetActionResponseOk returns a tuple with the ActionResponse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetActionResponseOk() (*OdapMessageActionResponse, bool) { + if o == nil || IsNil(o.ActionResponse) { + return nil, false + } + return o.ActionResponse, true +} + +// HasActionResponse returns a boolean if a field has been set. +func (o *OdapMessage) HasActionResponse() bool { + if o != nil && !IsNil(o.ActionResponse) { + return true + } + + return false +} + +// SetActionResponse gets a reference to the given OdapMessageActionResponse and assigns it to the ActionResponse field. +func (o *OdapMessage) SetActionResponse(v OdapMessageActionResponse) { + o.ActionResponse = &v +} + +// GetCredentialProfile returns the CredentialProfile field value if set, zero value otherwise. +func (o *OdapMessage) GetCredentialProfile() string { + if o == nil || IsNil(o.CredentialProfile) { + var ret string + return ret + } + return *o.CredentialProfile +} + +// GetCredentialProfileOk returns a tuple with the CredentialProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetCredentialProfileOk() (*string, bool) { + if o == nil || IsNil(o.CredentialProfile) { + return nil, false + } + return o.CredentialProfile, true +} + +// HasCredentialProfile returns a boolean if a field has been set. +func (o *OdapMessage) HasCredentialProfile() bool { + if o != nil && !IsNil(o.CredentialProfile) { + return true + } + + return false +} + +// SetCredentialProfile gets a reference to the given string and assigns it to the CredentialProfile field. +func (o *OdapMessage) SetCredentialProfile(v string) { + o.CredentialProfile = &v +} + +// GetCredentialBlock returns the CredentialBlock field value if set, zero value otherwise. +func (o *OdapMessage) GetCredentialBlock() []interface{} { + if o == nil || IsNil(o.CredentialBlock) { + var ret []interface{} + return ret + } + return o.CredentialBlock +} + +// GetCredentialBlockOk returns a tuple with the CredentialBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetCredentialBlockOk() ([]interface{}, bool) { + if o == nil || IsNil(o.CredentialBlock) { + return nil, false + } + return o.CredentialBlock, true +} + +// HasCredentialBlock returns a boolean if a field has been set. +func (o *OdapMessage) HasCredentialBlock() bool { + if o != nil && !IsNil(o.CredentialBlock) { + return true + } + + return false +} + +// SetCredentialBlock gets a reference to the given []interface{} and assigns it to the CredentialBlock field. +func (o *OdapMessage) SetCredentialBlock(v []interface{}) { + o.CredentialBlock = v +} + +// GetCredentialsProfile returns the CredentialsProfile field value if set, zero value otherwise. +func (o *OdapMessage) GetCredentialsProfile() PayloadProfile { + if o == nil || IsNil(o.CredentialsProfile) { + var ret PayloadProfile + return ret + } + return *o.CredentialsProfile +} + +// GetCredentialsProfileOk returns a tuple with the CredentialsProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetCredentialsProfileOk() (*PayloadProfile, bool) { + if o == nil || IsNil(o.CredentialsProfile) { + return nil, false + } + return o.CredentialsProfile, true +} + +// HasCredentialsProfile returns a boolean if a field has been set. +func (o *OdapMessage) HasCredentialsProfile() bool { + if o != nil && !IsNil(o.CredentialsProfile) { + return true + } + + return false +} + +// SetCredentialsProfile gets a reference to the given PayloadProfile and assigns it to the CredentialsProfile field. +func (o *OdapMessage) SetCredentialsProfile(v PayloadProfile) { + o.CredentialsProfile = &v +} + +// GetApplicationProfile returns the ApplicationProfile field value if set, zero value otherwise. +func (o *OdapMessage) GetApplicationProfile() map[string]interface{} { + if o == nil || IsNil(o.ApplicationProfile) { + var ret map[string]interface{} + return ret + } + return o.ApplicationProfile +} + +// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetApplicationProfileOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ApplicationProfile) { + return map[string]interface{}{}, false + } + return o.ApplicationProfile, true +} + +// HasApplicationProfile returns a boolean if a field has been set. +func (o *OdapMessage) HasApplicationProfile() bool { + if o != nil && !IsNil(o.ApplicationProfile) { + return true + } + + return false +} + +// SetApplicationProfile gets a reference to the given map[string]interface{} and assigns it to the ApplicationProfile field. +func (o *OdapMessage) SetApplicationProfile(v map[string]interface{}) { + o.ApplicationProfile = v +} + +// GetPayload returns the Payload field value if set, zero value otherwise. +func (o *OdapMessage) GetPayload() map[string]interface{} { + if o == nil || IsNil(o.Payload) { + var ret map[string]interface{} + return ret + } + return o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Payload) { + return map[string]interface{}{}, false + } + return o.Payload, true +} + +// HasPayload returns a boolean if a field has been set. +func (o *OdapMessage) HasPayload() bool { + if o != nil && !IsNil(o.Payload) { + return true + } + + return false +} + +// SetPayload gets a reference to the given map[string]interface{} and assigns it to the Payload field. +func (o *OdapMessage) SetPayload(v map[string]interface{}) { + o.Payload = v +} + +// GetPayloadHash returns the PayloadHash field value if set, zero value otherwise. +func (o *OdapMessage) GetPayloadHash() string { + if o == nil || IsNil(o.PayloadHash) { + var ret string + return ret + } + return *o.PayloadHash +} + +// GetPayloadHashOk returns a tuple with the PayloadHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetPayloadHashOk() (*string, bool) { + if o == nil || IsNil(o.PayloadHash) { + return nil, false + } + return o.PayloadHash, true +} + +// HasPayloadHash returns a boolean if a field has been set. +func (o *OdapMessage) HasPayloadHash() bool { + if o != nil && !IsNil(o.PayloadHash) { + return true + } + + return false +} + +// SetPayloadHash gets a reference to the given string and assigns it to the PayloadHash field. +func (o *OdapMessage) SetPayloadHash(v string) { + o.PayloadHash = &v +} + +// GetMessageSignature returns the MessageSignature field value if set, zero value otherwise. +func (o *OdapMessage) GetMessageSignature() string { + if o == nil || IsNil(o.MessageSignature) { + var ret string + return ret + } + return *o.MessageSignature +} + +// GetMessageSignatureOk returns a tuple with the MessageSignature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessage) GetMessageSignatureOk() (*string, bool) { + if o == nil || IsNil(o.MessageSignature) { + return nil, false + } + return o.MessageSignature, true +} + +// HasMessageSignature returns a boolean if a field has been set. +func (o *OdapMessage) HasMessageSignature() bool { + if o != nil && !IsNil(o.MessageSignature) { + return true + } + + return false +} + +// SetMessageSignature gets a reference to the given string and assigns it to the MessageSignature field. +func (o *OdapMessage) SetMessageSignature(v string) { + o.MessageSignature = &v +} + +func (o OdapMessage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OdapMessage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SequenceNumber) { + toSerialize["SequenceNumber"] = o.SequenceNumber + } + if !IsNil(o.Phase) { + toSerialize["Phase"] = o.Phase + } + if !IsNil(o.ResourceURL) { + toSerialize["ResourceURL"] = o.ResourceURL + } + if !IsNil(o.DeveloperURN) { + toSerialize["DeveloperURN"] = o.DeveloperURN + } + if !IsNil(o.ActionResponse) { + toSerialize["ActionResponse"] = o.ActionResponse + } + if !IsNil(o.CredentialProfile) { + toSerialize["CredentialProfile"] = o.CredentialProfile + } + if !IsNil(o.CredentialBlock) { + toSerialize["CredentialBlock"] = o.CredentialBlock + } + if !IsNil(o.CredentialsProfile) { + toSerialize["CredentialsProfile"] = o.CredentialsProfile + } + if !IsNil(o.ApplicationProfile) { + toSerialize["ApplicationProfile"] = o.ApplicationProfile + } + if !IsNil(o.Payload) { + toSerialize["Payload"] = o.Payload + } + if !IsNil(o.PayloadHash) { + toSerialize["PayloadHash"] = o.PayloadHash + } + if !IsNil(o.MessageSignature) { + toSerialize["MessageSignature"] = o.MessageSignature + } + return toSerialize, nil +} + +type NullableOdapMessage struct { + value *OdapMessage + isSet bool +} + +func (v NullableOdapMessage) Get() *OdapMessage { + return v.value +} + +func (v *NullableOdapMessage) Set(val *OdapMessage) { + v.value = val + v.isSet = true +} + +func (v NullableOdapMessage) IsSet() bool { + return v.isSet +} + +func (v *NullableOdapMessage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOdapMessage(val *OdapMessage) *NullableOdapMessage { + return &NullableOdapMessage{value: val, isSet: true} +} + +func (v NullableOdapMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOdapMessage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message_action_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message_action_response.go new file mode 100644 index 00000000000..63e2dad7cb4 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_odap_message_action_response.go @@ -0,0 +1,162 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the OdapMessageActionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OdapMessageActionResponse{} + +// OdapMessageActionResponse struct for OdapMessageActionResponse +type OdapMessageActionResponse struct { + ResponseCode *string `json:"ResponseCode,omitempty"` + Arguments []interface{} `json:"Arguments,omitempty"` +} + +// NewOdapMessageActionResponse instantiates a new OdapMessageActionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOdapMessageActionResponse() *OdapMessageActionResponse { + this := OdapMessageActionResponse{} + return &this +} + +// NewOdapMessageActionResponseWithDefaults instantiates a new OdapMessageActionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOdapMessageActionResponseWithDefaults() *OdapMessageActionResponse { + this := OdapMessageActionResponse{} + return &this +} + +// GetResponseCode returns the ResponseCode field value if set, zero value otherwise. +func (o *OdapMessageActionResponse) GetResponseCode() string { + if o == nil || IsNil(o.ResponseCode) { + var ret string + return ret + } + return *o.ResponseCode +} + +// GetResponseCodeOk returns a tuple with the ResponseCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessageActionResponse) GetResponseCodeOk() (*string, bool) { + if o == nil || IsNil(o.ResponseCode) { + return nil, false + } + return o.ResponseCode, true +} + +// HasResponseCode returns a boolean if a field has been set. +func (o *OdapMessageActionResponse) HasResponseCode() bool { + if o != nil && !IsNil(o.ResponseCode) { + return true + } + + return false +} + +// SetResponseCode gets a reference to the given string and assigns it to the ResponseCode field. +func (o *OdapMessageActionResponse) SetResponseCode(v string) { + o.ResponseCode = &v +} + +// GetArguments returns the Arguments field value if set, zero value otherwise. +func (o *OdapMessageActionResponse) GetArguments() []interface{} { + if o == nil || IsNil(o.Arguments) { + var ret []interface{} + return ret + } + return o.Arguments +} + +// GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OdapMessageActionResponse) GetArgumentsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.Arguments) { + return nil, false + } + return o.Arguments, true +} + +// HasArguments returns a boolean if a field has been set. +func (o *OdapMessageActionResponse) HasArguments() bool { + if o != nil && !IsNil(o.Arguments) { + return true + } + + return false +} + +// SetArguments gets a reference to the given []interface{} and assigns it to the Arguments field. +func (o *OdapMessageActionResponse) SetArguments(v []interface{}) { + o.Arguments = v +} + +func (o OdapMessageActionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OdapMessageActionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ResponseCode) { + toSerialize["ResponseCode"] = o.ResponseCode + } + if !IsNil(o.Arguments) { + toSerialize["Arguments"] = o.Arguments + } + return toSerialize, nil +} + +type NullableOdapMessageActionResponse struct { + value *OdapMessageActionResponse + isSet bool +} + +func (v NullableOdapMessageActionResponse) Get() *OdapMessageActionResponse { + return v.value +} + +func (v *NullableOdapMessageActionResponse) Set(val *OdapMessageActionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOdapMessageActionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOdapMessageActionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOdapMessageActionResponse(val *OdapMessageActionResponse) *NullableOdapMessageActionResponse { + return &NullableOdapMessageActionResponse{value: val, isSet: true} +} + +func (v NullableOdapMessageActionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOdapMessageActionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go new file mode 100644 index 00000000000..21086e34b5f --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go @@ -0,0 +1,153 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the PayloadProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PayloadProfile{} + +// PayloadProfile struct for PayloadProfile +type PayloadProfile struct { + AssetProfile AssetProfile `json:"assetProfile"` + Capabilities *string `json:"capabilities,omitempty"` +} + +// NewPayloadProfile instantiates a new PayloadProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPayloadProfile(assetProfile AssetProfile) *PayloadProfile { + this := PayloadProfile{} + this.AssetProfile = assetProfile + return &this +} + +// NewPayloadProfileWithDefaults instantiates a new PayloadProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPayloadProfileWithDefaults() *PayloadProfile { + this := PayloadProfile{} + return &this +} + +// GetAssetProfile returns the AssetProfile field value +func (o *PayloadProfile) GetAssetProfile() AssetProfile { + if o == nil { + var ret AssetProfile + return ret + } + + return o.AssetProfile +} + +// GetAssetProfileOk returns a tuple with the AssetProfile field value +// and a boolean to check if the value has been set. +func (o *PayloadProfile) GetAssetProfileOk() (*AssetProfile, bool) { + if o == nil { + return nil, false + } + return &o.AssetProfile, true +} + +// SetAssetProfile sets field value +func (o *PayloadProfile) SetAssetProfile(v AssetProfile) { + o.AssetProfile = v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *PayloadProfile) GetCapabilities() string { + if o == nil || IsNil(o.Capabilities) { + var ret string + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PayloadProfile) GetCapabilitiesOk() (*string, bool) { + if o == nil || IsNil(o.Capabilities) { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *PayloadProfile) HasCapabilities() bool { + if o != nil && !IsNil(o.Capabilities) { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given string and assigns it to the Capabilities field. +func (o *PayloadProfile) SetCapabilities(v string) { + o.Capabilities = &v +} + +func (o PayloadProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PayloadProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetProfile"] = o.AssetProfile + if !IsNil(o.Capabilities) { + toSerialize["capabilities"] = o.Capabilities + } + return toSerialize, nil +} + +type NullablePayloadProfile struct { + value *PayloadProfile + isSet bool +} + +func (v NullablePayloadProfile) Get() *PayloadProfile { + return v.value +} + +func (v *NullablePayloadProfile) Set(val *PayloadProfile) { + v.value = val + v.isSet = true +} + +func (v NullablePayloadProfile) IsSet() bool { + return v.isSet +} + +func (v *NullablePayloadProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePayloadProfile(val *PayloadProfile) *NullablePayloadProfile { + return &NullablePayloadProfile{value: val, isSet: true} +} + +func (v NullablePayloadProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePayloadProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go new file mode 100644 index 00000000000..8207ed61415 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RecoverSuccessV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecoverSuccessV1Message{} + +// RecoverSuccessV1Message struct for RecoverSuccessV1Message +type RecoverSuccessV1Message struct { + SessionID string `json:"sessionID"` + Success bool `json:"success"` + Signature string `json:"signature"` +} + +// NewRecoverSuccessV1Message instantiates a new RecoverSuccessV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRecoverSuccessV1Message(sessionID string, success bool, signature string) *RecoverSuccessV1Message { + this := RecoverSuccessV1Message{} + this.SessionID = sessionID + this.Success = success + this.Signature = signature + return &this +} + +// NewRecoverSuccessV1MessageWithDefaults instantiates a new RecoverSuccessV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRecoverSuccessV1MessageWithDefaults() *RecoverSuccessV1Message { + this := RecoverSuccessV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RecoverSuccessV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RecoverSuccessV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RecoverSuccessV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetSuccess returns the Success field value +func (o *RecoverSuccessV1Message) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RecoverSuccessV1Message) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RecoverSuccessV1Message) SetSuccess(v bool) { + o.Success = v +} + +// GetSignature returns the Signature field value +func (o *RecoverSuccessV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RecoverSuccessV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RecoverSuccessV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RecoverSuccessV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecoverSuccessV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["success"] = o.Success + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRecoverSuccessV1Message struct { + value *RecoverSuccessV1Message + isSet bool +} + +func (v NullableRecoverSuccessV1Message) Get() *RecoverSuccessV1Message { + return v.value +} + +func (v *NullableRecoverSuccessV1Message) Set(val *RecoverSuccessV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRecoverSuccessV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRecoverSuccessV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecoverSuccessV1Message(val *RecoverSuccessV1Message) *NullableRecoverSuccessV1Message { + return &NullableRecoverSuccessV1Message{value: val, isSet: true} +} + +func (v NullableRecoverSuccessV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecoverSuccessV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go new file mode 100644 index 00000000000..ab737ae3529 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go @@ -0,0 +1,198 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RecoverUpdateAckV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecoverUpdateAckV1Message{} + +// RecoverUpdateAckV1Message struct for RecoverUpdateAckV1Message +type RecoverUpdateAckV1Message struct { + SessionID string `json:"sessionID"` + Success bool `json:"success"` + ChangedEntriesHash []string `json:"changedEntriesHash"` + Signature string `json:"signature"` +} + +// NewRecoverUpdateAckV1Message instantiates a new RecoverUpdateAckV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRecoverUpdateAckV1Message(sessionID string, success bool, changedEntriesHash []string, signature string) *RecoverUpdateAckV1Message { + this := RecoverUpdateAckV1Message{} + this.SessionID = sessionID + this.Success = success + this.ChangedEntriesHash = changedEntriesHash + this.Signature = signature + return &this +} + +// NewRecoverUpdateAckV1MessageWithDefaults instantiates a new RecoverUpdateAckV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRecoverUpdateAckV1MessageWithDefaults() *RecoverUpdateAckV1Message { + this := RecoverUpdateAckV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RecoverUpdateAckV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateAckV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RecoverUpdateAckV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetSuccess returns the Success field value +func (o *RecoverUpdateAckV1Message) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateAckV1Message) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RecoverUpdateAckV1Message) SetSuccess(v bool) { + o.Success = v +} + +// GetChangedEntriesHash returns the ChangedEntriesHash field value +func (o *RecoverUpdateAckV1Message) GetChangedEntriesHash() []string { + if o == nil { + var ret []string + return ret + } + + return o.ChangedEntriesHash +} + +// GetChangedEntriesHashOk returns a tuple with the ChangedEntriesHash field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateAckV1Message) GetChangedEntriesHashOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ChangedEntriesHash, true +} + +// SetChangedEntriesHash sets field value +func (o *RecoverUpdateAckV1Message) SetChangedEntriesHash(v []string) { + o.ChangedEntriesHash = v +} + +// GetSignature returns the Signature field value +func (o *RecoverUpdateAckV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateAckV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RecoverUpdateAckV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RecoverUpdateAckV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecoverUpdateAckV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["success"] = o.Success + toSerialize["changedEntriesHash"] = o.ChangedEntriesHash + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRecoverUpdateAckV1Message struct { + value *RecoverUpdateAckV1Message + isSet bool +} + +func (v NullableRecoverUpdateAckV1Message) Get() *RecoverUpdateAckV1Message { + return v.value +} + +func (v *NullableRecoverUpdateAckV1Message) Set(val *RecoverUpdateAckV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRecoverUpdateAckV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRecoverUpdateAckV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecoverUpdateAckV1Message(val *RecoverUpdateAckV1Message) *NullableRecoverUpdateAckV1Message { + return &NullableRecoverUpdateAckV1Message{value: val, isSet: true} +} + +func (v NullableRecoverUpdateAckV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecoverUpdateAckV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go new file mode 100644 index 00000000000..343eff6645b --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RecoverUpdateV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecoverUpdateV1Message{} + +// RecoverUpdateV1Message struct for RecoverUpdateV1Message +type RecoverUpdateV1Message struct { + SessionID string `json:"sessionID"` + RecoveredLogs []OdapLocalLog `json:"recoveredLogs"` + Signature string `json:"signature"` +} + +// NewRecoverUpdateV1Message instantiates a new RecoverUpdateV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRecoverUpdateV1Message(sessionID string, recoveredLogs []OdapLocalLog, signature string) *RecoverUpdateV1Message { + this := RecoverUpdateV1Message{} + this.SessionID = sessionID + this.RecoveredLogs = recoveredLogs + this.Signature = signature + return &this +} + +// NewRecoverUpdateV1MessageWithDefaults instantiates a new RecoverUpdateV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRecoverUpdateV1MessageWithDefaults() *RecoverUpdateV1Message { + this := RecoverUpdateV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RecoverUpdateV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RecoverUpdateV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetRecoveredLogs returns the RecoveredLogs field value +func (o *RecoverUpdateV1Message) GetRecoveredLogs() []OdapLocalLog { + if o == nil { + var ret []OdapLocalLog + return ret + } + + return o.RecoveredLogs +} + +// GetRecoveredLogsOk returns a tuple with the RecoveredLogs field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateV1Message) GetRecoveredLogsOk() ([]OdapLocalLog, bool) { + if o == nil { + return nil, false + } + return o.RecoveredLogs, true +} + +// SetRecoveredLogs sets field value +func (o *RecoverUpdateV1Message) SetRecoveredLogs(v []OdapLocalLog) { + o.RecoveredLogs = v +} + +// GetSignature returns the Signature field value +func (o *RecoverUpdateV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RecoverUpdateV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RecoverUpdateV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RecoverUpdateV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecoverUpdateV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["recoveredLogs"] = o.RecoveredLogs + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRecoverUpdateV1Message struct { + value *RecoverUpdateV1Message + isSet bool +} + +func (v NullableRecoverUpdateV1Message) Get() *RecoverUpdateV1Message { + return v.value +} + +func (v *NullableRecoverUpdateV1Message) Set(val *RecoverUpdateV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRecoverUpdateV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRecoverUpdateV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecoverUpdateV1Message(val *RecoverUpdateV1Message) *NullableRecoverUpdateV1Message { + return &NullableRecoverUpdateV1Message{value: val, isSet: true} +} + +func (v NullableRecoverUpdateV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecoverUpdateV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go new file mode 100644 index 00000000000..83481908883 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go @@ -0,0 +1,315 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RecoverV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecoverV1Message{} + +// RecoverV1Message struct for RecoverV1Message +type RecoverV1Message struct { + SessionID string `json:"sessionID"` + OdapPhase string `json:"odapPhase"` + SequenceNumber float32 `json:"sequenceNumber"` + LastLogEntryTimestamp string `json:"lastLogEntryTimestamp"` + IsBackup bool `json:"isBackup"` + NewBasePath string `json:"newBasePath"` + NewGatewayPubKey *string `json:"newGatewayPubKey,omitempty"` + Signature string `json:"signature"` +} + +// NewRecoverV1Message instantiates a new RecoverV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRecoverV1Message(sessionID string, odapPhase string, sequenceNumber float32, lastLogEntryTimestamp string, isBackup bool, newBasePath string, signature string) *RecoverV1Message { + this := RecoverV1Message{} + this.SessionID = sessionID + this.OdapPhase = odapPhase + this.SequenceNumber = sequenceNumber + this.LastLogEntryTimestamp = lastLogEntryTimestamp + this.IsBackup = isBackup + this.NewBasePath = newBasePath + this.Signature = signature + return &this +} + +// NewRecoverV1MessageWithDefaults instantiates a new RecoverV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRecoverV1MessageWithDefaults() *RecoverV1Message { + this := RecoverV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RecoverV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RecoverV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetOdapPhase returns the OdapPhase field value +func (o *RecoverV1Message) GetOdapPhase() string { + if o == nil { + var ret string + return ret + } + + return o.OdapPhase +} + +// GetOdapPhaseOk returns a tuple with the OdapPhase field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetOdapPhaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OdapPhase, true +} + +// SetOdapPhase sets field value +func (o *RecoverV1Message) SetOdapPhase(v string) { + o.OdapPhase = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *RecoverV1Message) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *RecoverV1Message) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +// GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field value +func (o *RecoverV1Message) GetLastLogEntryTimestamp() string { + if o == nil { + var ret string + return ret + } + + return o.LastLogEntryTimestamp +} + +// GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetLastLogEntryTimestampOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastLogEntryTimestamp, true +} + +// SetLastLogEntryTimestamp sets field value +func (o *RecoverV1Message) SetLastLogEntryTimestamp(v string) { + o.LastLogEntryTimestamp = v +} + +// GetIsBackup returns the IsBackup field value +func (o *RecoverV1Message) GetIsBackup() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsBackup +} + +// GetIsBackupOk returns a tuple with the IsBackup field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetIsBackupOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsBackup, true +} + +// SetIsBackup sets field value +func (o *RecoverV1Message) SetIsBackup(v bool) { + o.IsBackup = v +} + +// GetNewBasePath returns the NewBasePath field value +func (o *RecoverV1Message) GetNewBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.NewBasePath +} + +// GetNewBasePathOk returns a tuple with the NewBasePath field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetNewBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NewBasePath, true +} + +// SetNewBasePath sets field value +func (o *RecoverV1Message) SetNewBasePath(v string) { + o.NewBasePath = v +} + +// GetNewGatewayPubKey returns the NewGatewayPubKey field value if set, zero value otherwise. +func (o *RecoverV1Message) GetNewGatewayPubKey() string { + if o == nil || IsNil(o.NewGatewayPubKey) { + var ret string + return ret + } + return *o.NewGatewayPubKey +} + +// GetNewGatewayPubKeyOk returns a tuple with the NewGatewayPubKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetNewGatewayPubKeyOk() (*string, bool) { + if o == nil || IsNil(o.NewGatewayPubKey) { + return nil, false + } + return o.NewGatewayPubKey, true +} + +// HasNewGatewayPubKey returns a boolean if a field has been set. +func (o *RecoverV1Message) HasNewGatewayPubKey() bool { + if o != nil && !IsNil(o.NewGatewayPubKey) { + return true + } + + return false +} + +// SetNewGatewayPubKey gets a reference to the given string and assigns it to the NewGatewayPubKey field. +func (o *RecoverV1Message) SetNewGatewayPubKey(v string) { + o.NewGatewayPubKey = &v +} + +// GetSignature returns the Signature field value +func (o *RecoverV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RecoverV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RecoverV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RecoverV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecoverV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["odapPhase"] = o.OdapPhase + toSerialize["sequenceNumber"] = o.SequenceNumber + toSerialize["lastLogEntryTimestamp"] = o.LastLogEntryTimestamp + toSerialize["isBackup"] = o.IsBackup + toSerialize["newBasePath"] = o.NewBasePath + if !IsNil(o.NewGatewayPubKey) { + toSerialize["newGatewayPubKey"] = o.NewGatewayPubKey + } + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRecoverV1Message struct { + value *RecoverV1Message + isSet bool +} + +func (v NullableRecoverV1Message) Get() *RecoverV1Message { + return v.value +} + +func (v *NullableRecoverV1Message) Set(val *RecoverV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRecoverV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRecoverV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecoverV1Message(val *RecoverV1Message) *NullableRecoverV1Message { + return &NullableRecoverV1Message{value: val, isSet: true} +} + +func (v NullableRecoverV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecoverV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go new file mode 100644 index 00000000000..be502374997 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go @@ -0,0 +1,171 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RollbackAckV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RollbackAckV1Message{} + +// RollbackAckV1Message struct for RollbackAckV1Message +type RollbackAckV1Message struct { + SessionID string `json:"sessionID"` + Success bool `json:"success"` + Signature string `json:"signature"` +} + +// NewRollbackAckV1Message instantiates a new RollbackAckV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRollbackAckV1Message(sessionID string, success bool, signature string) *RollbackAckV1Message { + this := RollbackAckV1Message{} + this.SessionID = sessionID + this.Success = success + this.Signature = signature + return &this +} + +// NewRollbackAckV1MessageWithDefaults instantiates a new RollbackAckV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRollbackAckV1MessageWithDefaults() *RollbackAckV1Message { + this := RollbackAckV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RollbackAckV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RollbackAckV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RollbackAckV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetSuccess returns the Success field value +func (o *RollbackAckV1Message) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RollbackAckV1Message) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RollbackAckV1Message) SetSuccess(v bool) { + o.Success = v +} + +// GetSignature returns the Signature field value +func (o *RollbackAckV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RollbackAckV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RollbackAckV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RollbackAckV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RollbackAckV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["success"] = o.Success + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRollbackAckV1Message struct { + value *RollbackAckV1Message + isSet bool +} + +func (v NullableRollbackAckV1Message) Get() *RollbackAckV1Message { + return v.value +} + +func (v *NullableRollbackAckV1Message) Set(val *RollbackAckV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRollbackAckV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRollbackAckV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRollbackAckV1Message(val *RollbackAckV1Message) *NullableRollbackAckV1Message { + return &NullableRollbackAckV1Message{value: val, isSet: true} +} + +func (v NullableRollbackAckV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRollbackAckV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go new file mode 100644 index 00000000000..811078360ac --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go @@ -0,0 +1,225 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the RollbackV1Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RollbackV1Message{} + +// RollbackV1Message struct for RollbackV1Message +type RollbackV1Message struct { + SessionID string `json:"sessionID"` + Success bool `json:"success"` + ActionPerformed []string `json:"actionPerformed"` + Proofs []string `json:"proofs"` + Signature string `json:"signature"` +} + +// NewRollbackV1Message instantiates a new RollbackV1Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRollbackV1Message(sessionID string, success bool, actionPerformed []string, proofs []string, signature string) *RollbackV1Message { + this := RollbackV1Message{} + this.SessionID = sessionID + this.Success = success + this.ActionPerformed = actionPerformed + this.Proofs = proofs + this.Signature = signature + return &this +} + +// NewRollbackV1MessageWithDefaults instantiates a new RollbackV1Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRollbackV1MessageWithDefaults() *RollbackV1Message { + this := RollbackV1Message{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *RollbackV1Message) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *RollbackV1Message) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *RollbackV1Message) SetSessionID(v string) { + o.SessionID = v +} + +// GetSuccess returns the Success field value +func (o *RollbackV1Message) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RollbackV1Message) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RollbackV1Message) SetSuccess(v bool) { + o.Success = v +} + +// GetActionPerformed returns the ActionPerformed field value +func (o *RollbackV1Message) GetActionPerformed() []string { + if o == nil { + var ret []string + return ret + } + + return o.ActionPerformed +} + +// GetActionPerformedOk returns a tuple with the ActionPerformed field value +// and a boolean to check if the value has been set. +func (o *RollbackV1Message) GetActionPerformedOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ActionPerformed, true +} + +// SetActionPerformed sets field value +func (o *RollbackV1Message) SetActionPerformed(v []string) { + o.ActionPerformed = v +} + +// GetProofs returns the Proofs field value +func (o *RollbackV1Message) GetProofs() []string { + if o == nil { + var ret []string + return ret + } + + return o.Proofs +} + +// GetProofsOk returns a tuple with the Proofs field value +// and a boolean to check if the value has been set. +func (o *RollbackV1Message) GetProofsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Proofs, true +} + +// SetProofs sets field value +func (o *RollbackV1Message) SetProofs(v []string) { + o.Proofs = v +} + +// GetSignature returns the Signature field value +func (o *RollbackV1Message) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *RollbackV1Message) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *RollbackV1Message) SetSignature(v string) { + o.Signature = v +} + +func (o RollbackV1Message) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RollbackV1Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["success"] = o.Success + toSerialize["actionPerformed"] = o.ActionPerformed + toSerialize["proofs"] = o.Proofs + toSerialize["signature"] = o.Signature + return toSerialize, nil +} + +type NullableRollbackV1Message struct { + value *RollbackV1Message + isSet bool +} + +func (v NullableRollbackV1Message) Get() *RollbackV1Message { + return v.value +} + +func (v *NullableRollbackV1Message) Set(val *RollbackV1Message) { + v.value = val + v.isSet = true +} + +func (v NullableRollbackV1Message) IsSet() bool { + return v.isSet +} + +func (v *NullableRollbackV1Message) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRollbackV1Message(val *RollbackV1Message) *NullableRollbackV1Message { + return &NullableRollbackV1Message{value: val, isSet: true} +} + +func (v NullableRollbackV1Message) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRollbackV1Message) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_session_data.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_session_data.go new file mode 100644 index 00000000000..4e2689a95f6 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_session_data.go @@ -0,0 +1,2286 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the SessionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SessionData{} + +// SessionData struct for SessionData +type SessionData struct { + Id *string `json:"id,omitempty"` + Step *float32 `json:"step,omitempty"` + Version *string `json:"version,omitempty"` + LastSequenceNumber *float32 `json:"lastSequenceNumber,omitempty"` + LoggingProfile *string `json:"loggingProfile,omitempty"` + AccessControlProfile *string `json:"accessControlProfile,omitempty"` + ApplicationProfile *string `json:"applicationProfile,omitempty"` + PayloadProfile *PayloadProfile `json:"payloadProfile,omitempty"` + AssetProfile *AssetProfile `json:"assetProfile,omitempty"` + AllowedSourceBackupGateways []string `json:"allowedSourceBackupGateways,omitempty"` + AllowedRecipientBackupGateways []string `json:"allowedRecipientBackupGateways,omitempty"` + SourceBasePath *string `json:"sourceBasePath,omitempty"` + RecipientBasePath *string `json:"recipientBasePath,omitempty"` + OriginatorPubkey *string `json:"originatorPubkey,omitempty"` + BeneficiaryPubkey *string `json:"beneficiaryPubkey,omitempty"` + SourceGatewayPubkey *string `json:"sourceGatewayPubkey,omitempty"` + SourceGatewayDltSystem *string `json:"sourceGatewayDltSystem,omitempty"` + RecipientGatewayPubkey *string `json:"recipientGatewayPubkey,omitempty"` + RecipientGatewayDltSystem *string `json:"recipientGatewayDltSystem,omitempty"` + InitializationRequestMessageHash *string `json:"initializationRequestMessageHash,omitempty"` + InitializationResponseMessageHash *string `json:"initializationResponseMessageHash,omitempty"` + InitializationRequestMessageRcvTimeStamp *string `json:"initializationRequestMessageRcvTimeStamp,omitempty"` + InitializationRequestMessageProcessedTimeStamp *string `json:"initializationRequestMessageProcessedTimeStamp,omitempty"` + ClientSignatureInitializationRequestMessage *string `json:"clientSignatureInitializationRequestMessage,omitempty"` + ServerSignatureInitializationResponseMessage *string `json:"serverSignatureInitializationResponseMessage,omitempty"` + TransferCommenceMessageRequestHash *string `json:"transferCommenceMessageRequestHash,omitempty"` + TransferCommenceMessageResponseHash *string `json:"transferCommenceMessageResponseHash,omitempty"` + ClientSignatureTransferCommenceRequestMessage *string `json:"clientSignatureTransferCommenceRequestMessage,omitempty"` + ServerSignatureTransferCommenceResponseMessage *string `json:"serverSignatureTransferCommenceResponseMessage,omitempty"` + LockEvidenceRequestMessageHash *string `json:"lockEvidenceRequestMessageHash,omitempty"` + LockEvidenceResponseMessageHash *string `json:"lockEvidenceResponseMessageHash,omitempty"` + ClientSignatureLockEvidenceRequestMessage *string `json:"clientSignatureLockEvidenceRequestMessage,omitempty"` + ServerSignatureLockEvidenceResponseMessage *string `json:"serverSignatureLockEvidenceResponseMessage,omitempty"` + LockEvidenceClaim *string `json:"lockEvidenceClaim,omitempty"` + CommitPrepareRequestMessageHash *string `json:"commitPrepareRequestMessageHash,omitempty"` + CommitPrepareResponseMessageHash *string `json:"commitPrepareResponseMessageHash,omitempty"` + ClientSignatureCommitPreparationRequestMessage *string `json:"clientSignatureCommitPreparationRequestMessage,omitempty"` + ServerSignatureCommitPreparationResponseMessage *string `json:"serverSignatureCommitPreparationResponseMessage,omitempty"` + CommitFinalRequestMessageHash *string `json:"commitFinalRequestMessageHash,omitempty"` + CommitFinalResponseMessageHash *string `json:"commitFinalResponseMessageHash,omitempty"` + CommitFinalClaim *string `json:"commitFinalClaim,omitempty"` + CommitFinalClaimFormat *string `json:"commitFinalClaimFormat,omitempty"` + CommitAcknowledgementClaim *string `json:"commitAcknowledgementClaim,omitempty"` + CommitAcknowledgementClaimFormat *string `json:"commitAcknowledgementClaimFormat,omitempty"` + ClientSignatureCommitFinalRequestMessage *string `json:"clientSignatureCommitFinalRequestMessage,omitempty"` + ServerSignatureCommitFinalResponseMessage *string `json:"serverSignatureCommitFinalResponseMessage,omitempty"` + TransferCompleteMessageHash *string `json:"transferCompleteMessageHash,omitempty"` + ClientSignatureTransferCompleteMessage *string `json:"clientSignatureTransferCompleteMessage,omitempty"` + MaxRetries *float32 `json:"maxRetries,omitempty"` + RecipientLedgerAssetID *string `json:"recipientLedgerAssetID,omitempty"` + SourceLedgerAssetID *string `json:"sourceLedgerAssetID,omitempty"` + MaxTimeout *float32 `json:"maxTimeout,omitempty"` + LastLogEntryTimestamp *string `json:"lastLogEntryTimestamp,omitempty"` + UnlockAssetClaim *string `json:"unlockAssetClaim,omitempty"` + RecreateAssetClaim *string `json:"recreateAssetClaim,omitempty"` + DeleteAssetClaim *string `json:"deleteAssetClaim,omitempty"` + LastMessageReceivedTimestamp *string `json:"lastMessageReceivedTimestamp,omitempty"` + Rollback *bool `json:"rollback,omitempty"` + RollbackMessageHash *string `json:"rollbackMessageHash,omitempty"` + RollbackProofs []string `json:"rollbackProofs,omitempty"` + RollbackActionsPerformed []string `json:"rollbackActionsPerformed,omitempty"` +} + +// NewSessionData instantiates a new SessionData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSessionData() *SessionData { + this := SessionData{} + return &this +} + +// NewSessionDataWithDefaults instantiates a new SessionData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSessionDataWithDefaults() *SessionData { + this := SessionData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SessionData) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SessionData) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SessionData) SetId(v string) { + o.Id = &v +} + +// GetStep returns the Step field value if set, zero value otherwise. +func (o *SessionData) GetStep() float32 { + if o == nil || IsNil(o.Step) { + var ret float32 + return ret + } + return *o.Step +} + +// GetStepOk returns a tuple with the Step field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetStepOk() (*float32, bool) { + if o == nil || IsNil(o.Step) { + return nil, false + } + return o.Step, true +} + +// HasStep returns a boolean if a field has been set. +func (o *SessionData) HasStep() bool { + if o != nil && !IsNil(o.Step) { + return true + } + + return false +} + +// SetStep gets a reference to the given float32 and assigns it to the Step field. +func (o *SessionData) SetStep(v float32) { + o.Step = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SessionData) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SessionData) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SessionData) SetVersion(v string) { + o.Version = &v +} + +// GetLastSequenceNumber returns the LastSequenceNumber field value if set, zero value otherwise. +func (o *SessionData) GetLastSequenceNumber() float32 { + if o == nil || IsNil(o.LastSequenceNumber) { + var ret float32 + return ret + } + return *o.LastSequenceNumber +} + +// GetLastSequenceNumberOk returns a tuple with the LastSequenceNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLastSequenceNumberOk() (*float32, bool) { + if o == nil || IsNil(o.LastSequenceNumber) { + return nil, false + } + return o.LastSequenceNumber, true +} + +// HasLastSequenceNumber returns a boolean if a field has been set. +func (o *SessionData) HasLastSequenceNumber() bool { + if o != nil && !IsNil(o.LastSequenceNumber) { + return true + } + + return false +} + +// SetLastSequenceNumber gets a reference to the given float32 and assigns it to the LastSequenceNumber field. +func (o *SessionData) SetLastSequenceNumber(v float32) { + o.LastSequenceNumber = &v +} + +// GetLoggingProfile returns the LoggingProfile field value if set, zero value otherwise. +func (o *SessionData) GetLoggingProfile() string { + if o == nil || IsNil(o.LoggingProfile) { + var ret string + return ret + } + return *o.LoggingProfile +} + +// GetLoggingProfileOk returns a tuple with the LoggingProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLoggingProfileOk() (*string, bool) { + if o == nil || IsNil(o.LoggingProfile) { + return nil, false + } + return o.LoggingProfile, true +} + +// HasLoggingProfile returns a boolean if a field has been set. +func (o *SessionData) HasLoggingProfile() bool { + if o != nil && !IsNil(o.LoggingProfile) { + return true + } + + return false +} + +// SetLoggingProfile gets a reference to the given string and assigns it to the LoggingProfile field. +func (o *SessionData) SetLoggingProfile(v string) { + o.LoggingProfile = &v +} + +// GetAccessControlProfile returns the AccessControlProfile field value if set, zero value otherwise. +func (o *SessionData) GetAccessControlProfile() string { + if o == nil || IsNil(o.AccessControlProfile) { + var ret string + return ret + } + return *o.AccessControlProfile +} + +// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetAccessControlProfileOk() (*string, bool) { + if o == nil || IsNil(o.AccessControlProfile) { + return nil, false + } + return o.AccessControlProfile, true +} + +// HasAccessControlProfile returns a boolean if a field has been set. +func (o *SessionData) HasAccessControlProfile() bool { + if o != nil && !IsNil(o.AccessControlProfile) { + return true + } + + return false +} + +// SetAccessControlProfile gets a reference to the given string and assigns it to the AccessControlProfile field. +func (o *SessionData) SetAccessControlProfile(v string) { + o.AccessControlProfile = &v +} + +// GetApplicationProfile returns the ApplicationProfile field value if set, zero value otherwise. +func (o *SessionData) GetApplicationProfile() string { + if o == nil || IsNil(o.ApplicationProfile) { + var ret string + return ret + } + return *o.ApplicationProfile +} + +// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetApplicationProfileOk() (*string, bool) { + if o == nil || IsNil(o.ApplicationProfile) { + return nil, false + } + return o.ApplicationProfile, true +} + +// HasApplicationProfile returns a boolean if a field has been set. +func (o *SessionData) HasApplicationProfile() bool { + if o != nil && !IsNil(o.ApplicationProfile) { + return true + } + + return false +} + +// SetApplicationProfile gets a reference to the given string and assigns it to the ApplicationProfile field. +func (o *SessionData) SetApplicationProfile(v string) { + o.ApplicationProfile = &v +} + +// GetPayloadProfile returns the PayloadProfile field value if set, zero value otherwise. +func (o *SessionData) GetPayloadProfile() PayloadProfile { + if o == nil || IsNil(o.PayloadProfile) { + var ret PayloadProfile + return ret + } + return *o.PayloadProfile +} + +// GetPayloadProfileOk returns a tuple with the PayloadProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetPayloadProfileOk() (*PayloadProfile, bool) { + if o == nil || IsNil(o.PayloadProfile) { + return nil, false + } + return o.PayloadProfile, true +} + +// HasPayloadProfile returns a boolean if a field has been set. +func (o *SessionData) HasPayloadProfile() bool { + if o != nil && !IsNil(o.PayloadProfile) { + return true + } + + return false +} + +// SetPayloadProfile gets a reference to the given PayloadProfile and assigns it to the PayloadProfile field. +func (o *SessionData) SetPayloadProfile(v PayloadProfile) { + o.PayloadProfile = &v +} + +// GetAssetProfile returns the AssetProfile field value if set, zero value otherwise. +func (o *SessionData) GetAssetProfile() AssetProfile { + if o == nil || IsNil(o.AssetProfile) { + var ret AssetProfile + return ret + } + return *o.AssetProfile +} + +// GetAssetProfileOk returns a tuple with the AssetProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetAssetProfileOk() (*AssetProfile, bool) { + if o == nil || IsNil(o.AssetProfile) { + return nil, false + } + return o.AssetProfile, true +} + +// HasAssetProfile returns a boolean if a field has been set. +func (o *SessionData) HasAssetProfile() bool { + if o != nil && !IsNil(o.AssetProfile) { + return true + } + + return false +} + +// SetAssetProfile gets a reference to the given AssetProfile and assigns it to the AssetProfile field. +func (o *SessionData) SetAssetProfile(v AssetProfile) { + o.AssetProfile = &v +} + +// GetAllowedSourceBackupGateways returns the AllowedSourceBackupGateways field value if set, zero value otherwise. +func (o *SessionData) GetAllowedSourceBackupGateways() []string { + if o == nil || IsNil(o.AllowedSourceBackupGateways) { + var ret []string + return ret + } + return o.AllowedSourceBackupGateways +} + +// GetAllowedSourceBackupGatewaysOk returns a tuple with the AllowedSourceBackupGateways field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetAllowedSourceBackupGatewaysOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedSourceBackupGateways) { + return nil, false + } + return o.AllowedSourceBackupGateways, true +} + +// HasAllowedSourceBackupGateways returns a boolean if a field has been set. +func (o *SessionData) HasAllowedSourceBackupGateways() bool { + if o != nil && !IsNil(o.AllowedSourceBackupGateways) { + return true + } + + return false +} + +// SetAllowedSourceBackupGateways gets a reference to the given []string and assigns it to the AllowedSourceBackupGateways field. +func (o *SessionData) SetAllowedSourceBackupGateways(v []string) { + o.AllowedSourceBackupGateways = v +} + +// GetAllowedRecipientBackupGateways returns the AllowedRecipientBackupGateways field value if set, zero value otherwise. +func (o *SessionData) GetAllowedRecipientBackupGateways() []string { + if o == nil || IsNil(o.AllowedRecipientBackupGateways) { + var ret []string + return ret + } + return o.AllowedRecipientBackupGateways +} + +// GetAllowedRecipientBackupGatewaysOk returns a tuple with the AllowedRecipientBackupGateways field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetAllowedRecipientBackupGatewaysOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedRecipientBackupGateways) { + return nil, false + } + return o.AllowedRecipientBackupGateways, true +} + +// HasAllowedRecipientBackupGateways returns a boolean if a field has been set. +func (o *SessionData) HasAllowedRecipientBackupGateways() bool { + if o != nil && !IsNil(o.AllowedRecipientBackupGateways) { + return true + } + + return false +} + +// SetAllowedRecipientBackupGateways gets a reference to the given []string and assigns it to the AllowedRecipientBackupGateways field. +func (o *SessionData) SetAllowedRecipientBackupGateways(v []string) { + o.AllowedRecipientBackupGateways = v +} + +// GetSourceBasePath returns the SourceBasePath field value if set, zero value otherwise. +func (o *SessionData) GetSourceBasePath() string { + if o == nil || IsNil(o.SourceBasePath) { + var ret string + return ret + } + return *o.SourceBasePath +} + +// GetSourceBasePathOk returns a tuple with the SourceBasePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetSourceBasePathOk() (*string, bool) { + if o == nil || IsNil(o.SourceBasePath) { + return nil, false + } + return o.SourceBasePath, true +} + +// HasSourceBasePath returns a boolean if a field has been set. +func (o *SessionData) HasSourceBasePath() bool { + if o != nil && !IsNil(o.SourceBasePath) { + return true + } + + return false +} + +// SetSourceBasePath gets a reference to the given string and assigns it to the SourceBasePath field. +func (o *SessionData) SetSourceBasePath(v string) { + o.SourceBasePath = &v +} + +// GetRecipientBasePath returns the RecipientBasePath field value if set, zero value otherwise. +func (o *SessionData) GetRecipientBasePath() string { + if o == nil || IsNil(o.RecipientBasePath) { + var ret string + return ret + } + return *o.RecipientBasePath +} + +// GetRecipientBasePathOk returns a tuple with the RecipientBasePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRecipientBasePathOk() (*string, bool) { + if o == nil || IsNil(o.RecipientBasePath) { + return nil, false + } + return o.RecipientBasePath, true +} + +// HasRecipientBasePath returns a boolean if a field has been set. +func (o *SessionData) HasRecipientBasePath() bool { + if o != nil && !IsNil(o.RecipientBasePath) { + return true + } + + return false +} + +// SetRecipientBasePath gets a reference to the given string and assigns it to the RecipientBasePath field. +func (o *SessionData) SetRecipientBasePath(v string) { + o.RecipientBasePath = &v +} + +// GetOriginatorPubkey returns the OriginatorPubkey field value if set, zero value otherwise. +func (o *SessionData) GetOriginatorPubkey() string { + if o == nil || IsNil(o.OriginatorPubkey) { + var ret string + return ret + } + return *o.OriginatorPubkey +} + +// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetOriginatorPubkeyOk() (*string, bool) { + if o == nil || IsNil(o.OriginatorPubkey) { + return nil, false + } + return o.OriginatorPubkey, true +} + +// HasOriginatorPubkey returns a boolean if a field has been set. +func (o *SessionData) HasOriginatorPubkey() bool { + if o != nil && !IsNil(o.OriginatorPubkey) { + return true + } + + return false +} + +// SetOriginatorPubkey gets a reference to the given string and assigns it to the OriginatorPubkey field. +func (o *SessionData) SetOriginatorPubkey(v string) { + o.OriginatorPubkey = &v +} + +// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value if set, zero value otherwise. +func (o *SessionData) GetBeneficiaryPubkey() string { + if o == nil || IsNil(o.BeneficiaryPubkey) { + var ret string + return ret + } + return *o.BeneficiaryPubkey +} + +// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetBeneficiaryPubkeyOk() (*string, bool) { + if o == nil || IsNil(o.BeneficiaryPubkey) { + return nil, false + } + return o.BeneficiaryPubkey, true +} + +// HasBeneficiaryPubkey returns a boolean if a field has been set. +func (o *SessionData) HasBeneficiaryPubkey() bool { + if o != nil && !IsNil(o.BeneficiaryPubkey) { + return true + } + + return false +} + +// SetBeneficiaryPubkey gets a reference to the given string and assigns it to the BeneficiaryPubkey field. +func (o *SessionData) SetBeneficiaryPubkey(v string) { + o.BeneficiaryPubkey = &v +} + +// GetSourceGatewayPubkey returns the SourceGatewayPubkey field value if set, zero value otherwise. +func (o *SessionData) GetSourceGatewayPubkey() string { + if o == nil || IsNil(o.SourceGatewayPubkey) { + var ret string + return ret + } + return *o.SourceGatewayPubkey +} + +// GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetSourceGatewayPubkeyOk() (*string, bool) { + if o == nil || IsNil(o.SourceGatewayPubkey) { + return nil, false + } + return o.SourceGatewayPubkey, true +} + +// HasSourceGatewayPubkey returns a boolean if a field has been set. +func (o *SessionData) HasSourceGatewayPubkey() bool { + if o != nil && !IsNil(o.SourceGatewayPubkey) { + return true + } + + return false +} + +// SetSourceGatewayPubkey gets a reference to the given string and assigns it to the SourceGatewayPubkey field. +func (o *SessionData) SetSourceGatewayPubkey(v string) { + o.SourceGatewayPubkey = &v +} + +// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value if set, zero value otherwise. +func (o *SessionData) GetSourceGatewayDltSystem() string { + if o == nil || IsNil(o.SourceGatewayDltSystem) { + var ret string + return ret + } + return *o.SourceGatewayDltSystem +} + +// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetSourceGatewayDltSystemOk() (*string, bool) { + if o == nil || IsNil(o.SourceGatewayDltSystem) { + return nil, false + } + return o.SourceGatewayDltSystem, true +} + +// HasSourceGatewayDltSystem returns a boolean if a field has been set. +func (o *SessionData) HasSourceGatewayDltSystem() bool { + if o != nil && !IsNil(o.SourceGatewayDltSystem) { + return true + } + + return false +} + +// SetSourceGatewayDltSystem gets a reference to the given string and assigns it to the SourceGatewayDltSystem field. +func (o *SessionData) SetSourceGatewayDltSystem(v string) { + o.SourceGatewayDltSystem = &v +} + +// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value if set, zero value otherwise. +func (o *SessionData) GetRecipientGatewayPubkey() string { + if o == nil || IsNil(o.RecipientGatewayPubkey) { + var ret string + return ret + } + return *o.RecipientGatewayPubkey +} + +// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRecipientGatewayPubkeyOk() (*string, bool) { + if o == nil || IsNil(o.RecipientGatewayPubkey) { + return nil, false + } + return o.RecipientGatewayPubkey, true +} + +// HasRecipientGatewayPubkey returns a boolean if a field has been set. +func (o *SessionData) HasRecipientGatewayPubkey() bool { + if o != nil && !IsNil(o.RecipientGatewayPubkey) { + return true + } + + return false +} + +// SetRecipientGatewayPubkey gets a reference to the given string and assigns it to the RecipientGatewayPubkey field. +func (o *SessionData) SetRecipientGatewayPubkey(v string) { + o.RecipientGatewayPubkey = &v +} + +// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value if set, zero value otherwise. +func (o *SessionData) GetRecipientGatewayDltSystem() string { + if o == nil || IsNil(o.RecipientGatewayDltSystem) { + var ret string + return ret + } + return *o.RecipientGatewayDltSystem +} + +// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRecipientGatewayDltSystemOk() (*string, bool) { + if o == nil || IsNil(o.RecipientGatewayDltSystem) { + return nil, false + } + return o.RecipientGatewayDltSystem, true +} + +// HasRecipientGatewayDltSystem returns a boolean if a field has been set. +func (o *SessionData) HasRecipientGatewayDltSystem() bool { + if o != nil && !IsNil(o.RecipientGatewayDltSystem) { + return true + } + + return false +} + +// SetRecipientGatewayDltSystem gets a reference to the given string and assigns it to the RecipientGatewayDltSystem field. +func (o *SessionData) SetRecipientGatewayDltSystem(v string) { + o.RecipientGatewayDltSystem = &v +} + +// GetInitializationRequestMessageHash returns the InitializationRequestMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetInitializationRequestMessageHash() string { + if o == nil || IsNil(o.InitializationRequestMessageHash) { + var ret string + return ret + } + return *o.InitializationRequestMessageHash +} + +// GetInitializationRequestMessageHashOk returns a tuple with the InitializationRequestMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetInitializationRequestMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.InitializationRequestMessageHash) { + return nil, false + } + return o.InitializationRequestMessageHash, true +} + +// HasInitializationRequestMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasInitializationRequestMessageHash() bool { + if o != nil && !IsNil(o.InitializationRequestMessageHash) { + return true + } + + return false +} + +// SetInitializationRequestMessageHash gets a reference to the given string and assigns it to the InitializationRequestMessageHash field. +func (o *SessionData) SetInitializationRequestMessageHash(v string) { + o.InitializationRequestMessageHash = &v +} + +// GetInitializationResponseMessageHash returns the InitializationResponseMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetInitializationResponseMessageHash() string { + if o == nil || IsNil(o.InitializationResponseMessageHash) { + var ret string + return ret + } + return *o.InitializationResponseMessageHash +} + +// GetInitializationResponseMessageHashOk returns a tuple with the InitializationResponseMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetInitializationResponseMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.InitializationResponseMessageHash) { + return nil, false + } + return o.InitializationResponseMessageHash, true +} + +// HasInitializationResponseMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasInitializationResponseMessageHash() bool { + if o != nil && !IsNil(o.InitializationResponseMessageHash) { + return true + } + + return false +} + +// SetInitializationResponseMessageHash gets a reference to the given string and assigns it to the InitializationResponseMessageHash field. +func (o *SessionData) SetInitializationResponseMessageHash(v string) { + o.InitializationResponseMessageHash = &v +} + +// GetInitializationRequestMessageRcvTimeStamp returns the InitializationRequestMessageRcvTimeStamp field value if set, zero value otherwise. +func (o *SessionData) GetInitializationRequestMessageRcvTimeStamp() string { + if o == nil || IsNil(o.InitializationRequestMessageRcvTimeStamp) { + var ret string + return ret + } + return *o.InitializationRequestMessageRcvTimeStamp +} + +// GetInitializationRequestMessageRcvTimeStampOk returns a tuple with the InitializationRequestMessageRcvTimeStamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetInitializationRequestMessageRcvTimeStampOk() (*string, bool) { + if o == nil || IsNil(o.InitializationRequestMessageRcvTimeStamp) { + return nil, false + } + return o.InitializationRequestMessageRcvTimeStamp, true +} + +// HasInitializationRequestMessageRcvTimeStamp returns a boolean if a field has been set. +func (o *SessionData) HasInitializationRequestMessageRcvTimeStamp() bool { + if o != nil && !IsNil(o.InitializationRequestMessageRcvTimeStamp) { + return true + } + + return false +} + +// SetInitializationRequestMessageRcvTimeStamp gets a reference to the given string and assigns it to the InitializationRequestMessageRcvTimeStamp field. +func (o *SessionData) SetInitializationRequestMessageRcvTimeStamp(v string) { + o.InitializationRequestMessageRcvTimeStamp = &v +} + +// GetInitializationRequestMessageProcessedTimeStamp returns the InitializationRequestMessageProcessedTimeStamp field value if set, zero value otherwise. +func (o *SessionData) GetInitializationRequestMessageProcessedTimeStamp() string { + if o == nil || IsNil(o.InitializationRequestMessageProcessedTimeStamp) { + var ret string + return ret + } + return *o.InitializationRequestMessageProcessedTimeStamp +} + +// GetInitializationRequestMessageProcessedTimeStampOk returns a tuple with the InitializationRequestMessageProcessedTimeStamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetInitializationRequestMessageProcessedTimeStampOk() (*string, bool) { + if o == nil || IsNil(o.InitializationRequestMessageProcessedTimeStamp) { + return nil, false + } + return o.InitializationRequestMessageProcessedTimeStamp, true +} + +// HasInitializationRequestMessageProcessedTimeStamp returns a boolean if a field has been set. +func (o *SessionData) HasInitializationRequestMessageProcessedTimeStamp() bool { + if o != nil && !IsNil(o.InitializationRequestMessageProcessedTimeStamp) { + return true + } + + return false +} + +// SetInitializationRequestMessageProcessedTimeStamp gets a reference to the given string and assigns it to the InitializationRequestMessageProcessedTimeStamp field. +func (o *SessionData) SetInitializationRequestMessageProcessedTimeStamp(v string) { + o.InitializationRequestMessageProcessedTimeStamp = &v +} + +// GetClientSignatureInitializationRequestMessage returns the ClientSignatureInitializationRequestMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureInitializationRequestMessage() string { + if o == nil || IsNil(o.ClientSignatureInitializationRequestMessage) { + var ret string + return ret + } + return *o.ClientSignatureInitializationRequestMessage +} + +// GetClientSignatureInitializationRequestMessageOk returns a tuple with the ClientSignatureInitializationRequestMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureInitializationRequestMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureInitializationRequestMessage) { + return nil, false + } + return o.ClientSignatureInitializationRequestMessage, true +} + +// HasClientSignatureInitializationRequestMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureInitializationRequestMessage() bool { + if o != nil && !IsNil(o.ClientSignatureInitializationRequestMessage) { + return true + } + + return false +} + +// SetClientSignatureInitializationRequestMessage gets a reference to the given string and assigns it to the ClientSignatureInitializationRequestMessage field. +func (o *SessionData) SetClientSignatureInitializationRequestMessage(v string) { + o.ClientSignatureInitializationRequestMessage = &v +} + +// GetServerSignatureInitializationResponseMessage returns the ServerSignatureInitializationResponseMessage field value if set, zero value otherwise. +func (o *SessionData) GetServerSignatureInitializationResponseMessage() string { + if o == nil || IsNil(o.ServerSignatureInitializationResponseMessage) { + var ret string + return ret + } + return *o.ServerSignatureInitializationResponseMessage +} + +// GetServerSignatureInitializationResponseMessageOk returns a tuple with the ServerSignatureInitializationResponseMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetServerSignatureInitializationResponseMessageOk() (*string, bool) { + if o == nil || IsNil(o.ServerSignatureInitializationResponseMessage) { + return nil, false + } + return o.ServerSignatureInitializationResponseMessage, true +} + +// HasServerSignatureInitializationResponseMessage returns a boolean if a field has been set. +func (o *SessionData) HasServerSignatureInitializationResponseMessage() bool { + if o != nil && !IsNil(o.ServerSignatureInitializationResponseMessage) { + return true + } + + return false +} + +// SetServerSignatureInitializationResponseMessage gets a reference to the given string and assigns it to the ServerSignatureInitializationResponseMessage field. +func (o *SessionData) SetServerSignatureInitializationResponseMessage(v string) { + o.ServerSignatureInitializationResponseMessage = &v +} + +// GetTransferCommenceMessageRequestHash returns the TransferCommenceMessageRequestHash field value if set, zero value otherwise. +func (o *SessionData) GetTransferCommenceMessageRequestHash() string { + if o == nil || IsNil(o.TransferCommenceMessageRequestHash) { + var ret string + return ret + } + return *o.TransferCommenceMessageRequestHash +} + +// GetTransferCommenceMessageRequestHashOk returns a tuple with the TransferCommenceMessageRequestHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetTransferCommenceMessageRequestHashOk() (*string, bool) { + if o == nil || IsNil(o.TransferCommenceMessageRequestHash) { + return nil, false + } + return o.TransferCommenceMessageRequestHash, true +} + +// HasTransferCommenceMessageRequestHash returns a boolean if a field has been set. +func (o *SessionData) HasTransferCommenceMessageRequestHash() bool { + if o != nil && !IsNil(o.TransferCommenceMessageRequestHash) { + return true + } + + return false +} + +// SetTransferCommenceMessageRequestHash gets a reference to the given string and assigns it to the TransferCommenceMessageRequestHash field. +func (o *SessionData) SetTransferCommenceMessageRequestHash(v string) { + o.TransferCommenceMessageRequestHash = &v +} + +// GetTransferCommenceMessageResponseHash returns the TransferCommenceMessageResponseHash field value if set, zero value otherwise. +func (o *SessionData) GetTransferCommenceMessageResponseHash() string { + if o == nil || IsNil(o.TransferCommenceMessageResponseHash) { + var ret string + return ret + } + return *o.TransferCommenceMessageResponseHash +} + +// GetTransferCommenceMessageResponseHashOk returns a tuple with the TransferCommenceMessageResponseHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetTransferCommenceMessageResponseHashOk() (*string, bool) { + if o == nil || IsNil(o.TransferCommenceMessageResponseHash) { + return nil, false + } + return o.TransferCommenceMessageResponseHash, true +} + +// HasTransferCommenceMessageResponseHash returns a boolean if a field has been set. +func (o *SessionData) HasTransferCommenceMessageResponseHash() bool { + if o != nil && !IsNil(o.TransferCommenceMessageResponseHash) { + return true + } + + return false +} + +// SetTransferCommenceMessageResponseHash gets a reference to the given string and assigns it to the TransferCommenceMessageResponseHash field. +func (o *SessionData) SetTransferCommenceMessageResponseHash(v string) { + o.TransferCommenceMessageResponseHash = &v +} + +// GetClientSignatureTransferCommenceRequestMessage returns the ClientSignatureTransferCommenceRequestMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureTransferCommenceRequestMessage() string { + if o == nil || IsNil(o.ClientSignatureTransferCommenceRequestMessage) { + var ret string + return ret + } + return *o.ClientSignatureTransferCommenceRequestMessage +} + +// GetClientSignatureTransferCommenceRequestMessageOk returns a tuple with the ClientSignatureTransferCommenceRequestMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureTransferCommenceRequestMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureTransferCommenceRequestMessage) { + return nil, false + } + return o.ClientSignatureTransferCommenceRequestMessage, true +} + +// HasClientSignatureTransferCommenceRequestMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureTransferCommenceRequestMessage() bool { + if o != nil && !IsNil(o.ClientSignatureTransferCommenceRequestMessage) { + return true + } + + return false +} + +// SetClientSignatureTransferCommenceRequestMessage gets a reference to the given string and assigns it to the ClientSignatureTransferCommenceRequestMessage field. +func (o *SessionData) SetClientSignatureTransferCommenceRequestMessage(v string) { + o.ClientSignatureTransferCommenceRequestMessage = &v +} + +// GetServerSignatureTransferCommenceResponseMessage returns the ServerSignatureTransferCommenceResponseMessage field value if set, zero value otherwise. +func (o *SessionData) GetServerSignatureTransferCommenceResponseMessage() string { + if o == nil || IsNil(o.ServerSignatureTransferCommenceResponseMessage) { + var ret string + return ret + } + return *o.ServerSignatureTransferCommenceResponseMessage +} + +// GetServerSignatureTransferCommenceResponseMessageOk returns a tuple with the ServerSignatureTransferCommenceResponseMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetServerSignatureTransferCommenceResponseMessageOk() (*string, bool) { + if o == nil || IsNil(o.ServerSignatureTransferCommenceResponseMessage) { + return nil, false + } + return o.ServerSignatureTransferCommenceResponseMessage, true +} + +// HasServerSignatureTransferCommenceResponseMessage returns a boolean if a field has been set. +func (o *SessionData) HasServerSignatureTransferCommenceResponseMessage() bool { + if o != nil && !IsNil(o.ServerSignatureTransferCommenceResponseMessage) { + return true + } + + return false +} + +// SetServerSignatureTransferCommenceResponseMessage gets a reference to the given string and assigns it to the ServerSignatureTransferCommenceResponseMessage field. +func (o *SessionData) SetServerSignatureTransferCommenceResponseMessage(v string) { + o.ServerSignatureTransferCommenceResponseMessage = &v +} + +// GetLockEvidenceRequestMessageHash returns the LockEvidenceRequestMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetLockEvidenceRequestMessageHash() string { + if o == nil || IsNil(o.LockEvidenceRequestMessageHash) { + var ret string + return ret + } + return *o.LockEvidenceRequestMessageHash +} + +// GetLockEvidenceRequestMessageHashOk returns a tuple with the LockEvidenceRequestMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLockEvidenceRequestMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.LockEvidenceRequestMessageHash) { + return nil, false + } + return o.LockEvidenceRequestMessageHash, true +} + +// HasLockEvidenceRequestMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasLockEvidenceRequestMessageHash() bool { + if o != nil && !IsNil(o.LockEvidenceRequestMessageHash) { + return true + } + + return false +} + +// SetLockEvidenceRequestMessageHash gets a reference to the given string and assigns it to the LockEvidenceRequestMessageHash field. +func (o *SessionData) SetLockEvidenceRequestMessageHash(v string) { + o.LockEvidenceRequestMessageHash = &v +} + +// GetLockEvidenceResponseMessageHash returns the LockEvidenceResponseMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetLockEvidenceResponseMessageHash() string { + if o == nil || IsNil(o.LockEvidenceResponseMessageHash) { + var ret string + return ret + } + return *o.LockEvidenceResponseMessageHash +} + +// GetLockEvidenceResponseMessageHashOk returns a tuple with the LockEvidenceResponseMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLockEvidenceResponseMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.LockEvidenceResponseMessageHash) { + return nil, false + } + return o.LockEvidenceResponseMessageHash, true +} + +// HasLockEvidenceResponseMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasLockEvidenceResponseMessageHash() bool { + if o != nil && !IsNil(o.LockEvidenceResponseMessageHash) { + return true + } + + return false +} + +// SetLockEvidenceResponseMessageHash gets a reference to the given string and assigns it to the LockEvidenceResponseMessageHash field. +func (o *SessionData) SetLockEvidenceResponseMessageHash(v string) { + o.LockEvidenceResponseMessageHash = &v +} + +// GetClientSignatureLockEvidenceRequestMessage returns the ClientSignatureLockEvidenceRequestMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureLockEvidenceRequestMessage() string { + if o == nil || IsNil(o.ClientSignatureLockEvidenceRequestMessage) { + var ret string + return ret + } + return *o.ClientSignatureLockEvidenceRequestMessage +} + +// GetClientSignatureLockEvidenceRequestMessageOk returns a tuple with the ClientSignatureLockEvidenceRequestMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureLockEvidenceRequestMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureLockEvidenceRequestMessage) { + return nil, false + } + return o.ClientSignatureLockEvidenceRequestMessage, true +} + +// HasClientSignatureLockEvidenceRequestMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureLockEvidenceRequestMessage() bool { + if o != nil && !IsNil(o.ClientSignatureLockEvidenceRequestMessage) { + return true + } + + return false +} + +// SetClientSignatureLockEvidenceRequestMessage gets a reference to the given string and assigns it to the ClientSignatureLockEvidenceRequestMessage field. +func (o *SessionData) SetClientSignatureLockEvidenceRequestMessage(v string) { + o.ClientSignatureLockEvidenceRequestMessage = &v +} + +// GetServerSignatureLockEvidenceResponseMessage returns the ServerSignatureLockEvidenceResponseMessage field value if set, zero value otherwise. +func (o *SessionData) GetServerSignatureLockEvidenceResponseMessage() string { + if o == nil || IsNil(o.ServerSignatureLockEvidenceResponseMessage) { + var ret string + return ret + } + return *o.ServerSignatureLockEvidenceResponseMessage +} + +// GetServerSignatureLockEvidenceResponseMessageOk returns a tuple with the ServerSignatureLockEvidenceResponseMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetServerSignatureLockEvidenceResponseMessageOk() (*string, bool) { + if o == nil || IsNil(o.ServerSignatureLockEvidenceResponseMessage) { + return nil, false + } + return o.ServerSignatureLockEvidenceResponseMessage, true +} + +// HasServerSignatureLockEvidenceResponseMessage returns a boolean if a field has been set. +func (o *SessionData) HasServerSignatureLockEvidenceResponseMessage() bool { + if o != nil && !IsNil(o.ServerSignatureLockEvidenceResponseMessage) { + return true + } + + return false +} + +// SetServerSignatureLockEvidenceResponseMessage gets a reference to the given string and assigns it to the ServerSignatureLockEvidenceResponseMessage field. +func (o *SessionData) SetServerSignatureLockEvidenceResponseMessage(v string) { + o.ServerSignatureLockEvidenceResponseMessage = &v +} + +// GetLockEvidenceClaim returns the LockEvidenceClaim field value if set, zero value otherwise. +func (o *SessionData) GetLockEvidenceClaim() string { + if o == nil || IsNil(o.LockEvidenceClaim) { + var ret string + return ret + } + return *o.LockEvidenceClaim +} + +// GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLockEvidenceClaimOk() (*string, bool) { + if o == nil || IsNil(o.LockEvidenceClaim) { + return nil, false + } + return o.LockEvidenceClaim, true +} + +// HasLockEvidenceClaim returns a boolean if a field has been set. +func (o *SessionData) HasLockEvidenceClaim() bool { + if o != nil && !IsNil(o.LockEvidenceClaim) { + return true + } + + return false +} + +// SetLockEvidenceClaim gets a reference to the given string and assigns it to the LockEvidenceClaim field. +func (o *SessionData) SetLockEvidenceClaim(v string) { + o.LockEvidenceClaim = &v +} + +// GetCommitPrepareRequestMessageHash returns the CommitPrepareRequestMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetCommitPrepareRequestMessageHash() string { + if o == nil || IsNil(o.CommitPrepareRequestMessageHash) { + var ret string + return ret + } + return *o.CommitPrepareRequestMessageHash +} + +// GetCommitPrepareRequestMessageHashOk returns a tuple with the CommitPrepareRequestMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitPrepareRequestMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitPrepareRequestMessageHash) { + return nil, false + } + return o.CommitPrepareRequestMessageHash, true +} + +// HasCommitPrepareRequestMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasCommitPrepareRequestMessageHash() bool { + if o != nil && !IsNil(o.CommitPrepareRequestMessageHash) { + return true + } + + return false +} + +// SetCommitPrepareRequestMessageHash gets a reference to the given string and assigns it to the CommitPrepareRequestMessageHash field. +func (o *SessionData) SetCommitPrepareRequestMessageHash(v string) { + o.CommitPrepareRequestMessageHash = &v +} + +// GetCommitPrepareResponseMessageHash returns the CommitPrepareResponseMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetCommitPrepareResponseMessageHash() string { + if o == nil || IsNil(o.CommitPrepareResponseMessageHash) { + var ret string + return ret + } + return *o.CommitPrepareResponseMessageHash +} + +// GetCommitPrepareResponseMessageHashOk returns a tuple with the CommitPrepareResponseMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitPrepareResponseMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitPrepareResponseMessageHash) { + return nil, false + } + return o.CommitPrepareResponseMessageHash, true +} + +// HasCommitPrepareResponseMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasCommitPrepareResponseMessageHash() bool { + if o != nil && !IsNil(o.CommitPrepareResponseMessageHash) { + return true + } + + return false +} + +// SetCommitPrepareResponseMessageHash gets a reference to the given string and assigns it to the CommitPrepareResponseMessageHash field. +func (o *SessionData) SetCommitPrepareResponseMessageHash(v string) { + o.CommitPrepareResponseMessageHash = &v +} + +// GetClientSignatureCommitPreparationRequestMessage returns the ClientSignatureCommitPreparationRequestMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureCommitPreparationRequestMessage() string { + if o == nil || IsNil(o.ClientSignatureCommitPreparationRequestMessage) { + var ret string + return ret + } + return *o.ClientSignatureCommitPreparationRequestMessage +} + +// GetClientSignatureCommitPreparationRequestMessageOk returns a tuple with the ClientSignatureCommitPreparationRequestMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureCommitPreparationRequestMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureCommitPreparationRequestMessage) { + return nil, false + } + return o.ClientSignatureCommitPreparationRequestMessage, true +} + +// HasClientSignatureCommitPreparationRequestMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureCommitPreparationRequestMessage() bool { + if o != nil && !IsNil(o.ClientSignatureCommitPreparationRequestMessage) { + return true + } + + return false +} + +// SetClientSignatureCommitPreparationRequestMessage gets a reference to the given string and assigns it to the ClientSignatureCommitPreparationRequestMessage field. +func (o *SessionData) SetClientSignatureCommitPreparationRequestMessage(v string) { + o.ClientSignatureCommitPreparationRequestMessage = &v +} + +// GetServerSignatureCommitPreparationResponseMessage returns the ServerSignatureCommitPreparationResponseMessage field value if set, zero value otherwise. +func (o *SessionData) GetServerSignatureCommitPreparationResponseMessage() string { + if o == nil || IsNil(o.ServerSignatureCommitPreparationResponseMessage) { + var ret string + return ret + } + return *o.ServerSignatureCommitPreparationResponseMessage +} + +// GetServerSignatureCommitPreparationResponseMessageOk returns a tuple with the ServerSignatureCommitPreparationResponseMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetServerSignatureCommitPreparationResponseMessageOk() (*string, bool) { + if o == nil || IsNil(o.ServerSignatureCommitPreparationResponseMessage) { + return nil, false + } + return o.ServerSignatureCommitPreparationResponseMessage, true +} + +// HasServerSignatureCommitPreparationResponseMessage returns a boolean if a field has been set. +func (o *SessionData) HasServerSignatureCommitPreparationResponseMessage() bool { + if o != nil && !IsNil(o.ServerSignatureCommitPreparationResponseMessage) { + return true + } + + return false +} + +// SetServerSignatureCommitPreparationResponseMessage gets a reference to the given string and assigns it to the ServerSignatureCommitPreparationResponseMessage field. +func (o *SessionData) SetServerSignatureCommitPreparationResponseMessage(v string) { + o.ServerSignatureCommitPreparationResponseMessage = &v +} + +// GetCommitFinalRequestMessageHash returns the CommitFinalRequestMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetCommitFinalRequestMessageHash() string { + if o == nil || IsNil(o.CommitFinalRequestMessageHash) { + var ret string + return ret + } + return *o.CommitFinalRequestMessageHash +} + +// GetCommitFinalRequestMessageHashOk returns a tuple with the CommitFinalRequestMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitFinalRequestMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitFinalRequestMessageHash) { + return nil, false + } + return o.CommitFinalRequestMessageHash, true +} + +// HasCommitFinalRequestMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasCommitFinalRequestMessageHash() bool { + if o != nil && !IsNil(o.CommitFinalRequestMessageHash) { + return true + } + + return false +} + +// SetCommitFinalRequestMessageHash gets a reference to the given string and assigns it to the CommitFinalRequestMessageHash field. +func (o *SessionData) SetCommitFinalRequestMessageHash(v string) { + o.CommitFinalRequestMessageHash = &v +} + +// GetCommitFinalResponseMessageHash returns the CommitFinalResponseMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetCommitFinalResponseMessageHash() string { + if o == nil || IsNil(o.CommitFinalResponseMessageHash) { + var ret string + return ret + } + return *o.CommitFinalResponseMessageHash +} + +// GetCommitFinalResponseMessageHashOk returns a tuple with the CommitFinalResponseMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitFinalResponseMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitFinalResponseMessageHash) { + return nil, false + } + return o.CommitFinalResponseMessageHash, true +} + +// HasCommitFinalResponseMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasCommitFinalResponseMessageHash() bool { + if o != nil && !IsNil(o.CommitFinalResponseMessageHash) { + return true + } + + return false +} + +// SetCommitFinalResponseMessageHash gets a reference to the given string and assigns it to the CommitFinalResponseMessageHash field. +func (o *SessionData) SetCommitFinalResponseMessageHash(v string) { + o.CommitFinalResponseMessageHash = &v +} + +// GetCommitFinalClaim returns the CommitFinalClaim field value if set, zero value otherwise. +func (o *SessionData) GetCommitFinalClaim() string { + if o == nil || IsNil(o.CommitFinalClaim) { + var ret string + return ret + } + return *o.CommitFinalClaim +} + +// GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitFinalClaimOk() (*string, bool) { + if o == nil || IsNil(o.CommitFinalClaim) { + return nil, false + } + return o.CommitFinalClaim, true +} + +// HasCommitFinalClaim returns a boolean if a field has been set. +func (o *SessionData) HasCommitFinalClaim() bool { + if o != nil && !IsNil(o.CommitFinalClaim) { + return true + } + + return false +} + +// SetCommitFinalClaim gets a reference to the given string and assigns it to the CommitFinalClaim field. +func (o *SessionData) SetCommitFinalClaim(v string) { + o.CommitFinalClaim = &v +} + +// GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field value if set, zero value otherwise. +func (o *SessionData) GetCommitFinalClaimFormat() string { + if o == nil || IsNil(o.CommitFinalClaimFormat) { + var ret string + return ret + } + return *o.CommitFinalClaimFormat +} + +// GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitFinalClaimFormatOk() (*string, bool) { + if o == nil || IsNil(o.CommitFinalClaimFormat) { + return nil, false + } + return o.CommitFinalClaimFormat, true +} + +// HasCommitFinalClaimFormat returns a boolean if a field has been set. +func (o *SessionData) HasCommitFinalClaimFormat() bool { + if o != nil && !IsNil(o.CommitFinalClaimFormat) { + return true + } + + return false +} + +// SetCommitFinalClaimFormat gets a reference to the given string and assigns it to the CommitFinalClaimFormat field. +func (o *SessionData) SetCommitFinalClaimFormat(v string) { + o.CommitFinalClaimFormat = &v +} + +// GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field value if set, zero value otherwise. +func (o *SessionData) GetCommitAcknowledgementClaim() string { + if o == nil || IsNil(o.CommitAcknowledgementClaim) { + var ret string + return ret + } + return *o.CommitAcknowledgementClaim +} + +// GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitAcknowledgementClaimOk() (*string, bool) { + if o == nil || IsNil(o.CommitAcknowledgementClaim) { + return nil, false + } + return o.CommitAcknowledgementClaim, true +} + +// HasCommitAcknowledgementClaim returns a boolean if a field has been set. +func (o *SessionData) HasCommitAcknowledgementClaim() bool { + if o != nil && !IsNil(o.CommitAcknowledgementClaim) { + return true + } + + return false +} + +// SetCommitAcknowledgementClaim gets a reference to the given string and assigns it to the CommitAcknowledgementClaim field. +func (o *SessionData) SetCommitAcknowledgementClaim(v string) { + o.CommitAcknowledgementClaim = &v +} + +// GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field value if set, zero value otherwise. +func (o *SessionData) GetCommitAcknowledgementClaimFormat() string { + if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { + var ret string + return ret + } + return *o.CommitAcknowledgementClaimFormat +} + +// GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetCommitAcknowledgementClaimFormatOk() (*string, bool) { + if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { + return nil, false + } + return o.CommitAcknowledgementClaimFormat, true +} + +// HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. +func (o *SessionData) HasCommitAcknowledgementClaimFormat() bool { + if o != nil && !IsNil(o.CommitAcknowledgementClaimFormat) { + return true + } + + return false +} + +// SetCommitAcknowledgementClaimFormat gets a reference to the given string and assigns it to the CommitAcknowledgementClaimFormat field. +func (o *SessionData) SetCommitAcknowledgementClaimFormat(v string) { + o.CommitAcknowledgementClaimFormat = &v +} + +// GetClientSignatureCommitFinalRequestMessage returns the ClientSignatureCommitFinalRequestMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureCommitFinalRequestMessage() string { + if o == nil || IsNil(o.ClientSignatureCommitFinalRequestMessage) { + var ret string + return ret + } + return *o.ClientSignatureCommitFinalRequestMessage +} + +// GetClientSignatureCommitFinalRequestMessageOk returns a tuple with the ClientSignatureCommitFinalRequestMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureCommitFinalRequestMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureCommitFinalRequestMessage) { + return nil, false + } + return o.ClientSignatureCommitFinalRequestMessage, true +} + +// HasClientSignatureCommitFinalRequestMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureCommitFinalRequestMessage() bool { + if o != nil && !IsNil(o.ClientSignatureCommitFinalRequestMessage) { + return true + } + + return false +} + +// SetClientSignatureCommitFinalRequestMessage gets a reference to the given string and assigns it to the ClientSignatureCommitFinalRequestMessage field. +func (o *SessionData) SetClientSignatureCommitFinalRequestMessage(v string) { + o.ClientSignatureCommitFinalRequestMessage = &v +} + +// GetServerSignatureCommitFinalResponseMessage returns the ServerSignatureCommitFinalResponseMessage field value if set, zero value otherwise. +func (o *SessionData) GetServerSignatureCommitFinalResponseMessage() string { + if o == nil || IsNil(o.ServerSignatureCommitFinalResponseMessage) { + var ret string + return ret + } + return *o.ServerSignatureCommitFinalResponseMessage +} + +// GetServerSignatureCommitFinalResponseMessageOk returns a tuple with the ServerSignatureCommitFinalResponseMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetServerSignatureCommitFinalResponseMessageOk() (*string, bool) { + if o == nil || IsNil(o.ServerSignatureCommitFinalResponseMessage) { + return nil, false + } + return o.ServerSignatureCommitFinalResponseMessage, true +} + +// HasServerSignatureCommitFinalResponseMessage returns a boolean if a field has been set. +func (o *SessionData) HasServerSignatureCommitFinalResponseMessage() bool { + if o != nil && !IsNil(o.ServerSignatureCommitFinalResponseMessage) { + return true + } + + return false +} + +// SetServerSignatureCommitFinalResponseMessage gets a reference to the given string and assigns it to the ServerSignatureCommitFinalResponseMessage field. +func (o *SessionData) SetServerSignatureCommitFinalResponseMessage(v string) { + o.ServerSignatureCommitFinalResponseMessage = &v +} + +// GetTransferCompleteMessageHash returns the TransferCompleteMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetTransferCompleteMessageHash() string { + if o == nil || IsNil(o.TransferCompleteMessageHash) { + var ret string + return ret + } + return *o.TransferCompleteMessageHash +} + +// GetTransferCompleteMessageHashOk returns a tuple with the TransferCompleteMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetTransferCompleteMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.TransferCompleteMessageHash) { + return nil, false + } + return o.TransferCompleteMessageHash, true +} + +// HasTransferCompleteMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasTransferCompleteMessageHash() bool { + if o != nil && !IsNil(o.TransferCompleteMessageHash) { + return true + } + + return false +} + +// SetTransferCompleteMessageHash gets a reference to the given string and assigns it to the TransferCompleteMessageHash field. +func (o *SessionData) SetTransferCompleteMessageHash(v string) { + o.TransferCompleteMessageHash = &v +} + +// GetClientSignatureTransferCompleteMessage returns the ClientSignatureTransferCompleteMessage field value if set, zero value otherwise. +func (o *SessionData) GetClientSignatureTransferCompleteMessage() string { + if o == nil || IsNil(o.ClientSignatureTransferCompleteMessage) { + var ret string + return ret + } + return *o.ClientSignatureTransferCompleteMessage +} + +// GetClientSignatureTransferCompleteMessageOk returns a tuple with the ClientSignatureTransferCompleteMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetClientSignatureTransferCompleteMessageOk() (*string, bool) { + if o == nil || IsNil(o.ClientSignatureTransferCompleteMessage) { + return nil, false + } + return o.ClientSignatureTransferCompleteMessage, true +} + +// HasClientSignatureTransferCompleteMessage returns a boolean if a field has been set. +func (o *SessionData) HasClientSignatureTransferCompleteMessage() bool { + if o != nil && !IsNil(o.ClientSignatureTransferCompleteMessage) { + return true + } + + return false +} + +// SetClientSignatureTransferCompleteMessage gets a reference to the given string and assigns it to the ClientSignatureTransferCompleteMessage field. +func (o *SessionData) SetClientSignatureTransferCompleteMessage(v string) { + o.ClientSignatureTransferCompleteMessage = &v +} + +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise. +func (o *SessionData) GetMaxRetries() float32 { + if o == nil || IsNil(o.MaxRetries) { + var ret float32 + return ret + } + return *o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetMaxRetriesOk() (*float32, bool) { + if o == nil || IsNil(o.MaxRetries) { + return nil, false + } + return o.MaxRetries, true +} + +// HasMaxRetries returns a boolean if a field has been set. +func (o *SessionData) HasMaxRetries() bool { + if o != nil && !IsNil(o.MaxRetries) { + return true + } + + return false +} + +// SetMaxRetries gets a reference to the given float32 and assigns it to the MaxRetries field. +func (o *SessionData) SetMaxRetries(v float32) { + o.MaxRetries = &v +} + +// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value if set, zero value otherwise. +func (o *SessionData) GetRecipientLedgerAssetID() string { + if o == nil || IsNil(o.RecipientLedgerAssetID) { + var ret string + return ret + } + return *o.RecipientLedgerAssetID +} + +// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRecipientLedgerAssetIDOk() (*string, bool) { + if o == nil || IsNil(o.RecipientLedgerAssetID) { + return nil, false + } + return o.RecipientLedgerAssetID, true +} + +// HasRecipientLedgerAssetID returns a boolean if a field has been set. +func (o *SessionData) HasRecipientLedgerAssetID() bool { + if o != nil && !IsNil(o.RecipientLedgerAssetID) { + return true + } + + return false +} + +// SetRecipientLedgerAssetID gets a reference to the given string and assigns it to the RecipientLedgerAssetID field. +func (o *SessionData) SetRecipientLedgerAssetID(v string) { + o.RecipientLedgerAssetID = &v +} + +// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value if set, zero value otherwise. +func (o *SessionData) GetSourceLedgerAssetID() string { + if o == nil || IsNil(o.SourceLedgerAssetID) { + var ret string + return ret + } + return *o.SourceLedgerAssetID +} + +// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetSourceLedgerAssetIDOk() (*string, bool) { + if o == nil || IsNil(o.SourceLedgerAssetID) { + return nil, false + } + return o.SourceLedgerAssetID, true +} + +// HasSourceLedgerAssetID returns a boolean if a field has been set. +func (o *SessionData) HasSourceLedgerAssetID() bool { + if o != nil && !IsNil(o.SourceLedgerAssetID) { + return true + } + + return false +} + +// SetSourceLedgerAssetID gets a reference to the given string and assigns it to the SourceLedgerAssetID field. +func (o *SessionData) SetSourceLedgerAssetID(v string) { + o.SourceLedgerAssetID = &v +} + +// GetMaxTimeout returns the MaxTimeout field value if set, zero value otherwise. +func (o *SessionData) GetMaxTimeout() float32 { + if o == nil || IsNil(o.MaxTimeout) { + var ret float32 + return ret + } + return *o.MaxTimeout +} + +// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetMaxTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.MaxTimeout) { + return nil, false + } + return o.MaxTimeout, true +} + +// HasMaxTimeout returns a boolean if a field has been set. +func (o *SessionData) HasMaxTimeout() bool { + if o != nil && !IsNil(o.MaxTimeout) { + return true + } + + return false +} + +// SetMaxTimeout gets a reference to the given float32 and assigns it to the MaxTimeout field. +func (o *SessionData) SetMaxTimeout(v float32) { + o.MaxTimeout = &v +} + +// GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field value if set, zero value otherwise. +func (o *SessionData) GetLastLogEntryTimestamp() string { + if o == nil || IsNil(o.LastLogEntryTimestamp) { + var ret string + return ret + } + return *o.LastLogEntryTimestamp +} + +// GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLastLogEntryTimestampOk() (*string, bool) { + if o == nil || IsNil(o.LastLogEntryTimestamp) { + return nil, false + } + return o.LastLogEntryTimestamp, true +} + +// HasLastLogEntryTimestamp returns a boolean if a field has been set. +func (o *SessionData) HasLastLogEntryTimestamp() bool { + if o != nil && !IsNil(o.LastLogEntryTimestamp) { + return true + } + + return false +} + +// SetLastLogEntryTimestamp gets a reference to the given string and assigns it to the LastLogEntryTimestamp field. +func (o *SessionData) SetLastLogEntryTimestamp(v string) { + o.LastLogEntryTimestamp = &v +} + +// GetUnlockAssetClaim returns the UnlockAssetClaim field value if set, zero value otherwise. +func (o *SessionData) GetUnlockAssetClaim() string { + if o == nil || IsNil(o.UnlockAssetClaim) { + var ret string + return ret + } + return *o.UnlockAssetClaim +} + +// GetUnlockAssetClaimOk returns a tuple with the UnlockAssetClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetUnlockAssetClaimOk() (*string, bool) { + if o == nil || IsNil(o.UnlockAssetClaim) { + return nil, false + } + return o.UnlockAssetClaim, true +} + +// HasUnlockAssetClaim returns a boolean if a field has been set. +func (o *SessionData) HasUnlockAssetClaim() bool { + if o != nil && !IsNil(o.UnlockAssetClaim) { + return true + } + + return false +} + +// SetUnlockAssetClaim gets a reference to the given string and assigns it to the UnlockAssetClaim field. +func (o *SessionData) SetUnlockAssetClaim(v string) { + o.UnlockAssetClaim = &v +} + +// GetRecreateAssetClaim returns the RecreateAssetClaim field value if set, zero value otherwise. +func (o *SessionData) GetRecreateAssetClaim() string { + if o == nil || IsNil(o.RecreateAssetClaim) { + var ret string + return ret + } + return *o.RecreateAssetClaim +} + +// GetRecreateAssetClaimOk returns a tuple with the RecreateAssetClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRecreateAssetClaimOk() (*string, bool) { + if o == nil || IsNil(o.RecreateAssetClaim) { + return nil, false + } + return o.RecreateAssetClaim, true +} + +// HasRecreateAssetClaim returns a boolean if a field has been set. +func (o *SessionData) HasRecreateAssetClaim() bool { + if o != nil && !IsNil(o.RecreateAssetClaim) { + return true + } + + return false +} + +// SetRecreateAssetClaim gets a reference to the given string and assigns it to the RecreateAssetClaim field. +func (o *SessionData) SetRecreateAssetClaim(v string) { + o.RecreateAssetClaim = &v +} + +// GetDeleteAssetClaim returns the DeleteAssetClaim field value if set, zero value otherwise. +func (o *SessionData) GetDeleteAssetClaim() string { + if o == nil || IsNil(o.DeleteAssetClaim) { + var ret string + return ret + } + return *o.DeleteAssetClaim +} + +// GetDeleteAssetClaimOk returns a tuple with the DeleteAssetClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetDeleteAssetClaimOk() (*string, bool) { + if o == nil || IsNil(o.DeleteAssetClaim) { + return nil, false + } + return o.DeleteAssetClaim, true +} + +// HasDeleteAssetClaim returns a boolean if a field has been set. +func (o *SessionData) HasDeleteAssetClaim() bool { + if o != nil && !IsNil(o.DeleteAssetClaim) { + return true + } + + return false +} + +// SetDeleteAssetClaim gets a reference to the given string and assigns it to the DeleteAssetClaim field. +func (o *SessionData) SetDeleteAssetClaim(v string) { + o.DeleteAssetClaim = &v +} + +// GetLastMessageReceivedTimestamp returns the LastMessageReceivedTimestamp field value if set, zero value otherwise. +func (o *SessionData) GetLastMessageReceivedTimestamp() string { + if o == nil || IsNil(o.LastMessageReceivedTimestamp) { + var ret string + return ret + } + return *o.LastMessageReceivedTimestamp +} + +// GetLastMessageReceivedTimestampOk returns a tuple with the LastMessageReceivedTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetLastMessageReceivedTimestampOk() (*string, bool) { + if o == nil || IsNil(o.LastMessageReceivedTimestamp) { + return nil, false + } + return o.LastMessageReceivedTimestamp, true +} + +// HasLastMessageReceivedTimestamp returns a boolean if a field has been set. +func (o *SessionData) HasLastMessageReceivedTimestamp() bool { + if o != nil && !IsNil(o.LastMessageReceivedTimestamp) { + return true + } + + return false +} + +// SetLastMessageReceivedTimestamp gets a reference to the given string and assigns it to the LastMessageReceivedTimestamp field. +func (o *SessionData) SetLastMessageReceivedTimestamp(v string) { + o.LastMessageReceivedTimestamp = &v +} + +// GetRollback returns the Rollback field value if set, zero value otherwise. +func (o *SessionData) GetRollback() bool { + if o == nil || IsNil(o.Rollback) { + var ret bool + return ret + } + return *o.Rollback +} + +// GetRollbackOk returns a tuple with the Rollback field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRollbackOk() (*bool, bool) { + if o == nil || IsNil(o.Rollback) { + return nil, false + } + return o.Rollback, true +} + +// HasRollback returns a boolean if a field has been set. +func (o *SessionData) HasRollback() bool { + if o != nil && !IsNil(o.Rollback) { + return true + } + + return false +} + +// SetRollback gets a reference to the given bool and assigns it to the Rollback field. +func (o *SessionData) SetRollback(v bool) { + o.Rollback = &v +} + +// GetRollbackMessageHash returns the RollbackMessageHash field value if set, zero value otherwise. +func (o *SessionData) GetRollbackMessageHash() string { + if o == nil || IsNil(o.RollbackMessageHash) { + var ret string + return ret + } + return *o.RollbackMessageHash +} + +// GetRollbackMessageHashOk returns a tuple with the RollbackMessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRollbackMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.RollbackMessageHash) { + return nil, false + } + return o.RollbackMessageHash, true +} + +// HasRollbackMessageHash returns a boolean if a field has been set. +func (o *SessionData) HasRollbackMessageHash() bool { + if o != nil && !IsNil(o.RollbackMessageHash) { + return true + } + + return false +} + +// SetRollbackMessageHash gets a reference to the given string and assigns it to the RollbackMessageHash field. +func (o *SessionData) SetRollbackMessageHash(v string) { + o.RollbackMessageHash = &v +} + +// GetRollbackProofs returns the RollbackProofs field value if set, zero value otherwise. +func (o *SessionData) GetRollbackProofs() []string { + if o == nil || IsNil(o.RollbackProofs) { + var ret []string + return ret + } + return o.RollbackProofs +} + +// GetRollbackProofsOk returns a tuple with the RollbackProofs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRollbackProofsOk() ([]string, bool) { + if o == nil || IsNil(o.RollbackProofs) { + return nil, false + } + return o.RollbackProofs, true +} + +// HasRollbackProofs returns a boolean if a field has been set. +func (o *SessionData) HasRollbackProofs() bool { + if o != nil && !IsNil(o.RollbackProofs) { + return true + } + + return false +} + +// SetRollbackProofs gets a reference to the given []string and assigns it to the RollbackProofs field. +func (o *SessionData) SetRollbackProofs(v []string) { + o.RollbackProofs = v +} + +// GetRollbackActionsPerformed returns the RollbackActionsPerformed field value if set, zero value otherwise. +func (o *SessionData) GetRollbackActionsPerformed() []string { + if o == nil || IsNil(o.RollbackActionsPerformed) { + var ret []string + return ret + } + return o.RollbackActionsPerformed +} + +// GetRollbackActionsPerformedOk returns a tuple with the RollbackActionsPerformed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SessionData) GetRollbackActionsPerformedOk() ([]string, bool) { + if o == nil || IsNil(o.RollbackActionsPerformed) { + return nil, false + } + return o.RollbackActionsPerformed, true +} + +// HasRollbackActionsPerformed returns a boolean if a field has been set. +func (o *SessionData) HasRollbackActionsPerformed() bool { + if o != nil && !IsNil(o.RollbackActionsPerformed) { + return true + } + + return false +} + +// SetRollbackActionsPerformed gets a reference to the given []string and assigns it to the RollbackActionsPerformed field. +func (o *SessionData) SetRollbackActionsPerformed(v []string) { + o.RollbackActionsPerformed = v +} + +func (o SessionData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SessionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Step) { + toSerialize["step"] = o.Step + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.LastSequenceNumber) { + toSerialize["lastSequenceNumber"] = o.LastSequenceNumber + } + if !IsNil(o.LoggingProfile) { + toSerialize["loggingProfile"] = o.LoggingProfile + } + if !IsNil(o.AccessControlProfile) { + toSerialize["accessControlProfile"] = o.AccessControlProfile + } + if !IsNil(o.ApplicationProfile) { + toSerialize["applicationProfile"] = o.ApplicationProfile + } + if !IsNil(o.PayloadProfile) { + toSerialize["payloadProfile"] = o.PayloadProfile + } + if !IsNil(o.AssetProfile) { + toSerialize["assetProfile"] = o.AssetProfile + } + if !IsNil(o.AllowedSourceBackupGateways) { + toSerialize["allowedSourceBackupGateways"] = o.AllowedSourceBackupGateways + } + if !IsNil(o.AllowedRecipientBackupGateways) { + toSerialize["allowedRecipientBackupGateways"] = o.AllowedRecipientBackupGateways + } + if !IsNil(o.SourceBasePath) { + toSerialize["sourceBasePath"] = o.SourceBasePath + } + if !IsNil(o.RecipientBasePath) { + toSerialize["recipientBasePath"] = o.RecipientBasePath + } + if !IsNil(o.OriginatorPubkey) { + toSerialize["originatorPubkey"] = o.OriginatorPubkey + } + if !IsNil(o.BeneficiaryPubkey) { + toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey + } + if !IsNil(o.SourceGatewayPubkey) { + toSerialize["sourceGatewayPubkey"] = o.SourceGatewayPubkey + } + if !IsNil(o.SourceGatewayDltSystem) { + toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem + } + if !IsNil(o.RecipientGatewayPubkey) { + toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey + } + if !IsNil(o.RecipientGatewayDltSystem) { + toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem + } + if !IsNil(o.InitializationRequestMessageHash) { + toSerialize["initializationRequestMessageHash"] = o.InitializationRequestMessageHash + } + if !IsNil(o.InitializationResponseMessageHash) { + toSerialize["initializationResponseMessageHash"] = o.InitializationResponseMessageHash + } + if !IsNil(o.InitializationRequestMessageRcvTimeStamp) { + toSerialize["initializationRequestMessageRcvTimeStamp"] = o.InitializationRequestMessageRcvTimeStamp + } + if !IsNil(o.InitializationRequestMessageProcessedTimeStamp) { + toSerialize["initializationRequestMessageProcessedTimeStamp"] = o.InitializationRequestMessageProcessedTimeStamp + } + if !IsNil(o.ClientSignatureInitializationRequestMessage) { + toSerialize["clientSignatureInitializationRequestMessage"] = o.ClientSignatureInitializationRequestMessage + } + if !IsNil(o.ServerSignatureInitializationResponseMessage) { + toSerialize["serverSignatureInitializationResponseMessage"] = o.ServerSignatureInitializationResponseMessage + } + if !IsNil(o.TransferCommenceMessageRequestHash) { + toSerialize["transferCommenceMessageRequestHash"] = o.TransferCommenceMessageRequestHash + } + if !IsNil(o.TransferCommenceMessageResponseHash) { + toSerialize["transferCommenceMessageResponseHash"] = o.TransferCommenceMessageResponseHash + } + if !IsNil(o.ClientSignatureTransferCommenceRequestMessage) { + toSerialize["clientSignatureTransferCommenceRequestMessage"] = o.ClientSignatureTransferCommenceRequestMessage + } + if !IsNil(o.ServerSignatureTransferCommenceResponseMessage) { + toSerialize["serverSignatureTransferCommenceResponseMessage"] = o.ServerSignatureTransferCommenceResponseMessage + } + if !IsNil(o.LockEvidenceRequestMessageHash) { + toSerialize["lockEvidenceRequestMessageHash"] = o.LockEvidenceRequestMessageHash + } + if !IsNil(o.LockEvidenceResponseMessageHash) { + toSerialize["lockEvidenceResponseMessageHash"] = o.LockEvidenceResponseMessageHash + } + if !IsNil(o.ClientSignatureLockEvidenceRequestMessage) { + toSerialize["clientSignatureLockEvidenceRequestMessage"] = o.ClientSignatureLockEvidenceRequestMessage + } + if !IsNil(o.ServerSignatureLockEvidenceResponseMessage) { + toSerialize["serverSignatureLockEvidenceResponseMessage"] = o.ServerSignatureLockEvidenceResponseMessage + } + if !IsNil(o.LockEvidenceClaim) { + toSerialize["lockEvidenceClaim"] = o.LockEvidenceClaim + } + if !IsNil(o.CommitPrepareRequestMessageHash) { + toSerialize["commitPrepareRequestMessageHash"] = o.CommitPrepareRequestMessageHash + } + if !IsNil(o.CommitPrepareResponseMessageHash) { + toSerialize["commitPrepareResponseMessageHash"] = o.CommitPrepareResponseMessageHash + } + if !IsNil(o.ClientSignatureCommitPreparationRequestMessage) { + toSerialize["clientSignatureCommitPreparationRequestMessage"] = o.ClientSignatureCommitPreparationRequestMessage + } + if !IsNil(o.ServerSignatureCommitPreparationResponseMessage) { + toSerialize["serverSignatureCommitPreparationResponseMessage"] = o.ServerSignatureCommitPreparationResponseMessage + } + if !IsNil(o.CommitFinalRequestMessageHash) { + toSerialize["commitFinalRequestMessageHash"] = o.CommitFinalRequestMessageHash + } + if !IsNil(o.CommitFinalResponseMessageHash) { + toSerialize["commitFinalResponseMessageHash"] = o.CommitFinalResponseMessageHash + } + if !IsNil(o.CommitFinalClaim) { + toSerialize["commitFinalClaim"] = o.CommitFinalClaim + } + if !IsNil(o.CommitFinalClaimFormat) { + toSerialize["commitFinalClaimFormat"] = o.CommitFinalClaimFormat + } + if !IsNil(o.CommitAcknowledgementClaim) { + toSerialize["commitAcknowledgementClaim"] = o.CommitAcknowledgementClaim + } + if !IsNil(o.CommitAcknowledgementClaimFormat) { + toSerialize["commitAcknowledgementClaimFormat"] = o.CommitAcknowledgementClaimFormat + } + if !IsNil(o.ClientSignatureCommitFinalRequestMessage) { + toSerialize["clientSignatureCommitFinalRequestMessage"] = o.ClientSignatureCommitFinalRequestMessage + } + if !IsNil(o.ServerSignatureCommitFinalResponseMessage) { + toSerialize["serverSignatureCommitFinalResponseMessage"] = o.ServerSignatureCommitFinalResponseMessage + } + if !IsNil(o.TransferCompleteMessageHash) { + toSerialize["transferCompleteMessageHash"] = o.TransferCompleteMessageHash + } + if !IsNil(o.ClientSignatureTransferCompleteMessage) { + toSerialize["clientSignatureTransferCompleteMessage"] = o.ClientSignatureTransferCompleteMessage + } + if !IsNil(o.MaxRetries) { + toSerialize["maxRetries"] = o.MaxRetries + } + if !IsNil(o.RecipientLedgerAssetID) { + toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID + } + if !IsNil(o.SourceLedgerAssetID) { + toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID + } + if !IsNil(o.MaxTimeout) { + toSerialize["maxTimeout"] = o.MaxTimeout + } + if !IsNil(o.LastLogEntryTimestamp) { + toSerialize["lastLogEntryTimestamp"] = o.LastLogEntryTimestamp + } + if !IsNil(o.UnlockAssetClaim) { + toSerialize["unlockAssetClaim"] = o.UnlockAssetClaim + } + if !IsNil(o.RecreateAssetClaim) { + toSerialize["recreateAssetClaim"] = o.RecreateAssetClaim + } + if !IsNil(o.DeleteAssetClaim) { + toSerialize["deleteAssetClaim"] = o.DeleteAssetClaim + } + if !IsNil(o.LastMessageReceivedTimestamp) { + toSerialize["lastMessageReceivedTimestamp"] = o.LastMessageReceivedTimestamp + } + if !IsNil(o.Rollback) { + toSerialize["rollback"] = o.Rollback + } + if !IsNil(o.RollbackMessageHash) { + toSerialize["rollbackMessageHash"] = o.RollbackMessageHash + } + if !IsNil(o.RollbackProofs) { + toSerialize["rollbackProofs"] = o.RollbackProofs + } + if !IsNil(o.RollbackActionsPerformed) { + toSerialize["rollbackActionsPerformed"] = o.RollbackActionsPerformed + } + return toSerialize, nil +} + +type NullableSessionData struct { + value *SessionData + isSet bool +} + +func (v NullableSessionData) Get() *SessionData { + return v.value +} + +func (v *NullableSessionData) Set(val *SessionData) { + v.value = val + v.isSet = true +} + +func (v NullableSessionData) IsSet() bool { + return v.isSet +} + +func (v *NullableSessionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSessionData(val *SessionData) *NullableSessionData { + return &NullableSessionData{value: val, isSet: true} +} + +func (v NullableSessionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSessionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go new file mode 100644 index 00000000000..91cfd2647ba --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go @@ -0,0 +1,496 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the TransferCommenceV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferCommenceV1Request{} + +// TransferCommenceV1Request struct for TransferCommenceV1Request +type TransferCommenceV1Request struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + OriginatorPubkey string `json:"originatorPubkey"` + BeneficiaryPubkey string `json:"beneficiaryPubkey"` + SenderDltSystem string `json:"senderDltSystem"` + RecipientDltSystem string `json:"recipientDltSystem"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashAssetProfile string `json:"hashAssetProfile"` + AssetUnit *int32 `json:"assetUnit,omitempty"` + HashPrevMessage string `json:"hashPrevMessage"` + ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` + Signature string `json:"signature"` + SequenceNumber int32 `json:"sequenceNumber"` +} + +// NewTransferCommenceV1Request instantiates a new TransferCommenceV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferCommenceV1Request(sessionID string, messageType string, originatorPubkey string, beneficiaryPubkey string, senderDltSystem string, recipientDltSystem string, clientIdentityPubkey string, serverIdentityPubkey string, hashAssetProfile string, hashPrevMessage string, signature string, sequenceNumber int32) *TransferCommenceV1Request { + this := TransferCommenceV1Request{} + this.SessionID = sessionID + this.MessageType = messageType + this.OriginatorPubkey = originatorPubkey + this.BeneficiaryPubkey = beneficiaryPubkey + this.SenderDltSystem = senderDltSystem + this.RecipientDltSystem = recipientDltSystem + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashAssetProfile = hashAssetProfile + this.HashPrevMessage = hashPrevMessage + this.Signature = signature + this.SequenceNumber = sequenceNumber + return &this +} + +// NewTransferCommenceV1RequestWithDefaults instantiates a new TransferCommenceV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferCommenceV1RequestWithDefaults() *TransferCommenceV1Request { + this := TransferCommenceV1Request{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *TransferCommenceV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *TransferCommenceV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *TransferCommenceV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *TransferCommenceV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetOriginatorPubkey returns the OriginatorPubkey field value +func (o *TransferCommenceV1Request) GetOriginatorPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.OriginatorPubkey +} + +// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetOriginatorPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OriginatorPubkey, true +} + +// SetOriginatorPubkey sets field value +func (o *TransferCommenceV1Request) SetOriginatorPubkey(v string) { + o.OriginatorPubkey = v +} + +// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value +func (o *TransferCommenceV1Request) GetBeneficiaryPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.BeneficiaryPubkey +} + +// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetBeneficiaryPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BeneficiaryPubkey, true +} + +// SetBeneficiaryPubkey sets field value +func (o *TransferCommenceV1Request) SetBeneficiaryPubkey(v string) { + o.BeneficiaryPubkey = v +} + +// GetSenderDltSystem returns the SenderDltSystem field value +func (o *TransferCommenceV1Request) GetSenderDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.SenderDltSystem +} + +// GetSenderDltSystemOk returns a tuple with the SenderDltSystem field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetSenderDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SenderDltSystem, true +} + +// SetSenderDltSystem sets field value +func (o *TransferCommenceV1Request) SetSenderDltSystem(v string) { + o.SenderDltSystem = v +} + +// GetRecipientDltSystem returns the RecipientDltSystem field value +func (o *TransferCommenceV1Request) GetRecipientDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientDltSystem +} + +// GetRecipientDltSystemOk returns a tuple with the RecipientDltSystem field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetRecipientDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientDltSystem, true +} + +// SetRecipientDltSystem sets field value +func (o *TransferCommenceV1Request) SetRecipientDltSystem(v string) { + o.RecipientDltSystem = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *TransferCommenceV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *TransferCommenceV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *TransferCommenceV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *TransferCommenceV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashAssetProfile returns the HashAssetProfile field value +func (o *TransferCommenceV1Request) GetHashAssetProfile() string { + if o == nil { + var ret string + return ret + } + + return o.HashAssetProfile +} + +// GetHashAssetProfileOk returns a tuple with the HashAssetProfile field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetHashAssetProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashAssetProfile, true +} + +// SetHashAssetProfile sets field value +func (o *TransferCommenceV1Request) SetHashAssetProfile(v string) { + o.HashAssetProfile = v +} + +// GetAssetUnit returns the AssetUnit field value if set, zero value otherwise. +func (o *TransferCommenceV1Request) GetAssetUnit() int32 { + if o == nil || IsNil(o.AssetUnit) { + var ret int32 + return ret + } + return *o.AssetUnit +} + +// GetAssetUnitOk returns a tuple with the AssetUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetAssetUnitOk() (*int32, bool) { + if o == nil || IsNil(o.AssetUnit) { + return nil, false + } + return o.AssetUnit, true +} + +// HasAssetUnit returns a boolean if a field has been set. +func (o *TransferCommenceV1Request) HasAssetUnit() bool { + if o != nil && !IsNil(o.AssetUnit) { + return true + } + + return false +} + +// SetAssetUnit gets a reference to the given int32 and assigns it to the AssetUnit field. +func (o *TransferCommenceV1Request) SetAssetUnit(v int32) { + o.AssetUnit = &v +} + +// GetHashPrevMessage returns the HashPrevMessage field value +func (o *TransferCommenceV1Request) GetHashPrevMessage() string { + if o == nil { + var ret string + return ret + } + + return o.HashPrevMessage +} + +// GetHashPrevMessageOk returns a tuple with the HashPrevMessage field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetHashPrevMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashPrevMessage, true +} + +// SetHashPrevMessage sets field value +func (o *TransferCommenceV1Request) SetHashPrevMessage(v string) { + o.HashPrevMessage = v +} + +// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransferCommenceV1Request) GetClientTransferNumber() int32 { + if o == nil || IsNil(o.ClientTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ClientTransferNumber.Get() +} + +// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TransferCommenceV1Request) GetClientTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() +} + +// HasClientTransferNumber returns a boolean if a field has been set. +func (o *TransferCommenceV1Request) HasClientTransferNumber() bool { + if o != nil && o.ClientTransferNumber.IsSet() { + return true + } + + return false +} + +// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. +func (o *TransferCommenceV1Request) SetClientTransferNumber(v int32) { + o.ClientTransferNumber.Set(&v) +} +// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil +func (o *TransferCommenceV1Request) SetClientTransferNumberNil() { + o.ClientTransferNumber.Set(nil) +} + +// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +func (o *TransferCommenceV1Request) UnsetClientTransferNumber() { + o.ClientTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *TransferCommenceV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *TransferCommenceV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *TransferCommenceV1Request) GetSequenceNumber() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Request) GetSequenceNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *TransferCommenceV1Request) SetSequenceNumber(v int32) { + o.SequenceNumber = v +} + +func (o TransferCommenceV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferCommenceV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["originatorPubkey"] = o.OriginatorPubkey + toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey + toSerialize["senderDltSystem"] = o.SenderDltSystem + toSerialize["recipientDltSystem"] = o.RecipientDltSystem + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashAssetProfile"] = o.HashAssetProfile + if !IsNil(o.AssetUnit) { + toSerialize["assetUnit"] = o.AssetUnit + } + toSerialize["hashPrevMessage"] = o.HashPrevMessage + if o.ClientTransferNumber.IsSet() { + toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableTransferCommenceV1Request struct { + value *TransferCommenceV1Request + isSet bool +} + +func (v NullableTransferCommenceV1Request) Get() *TransferCommenceV1Request { + return v.value +} + +func (v *NullableTransferCommenceV1Request) Set(val *TransferCommenceV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableTransferCommenceV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferCommenceV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferCommenceV1Request(val *TransferCommenceV1Request) *NullableTransferCommenceV1Request { + return &NullableTransferCommenceV1Request{value: val, isSet: true} +} + +func (v NullableTransferCommenceV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferCommenceV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go new file mode 100644 index 00000000000..ab88e5b440d --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go @@ -0,0 +1,361 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the TransferCommenceV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferCommenceV1Response{} + +// TransferCommenceV1Response struct for TransferCommenceV1Response +type TransferCommenceV1Response struct { + SessionID string `json:"sessionID"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashCommenceRequest string `json:"hashCommenceRequest"` + ServerTransferNumber NullableInt32 `json:"serverTransferNumber,omitempty"` + Signature string `json:"signature"` + MessageType string `json:"messageType"` + MessageHash *string `json:"messageHash,omitempty"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewTransferCommenceV1Response instantiates a new TransferCommenceV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferCommenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommenceRequest string, signature string, messageType string, sequenceNumber float32) *TransferCommenceV1Response { + this := TransferCommenceV1Response{} + this.SessionID = sessionID + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashCommenceRequest = hashCommenceRequest + this.Signature = signature + this.MessageType = messageType + this.SequenceNumber = sequenceNumber + return &this +} + +// NewTransferCommenceV1ResponseWithDefaults instantiates a new TransferCommenceV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferCommenceV1ResponseWithDefaults() *TransferCommenceV1Response { + this := TransferCommenceV1Response{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *TransferCommenceV1Response) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *TransferCommenceV1Response) SetSessionID(v string) { + o.SessionID = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *TransferCommenceV1Response) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *TransferCommenceV1Response) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *TransferCommenceV1Response) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *TransferCommenceV1Response) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashCommenceRequest returns the HashCommenceRequest field value +func (o *TransferCommenceV1Response) GetHashCommenceRequest() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommenceRequest +} + +// GetHashCommenceRequestOk returns a tuple with the HashCommenceRequest field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetHashCommenceRequestOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommenceRequest, true +} + +// SetHashCommenceRequest sets field value +func (o *TransferCommenceV1Response) SetHashCommenceRequest(v string) { + o.HashCommenceRequest = v +} + +// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransferCommenceV1Response) GetServerTransferNumber() int32 { + if o == nil || IsNil(o.ServerTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ServerTransferNumber.Get() +} + +// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TransferCommenceV1Response) GetServerTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ServerTransferNumber.Get(), o.ServerTransferNumber.IsSet() +} + +// HasServerTransferNumber returns a boolean if a field has been set. +func (o *TransferCommenceV1Response) HasServerTransferNumber() bool { + if o != nil && o.ServerTransferNumber.IsSet() { + return true + } + + return false +} + +// SetServerTransferNumber gets a reference to the given NullableInt32 and assigns it to the ServerTransferNumber field. +func (o *TransferCommenceV1Response) SetServerTransferNumber(v int32) { + o.ServerTransferNumber.Set(&v) +} +// SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil +func (o *TransferCommenceV1Response) SetServerTransferNumberNil() { + o.ServerTransferNumber.Set(nil) +} + +// UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil +func (o *TransferCommenceV1Response) UnsetServerTransferNumber() { + o.ServerTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *TransferCommenceV1Response) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *TransferCommenceV1Response) SetSignature(v string) { + o.Signature = v +} + +// GetMessageType returns the MessageType field value +func (o *TransferCommenceV1Response) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *TransferCommenceV1Response) SetMessageType(v string) { + o.MessageType = v +} + +// GetMessageHash returns the MessageHash field value if set, zero value otherwise. +func (o *TransferCommenceV1Response) GetMessageHash() string { + if o == nil || IsNil(o.MessageHash) { + var ret string + return ret + } + return *o.MessageHash +} + +// GetMessageHashOk returns a tuple with the MessageHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetMessageHashOk() (*string, bool) { + if o == nil || IsNil(o.MessageHash) { + return nil, false + } + return o.MessageHash, true +} + +// HasMessageHash returns a boolean if a field has been set. +func (o *TransferCommenceV1Response) HasMessageHash() bool { + if o != nil && !IsNil(o.MessageHash) { + return true + } + + return false +} + +// SetMessageHash gets a reference to the given string and assigns it to the MessageHash field. +func (o *TransferCommenceV1Response) SetMessageHash(v string) { + o.MessageHash = &v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *TransferCommenceV1Response) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *TransferCommenceV1Response) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *TransferCommenceV1Response) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o TransferCommenceV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferCommenceV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashCommenceRequest"] = o.HashCommenceRequest + if o.ServerTransferNumber.IsSet() { + toSerialize["serverTransferNumber"] = o.ServerTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["messageType"] = o.MessageType + if !IsNil(o.MessageHash) { + toSerialize["messageHash"] = o.MessageHash + } + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableTransferCommenceV1Response struct { + value *TransferCommenceV1Response + isSet bool +} + +func (v NullableTransferCommenceV1Response) Get() *TransferCommenceV1Response { + return v.value +} + +func (v *NullableTransferCommenceV1Response) Set(val *TransferCommenceV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableTransferCommenceV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferCommenceV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferCommenceV1Response(val *TransferCommenceV1Response) *NullableTransferCommenceV1Response { + return &NullableTransferCommenceV1Response{value: val, isSet: true} +} + +func (v NullableTransferCommenceV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferCommenceV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go new file mode 100644 index 00000000000..5b8a2f98f52 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go @@ -0,0 +1,352 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the TransferCompleteV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferCompleteV1Request{} + +// TransferCompleteV1Request struct for TransferCompleteV1Request +type TransferCompleteV1Request struct { + SessionID string `json:"sessionID"` + MessageType string `json:"messageType"` + ClientIdentityPubkey string `json:"clientIdentityPubkey"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + HashCommitFinalAck string `json:"hashCommitFinalAck"` + ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` + Signature string `json:"signature"` + HashTransferCommence string `json:"hashTransferCommence"` + SequenceNumber float32 `json:"sequenceNumber"` +} + +// NewTransferCompleteV1Request instantiates a new TransferCompleteV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferCompleteV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitFinalAck string, signature string, hashTransferCommence string, sequenceNumber float32) *TransferCompleteV1Request { + this := TransferCompleteV1Request{} + this.SessionID = sessionID + this.MessageType = messageType + this.ClientIdentityPubkey = clientIdentityPubkey + this.ServerIdentityPubkey = serverIdentityPubkey + this.HashCommitFinalAck = hashCommitFinalAck + this.Signature = signature + this.HashTransferCommence = hashTransferCommence + this.SequenceNumber = sequenceNumber + return &this +} + +// NewTransferCompleteV1RequestWithDefaults instantiates a new TransferCompleteV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferCompleteV1RequestWithDefaults() *TransferCompleteV1Request { + this := TransferCompleteV1Request{} + return &this +} + +// GetSessionID returns the SessionID field value +func (o *TransferCompleteV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *TransferCompleteV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetMessageType returns the MessageType field value +func (o *TransferCompleteV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *TransferCompleteV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetClientIdentityPubkey returns the ClientIdentityPubkey field value +func (o *TransferCompleteV1Request) GetClientIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientIdentityPubkey +} + +// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetClientIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientIdentityPubkey, true +} + +// SetClientIdentityPubkey sets field value +func (o *TransferCompleteV1Request) SetClientIdentityPubkey(v string) { + o.ClientIdentityPubkey = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *TransferCompleteV1Request) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *TransferCompleteV1Request) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetHashCommitFinalAck returns the HashCommitFinalAck field value +func (o *TransferCompleteV1Request) GetHashCommitFinalAck() string { + if o == nil { + var ret string + return ret + } + + return o.HashCommitFinalAck +} + +// GetHashCommitFinalAckOk returns a tuple with the HashCommitFinalAck field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetHashCommitFinalAckOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashCommitFinalAck, true +} + +// SetHashCommitFinalAck sets field value +func (o *TransferCompleteV1Request) SetHashCommitFinalAck(v string) { + o.HashCommitFinalAck = v +} + +// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransferCompleteV1Request) GetClientTransferNumber() int32 { + if o == nil || IsNil(o.ClientTransferNumber.Get()) { + var ret int32 + return ret + } + return *o.ClientTransferNumber.Get() +} + +// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TransferCompleteV1Request) GetClientTransferNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() +} + +// HasClientTransferNumber returns a boolean if a field has been set. +func (o *TransferCompleteV1Request) HasClientTransferNumber() bool { + if o != nil && o.ClientTransferNumber.IsSet() { + return true + } + + return false +} + +// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. +func (o *TransferCompleteV1Request) SetClientTransferNumber(v int32) { + o.ClientTransferNumber.Set(&v) +} +// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil +func (o *TransferCompleteV1Request) SetClientTransferNumberNil() { + o.ClientTransferNumber.Set(nil) +} + +// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil +func (o *TransferCompleteV1Request) UnsetClientTransferNumber() { + o.ClientTransferNumber.Unset() +} + +// GetSignature returns the Signature field value +func (o *TransferCompleteV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *TransferCompleteV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetHashTransferCommence returns the HashTransferCommence field value +func (o *TransferCompleteV1Request) GetHashTransferCommence() string { + if o == nil { + var ret string + return ret + } + + return o.HashTransferCommence +} + +// GetHashTransferCommenceOk returns a tuple with the HashTransferCommence field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetHashTransferCommenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HashTransferCommence, true +} + +// SetHashTransferCommence sets field value +func (o *TransferCompleteV1Request) SetHashTransferCommence(v string) { + o.HashTransferCommence = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *TransferCompleteV1Request) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *TransferCompleteV1Request) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *TransferCompleteV1Request) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +func (o TransferCompleteV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferCompleteV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sessionID"] = o.SessionID + toSerialize["messageType"] = o.MessageType + toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["hashCommitFinalAck"] = o.HashCommitFinalAck + if o.ClientTransferNumber.IsSet() { + toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() + } + toSerialize["signature"] = o.Signature + toSerialize["hashTransferCommence"] = o.HashTransferCommence + toSerialize["sequenceNumber"] = o.SequenceNumber + return toSerialize, nil +} + +type NullableTransferCompleteV1Request struct { + value *TransferCompleteV1Request + isSet bool +} + +func (v NullableTransferCompleteV1Request) Get() *TransferCompleteV1Request { + return v.value +} + +func (v *NullableTransferCompleteV1Request) Set(val *TransferCompleteV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableTransferCompleteV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferCompleteV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferCompleteV1Request(val *TransferCompleteV1Request) *NullableTransferCompleteV1Request { + return &NullableTransferCompleteV1Request{value: val, isSet: true} +} + +func (v NullableTransferCompleteV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferCompleteV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go new file mode 100644 index 00000000000..f3c35334b8a --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go @@ -0,0 +1,1035 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the TransferInitializationV1Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferInitializationV1Request{} + +// TransferInitializationV1Request struct for TransferInitializationV1Request +type TransferInitializationV1Request struct { + MessageType string `json:"messageType"` + SessionID string `json:"sessionID"` + Version *string `json:"version,omitempty"` + DeveloperURN *string `json:"developerURN,omitempty"` + CredentialProfile *CredentialProfile `json:"credentialProfile,omitempty"` + PayloadProfile PayloadProfile `json:"payloadProfile"` + ApplicationProfile string `json:"applicationProfile"` + LoggingProfile string `json:"loggingProfile"` + AccessControlProfile string `json:"accessControlProfile"` + Signature string `json:"signature"` + SourceGatewayPubkey string `json:"sourceGatewayPubkey"` + SourceGatewayDltSystem string `json:"sourceGatewayDltSystem"` + RecipientGatewayPubkey string `json:"recipientGatewayPubkey"` + RecipientGatewayDltSystem string `json:"recipientGatewayDltSystem"` + EscrowType *string `json:"escrowType,omitempty"` + ExpiryTime *string `json:"expiryTime,omitempty"` + MultipleClaimsAllowed *bool `json:"multipleClaimsAllowed,omitempty"` + MultipleCancelsAllowed *bool `json:"multipleCancelsAllowed,omitempty"` + Permissions map[string]interface{} `json:"permissions,omitempty"` + Origin *string `json:"origin,omitempty"` + Destination *string `json:"destination,omitempty"` + SubsequentCalls map[string]interface{} `json:"subsequentCalls,omitempty"` + Histories []History `json:"histories,omitempty"` + SequenceNumber int32 `json:"sequenceNumber"` + SourceBasePath string `json:"sourceBasePath"` + RecipientBasePath string `json:"recipientBasePath"` + MaxRetries float32 `json:"maxRetries"` + MaxTimeout float32 `json:"maxTimeout"` + BackupGatewaysAllowed []string `json:"backupGatewaysAllowed"` + RecipientLedgerAssetID string `json:"recipientLedgerAssetID"` + SourceLedgerAssetID string `json:"sourceLedgerAssetID"` +} + +// NewTransferInitializationV1Request instantiates a new TransferInitializationV1Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferInitializationV1Request(messageType string, sessionID string, payloadProfile PayloadProfile, applicationProfile string, loggingProfile string, accessControlProfile string, signature string, sourceGatewayPubkey string, sourceGatewayDltSystem string, recipientGatewayPubkey string, recipientGatewayDltSystem string, sequenceNumber int32, sourceBasePath string, recipientBasePath string, maxRetries float32, maxTimeout float32, backupGatewaysAllowed []string, recipientLedgerAssetID string, sourceLedgerAssetID string) *TransferInitializationV1Request { + this := TransferInitializationV1Request{} + this.MessageType = messageType + this.SessionID = sessionID + this.PayloadProfile = payloadProfile + this.ApplicationProfile = applicationProfile + this.LoggingProfile = loggingProfile + this.AccessControlProfile = accessControlProfile + this.Signature = signature + this.SourceGatewayPubkey = sourceGatewayPubkey + this.SourceGatewayDltSystem = sourceGatewayDltSystem + this.RecipientGatewayPubkey = recipientGatewayPubkey + this.RecipientGatewayDltSystem = recipientGatewayDltSystem + this.SequenceNumber = sequenceNumber + this.SourceBasePath = sourceBasePath + this.RecipientBasePath = recipientBasePath + this.MaxRetries = maxRetries + this.MaxTimeout = maxTimeout + this.BackupGatewaysAllowed = backupGatewaysAllowed + this.RecipientLedgerAssetID = recipientLedgerAssetID + this.SourceLedgerAssetID = sourceLedgerAssetID + return &this +} + +// NewTransferInitializationV1RequestWithDefaults instantiates a new TransferInitializationV1Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferInitializationV1RequestWithDefaults() *TransferInitializationV1Request { + this := TransferInitializationV1Request{} + return &this +} + +// GetMessageType returns the MessageType field value +func (o *TransferInitializationV1Request) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *TransferInitializationV1Request) SetMessageType(v string) { + o.MessageType = v +} + +// GetSessionID returns the SessionID field value +func (o *TransferInitializationV1Request) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *TransferInitializationV1Request) SetSessionID(v string) { + o.SessionID = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *TransferInitializationV1Request) SetVersion(v string) { + o.Version = &v +} + +// GetDeveloperURN returns the DeveloperURN field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetDeveloperURN() string { + if o == nil || IsNil(o.DeveloperURN) { + var ret string + return ret + } + return *o.DeveloperURN +} + +// GetDeveloperURNOk returns a tuple with the DeveloperURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetDeveloperURNOk() (*string, bool) { + if o == nil || IsNil(o.DeveloperURN) { + return nil, false + } + return o.DeveloperURN, true +} + +// HasDeveloperURN returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasDeveloperURN() bool { + if o != nil && !IsNil(o.DeveloperURN) { + return true + } + + return false +} + +// SetDeveloperURN gets a reference to the given string and assigns it to the DeveloperURN field. +func (o *TransferInitializationV1Request) SetDeveloperURN(v string) { + o.DeveloperURN = &v +} + +// GetCredentialProfile returns the CredentialProfile field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetCredentialProfile() CredentialProfile { + if o == nil || IsNil(o.CredentialProfile) { + var ret CredentialProfile + return ret + } + return *o.CredentialProfile +} + +// GetCredentialProfileOk returns a tuple with the CredentialProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetCredentialProfileOk() (*CredentialProfile, bool) { + if o == nil || IsNil(o.CredentialProfile) { + return nil, false + } + return o.CredentialProfile, true +} + +// HasCredentialProfile returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasCredentialProfile() bool { + if o != nil && !IsNil(o.CredentialProfile) { + return true + } + + return false +} + +// SetCredentialProfile gets a reference to the given CredentialProfile and assigns it to the CredentialProfile field. +func (o *TransferInitializationV1Request) SetCredentialProfile(v CredentialProfile) { + o.CredentialProfile = &v +} + +// GetPayloadProfile returns the PayloadProfile field value +func (o *TransferInitializationV1Request) GetPayloadProfile() PayloadProfile { + if o == nil { + var ret PayloadProfile + return ret + } + + return o.PayloadProfile +} + +// GetPayloadProfileOk returns a tuple with the PayloadProfile field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetPayloadProfileOk() (*PayloadProfile, bool) { + if o == nil { + return nil, false + } + return &o.PayloadProfile, true +} + +// SetPayloadProfile sets field value +func (o *TransferInitializationV1Request) SetPayloadProfile(v PayloadProfile) { + o.PayloadProfile = v +} + +// GetApplicationProfile returns the ApplicationProfile field value +func (o *TransferInitializationV1Request) GetApplicationProfile() string { + if o == nil { + var ret string + return ret + } + + return o.ApplicationProfile +} + +// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetApplicationProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApplicationProfile, true +} + +// SetApplicationProfile sets field value +func (o *TransferInitializationV1Request) SetApplicationProfile(v string) { + o.ApplicationProfile = v +} + +// GetLoggingProfile returns the LoggingProfile field value +func (o *TransferInitializationV1Request) GetLoggingProfile() string { + if o == nil { + var ret string + return ret + } + + return o.LoggingProfile +} + +// GetLoggingProfileOk returns a tuple with the LoggingProfile field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetLoggingProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoggingProfile, true +} + +// SetLoggingProfile sets field value +func (o *TransferInitializationV1Request) SetLoggingProfile(v string) { + o.LoggingProfile = v +} + +// GetAccessControlProfile returns the AccessControlProfile field value +func (o *TransferInitializationV1Request) GetAccessControlProfile() string { + if o == nil { + var ret string + return ret + } + + return o.AccessControlProfile +} + +// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetAccessControlProfileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessControlProfile, true +} + +// SetAccessControlProfile sets field value +func (o *TransferInitializationV1Request) SetAccessControlProfile(v string) { + o.AccessControlProfile = v +} + +// GetSignature returns the Signature field value +func (o *TransferInitializationV1Request) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *TransferInitializationV1Request) SetSignature(v string) { + o.Signature = v +} + +// GetSourceGatewayPubkey returns the SourceGatewayPubkey field value +func (o *TransferInitializationV1Request) GetSourceGatewayPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.SourceGatewayPubkey +} + +// GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSourceGatewayPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceGatewayPubkey, true +} + +// SetSourceGatewayPubkey sets field value +func (o *TransferInitializationV1Request) SetSourceGatewayPubkey(v string) { + o.SourceGatewayPubkey = v +} + +// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value +func (o *TransferInitializationV1Request) GetSourceGatewayDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.SourceGatewayDltSystem +} + +// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSourceGatewayDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceGatewayDltSystem, true +} + +// SetSourceGatewayDltSystem sets field value +func (o *TransferInitializationV1Request) SetSourceGatewayDltSystem(v string) { + o.SourceGatewayDltSystem = v +} + +// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value +func (o *TransferInitializationV1Request) GetRecipientGatewayPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientGatewayPubkey +} + +// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetRecipientGatewayPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientGatewayPubkey, true +} + +// SetRecipientGatewayPubkey sets field value +func (o *TransferInitializationV1Request) SetRecipientGatewayPubkey(v string) { + o.RecipientGatewayPubkey = v +} + +// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value +func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystem() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientGatewayDltSystem +} + +// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientGatewayDltSystem, true +} + +// SetRecipientGatewayDltSystem sets field value +func (o *TransferInitializationV1Request) SetRecipientGatewayDltSystem(v string) { + o.RecipientGatewayDltSystem = v +} + +// GetEscrowType returns the EscrowType field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetEscrowType() string { + if o == nil || IsNil(o.EscrowType) { + var ret string + return ret + } + return *o.EscrowType +} + +// GetEscrowTypeOk returns a tuple with the EscrowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetEscrowTypeOk() (*string, bool) { + if o == nil || IsNil(o.EscrowType) { + return nil, false + } + return o.EscrowType, true +} + +// HasEscrowType returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasEscrowType() bool { + if o != nil && !IsNil(o.EscrowType) { + return true + } + + return false +} + +// SetEscrowType gets a reference to the given string and assigns it to the EscrowType field. +func (o *TransferInitializationV1Request) SetEscrowType(v string) { + o.EscrowType = &v +} + +// GetExpiryTime returns the ExpiryTime field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetExpiryTime() string { + if o == nil || IsNil(o.ExpiryTime) { + var ret string + return ret + } + return *o.ExpiryTime +} + +// GetExpiryTimeOk returns a tuple with the ExpiryTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetExpiryTimeOk() (*string, bool) { + if o == nil || IsNil(o.ExpiryTime) { + return nil, false + } + return o.ExpiryTime, true +} + +// HasExpiryTime returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasExpiryTime() bool { + if o != nil && !IsNil(o.ExpiryTime) { + return true + } + + return false +} + +// SetExpiryTime gets a reference to the given string and assigns it to the ExpiryTime field. +func (o *TransferInitializationV1Request) SetExpiryTime(v string) { + o.ExpiryTime = &v +} + +// GetMultipleClaimsAllowed returns the MultipleClaimsAllowed field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetMultipleClaimsAllowed() bool { + if o == nil || IsNil(o.MultipleClaimsAllowed) { + var ret bool + return ret + } + return *o.MultipleClaimsAllowed +} + +// GetMultipleClaimsAllowedOk returns a tuple with the MultipleClaimsAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetMultipleClaimsAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.MultipleClaimsAllowed) { + return nil, false + } + return o.MultipleClaimsAllowed, true +} + +// HasMultipleClaimsAllowed returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasMultipleClaimsAllowed() bool { + if o != nil && !IsNil(o.MultipleClaimsAllowed) { + return true + } + + return false +} + +// SetMultipleClaimsAllowed gets a reference to the given bool and assigns it to the MultipleClaimsAllowed field. +func (o *TransferInitializationV1Request) SetMultipleClaimsAllowed(v bool) { + o.MultipleClaimsAllowed = &v +} + +// GetMultipleCancelsAllowed returns the MultipleCancelsAllowed field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetMultipleCancelsAllowed() bool { + if o == nil || IsNil(o.MultipleCancelsAllowed) { + var ret bool + return ret + } + return *o.MultipleCancelsAllowed +} + +// GetMultipleCancelsAllowedOk returns a tuple with the MultipleCancelsAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetMultipleCancelsAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.MultipleCancelsAllowed) { + return nil, false + } + return o.MultipleCancelsAllowed, true +} + +// HasMultipleCancelsAllowed returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasMultipleCancelsAllowed() bool { + if o != nil && !IsNil(o.MultipleCancelsAllowed) { + return true + } + + return false +} + +// SetMultipleCancelsAllowed gets a reference to the given bool and assigns it to the MultipleCancelsAllowed field. +func (o *TransferInitializationV1Request) SetMultipleCancelsAllowed(v bool) { + o.MultipleCancelsAllowed = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetPermissions() map[string]interface{} { + if o == nil || IsNil(o.Permissions) { + var ret map[string]interface{} + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetPermissionsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Permissions) { + return map[string]interface{}{}, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given map[string]interface{} and assigns it to the Permissions field. +func (o *TransferInitializationV1Request) SetPermissions(v map[string]interface{}) { + o.Permissions = v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *TransferInitializationV1Request) SetOrigin(v string) { + o.Origin = &v +} + +// GetDestination returns the Destination field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetDestination() string { + if o == nil || IsNil(o.Destination) { + var ret string + return ret + } + return *o.Destination +} + +// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetDestinationOk() (*string, bool) { + if o == nil || IsNil(o.Destination) { + return nil, false + } + return o.Destination, true +} + +// HasDestination returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasDestination() bool { + if o != nil && !IsNil(o.Destination) { + return true + } + + return false +} + +// SetDestination gets a reference to the given string and assigns it to the Destination field. +func (o *TransferInitializationV1Request) SetDestination(v string) { + o.Destination = &v +} + +// GetSubsequentCalls returns the SubsequentCalls field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetSubsequentCalls() map[string]interface{} { + if o == nil || IsNil(o.SubsequentCalls) { + var ret map[string]interface{} + return ret + } + return o.SubsequentCalls +} + +// GetSubsequentCallsOk returns a tuple with the SubsequentCalls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSubsequentCallsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.SubsequentCalls) { + return map[string]interface{}{}, false + } + return o.SubsequentCalls, true +} + +// HasSubsequentCalls returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasSubsequentCalls() bool { + if o != nil && !IsNil(o.SubsequentCalls) { + return true + } + + return false +} + +// SetSubsequentCalls gets a reference to the given map[string]interface{} and assigns it to the SubsequentCalls field. +func (o *TransferInitializationV1Request) SetSubsequentCalls(v map[string]interface{}) { + o.SubsequentCalls = v +} + +// GetHistories returns the Histories field value if set, zero value otherwise. +func (o *TransferInitializationV1Request) GetHistories() []History { + if o == nil || IsNil(o.Histories) { + var ret []History + return ret + } + return o.Histories +} + +// GetHistoriesOk returns a tuple with the Histories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetHistoriesOk() ([]History, bool) { + if o == nil || IsNil(o.Histories) { + return nil, false + } + return o.Histories, true +} + +// HasHistories returns a boolean if a field has been set. +func (o *TransferInitializationV1Request) HasHistories() bool { + if o != nil && !IsNil(o.Histories) { + return true + } + + return false +} + +// SetHistories gets a reference to the given []History and assigns it to the Histories field. +func (o *TransferInitializationV1Request) SetHistories(v []History) { + o.Histories = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *TransferInitializationV1Request) GetSequenceNumber() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSequenceNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *TransferInitializationV1Request) SetSequenceNumber(v int32) { + o.SequenceNumber = v +} + +// GetSourceBasePath returns the SourceBasePath field value +func (o *TransferInitializationV1Request) GetSourceBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.SourceBasePath +} + +// GetSourceBasePathOk returns a tuple with the SourceBasePath field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSourceBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceBasePath, true +} + +// SetSourceBasePath sets field value +func (o *TransferInitializationV1Request) SetSourceBasePath(v string) { + o.SourceBasePath = v +} + +// GetRecipientBasePath returns the RecipientBasePath field value +func (o *TransferInitializationV1Request) GetRecipientBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientBasePath +} + +// GetRecipientBasePathOk returns a tuple with the RecipientBasePath field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetRecipientBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientBasePath, true +} + +// SetRecipientBasePath sets field value +func (o *TransferInitializationV1Request) SetRecipientBasePath(v string) { + o.RecipientBasePath = v +} + +// GetMaxRetries returns the MaxRetries field value +func (o *TransferInitializationV1Request) GetMaxRetries() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetMaxRetriesOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.MaxRetries, true +} + +// SetMaxRetries sets field value +func (o *TransferInitializationV1Request) SetMaxRetries(v float32) { + o.MaxRetries = v +} + +// GetMaxTimeout returns the MaxTimeout field value +func (o *TransferInitializationV1Request) GetMaxTimeout() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.MaxTimeout +} + +// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetMaxTimeoutOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.MaxTimeout, true +} + +// SetMaxTimeout sets field value +func (o *TransferInitializationV1Request) SetMaxTimeout(v float32) { + o.MaxTimeout = v +} + +// GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field value +func (o *TransferInitializationV1Request) GetBackupGatewaysAllowed() []string { + if o == nil { + var ret []string + return ret + } + + return o.BackupGatewaysAllowed +} + +// GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetBackupGatewaysAllowedOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.BackupGatewaysAllowed, true +} + +// SetBackupGatewaysAllowed sets field value +func (o *TransferInitializationV1Request) SetBackupGatewaysAllowed(v []string) { + o.BackupGatewaysAllowed = v +} + +// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value +func (o *TransferInitializationV1Request) GetRecipientLedgerAssetID() string { + if o == nil { + var ret string + return ret + } + + return o.RecipientLedgerAssetID +} + +// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetRecipientLedgerAssetIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RecipientLedgerAssetID, true +} + +// SetRecipientLedgerAssetID sets field value +func (o *TransferInitializationV1Request) SetRecipientLedgerAssetID(v string) { + o.RecipientLedgerAssetID = v +} + +// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value +func (o *TransferInitializationV1Request) GetSourceLedgerAssetID() string { + if o == nil { + var ret string + return ret + } + + return o.SourceLedgerAssetID +} + +// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Request) GetSourceLedgerAssetIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceLedgerAssetID, true +} + +// SetSourceLedgerAssetID sets field value +func (o *TransferInitializationV1Request) SetSourceLedgerAssetID(v string) { + o.SourceLedgerAssetID = v +} + +func (o TransferInitializationV1Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferInitializationV1Request) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["messageType"] = o.MessageType + toSerialize["sessionID"] = o.SessionID + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.DeveloperURN) { + toSerialize["developerURN"] = o.DeveloperURN + } + if !IsNil(o.CredentialProfile) { + toSerialize["credentialProfile"] = o.CredentialProfile + } + toSerialize["payloadProfile"] = o.PayloadProfile + toSerialize["applicationProfile"] = o.ApplicationProfile + toSerialize["loggingProfile"] = o.LoggingProfile + toSerialize["accessControlProfile"] = o.AccessControlProfile + toSerialize["signature"] = o.Signature + toSerialize["sourceGatewayPubkey"] = o.SourceGatewayPubkey + toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem + toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey + toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem + if !IsNil(o.EscrowType) { + toSerialize["escrowType"] = o.EscrowType + } + if !IsNil(o.ExpiryTime) { + toSerialize["expiryTime"] = o.ExpiryTime + } + if !IsNil(o.MultipleClaimsAllowed) { + toSerialize["multipleClaimsAllowed"] = o.MultipleClaimsAllowed + } + if !IsNil(o.MultipleCancelsAllowed) { + toSerialize["multipleCancelsAllowed"] = o.MultipleCancelsAllowed + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.Destination) { + toSerialize["destination"] = o.Destination + } + if !IsNil(o.SubsequentCalls) { + toSerialize["subsequentCalls"] = o.SubsequentCalls + } + if !IsNil(o.Histories) { + toSerialize["histories"] = o.Histories + } + toSerialize["sequenceNumber"] = o.SequenceNumber + toSerialize["sourceBasePath"] = o.SourceBasePath + toSerialize["recipientBasePath"] = o.RecipientBasePath + toSerialize["maxRetries"] = o.MaxRetries + toSerialize["maxTimeout"] = o.MaxTimeout + toSerialize["backupGatewaysAllowed"] = o.BackupGatewaysAllowed + toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID + toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID + return toSerialize, nil +} + +type NullableTransferInitializationV1Request struct { + value *TransferInitializationV1Request + isSet bool +} + +func (v NullableTransferInitializationV1Request) Get() *TransferInitializationV1Request { + return v.value +} + +func (v *NullableTransferInitializationV1Request) Set(val *TransferInitializationV1Request) { + v.value = val + v.isSet = true +} + +func (v NullableTransferInitializationV1Request) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferInitializationV1Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferInitializationV1Request(val *TransferInitializationV1Request) *NullableTransferInitializationV1Request { + return &NullableTransferInitializationV1Request{value: val, isSet: true} +} + +func (v NullableTransferInitializationV1Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferInitializationV1Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go new file mode 100644 index 00000000000..0bf7d7c6c46 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go @@ -0,0 +1,405 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" +) + +// checks if the TransferInitializationV1Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferInitializationV1Response{} + +// TransferInitializationV1Response struct for TransferInitializationV1Response +type TransferInitializationV1Response struct { + MessageType string `json:"messageType"` + SessionID string `json:"sessionID"` + SequenceNumber float32 `json:"sequenceNumber"` + OdapPhase *string `json:"odapPhase,omitempty"` + InitialRequestMessageHash string `json:"initialRequestMessageHash"` + Destination *string `json:"destination,omitempty"` + TimeStamp string `json:"timeStamp"` + ProcessedTimeStamp string `json:"processedTimeStamp"` + ServerIdentityPubkey string `json:"serverIdentityPubkey"` + Signature string `json:"signature"` + BackupGatewaysAllowed []string `json:"backupGatewaysAllowed"` +} + +// NewTransferInitializationV1Response instantiates a new TransferInitializationV1Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferInitializationV1Response(messageType string, sessionID string, sequenceNumber float32, initialRequestMessageHash string, timeStamp string, processedTimeStamp string, serverIdentityPubkey string, signature string, backupGatewaysAllowed []string) *TransferInitializationV1Response { + this := TransferInitializationV1Response{} + this.MessageType = messageType + this.SessionID = sessionID + this.SequenceNumber = sequenceNumber + this.InitialRequestMessageHash = initialRequestMessageHash + this.TimeStamp = timeStamp + this.ProcessedTimeStamp = processedTimeStamp + this.ServerIdentityPubkey = serverIdentityPubkey + this.Signature = signature + this.BackupGatewaysAllowed = backupGatewaysAllowed + return &this +} + +// NewTransferInitializationV1ResponseWithDefaults instantiates a new TransferInitializationV1Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferInitializationV1ResponseWithDefaults() *TransferInitializationV1Response { + this := TransferInitializationV1Response{} + return &this +} + +// GetMessageType returns the MessageType field value +func (o *TransferInitializationV1Response) GetMessageType() string { + if o == nil { + var ret string + return ret + } + + return o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetMessageTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageType, true +} + +// SetMessageType sets field value +func (o *TransferInitializationV1Response) SetMessageType(v string) { + o.MessageType = v +} + +// GetSessionID returns the SessionID field value +func (o *TransferInitializationV1Response) GetSessionID() string { + if o == nil { + var ret string + return ret + } + + return o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetSessionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SessionID, true +} + +// SetSessionID sets field value +func (o *TransferInitializationV1Response) SetSessionID(v string) { + o.SessionID = v +} + +// GetSequenceNumber returns the SequenceNumber field value +func (o *TransferInitializationV1Response) GetSequenceNumber() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SequenceNumber +} + +// GetSequenceNumberOk returns a tuple with the SequenceNumber field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetSequenceNumberOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SequenceNumber, true +} + +// SetSequenceNumber sets field value +func (o *TransferInitializationV1Response) SetSequenceNumber(v float32) { + o.SequenceNumber = v +} + +// GetOdapPhase returns the OdapPhase field value if set, zero value otherwise. +func (o *TransferInitializationV1Response) GetOdapPhase() string { + if o == nil || IsNil(o.OdapPhase) { + var ret string + return ret + } + return *o.OdapPhase +} + +// GetOdapPhaseOk returns a tuple with the OdapPhase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetOdapPhaseOk() (*string, bool) { + if o == nil || IsNil(o.OdapPhase) { + return nil, false + } + return o.OdapPhase, true +} + +// HasOdapPhase returns a boolean if a field has been set. +func (o *TransferInitializationV1Response) HasOdapPhase() bool { + if o != nil && !IsNil(o.OdapPhase) { + return true + } + + return false +} + +// SetOdapPhase gets a reference to the given string and assigns it to the OdapPhase field. +func (o *TransferInitializationV1Response) SetOdapPhase(v string) { + o.OdapPhase = &v +} + +// GetInitialRequestMessageHash returns the InitialRequestMessageHash field value +func (o *TransferInitializationV1Response) GetInitialRequestMessageHash() string { + if o == nil { + var ret string + return ret + } + + return o.InitialRequestMessageHash +} + +// GetInitialRequestMessageHashOk returns a tuple with the InitialRequestMessageHash field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetInitialRequestMessageHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InitialRequestMessageHash, true +} + +// SetInitialRequestMessageHash sets field value +func (o *TransferInitializationV1Response) SetInitialRequestMessageHash(v string) { + o.InitialRequestMessageHash = v +} + +// GetDestination returns the Destination field value if set, zero value otherwise. +func (o *TransferInitializationV1Response) GetDestination() string { + if o == nil || IsNil(o.Destination) { + var ret string + return ret + } + return *o.Destination +} + +// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetDestinationOk() (*string, bool) { + if o == nil || IsNil(o.Destination) { + return nil, false + } + return o.Destination, true +} + +// HasDestination returns a boolean if a field has been set. +func (o *TransferInitializationV1Response) HasDestination() bool { + if o != nil && !IsNil(o.Destination) { + return true + } + + return false +} + +// SetDestination gets a reference to the given string and assigns it to the Destination field. +func (o *TransferInitializationV1Response) SetDestination(v string) { + o.Destination = &v +} + +// GetTimeStamp returns the TimeStamp field value +func (o *TransferInitializationV1Response) GetTimeStamp() string { + if o == nil { + var ret string + return ret + } + + return o.TimeStamp +} + +// GetTimeStampOk returns a tuple with the TimeStamp field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetTimeStampOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TimeStamp, true +} + +// SetTimeStamp sets field value +func (o *TransferInitializationV1Response) SetTimeStamp(v string) { + o.TimeStamp = v +} + +// GetProcessedTimeStamp returns the ProcessedTimeStamp field value +func (o *TransferInitializationV1Response) GetProcessedTimeStamp() string { + if o == nil { + var ret string + return ret + } + + return o.ProcessedTimeStamp +} + +// GetProcessedTimeStampOk returns a tuple with the ProcessedTimeStamp field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetProcessedTimeStampOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProcessedTimeStamp, true +} + +// SetProcessedTimeStamp sets field value +func (o *TransferInitializationV1Response) SetProcessedTimeStamp(v string) { + o.ProcessedTimeStamp = v +} + +// GetServerIdentityPubkey returns the ServerIdentityPubkey field value +func (o *TransferInitializationV1Response) GetServerIdentityPubkey() string { + if o == nil { + var ret string + return ret + } + + return o.ServerIdentityPubkey +} + +// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetServerIdentityPubkeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerIdentityPubkey, true +} + +// SetServerIdentityPubkey sets field value +func (o *TransferInitializationV1Response) SetServerIdentityPubkey(v string) { + o.ServerIdentityPubkey = v +} + +// GetSignature returns the Signature field value +func (o *TransferInitializationV1Response) GetSignature() string { + if o == nil { + var ret string + return ret + } + + return o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Signature, true +} + +// SetSignature sets field value +func (o *TransferInitializationV1Response) SetSignature(v string) { + o.Signature = v +} + +// GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field value +func (o *TransferInitializationV1Response) GetBackupGatewaysAllowed() []string { + if o == nil { + var ret []string + return ret + } + + return o.BackupGatewaysAllowed +} + +// GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field value +// and a boolean to check if the value has been set. +func (o *TransferInitializationV1Response) GetBackupGatewaysAllowedOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.BackupGatewaysAllowed, true +} + +// SetBackupGatewaysAllowed sets field value +func (o *TransferInitializationV1Response) SetBackupGatewaysAllowed(v []string) { + o.BackupGatewaysAllowed = v +} + +func (o TransferInitializationV1Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferInitializationV1Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["messageType"] = o.MessageType + toSerialize["sessionID"] = o.SessionID + toSerialize["sequenceNumber"] = o.SequenceNumber + if !IsNil(o.OdapPhase) { + toSerialize["odapPhase"] = o.OdapPhase + } + toSerialize["initialRequestMessageHash"] = o.InitialRequestMessageHash + if !IsNil(o.Destination) { + toSerialize["destination"] = o.Destination + } + toSerialize["timeStamp"] = o.TimeStamp + toSerialize["processedTimeStamp"] = o.ProcessedTimeStamp + toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey + toSerialize["signature"] = o.Signature + toSerialize["backupGatewaysAllowed"] = o.BackupGatewaysAllowed + return toSerialize, nil +} + +type NullableTransferInitializationV1Response struct { + value *TransferInitializationV1Response + isSet bool +} + +func (v NullableTransferInitializationV1Response) Get() *TransferInitializationV1Response { + return v.value +} + +func (v *NullableTransferInitializationV1Response) Set(val *TransferInitializationV1Response) { + v.value = val + v.isSet = true +} + +func (v NullableTransferInitializationV1Response) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferInitializationV1Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferInitializationV1Response(val *TransferInitializationV1Response) *NullableTransferInitializationV1Response { + return &NullableTransferInitializationV1Response{value: val, isSet: true} +} + +func (v NullableTransferInitializationV1Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferInitializationV1Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..c1f1617c964 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..e4d00f1e235 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,224 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-odap-hermes_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService ClientRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.ClientRequestV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase1TransferInitiationRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase1TransferInitiationRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase1TransferInitiationResponseV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase1TransferInitiationResponseV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase2LockEvidenceRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase2LockEvidenceRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase2LockEvidenceResponseV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase2LockEvidenceResponseV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase2TransferCommenceRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase2TransferCommenceRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase2TransferCommenceResponseV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase2TransferCommenceResponseV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase3CommitFinalRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase3CommitFinalRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase3CommitFinalResponseV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase3CommitFinalResponseV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase3CommitPreparationRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase3CommitPreparationRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase3CommitPreparationResponseV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase3CommitPreparationResponseV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService Phase3TransferCompleteRequestV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.Phase3TransferCompleteRequestV1(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RecoverUpdateAckV1Message", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RecoverUpdateAckV1Message(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RecoverUpdateV1Message", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RecoverUpdateV1Message(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RecoverV1Message", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RecoverV1Message(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RecoverV1Success", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RecoverV1Success(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RollbackAckV1Message", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RollbackAckV1Message(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService RollbackV1Message", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultApi.RollbackV1Message(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..a8169dd2ee1 --- /dev/null +++ b/packages/cactus-plugin-odap-hermes/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Odap Hermes + +Implementation for Odap and Hermes + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-odap-hermes + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/README.md index c87e0cefb8e..add0081ce6d 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Odap Hermes - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata] Implementation for Odap and Hermes diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index 1ad8c92d811..fb61cbb4926 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 86a631f7c4e..51520e78781 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 589ff18e16f..44a2712d965 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 88e9a31acdb..5ba4dab8352 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 050fd022f89..7da7ba83ec0 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index fd2371f6edd..a9aaa0101c6 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 2919391186b..df5968d1bb4 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AssetProfile.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AssetProfile.java index 5e95476d82c..b3729c328df 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AssetProfile.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AssetProfile.java @@ -52,7 +52,7 @@ /** * AssetProfile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class AssetProfile { public static final String SERIALIZED_NAME_ISSUER = "issuer"; @SerializedName(SERIALIZED_NAME_ISSUER) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1Request.java index 162be1d0644..fa6731173e4 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1Request.java @@ -54,7 +54,7 @@ /** * ClientV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class ClientV1Request { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1RequestClientGatewayConfiguration.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1RequestClientGatewayConfiguration.java index ed5a9c47606..ad813122e85 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1RequestClientGatewayConfiguration.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ClientV1RequestClientGatewayConfiguration.java @@ -50,7 +50,7 @@ /** * ClientV1RequestClientGatewayConfiguration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class ClientV1RequestClientGatewayConfiguration { public static final String SERIALIZED_NAME_API_HOST = "apiHost"; @SerializedName(SERIALIZED_NAME_API_HOST) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Request.java index 59ef0993662..d222afdb160 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Request.java @@ -52,7 +52,7 @@ /** * CommitFinalV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class CommitFinalV1Request { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Response.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Response.java index 96f2c8f62c4..bcdd4ec202f 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Response.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitFinalV1Response.java @@ -51,7 +51,7 @@ /** * CommitFinalV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class CommitFinalV1Response { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Request.java index 7e46ecc676d..2862112486c 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Request.java @@ -51,7 +51,7 @@ /** * CommitPreparationV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class CommitPreparationV1Request { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Response.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Response.java index 180ca96c67a..eab8e269a19 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Response.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/CommitPreparationV1Response.java @@ -51,7 +51,7 @@ /** * CommitPreparationV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class CommitPreparationV1Response { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/History.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/History.java index ecf6174c8ee..dc907a65791 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/History.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/History.java @@ -52,7 +52,7 @@ /** * History */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class History { public static final String SERIALIZED_NAME_TRANSACTIONS = "Transactions"; @SerializedName(SERIALIZED_NAME_TRANSACTIONS) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Request.java index 066f78b32fb..82188357904 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Request.java @@ -52,7 +52,7 @@ /** * LockEvidenceV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class LockEvidenceV1Request { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Response.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Response.java index 811ed8cff12..3a3b262ffab 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Response.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/LockEvidenceV1Response.java @@ -52,7 +52,7 @@ /** * LockEvidenceV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class LockEvidenceV1Response { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapLocalLog.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapLocalLog.java index 75c521b01b2..686d934b077 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapLocalLog.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapLocalLog.java @@ -50,7 +50,7 @@ /** * OdapLocalLog */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class OdapLocalLog { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessage.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessage.java index 1bcfcde0883..fa3209c692b 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessage.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessage.java @@ -55,7 +55,7 @@ /** * OdapMessage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class OdapMessage { public static final String SERIALIZED_NAME_SEQUENCE_NUMBER = "SequenceNumber"; @SerializedName(SERIALIZED_NAME_SEQUENCE_NUMBER) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessageActionResponse.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessageActionResponse.java index 44bb71eebbe..10d3dc9e24b 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessageActionResponse.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/OdapMessageActionResponse.java @@ -52,7 +52,7 @@ /** * OdapMessageActionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class OdapMessageActionResponse { /** * Gets or Sets responseCode diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PayloadProfile.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PayloadProfile.java index d747f1a4258..7b32633273c 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PayloadProfile.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/PayloadProfile.java @@ -51,7 +51,7 @@ /** * PayloadProfile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class PayloadProfile { public static final String SERIALIZED_NAME_ASSET_PROFILE = "assetProfile"; @SerializedName(SERIALIZED_NAME_ASSET_PROFILE) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverSuccessV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverSuccessV1Message.java index 54c19b44a3c..aea2c07880a 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverSuccessV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverSuccessV1Message.java @@ -50,7 +50,7 @@ /** * RecoverSuccessV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RecoverSuccessV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateAckV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateAckV1Message.java index a80312a8952..8ec8d530467 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateAckV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateAckV1Message.java @@ -52,7 +52,7 @@ /** * RecoverUpdateAckV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RecoverUpdateAckV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateV1Message.java index 6865b721516..39b6e7f4322 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverUpdateV1Message.java @@ -53,7 +53,7 @@ /** * RecoverUpdateV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RecoverUpdateV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverV1Message.java index 11cfbaa45ef..e9ec76bf2ae 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RecoverV1Message.java @@ -51,7 +51,7 @@ /** * RecoverV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RecoverV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackAckV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackAckV1Message.java index 33c1b5023bf..0ac53bea0a1 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackAckV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackAckV1Message.java @@ -50,7 +50,7 @@ /** * RollbackAckV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RollbackAckV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackV1Message.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackV1Message.java index a8ee505fba4..fd265d97024 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackV1Message.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/RollbackV1Message.java @@ -52,7 +52,7 @@ /** * RollbackV1Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class RollbackV1Message { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SessionData.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SessionData.java index 3a3aa1f1116..256d3c8c870 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SessionData.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/SessionData.java @@ -55,7 +55,7 @@ /** * SessionData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class SessionData { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Request.java index e0fa6ff9924..0667740eb94 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Request.java @@ -51,7 +51,7 @@ /** * TransferCommenceV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class TransferCommenceV1Request { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Response.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Response.java index d2e7f0697e6..12a43e89f9a 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Response.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCommenceV1Response.java @@ -52,7 +52,7 @@ /** * TransferCommenceV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class TransferCommenceV1Response { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCompleteV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCompleteV1Request.java index 4227b05e1d3..9d6597ac356 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCompleteV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferCompleteV1Request.java @@ -52,7 +52,7 @@ /** * TransferCompleteV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class TransferCompleteV1Request { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Request.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Request.java index 0199bf8e2df..dfe6f15f859 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Request.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Request.java @@ -56,7 +56,7 @@ /** * TransferInitializationV1Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class TransferInitializationV1Request { public static final String SERIALIZED_NAME_MESSAGE_TYPE = "messageType"; @SerializedName(SERIALIZED_NAME_MESSAGE_TYPE) diff --git a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Response.java b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Response.java index ba91d1b067a..fe6de353617 100644 --- a/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Response.java +++ b/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TransferInitializationV1Response.java @@ -53,7 +53,7 @@ /** * TransferInitializationV1Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:45.935760317+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:57.769958649+05:30[Asia/Kolkata]") public class TransferInitializationV1Response { public static final String SERIALIZED_NAME_MESSAGE_TYPE = "messageType"; @SerializedName(SERIALIZED_NAME_MESSAGE_TYPE) diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..fdf06360b0e --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,25 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/DefaultApi.md +docs/ErrorExceptionResponseV1.md +docs/MonitoredToken.md +docs/StatusResponseV1.md +docs/TokenTypeV1.md +docs/TrackedOperationV1.md +git_push.sh +go.mod +go.sum +model_error_exception_response_v1.go +model_monitored_token.go +model_status_response_v1.go +model_token_type_v1.go +model_tracked_operation_v1.go +response.go +test/api_default_test.go +utils.go diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..cecd23f845e --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,116 @@ +# Go API client for @hyperledger/cactus-plugin-persistence-ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-persistence-ethereum "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-ethereum.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-ethereum.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-ethereum.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-ethereum.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetStatusV1**](docs/DefaultApi.md#getstatusv1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-persistence-ethereum/status | Get the status of persistence plugin for ethereum + + +## Documentation For Models + + - [ErrorExceptionResponseV1](docs/ErrorExceptionResponseV1.md) + - [MonitoredToken](docs/MonitoredToken.md) + - [StatusResponseV1](docs/StatusResponseV1.md) + - [TokenTypeV1](docs/TokenTypeV1.md) + - [TrackedOperationV1](docs/TrackedOperationV1.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..2f9d554a2a5 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,148 @@ +openapi: 3.0.3 +info: + description: Synchronizes state of an ethereum ledger into a DB that can later be + viewed in GUI + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Persistence Ethereum + version: v2.0.0-alpha.1 +servers: +- url: / +paths: + /api/v1/plugins/@hyperledger/cactus-plugin-persistence-ethereum/status: + get: + operationId: getStatusV1 + parameters: [] + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/StatusResponseV1' + description: OK + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorExceptionResponseV1' + description: Internal Server Error + summary: Get the status of persistence plugin for ethereum + x-hyperledger-cactus: + http: + verbLowerCase: get + path: /api/v1/plugins/@hyperledger/cactus-plugin-persistence-ethereum/status +components: + schemas: + TokenTypeV1: + enum: + - erc20 + - erc721 + type: string + x-enum-descriptions: + - "EIP-20: Token Standard" + - "EIP-721: Non-Fungible Token Standard" + x-enum-varnames: + - ERC20 + - ERC721 + MonitoredToken: + description: Ethereum tokens that are being monitored by the persistence plugin. + properties: + type: + $ref: '#/components/schemas/TokenTypeV1' + name: + description: Token name + nullable: false + type: string + symbol: + description: Token symbol + nullable: false + type: string + required: + - name + - symbol + - type + type: object + TrackedOperationV1: + description: Persistence plugin operation that is tracked and returned in status + report. + example: + operation: operation + startAt: startAt + properties: + startAt: + description: Start time of the operation. + nullable: false + type: string + operation: + description: Operation name. + nullable: false + type: string + required: + - operation + - startAt + type: object + StatusResponseV1: + description: Response with plugin status report. + example: + connected: true + monitoredTokensCount: 0.8008281904610115 + instanceId: instanceId + lastSeenBlock: 6.027456183070403 + monitorRunning: true + webServicesRegistered: true + operationsRunning: + - operation: operation + startAt: startAt + - operation: operation + startAt: startAt + properties: + instanceId: + description: Plugin instance id. + nullable: false + type: string + connected: + description: "True if successfully connected to the database, false otherwise." + nullable: false + type: boolean + webServicesRegistered: + description: True if web services were correctly exported. + nullable: false + type: boolean + monitoredTokensCount: + description: Total number of tokens being monitored by the plugin. + nullable: false + type: number + operationsRunning: + items: + $ref: '#/components/schemas/TrackedOperationV1' + type: array + monitorRunning: + description: "True if block monitoring is running, false otherwise." + nullable: false + type: boolean + lastSeenBlock: + description: Number of the last block seen by the block monitor. + nullable: false + type: number + required: + - connected + - instanceId + - lastSeenBlock + - monitorRunning + - monitoredTokensCount + - operationsRunning + - webServicesRegistered + type: object + ErrorExceptionResponseV1: + properties: + message: + nullable: false + type: string + error: + nullable: false + type: string + required: + - error + - message + type: object diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api_default.go new file mode 100644 index 00000000000..b2398dc49ad --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/api_default.go @@ -0,0 +1,130 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetStatusV1Request struct { + ctx context.Context + ApiService *DefaultApiService +} + +func (r ApiGetStatusV1Request) Execute() (*StatusResponseV1, *http.Response, error) { + return r.ApiService.GetStatusV1Execute(r) +} + +/* +GetStatusV1 Get the status of persistence plugin for ethereum + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStatusV1Request +*/ +func (a *DefaultApiService) GetStatusV1(ctx context.Context) ApiGetStatusV1Request { + return ApiGetStatusV1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return StatusResponseV1 +func (a *DefaultApiService) GetStatusV1Execute(r ApiGetStatusV1Request) (*StatusResponseV1, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StatusResponseV1 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetStatusV1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/plugins/@hyperledger/cactus-plugin-persistence-ethereum/status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorExceptionResponseV1 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..faf84a40f29 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,656 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Persistence Ethereum API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..a0b46237084 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md new file mode 100644 index 00000000000..ab450cb8e56 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/DefaultApi.md @@ -0,0 +1,68 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetStatusV1**](DefaultApi.md#GetStatusV1) | **Get** /api/v1/plugins/@hyperledger/cactus-plugin-persistence-ethereum/status | Get the status of persistence plugin for ethereum + + + +## GetStatusV1 + +> StatusResponseV1 GetStatusV1(ctx).Execute() + +Get the status of persistence plugin for ethereum + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetStatusV1(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetStatusV1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusV1`: StatusResponseV1 + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetStatusV1`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStatusV1Request struct via the builder pattern + + +### Return type + +[**StatusResponseV1**](StatusResponseV1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md new file mode 100644 index 00000000000..2757745a0df --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/ErrorExceptionResponseV1.md @@ -0,0 +1,72 @@ +# ErrorExceptionResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | +**Error** | **string** | | + +## Methods + +### NewErrorExceptionResponseV1 + +`func NewErrorExceptionResponseV1(message string, error_ string, ) *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorExceptionResponseV1WithDefaults + +`func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1` + +NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ErrorExceptionResponseV1) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorExceptionResponseV1) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetError + +`func (o *ErrorExceptionResponseV1) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ErrorExceptionResponseV1) SetError(v string)` + +SetError sets Error field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/MonitoredToken.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/MonitoredToken.md new file mode 100644 index 00000000000..06c6a265227 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/MonitoredToken.md @@ -0,0 +1,93 @@ +# MonitoredToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**TokenTypeV1**](TokenTypeV1.md) | | +**Name** | **string** | Token name | +**Symbol** | **string** | Token symbol | + +## Methods + +### NewMonitoredToken + +`func NewMonitoredToken(type_ TokenTypeV1, name string, symbol string, ) *MonitoredToken` + +NewMonitoredToken instantiates a new MonitoredToken object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoredTokenWithDefaults + +`func NewMonitoredTokenWithDefaults() *MonitoredToken` + +NewMonitoredTokenWithDefaults instantiates a new MonitoredToken object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MonitoredToken) GetType() TokenTypeV1` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MonitoredToken) GetTypeOk() (*TokenTypeV1, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MonitoredToken) SetType(v TokenTypeV1)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *MonitoredToken) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MonitoredToken) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MonitoredToken) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSymbol + +`func (o *MonitoredToken) GetSymbol() string` + +GetSymbol returns the Symbol field if non-nil, zero value otherwise. + +### GetSymbolOk + +`func (o *MonitoredToken) GetSymbolOk() (*string, bool)` + +GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSymbol + +`func (o *MonitoredToken) SetSymbol(v string)` + +SetSymbol sets Symbol field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/StatusResponseV1.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/StatusResponseV1.md new file mode 100644 index 00000000000..c7939f1fd27 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/StatusResponseV1.md @@ -0,0 +1,177 @@ +# StatusResponseV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstanceId** | **string** | Plugin instance id. | +**Connected** | **bool** | True if successfully connected to the database, false otherwise. | +**WebServicesRegistered** | **bool** | True if web services were correctly exported. | +**MonitoredTokensCount** | **float32** | Total number of tokens being monitored by the plugin. | +**OperationsRunning** | [**[]TrackedOperationV1**](TrackedOperationV1.md) | | +**MonitorRunning** | **bool** | True if block monitoring is running, false otherwise. | +**LastSeenBlock** | **float32** | Number of the last block seen by the block monitor. | + +## Methods + +### NewStatusResponseV1 + +`func NewStatusResponseV1(instanceId string, connected bool, webServicesRegistered bool, monitoredTokensCount float32, operationsRunning []TrackedOperationV1, monitorRunning bool, lastSeenBlock float32, ) *StatusResponseV1` + +NewStatusResponseV1 instantiates a new StatusResponseV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStatusResponseV1WithDefaults + +`func NewStatusResponseV1WithDefaults() *StatusResponseV1` + +NewStatusResponseV1WithDefaults instantiates a new StatusResponseV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInstanceId + +`func (o *StatusResponseV1) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *StatusResponseV1) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *StatusResponseV1) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetConnected + +`func (o *StatusResponseV1) GetConnected() bool` + +GetConnected returns the Connected field if non-nil, zero value otherwise. + +### GetConnectedOk + +`func (o *StatusResponseV1) GetConnectedOk() (*bool, bool)` + +GetConnectedOk returns a tuple with the Connected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnected + +`func (o *StatusResponseV1) SetConnected(v bool)` + +SetConnected sets Connected field to given value. + + +### GetWebServicesRegistered + +`func (o *StatusResponseV1) GetWebServicesRegistered() bool` + +GetWebServicesRegistered returns the WebServicesRegistered field if non-nil, zero value otherwise. + +### GetWebServicesRegisteredOk + +`func (o *StatusResponseV1) GetWebServicesRegisteredOk() (*bool, bool)` + +GetWebServicesRegisteredOk returns a tuple with the WebServicesRegistered field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebServicesRegistered + +`func (o *StatusResponseV1) SetWebServicesRegistered(v bool)` + +SetWebServicesRegistered sets WebServicesRegistered field to given value. + + +### GetMonitoredTokensCount + +`func (o *StatusResponseV1) GetMonitoredTokensCount() float32` + +GetMonitoredTokensCount returns the MonitoredTokensCount field if non-nil, zero value otherwise. + +### GetMonitoredTokensCountOk + +`func (o *StatusResponseV1) GetMonitoredTokensCountOk() (*float32, bool)` + +GetMonitoredTokensCountOk returns a tuple with the MonitoredTokensCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitoredTokensCount + +`func (o *StatusResponseV1) SetMonitoredTokensCount(v float32)` + +SetMonitoredTokensCount sets MonitoredTokensCount field to given value. + + +### GetOperationsRunning + +`func (o *StatusResponseV1) GetOperationsRunning() []TrackedOperationV1` + +GetOperationsRunning returns the OperationsRunning field if non-nil, zero value otherwise. + +### GetOperationsRunningOk + +`func (o *StatusResponseV1) GetOperationsRunningOk() (*[]TrackedOperationV1, bool)` + +GetOperationsRunningOk returns a tuple with the OperationsRunning field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationsRunning + +`func (o *StatusResponseV1) SetOperationsRunning(v []TrackedOperationV1)` + +SetOperationsRunning sets OperationsRunning field to given value. + + +### GetMonitorRunning + +`func (o *StatusResponseV1) GetMonitorRunning() bool` + +GetMonitorRunning returns the MonitorRunning field if non-nil, zero value otherwise. + +### GetMonitorRunningOk + +`func (o *StatusResponseV1) GetMonitorRunningOk() (*bool, bool)` + +GetMonitorRunningOk returns a tuple with the MonitorRunning field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorRunning + +`func (o *StatusResponseV1) SetMonitorRunning(v bool)` + +SetMonitorRunning sets MonitorRunning field to given value. + + +### GetLastSeenBlock + +`func (o *StatusResponseV1) GetLastSeenBlock() float32` + +GetLastSeenBlock returns the LastSeenBlock field if non-nil, zero value otherwise. + +### GetLastSeenBlockOk + +`func (o *StatusResponseV1) GetLastSeenBlockOk() (*float32, bool)` + +GetLastSeenBlockOk returns a tuple with the LastSeenBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSeenBlock + +`func (o *StatusResponseV1) SetLastSeenBlock(v float32)` + +SetLastSeenBlock sets LastSeenBlock field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TokenTypeV1.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TokenTypeV1.md new file mode 100644 index 00000000000..dabd4fa56ca --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TokenTypeV1.md @@ -0,0 +1,13 @@ +# TokenTypeV1 + +## Enum + + +* `ERC20` (value: `"erc20"`) + +* `ERC721` (value: `"erc721"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TrackedOperationV1.md b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TrackedOperationV1.md new file mode 100644 index 00000000000..b6d92a5624f --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/docs/TrackedOperationV1.md @@ -0,0 +1,72 @@ +# TrackedOperationV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartAt** | **string** | Start time of the operation. | +**Operation** | **string** | Operation name. | + +## Methods + +### NewTrackedOperationV1 + +`func NewTrackedOperationV1(startAt string, operation string, ) *TrackedOperationV1` + +NewTrackedOperationV1 instantiates a new TrackedOperationV1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTrackedOperationV1WithDefaults + +`func NewTrackedOperationV1WithDefaults() *TrackedOperationV1` + +NewTrackedOperationV1WithDefaults instantiates a new TrackedOperationV1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartAt + +`func (o *TrackedOperationV1) GetStartAt() string` + +GetStartAt returns the StartAt field if non-nil, zero value otherwise. + +### GetStartAtOk + +`func (o *TrackedOperationV1) GetStartAtOk() (*string, bool)` + +GetStartAtOk returns a tuple with the StartAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartAt + +`func (o *TrackedOperationV1) SetStartAt(v string)` + +SetStartAt sets StartAt field to given value. + + +### GetOperation + +`func (o *TrackedOperationV1) GetOperation() string` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *TrackedOperationV1) GetOperationOk() (*string, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *TrackedOperationV1) SetOperation(v string)` + +SetOperation sets Operation field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..26ccbb52298 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..95c54e1a890 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go new file mode 100644 index 00000000000..12071d6a272 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_error_exception_response_v1.go @@ -0,0 +1,144 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" +) + +// checks if the ErrorExceptionResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorExceptionResponseV1{} + +// ErrorExceptionResponseV1 struct for ErrorExceptionResponseV1 +type ErrorExceptionResponseV1 struct { + Message string `json:"message"` + Error string `json:"error"` +} + +// NewErrorExceptionResponseV1 instantiates a new ErrorExceptionResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorExceptionResponseV1(message string, error_ string) *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + this.Message = message + this.Error = error_ + return &this +} + +// NewErrorExceptionResponseV1WithDefaults instantiates a new ErrorExceptionResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorExceptionResponseV1WithDefaults() *ErrorExceptionResponseV1 { + this := ErrorExceptionResponseV1{} + return &this +} + +// GetMessage returns the Message field value +func (o *ErrorExceptionResponseV1) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorExceptionResponseV1) SetMessage(v string) { + o.Message = v +} + +// GetError returns the Error field value +func (o *ErrorExceptionResponseV1) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *ErrorExceptionResponseV1) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *ErrorExceptionResponseV1) SetError(v string) { + o.Error = v +} + +func (o ErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorExceptionResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["error"] = o.Error + return toSerialize, nil +} + +type NullableErrorExceptionResponseV1 struct { + value *ErrorExceptionResponseV1 + isSet bool +} + +func (v NullableErrorExceptionResponseV1) Get() *ErrorExceptionResponseV1 { + return v.value +} + +func (v *NullableErrorExceptionResponseV1) Set(val *ErrorExceptionResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableErrorExceptionResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorExceptionResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorExceptionResponseV1(val *ErrorExceptionResponseV1) *NullableErrorExceptionResponseV1 { + return &NullableErrorExceptionResponseV1{value: val, isSet: true} +} + +func (v NullableErrorExceptionResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorExceptionResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_monitored_token.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_monitored_token.go new file mode 100644 index 00000000000..edfab27234c --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_monitored_token.go @@ -0,0 +1,173 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" +) + +// checks if the MonitoredToken type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoredToken{} + +// MonitoredToken Ethereum tokens that are being monitored by the persistence plugin. +type MonitoredToken struct { + Type TokenTypeV1 `json:"type"` + // Token name + Name string `json:"name"` + // Token symbol + Symbol string `json:"symbol"` +} + +// NewMonitoredToken instantiates a new MonitoredToken object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoredToken(type_ TokenTypeV1, name string, symbol string) *MonitoredToken { + this := MonitoredToken{} + this.Type = type_ + this.Name = name + this.Symbol = symbol + return &this +} + +// NewMonitoredTokenWithDefaults instantiates a new MonitoredToken object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoredTokenWithDefaults() *MonitoredToken { + this := MonitoredToken{} + return &this +} + +// GetType returns the Type field value +func (o *MonitoredToken) GetType() TokenTypeV1 { + if o == nil { + var ret TokenTypeV1 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MonitoredToken) GetTypeOk() (*TokenTypeV1, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MonitoredToken) SetType(v TokenTypeV1) { + o.Type = v +} + +// GetName returns the Name field value +func (o *MonitoredToken) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *MonitoredToken) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *MonitoredToken) SetName(v string) { + o.Name = v +} + +// GetSymbol returns the Symbol field value +func (o *MonitoredToken) GetSymbol() string { + if o == nil { + var ret string + return ret + } + + return o.Symbol +} + +// GetSymbolOk returns a tuple with the Symbol field value +// and a boolean to check if the value has been set. +func (o *MonitoredToken) GetSymbolOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Symbol, true +} + +// SetSymbol sets field value +func (o *MonitoredToken) SetSymbol(v string) { + o.Symbol = v +} + +func (o MonitoredToken) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoredToken) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["name"] = o.Name + toSerialize["symbol"] = o.Symbol + return toSerialize, nil +} + +type NullableMonitoredToken struct { + value *MonitoredToken + isSet bool +} + +func (v NullableMonitoredToken) Get() *MonitoredToken { + return v.value +} + +func (v *NullableMonitoredToken) Set(val *MonitoredToken) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoredToken) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoredToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoredToken(val *MonitoredToken) *NullableMonitoredToken { + return &NullableMonitoredToken{value: val, isSet: true} +} + +func (v NullableMonitoredToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoredToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_status_response_v1.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_status_response_v1.go new file mode 100644 index 00000000000..e30e789badd --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_status_response_v1.go @@ -0,0 +1,285 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" +) + +// checks if the StatusResponseV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StatusResponseV1{} + +// StatusResponseV1 Response with plugin status report. +type StatusResponseV1 struct { + // Plugin instance id. + InstanceId string `json:"instanceId"` + // True if successfully connected to the database, false otherwise. + Connected bool `json:"connected"` + // True if web services were correctly exported. + WebServicesRegistered bool `json:"webServicesRegistered"` + // Total number of tokens being monitored by the plugin. + MonitoredTokensCount float32 `json:"monitoredTokensCount"` + OperationsRunning []TrackedOperationV1 `json:"operationsRunning"` + // True if block monitoring is running, false otherwise. + MonitorRunning bool `json:"monitorRunning"` + // Number of the last block seen by the block monitor. + LastSeenBlock float32 `json:"lastSeenBlock"` +} + +// NewStatusResponseV1 instantiates a new StatusResponseV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStatusResponseV1(instanceId string, connected bool, webServicesRegistered bool, monitoredTokensCount float32, operationsRunning []TrackedOperationV1, monitorRunning bool, lastSeenBlock float32) *StatusResponseV1 { + this := StatusResponseV1{} + this.InstanceId = instanceId + this.Connected = connected + this.WebServicesRegistered = webServicesRegistered + this.MonitoredTokensCount = monitoredTokensCount + this.OperationsRunning = operationsRunning + this.MonitorRunning = monitorRunning + this.LastSeenBlock = lastSeenBlock + return &this +} + +// NewStatusResponseV1WithDefaults instantiates a new StatusResponseV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStatusResponseV1WithDefaults() *StatusResponseV1 { + this := StatusResponseV1{} + return &this +} + +// GetInstanceId returns the InstanceId field value +func (o *StatusResponseV1) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *StatusResponseV1) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetConnected returns the Connected field value +func (o *StatusResponseV1) GetConnected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Connected +} + +// GetConnectedOk returns a tuple with the Connected field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetConnectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Connected, true +} + +// SetConnected sets field value +func (o *StatusResponseV1) SetConnected(v bool) { + o.Connected = v +} + +// GetWebServicesRegistered returns the WebServicesRegistered field value +func (o *StatusResponseV1) GetWebServicesRegistered() bool { + if o == nil { + var ret bool + return ret + } + + return o.WebServicesRegistered +} + +// GetWebServicesRegisteredOk returns a tuple with the WebServicesRegistered field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetWebServicesRegisteredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.WebServicesRegistered, true +} + +// SetWebServicesRegistered sets field value +func (o *StatusResponseV1) SetWebServicesRegistered(v bool) { + o.WebServicesRegistered = v +} + +// GetMonitoredTokensCount returns the MonitoredTokensCount field value +func (o *StatusResponseV1) GetMonitoredTokensCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.MonitoredTokensCount +} + +// GetMonitoredTokensCountOk returns a tuple with the MonitoredTokensCount field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetMonitoredTokensCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.MonitoredTokensCount, true +} + +// SetMonitoredTokensCount sets field value +func (o *StatusResponseV1) SetMonitoredTokensCount(v float32) { + o.MonitoredTokensCount = v +} + +// GetOperationsRunning returns the OperationsRunning field value +func (o *StatusResponseV1) GetOperationsRunning() []TrackedOperationV1 { + if o == nil { + var ret []TrackedOperationV1 + return ret + } + + return o.OperationsRunning +} + +// GetOperationsRunningOk returns a tuple with the OperationsRunning field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetOperationsRunningOk() ([]TrackedOperationV1, bool) { + if o == nil { + return nil, false + } + return o.OperationsRunning, true +} + +// SetOperationsRunning sets field value +func (o *StatusResponseV1) SetOperationsRunning(v []TrackedOperationV1) { + o.OperationsRunning = v +} + +// GetMonitorRunning returns the MonitorRunning field value +func (o *StatusResponseV1) GetMonitorRunning() bool { + if o == nil { + var ret bool + return ret + } + + return o.MonitorRunning +} + +// GetMonitorRunningOk returns a tuple with the MonitorRunning field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetMonitorRunningOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.MonitorRunning, true +} + +// SetMonitorRunning sets field value +func (o *StatusResponseV1) SetMonitorRunning(v bool) { + o.MonitorRunning = v +} + +// GetLastSeenBlock returns the LastSeenBlock field value +func (o *StatusResponseV1) GetLastSeenBlock() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.LastSeenBlock +} + +// GetLastSeenBlockOk returns a tuple with the LastSeenBlock field value +// and a boolean to check if the value has been set. +func (o *StatusResponseV1) GetLastSeenBlockOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.LastSeenBlock, true +} + +// SetLastSeenBlock sets field value +func (o *StatusResponseV1) SetLastSeenBlock(v float32) { + o.LastSeenBlock = v +} + +func (o StatusResponseV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StatusResponseV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceId"] = o.InstanceId + toSerialize["connected"] = o.Connected + toSerialize["webServicesRegistered"] = o.WebServicesRegistered + toSerialize["monitoredTokensCount"] = o.MonitoredTokensCount + toSerialize["operationsRunning"] = o.OperationsRunning + toSerialize["monitorRunning"] = o.MonitorRunning + toSerialize["lastSeenBlock"] = o.LastSeenBlock + return toSerialize, nil +} + +type NullableStatusResponseV1 struct { + value *StatusResponseV1 + isSet bool +} + +func (v NullableStatusResponseV1) Get() *StatusResponseV1 { + return v.value +} + +func (v *NullableStatusResponseV1) Set(val *StatusResponseV1) { + v.value = val + v.isSet = true +} + +func (v NullableStatusResponseV1) IsSet() bool { + return v.isSet +} + +func (v *NullableStatusResponseV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStatusResponseV1(val *StatusResponseV1) *NullableStatusResponseV1 { + return &NullableStatusResponseV1{value: val, isSet: true} +} + +func (v NullableStatusResponseV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStatusResponseV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_token_type_v1.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_token_type_v1.go new file mode 100644 index 00000000000..762c88a7d36 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_token_type_v1.go @@ -0,0 +1,111 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" + "fmt" +) + +// TokenTypeV1 the model 'TokenTypeV1' +type TokenTypeV1 string + +// List of TokenTypeV1 +const ( + ERC20 TokenTypeV1 = "erc20" + ERC721 TokenTypeV1 = "erc721" +) + +// All allowed values of TokenTypeV1 enum +var AllowedTokenTypeV1EnumValues = []TokenTypeV1{ + "erc20", + "erc721", +} + +func (v *TokenTypeV1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TokenTypeV1(value) + for _, existing := range AllowedTokenTypeV1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TokenTypeV1", value) +} + +// NewTokenTypeV1FromValue returns a pointer to a valid TokenTypeV1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTokenTypeV1FromValue(v string) (*TokenTypeV1, error) { + ev := TokenTypeV1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TokenTypeV1: valid values are %v", v, AllowedTokenTypeV1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TokenTypeV1) IsValid() bool { + for _, existing := range AllowedTokenTypeV1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TokenTypeV1 value +func (v TokenTypeV1) Ptr() *TokenTypeV1 { + return &v +} + +type NullableTokenTypeV1 struct { + value *TokenTypeV1 + isSet bool +} + +func (v NullableTokenTypeV1) Get() *TokenTypeV1 { + return v.value +} + +func (v *NullableTokenTypeV1) Set(val *TokenTypeV1) { + v.value = val + v.isSet = true +} + +func (v NullableTokenTypeV1) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenTypeV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenTypeV1(val *TokenTypeV1) *NullableTokenTypeV1 { + return &NullableTokenTypeV1{value: val, isSet: true} +} + +func (v NullableTokenTypeV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenTypeV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_tracked_operation_v1.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_tracked_operation_v1.go new file mode 100644 index 00000000000..cb3634c00b4 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/model_tracked_operation_v1.go @@ -0,0 +1,146 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" +) + +// checks if the TrackedOperationV1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrackedOperationV1{} + +// TrackedOperationV1 Persistence plugin operation that is tracked and returned in status report. +type TrackedOperationV1 struct { + // Start time of the operation. + StartAt string `json:"startAt"` + // Operation name. + Operation string `json:"operation"` +} + +// NewTrackedOperationV1 instantiates a new TrackedOperationV1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTrackedOperationV1(startAt string, operation string) *TrackedOperationV1 { + this := TrackedOperationV1{} + this.StartAt = startAt + this.Operation = operation + return &this +} + +// NewTrackedOperationV1WithDefaults instantiates a new TrackedOperationV1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTrackedOperationV1WithDefaults() *TrackedOperationV1 { + this := TrackedOperationV1{} + return &this +} + +// GetStartAt returns the StartAt field value +func (o *TrackedOperationV1) GetStartAt() string { + if o == nil { + var ret string + return ret + } + + return o.StartAt +} + +// GetStartAtOk returns a tuple with the StartAt field value +// and a boolean to check if the value has been set. +func (o *TrackedOperationV1) GetStartAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StartAt, true +} + +// SetStartAt sets field value +func (o *TrackedOperationV1) SetStartAt(v string) { + o.StartAt = v +} + +// GetOperation returns the Operation field value +func (o *TrackedOperationV1) GetOperation() string { + if o == nil { + var ret string + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *TrackedOperationV1) GetOperationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *TrackedOperationV1) SetOperation(v string) { + o.Operation = v +} + +func (o TrackedOperationV1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrackedOperationV1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["startAt"] = o.StartAt + toSerialize["operation"] = o.Operation + return toSerialize, nil +} + +type NullableTrackedOperationV1 struct { + value *TrackedOperationV1 + isSet bool +} + +func (v NullableTrackedOperationV1) Get() *TrackedOperationV1 { + return v.value +} + +func (v *NullableTrackedOperationV1) Set(val *TrackedOperationV1) { + v.value = val + v.isSet = true +} + +func (v NullableTrackedOperationV1) IsSet() bool { + return v.isSet +} + +func (v *NullableTrackedOperationV1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrackedOperationV1(val *TrackedOperationV1) *NullableTrackedOperationV1 { + return &NullableTrackedOperationV1{value: val, isSet: true} +} + +func (v NullableTrackedOperationV1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrackedOperationV1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..a6821c7794d --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go new file mode 100644 index 00000000000..684e2e43403 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/test/api_default_test.go @@ -0,0 +1,37 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client" +) + +func Test_@hyperledger/cactus-plugin-persistence-ethereum_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetStatusV1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultApi.GetStatusV1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..e4eaf1ef533 --- /dev/null +++ b/packages/cactus-plugin-persistence-ethereum/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Persistence Ethereum + +Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-ethereum + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/README.md index a4a3d59a330..8bce835b70b 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Persistence Ethereum - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata] Synchronizes state of an ethereum ledger into a DB that can later be viewed in GUI diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index bf1b0f357c5..dd233bd3e3b 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index 9ec9676c0aa..0505c7be6e7 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 222b47d80ec..60f029714fc 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 7ceda18d978..41386e750d4 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index e8a50e7e52a..2e1c72fe5e9 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 620de140217..51125af6301 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 449b2b15740..9eb0ca08f99 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java index fea426d8d4d..4a548ec43a3 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/ErrorExceptionResponseV1.java @@ -50,7 +50,7 @@ /** * ErrorExceptionResponseV1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class ErrorExceptionResponseV1 { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MonitoredToken.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MonitoredToken.java index 1810582bc0b..46d931ee338 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MonitoredToken.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/MonitoredToken.java @@ -51,7 +51,7 @@ /** * Ethereum tokens that are being monitored by the persistence plugin. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class MonitoredToken { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StatusResponseV1.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StatusResponseV1.java index 27347d3bdfc..02f515dc491 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StatusResponseV1.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/StatusResponseV1.java @@ -54,7 +54,7 @@ /** * Response with plugin status report. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class StatusResponseV1 { public static final String SERIALIZED_NAME_INSTANCE_ID = "instanceId"; @SerializedName(SERIALIZED_NAME_INSTANCE_ID) diff --git a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TrackedOperationV1.java b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TrackedOperationV1.java index 4504f416012..0e1b44fbbab 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TrackedOperationV1.java +++ b/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/TrackedOperationV1.java @@ -50,7 +50,7 @@ /** * Persistence plugin operation that is tracked and returned in status report. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:16:53.349737593+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:27:52.038680828+05:30[Asia/Kolkata]") public class TrackedOperationV1 { public static final String SERIALIZED_NAME_START_AT = "startAt"; @SerializedName(SERIALIZED_NAME_START_AT) diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.gitignore b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.gitignore new file mode 100644 index 00000000000..daf913b1b34 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator-ignore @@ -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 diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES new file mode 100644 index 00000000000..90bf13cb049 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES @@ -0,0 +1,12 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +client.go +configuration.go +git_push.sh +go.mod +go.sum +response.go +utils.go diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..cd802a1ec4e --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.travis.yml new file mode 100644 index 00000000000..f5cb2ce9a5a --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/README.md new file mode 100644 index 00000000000..7823fe8bb35 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/README.md @@ -0,0 +1,109 @@ +# Go API client for @hyperledger/cactus-plugin-persistence-fabric + +Scrap fabric ledger into database. Needs administrative privileges. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2.0.0-alpha.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import @hyperledger/cactus-plugin-persistence-fabric "github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-fabric.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-fabric.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-fabric.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), @hyperledger/cactus-plugin-persistence-fabric.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- + + +## Documentation For Models + + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml new file mode 100644 index 00000000000..d7fd4507f03 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml @@ -0,0 +1,13 @@ +openapi: 3.0.3 +info: + description: Scrap fabric ledger into database. Needs administrative privileges. + license: + name: Apache-2.0 + url: https://www.apache.org/licenses/LICENSE-2.0.html + title: Hyperledger Cactus Plugin - Block Fabrick PErsistance + version: v2.0.0-alpha.1 +servers: +- url: / +paths: {} +components: + schemas: {} diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/client.go b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/client.go new file mode 100644 index 00000000000..b954ace2610 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/client.go @@ -0,0 +1,653 @@ +/* +Hyperledger Cactus Plugin - Block Fabrick PErsistance + +Scrap fabric ledger into database. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-fabric + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Hyperledger Cactus Plugin - Block Fabrick PErsistance API vv2.0.0-alpha.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/configuration.go b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/configuration.go new file mode 100644 index 00000000000..84df44337a6 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/configuration.go @@ -0,0 +1,215 @@ +/* +Hyperledger Cactus Plugin - Block Fabrick PErsistance + +Scrap fabric ledger into database. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-fabric + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/git_push.sh b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/git_push.sh new file mode 100644 index 00000000000..79430d8af8c --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="hyperledger" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cacti/packages/@hyperledger/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.mod new file mode 100644 index 00000000000..f44908d1ced --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/packages/@hyperledger/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.sum new file mode 100644 index 00000000000..c966c8ddfd0 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/response.go b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/response.go new file mode 100644 index 00000000000..e6bff730078 --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/response.go @@ -0,0 +1,47 @@ +/* +Hyperledger Cactus Plugin - Block Fabrick PErsistance + +Scrap fabric ledger into database. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-fabric + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/utils.go b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/utils.go new file mode 100644 index 00000000000..a3ff3369f8b --- /dev/null +++ b/packages/cactus-plugin-persistence-fabric/src/main/go/generated/openapi/go-client/utils.go @@ -0,0 +1,347 @@ +/* +Hyperledger Cactus Plugin - Block Fabrick PErsistance + +Scrap fabric ledger into database. Needs administrative privileges. + +API version: v2.0.0-alpha.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package @hyperledger/cactus-plugin-persistence-fabric + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/README.md b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/README.md index 73f52cd9aa6..a977fd0effd 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/README.md +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/README.md @@ -2,7 +2,7 @@ Hyperledger Cactus Plugin - Block Fabrick PErsistance - API version: v2.0.0-alpha.1 - - Build date: 2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata] + - Build date: 2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata] Scrap fabric ledger into database. Needs administrative privileges. diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java index b97f6a7973c..cc867fd2659 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java index b1bd61e79cb..c8b1ce61d5b 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class Configuration { public static final String VERSION = "v2.0.0-alpha.1"; diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java index 55d574370b5..b01afbe25ec 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class Pair { private String name = ""; private String value = ""; diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java index 87ee1117495..e238cafe56d 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index 3974558a4c3..91d386334fe 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index ef0bccb6c7a..c94a9e86f84 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 6fa7ad6e058..d847ee4276e 100644 --- a/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:17:40.948939198+05:30[Asia/Kolkata]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-27T17:28:51.837136308+05:30[Asia/Kolkata]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object